From 42025fa8d14576059a43dbb7a4032af0864e6c0a Mon Sep 17 00:00:00 2001 From: hc-github-team-tf-azure <> Date: Fri, 28 Jun 2024 15:15:24 +0000 Subject: [PATCH] Updating based on 44408ba2 --- .../aad/2021-05-01/domainservices/method_list.go | 13 +++++++++++++ .../domainservices/method_listbyresourcegroup.go | 13 +++++++++++++ .../aad/2021-05-01/oucontainer/method_list.go | 13 +++++++++++++ .../tenants/method_listbyresourcegroup.go | 13 +++++++++++++ .../tenants/method_listbysubscription.go | 13 +++++++++++++ .../configurations/method_listbyresourcegroup.go | 13 +++++++++++++ .../configurations/method_listbysubscription.go | 13 +++++++++++++ .../method_recommendationslist.go | 15 ++++++++++++++- .../metadata/method_recommendationmetadatalist.go | 13 +++++++++++++ .../2020-01-01/suppressions/method_list.go | 15 ++++++++++++++- .../configurations/method_listbyresourcegroup.go | 13 +++++++++++++ .../configurations/method_listbysubscription.go | 13 +++++++++++++ .../method_recommendationslist.go | 15 ++++++++++++++- .../metadata/method_recommendationmetadatalist.go | 13 +++++++++++++ .../2022-10-01/suppressions/method_list.go | 15 ++++++++++++++- .../configurations/method_listbyresourcegroup.go | 13 +++++++++++++ .../configurations/method_listbysubscription.go | 13 +++++++++++++ .../method_recommendationslist.go | 15 ++++++++++++++- .../metadata/method_recommendationmetadatalist.go | 13 +++++++++++++ .../2023-01-01/suppressions/method_list.go | 15 ++++++++++++++- .../actionrules/method_listbyresourcegroup.go | 15 ++++++++++++++- .../actionrules/method_listbysubscription.go | 15 ++++++++++++++- .../alertsmanagements/method_alertschangestate.go | 2 +- .../alertsmanagements/method_alertsgetall.go | 15 ++++++++++++++- .../alertsmanagements/method_alertsgetsummary.go | 2 +- .../alertsmanagements/method_alertsmetadata.go | 2 +- .../smartgroups/method_changestate.go | 2 +- .../smartgroups/method_getall.go | 15 ++++++++++++++- .../smartdetectoralertrules/method_get.go | 2 +- .../smartdetectoralertrules/method_list.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../2024-03-01/apidefinitions/method_list.go | 15 ++++++++++++++- .../apicenter/2024-03-01/apis/method_list.go | 15 ++++++++++++++- .../2024-03-01/apiversions/method_list.go | 15 ++++++++++++++- .../2024-03-01/deployments/method_list.go | 15 ++++++++++++++- .../2024-03-01/environments/method_list.go | 15 ++++++++++++++- .../2024-03-01/metadataschemas/method_list.go | 15 ++++++++++++++- .../services/method_listbyresourcegroup.go | 13 +++++++++++++ .../services/method_listbysubscription.go | 13 +++++++++++++ .../2024-03-01/workspaces/method_list.go | 15 ++++++++++++++- .../apidefinitions/method_list.go | 15 ++++++++++++++- .../2024-03-15-preview/apis/method_list.go | 15 ++++++++++++++- .../2024-03-15-preview/apiversions/method_list.go | 15 ++++++++++++++- .../deletedservices/method_list.go | 15 ++++++++++++++- .../deletedservices/method_listbysubscription.go | 13 +++++++++++++ .../2024-03-15-preview/deployments/method_list.go | 15 ++++++++++++++- .../environments/method_list.go | 15 ++++++++++++++- .../metadataschemas/method_list.go | 15 ++++++++++++++- .../services/method_listbyresourcegroup.go | 13 +++++++++++++ .../services/method_listbysubscription.go | 13 +++++++++++++ .../2024-03-15-preview/workspaces/method_list.go | 15 ++++++++++++++- .../2022-08-01/api/method_createorupdate.go | 2 +- .../apimanagement/2022-08-01/api/method_delete.go | 2 +- .../2022-08-01/api/method_listbyservice.go | 15 ++++++++++++++- .../apimanagement/2022-08-01/api/method_update.go | 2 +- .../apidiagnostic/method_createorupdate.go | 2 +- .../2022-08-01/apidiagnostic/method_delete.go | 2 +- .../apidiagnostic/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/apidiagnostic/method_update.go | 2 +- .../2022-08-01/apiissue/method_createorupdate.go | 2 +- .../2022-08-01/apiissue/method_delete.go | 2 +- .../2022-08-01/apiissue/method_get.go | 2 +- .../2022-08-01/apiissue/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/apiissue/method_update.go | 2 +- .../apiissueattachment/method_createorupdate.go | 2 +- .../apiissueattachment/method_delete.go | 2 +- .../apiissueattachment/method_listbyservice.go | 15 ++++++++++++++- .../apiissuecomment/method_createorupdate.go | 2 +- .../2022-08-01/apiissuecomment/method_delete.go | 2 +- .../apiissuecomment/method_listbyservice.go | 15 ++++++++++++++- .../apimanagementservice/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listavailableserviceskus.go | 13 +++++++++++++ .../apioperation/method_createorupdate.go | 2 +- .../2022-08-01/apioperation/method_delete.go | 2 +- .../2022-08-01/apioperation/method_listbyapi.go | 15 ++++++++++++++- .../2022-08-01/apioperation/method_update.go | 2 +- .../apioperationpolicy/method_createorupdate.go | 2 +- .../apioperationpolicy/method_delete.go | 2 +- .../2022-08-01/apioperationpolicy/method_get.go | 2 +- .../apioperationpolicy/method_listbyoperation.go | 13 +++++++++++++ .../method_operationlistbytags.go | 15 ++++++++++++++- .../apioperationtag/method_taglistbyoperation.go | 15 ++++++++++++++- .../2022-08-01/apipolicy/method_createorupdate.go | 2 +- .../2022-08-01/apipolicy/method_delete.go | 2 +- .../2022-08-01/apipolicy/method_get.go | 2 +- .../2022-08-01/apipolicy/method_listbyapi.go | 13 +++++++++++++ .../2022-08-01/apiproduct/method_listbyapis.go | 15 ++++++++++++++- .../apirelease/method_createorupdate.go | 2 +- .../2022-08-01/apirelease/method_delete.go | 2 +- .../2022-08-01/apirelease/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/apirelease/method_update.go | 2 +- .../apirevision/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/apisbytag/method_apilistbytags.go | 15 ++++++++++++++- .../2022-08-01/apischema/method_createorupdate.go | 2 +- .../2022-08-01/apischema/method_delete.go | 2 +- .../2022-08-01/apischema/method_listbyapi.go | 15 ++++++++++++++- .../2022-08-01/apitag/method_taglistbyapi.go | 15 ++++++++++++++- .../apitagdescription/method_createorupdate.go | 2 +- .../2022-08-01/apitagdescription/method_delete.go | 2 +- .../apitagdescription/method_listbyservice.go | 15 ++++++++++++++- .../apiversionset/method_createorupdate.go | 2 +- .../apiversionset/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/apiversionset/method_update.go | 2 +- .../apiversionsets/method_apiversionsetdelete.go | 2 +- .../2022-08-01/apiwiki/method_createorupdate.go | 2 +- .../2022-08-01/apiwiki/method_delete.go | 2 +- .../2022-08-01/apiwiki/method_list.go | 15 ++++++++++++++- .../2022-08-01/apiwiki/method_update.go | 2 +- .../authorization/method_createorupdate.go | 2 +- .../2022-08-01/authorization/method_delete.go | 2 +- .../method_createorupdate.go | 2 +- .../authorizationaccesspolicy/method_delete.go | 2 +- .../method_listbyauthorization.go | 15 ++++++++++++++- .../method_createorupdate.go | 2 +- .../authorizationprovider/method_delete.go | 2 +- .../authorizationprovider/method_listbyservice.go | 15 ++++++++++++++- ...od_authorizationlistbyauthorizationprovider.go | 15 ++++++++++++++- .../authorizationserver/method_createorupdate.go | 2 +- .../authorizationserver/method_delete.go | 2 +- .../authorizationserver/method_listbyservice.go | 15 ++++++++++++++- .../authorizationserver/method_update.go | 2 +- .../2022-08-01/backend/method_createorupdate.go | 2 +- .../2022-08-01/backend/method_delete.go | 2 +- .../2022-08-01/backend/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/backend/method_update.go | 2 +- .../2022-08-01/cache/method_createorupdate.go | 2 +- .../2022-08-01/cache/method_delete.go | 2 +- .../2022-08-01/cache/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/cache/method_update.go | 2 +- .../certificate/method_createorupdate.go | 2 +- .../2022-08-01/certificate/method_delete.go | 2 +- .../certificate/method_listbyservice.go | 15 ++++++++++++++- .../contenttype/method_createorupdate.go | 2 +- .../2022-08-01/contenttype/method_delete.go | 2 +- .../contenttype/method_listbyservice.go | 13 +++++++++++++ .../method_contentitemcreateorupdate.go | 2 +- .../method_contentitemdelete.go | 2 +- .../method_contentitemlistbyservice.go | 13 +++++++++++++ .../delegationsettings/method_createorupdate.go | 2 +- .../delegationsettings/method_update.go | 2 +- .../deletedservice/method_listbysubscription.go | 13 +++++++++++++ .../diagnostic/method_createorupdate.go | 2 +- .../2022-08-01/diagnostic/method_delete.go | 2 +- .../2022-08-01/diagnostic/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/diagnostic/method_update.go | 2 +- .../method_createorupdate.go | 2 +- .../documentationresource/method_delete.go | 2 +- .../documentationresource/method_listbyservice.go | 15 ++++++++++++++- .../documentationresource/method_update.go | 2 +- .../emailtemplate/method_listbyservice.go | 15 ++++++++++++++- .../method_emailtemplatecreateorupdate.go | 2 +- .../emailtemplates/method_emailtemplatedelete.go | 2 +- .../emailtemplates/method_emailtemplateupdate.go | 2 +- .../2022-08-01/gateway/method_createorupdate.go | 2 +- .../2022-08-01/gateway/method_delete.go | 2 +- .../2022-08-01/gateway/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/gateway/method_update.go | 2 +- .../2022-08-01/gatewayapi/method_listbyservice.go | 15 ++++++++++++++- .../method_createorupdate.go | 2 +- .../gatewaycertificateauthority/method_delete.go | 2 +- .../method_listbyservice.go | 15 ++++++++++++++- .../method_createorupdate.go | 2 +- .../gatewayhostnameconfiguration/method_delete.go | 2 +- .../method_listbyservice.go | 15 ++++++++++++++- .../graphqlapiresolver/method_createorupdate.go | 2 +- .../graphqlapiresolver/method_delete.go | 2 +- .../graphqlapiresolver/method_listbyapi.go | 15 ++++++++++++++- .../graphqlapiresolver/method_update.go | 2 +- .../method_createorupdate.go | 2 +- .../graphqlapiresolverpolicy/method_delete.go | 2 +- .../graphqlapiresolverpolicy/method_get.go | 2 +- .../method_listbyresolver.go | 13 +++++++++++++ .../2022-08-01/group/method_createorupdate.go | 2 +- .../2022-08-01/group/method_delete.go | 2 +- .../2022-08-01/group/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/group/method_update.go | 2 +- .../2022-08-01/groupuser/method_list.go | 15 ++++++++++++++- .../identityprovider/method_createorupdate.go | 2 +- .../2022-08-01/identityprovider/method_delete.go | 2 +- .../identityprovider/method_listbyservice.go | 13 +++++++++++++ .../2022-08-01/identityprovider/method_update.go | 2 +- .../2022-08-01/issue/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/logger/method_createorupdate.go | 2 +- .../2022-08-01/logger/method_delete.go | 2 +- .../2022-08-01/logger/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/logger/method_update.go | 2 +- .../namedvalue/method_createorupdate.go | 2 +- .../2022-08-01/namedvalue/method_delete.go | 2 +- .../2022-08-01/namedvalue/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/namedvalue/method_update.go | 2 +- .../notification/method_createorupdate.go | 2 +- .../notification/method_listbyservice.go | 15 ++++++++++++++- .../method_listbynotification.go | 13 +++++++++++++ .../method_listbynotification.go | 13 +++++++++++++ .../method_createorupdate.go | 2 +- .../openidconnectprovider/method_delete.go | 2 +- .../openidconnectprovider/method_listbyservice.go | 15 ++++++++++++++- .../openidconnectprovider/method_update.go | 2 +- .../method_listbyservice.go | 13 +++++++++++++ .../2022-08-01/policy/method_createorupdate.go | 2 +- .../2022-08-01/policy/method_delete.go | 2 +- .../apimanagement/2022-08-01/policy/method_get.go | 2 +- .../2022-08-01/policy/method_listbyservice.go | 13 +++++++++++++ .../policydescription/method_listbyservice.go | 2 +- .../policyfragment/method_createorupdate.go | 2 +- .../2022-08-01/policyfragment/method_delete.go | 2 +- .../2022-08-01/policyfragment/method_get.go | 2 +- .../policyfragment/method_listbyservice.go | 15 ++++++++++++++- .../policyfragment/method_listreferences.go | 15 ++++++++++++++- .../portalconfig/method_createorupdate.go | 2 +- .../portalconfig/method_listbyservice.go | 13 +++++++++++++ .../2022-08-01/portalconfig/method_update.go | 2 +- .../portalrevision/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/portalrevision/method_update.go | 2 +- .../2022-08-01/product/method_createorupdate.go | 2 +- .../2022-08-01/product/method_delete.go | 2 +- .../2022-08-01/product/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/product/method_update.go | 2 +- .../2022-08-01/productapi/method_listbyproduct.go | 15 ++++++++++++++- .../productgroup/method_listbyproduct.go | 15 ++++++++++++++- .../productpolicy/method_createorupdate.go | 2 +- .../2022-08-01/productpolicy/method_delete.go | 2 +- .../2022-08-01/productpolicy/method_get.go | 2 +- .../productpolicy/method_listbyproduct.go | 13 +++++++++++++ .../productsbytag/method_productlistbytags.go | 15 ++++++++++++++- .../2022-08-01/productsubscription/method_list.go | 15 ++++++++++++++- .../producttag/method_taglistbyproduct.go | 15 ++++++++++++++- .../productwiki/method_createorupdate.go | 2 +- .../2022-08-01/productwiki/method_delete.go | 2 +- .../2022-08-01/productwiki/method_list.go | 15 ++++++++++++++- .../2022-08-01/productwiki/method_update.go | 2 +- .../quotabycounterkeys/method_listbyservice.go | 13 +++++++++++++ .../2022-08-01/region/method_listbyservice.go | 13 +++++++++++++ .../2022-08-01/reports/method_listbyapi.go | 15 ++++++++++++++- .../2022-08-01/reports/method_listbygeo.go | 15 ++++++++++++++- .../2022-08-01/reports/method_listbyoperation.go | 15 ++++++++++++++- .../2022-08-01/reports/method_listbyproduct.go | 15 ++++++++++++++- .../2022-08-01/reports/method_listbyrequest.go | 2 +- .../reports/method_listbysubscription.go | 15 ++++++++++++++- .../2022-08-01/reports/method_listbytime.go | 15 ++++++++++++++- .../2022-08-01/reports/method_listbyuser.go | 15 ++++++++++++++- .../schema/method_globalschemacreateorupdate.go | 2 +- .../schema/method_globalschemadelete.go | 2 +- .../schema/method_globalschemalistbyservice.go | 15 ++++++++++++++- .../signinsettings/method_createorupdate.go | 2 +- .../2022-08-01/signinsettings/method_update.go | 2 +- .../signupsettings/method_createorupdate.go | 2 +- .../2022-08-01/signupsettings/method_update.go | 2 +- .../skus/method_apimanagementskuslist.go | 13 +++++++++++++ .../subscription/method_createorupdate.go | 2 +- .../2022-08-01/subscription/method_delete.go | 2 +- .../2022-08-01/subscription/method_list.go | 15 ++++++++++++++- .../2022-08-01/subscription/method_update.go | 2 +- .../2022-08-01/tag/method_createorupdate.go | 2 +- .../apimanagement/2022-08-01/tag/method_delete.go | 2 +- .../2022-08-01/tag/method_listbyservice.go | 15 ++++++++++++++- .../apimanagement/2022-08-01/tag/method_update.go | 2 +- .../tagresource/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/tenantaccess/method_create.go | 2 +- .../tenantaccess/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/tenantaccess/method_update.go | 2 +- .../tenantsettings/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/user/method_createorupdate.go | 2 +- .../2022-08-01/user/method_delete.go | 2 +- .../2022-08-01/user/method_listbyservice.go | 15 ++++++++++++++- .../2022-08-01/user/method_update.go | 2 +- .../method_userconfirmationpasswordsend.go | 2 +- .../2022-08-01/usergroup/method_list.go | 15 ++++++++++++++- .../useridentity/method_useridentitieslist.go | 13 +++++++++++++ .../2022-08-01/usersubscription/method_list.go | 15 ++++++++++++++- .../api/method_createorupdate.go | 2 +- .../2023-03-01-preview/api/method_delete.go | 2 +- .../api/method_listbyservice.go | 15 ++++++++++++++- .../2023-03-01-preview/api/method_update.go | 2 +- .../api/method_workspaceapicreateorupdate.go | 2 +- .../api/method_workspaceapidelete.go | 2 +- .../api/method_workspaceapilistbyservice.go | 15 ++++++++++++++- .../api/method_workspaceapiupdate.go | 2 +- .../apidiagnostic/method_createorupdate.go | 2 +- .../apidiagnostic/method_delete.go | 2 +- .../apidiagnostic/method_listbyservice.go | 15 ++++++++++++++- .../apidiagnostic/method_update.go | 2 +- .../apiissue/method_createorupdate.go | 2 +- .../2023-03-01-preview/apiissue/method_delete.go | 2 +- .../2023-03-01-preview/apiissue/method_get.go | 2 +- .../apiissue/method_listbyservice.go | 15 ++++++++++++++- .../2023-03-01-preview/apiissue/method_update.go | 2 +- .../apiissueattachment/method_createorupdate.go | 2 +- .../apiissueattachment/method_delete.go | 2 +- .../apiissueattachment/method_listbyservice.go | 15 ++++++++++++++- .../apiissuecomment/method_createorupdate.go | 2 +- .../apiissuecomment/method_delete.go | 2 +- .../apiissuecomment/method_listbyservice.go | 15 ++++++++++++++- .../apimanagementservice/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listavailableserviceskus.go | 13 +++++++++++++ .../apioperation/method_createorupdate.go | 2 +- .../apioperation/method_delete.go | 2 +- .../apioperation/method_listbyapi.go | 15 ++++++++++++++- .../apioperation/method_update.go | 2 +- .../method_workspaceapioperationcreateorupdate.go | 2 +- .../method_workspaceapioperationdelete.go | 2 +- .../method_workspaceapioperationlistbyapi.go | 15 ++++++++++++++- .../method_workspaceapioperationupdate.go | 2 +- .../apioperationpolicy/method_createorupdate.go | 2 +- .../apioperationpolicy/method_delete.go | 2 +- .../apioperationpolicy/method_get.go | 2 +- .../apioperationpolicy/method_listbyoperation.go | 13 +++++++++++++ ...d_workspaceapioperationpolicycreateorupdate.go | 2 +- .../method_workspaceapioperationpolicydelete.go | 2 +- .../method_workspaceapioperationpolicyget.go | 2 +- ..._workspaceapioperationpolicylistbyoperation.go | 13 +++++++++++++ .../method_operationlistbytags.go | 15 ++++++++++++++- .../apioperationtag/method_taglistbyoperation.go | 15 ++++++++++++++- .../apipolicy/method_createorupdate.go | 2 +- .../2023-03-01-preview/apipolicy/method_delete.go | 2 +- .../2023-03-01-preview/apipolicy/method_get.go | 2 +- .../apipolicy/method_listbyapi.go | 13 +++++++++++++ .../method_workspaceapipolicycreateorupdate.go | 2 +- .../apipolicy/method_workspaceapipolicydelete.go | 2 +- .../apipolicy/method_workspaceapipolicyget.go | 2 +- .../method_workspaceapipolicylistbyapi.go | 13 +++++++++++++ .../apiproduct/method_listbyapis.go | 15 ++++++++++++++- .../apirelease/method_createorupdate.go | 2 +- .../apirelease/method_delete.go | 2 +- .../apirelease/method_listbyservice.go | 15 ++++++++++++++- .../apirelease/method_update.go | 2 +- .../method_workspaceapireleasecreateorupdate.go | 2 +- .../method_workspaceapireleasedelete.go | 2 +- .../method_workspaceapireleaselistbyservice.go | 15 ++++++++++++++- .../method_workspaceapireleaseupdate.go | 2 +- .../apirevision/method_listbyservice.go | 15 ++++++++++++++- .../method_workspaceapirevisionlistbyservice.go | 15 ++++++++++++++- .../apisbytag/method_apilistbytags.go | 15 ++++++++++++++- .../apischema/method_createorupdate.go | 2 +- .../2023-03-01-preview/apischema/method_delete.go | 2 +- .../apischema/method_listbyapi.go | 15 ++++++++++++++- .../method_workspaceapischemacreateorupdate.go | 2 +- .../apischema/method_workspaceapischemadelete.go | 2 +- .../method_workspaceapischemalistbyapi.go | 15 ++++++++++++++- .../apitag/method_taglistbyapi.go | 15 ++++++++++++++- .../apitagdescription/method_createorupdate.go | 2 +- .../apitagdescription/method_delete.go | 2 +- .../apitagdescription/method_listbyservice.go | 15 ++++++++++++++- .../apiversionset/method_createorupdate.go | 2 +- .../apiversionset/method_listbyservice.go | 15 ++++++++++++++- .../apiversionset/method_update.go | 2 +- ...method_workspaceapiversionsetcreateorupdate.go | 2 +- .../method_workspaceapiversionsetlistbyservice.go | 15 ++++++++++++++- .../method_workspaceapiversionsetupdate.go | 2 +- .../apiversionsets/method_apiversionsetdelete.go | 2 +- .../method_workspaceapiversionsetdelete.go | 2 +- .../apiwiki/method_createorupdate.go | 2 +- .../2023-03-01-preview/apiwiki/method_delete.go | 2 +- .../2023-03-01-preview/apiwiki/method_list.go | 15 ++++++++++++++- .../2023-03-01-preview/apiwiki/method_update.go | 2 +- .../authorization/method_createorupdate.go | 2 +- .../authorization/method_delete.go | 2 +- .../method_createorupdate.go | 2 +- .../authorizationaccesspolicy/method_delete.go | 2 +- .../method_listbyauthorization.go | 15 ++++++++++++++- .../method_createorupdate.go | 2 +- .../authorizationprovider/method_delete.go | 2 +- .../authorizationprovider/method_listbyservice.go | 15 ++++++++++++++- ...od_authorizationlistbyauthorizationprovider.go | 15 ++++++++++++++- .../authorizationserver/method_createorupdate.go | 2 +- .../authorizationserver/method_delete.go | 2 +- .../authorizationserver/method_listbyservice.go | 15 ++++++++++++++- .../authorizationserver/method_update.go | 2 +- .../backend/method_createorupdate.go | 2 +- .../2023-03-01-preview/backend/method_delete.go | 2 +- .../backend/method_listbyservice.go | 15 ++++++++++++++- .../2023-03-01-preview/backend/method_update.go | 2 +- .../cache/method_createorupdate.go | 2 +- .../2023-03-01-preview/cache/method_delete.go | 2 +- .../cache/method_listbyservice.go | 15 ++++++++++++++- .../2023-03-01-preview/cache/method_update.go | 2 +- .../certificate/method_createorupdate.go | 2 +- .../certificate/method_delete.go | 2 +- .../certificate/method_listbyservice.go | 15 ++++++++++++++- .../contenttype/method_createorupdate.go | 2 +- .../contenttype/method_delete.go | 2 +- .../contenttype/method_listbyservice.go | 13 +++++++++++++ .../method_contentitemcreateorupdate.go | 2 +- .../method_contentitemdelete.go | 2 +- .../method_contentitemlistbyservice.go | 13 +++++++++++++ .../delegationsettings/method_createorupdate.go | 2 +- .../delegationsettings/method_update.go | 2 +- .../deletedservice/method_listbysubscription.go | 13 +++++++++++++ .../diagnostic/method_createorupdate.go | 2 +- .../diagnostic/method_delete.go | 2 +- .../diagnostic/method_listbyservice.go | 15 ++++++++++++++- .../diagnostic/method_update.go | 2 +- .../method_createorupdate.go | 2 +- .../documentationresource/method_delete.go | 2 +- .../documentationresource/method_listbyservice.go | 15 ++++++++++++++- .../documentationresource/method_update.go | 2 +- .../emailtemplate/method_listbyservice.go | 15 ++++++++++++++- .../method_emailtemplatecreateorupdate.go | 2 +- .../emailtemplates/method_emailtemplatedelete.go | 2 +- .../emailtemplates/method_emailtemplateupdate.go | 2 +- .../gateway/method_createorupdate.go | 2 +- .../2023-03-01-preview/gateway/method_delete.go | 2 +- .../gateway/method_listbyservice.go | 15 ++++++++++++++- .../2023-03-01-preview/gateway/method_update.go | 2 +- .../gatewayapi/method_listbyservice.go | 15 ++++++++++++++- .../method_createorupdate.go | 2 +- .../gatewaycertificateauthority/method_delete.go | 2 +- .../method_listbyservice.go | 15 ++++++++++++++- .../method_createorupdate.go | 2 +- .../gatewayhostnameconfiguration/method_delete.go | 2 +- .../method_listbyservice.go | 15 ++++++++++++++- .../graphqlapiresolver/method_createorupdate.go | 2 +- .../graphqlapiresolver/method_delete.go | 2 +- .../graphqlapiresolver/method_listbyapi.go | 15 ++++++++++++++- .../graphqlapiresolver/method_update.go | 2 +- .../method_createorupdate.go | 2 +- .../graphqlapiresolverpolicy/method_delete.go | 2 +- .../graphqlapiresolverpolicy/method_get.go | 2 +- .../method_listbyresolver.go | 13 +++++++++++++ .../group/method_createorupdate.go | 2 +- .../2023-03-01-preview/group/method_delete.go | 2 +- .../group/method_listbyservice.go | 15 ++++++++++++++- .../2023-03-01-preview/group/method_update.go | 2 +- .../group/method_workspacegroupcreateorupdate.go | 2 +- .../group/method_workspacegroupdelete.go | 2 +- .../group/method_workspacegrouplistbyservice.go | 15 ++++++++++++++- .../group/method_workspacegroupupdate.go | 2 +- .../2023-03-01-preview/groupuser/method_list.go | 15 ++++++++++++++- .../groupuser/method_workspacegroupuserlist.go | 15 ++++++++++++++- .../identityprovider/method_createorupdate.go | 2 +- .../identityprovider/method_delete.go | 2 +- .../identityprovider/method_listbyservice.go | 13 +++++++++++++ .../identityprovider/method_update.go | 2 +- .../issue/method_listbyservice.go | 15 ++++++++++++++- .../logger/method_createorupdate.go | 2 +- .../2023-03-01-preview/logger/method_delete.go | 2 +- .../logger/method_listbyservice.go | 15 ++++++++++++++- .../2023-03-01-preview/logger/method_update.go | 2 +- .../namedvalue/method_createorupdate.go | 2 +- .../namedvalue/method_delete.go | 2 +- .../namedvalue/method_listbyservice.go | 15 ++++++++++++++- .../namedvalue/method_update.go | 2 +- .../method_workspacenamedvaluecreateorupdate.go | 2 +- .../method_workspacenamedvaluedelete.go | 2 +- .../method_workspacenamedvaluelistbyservice.go | 15 ++++++++++++++- .../method_workspacenamedvalueupdate.go | 2 +- .../notification/method_createorupdate.go | 2 +- .../notification/method_listbyservice.go | 15 ++++++++++++++- .../method_workspacenotificationcreateorupdate.go | 2 +- .../method_workspacenotificationlistbyservice.go | 15 ++++++++++++++- .../method_listbynotification.go | 13 +++++++++++++ ...otificationrecipientemaillistbynotification.go | 13 +++++++++++++ .../method_listbynotification.go | 13 +++++++++++++ ...notificationrecipientuserlistbynotification.go | 13 +++++++++++++ .../method_createorupdate.go | 2 +- .../openidconnectprovider/method_delete.go | 2 +- .../openidconnectprovider/method_listbyservice.go | 15 ++++++++++++++- .../openidconnectprovider/method_update.go | 2 +- .../method_listbyservice.go | 13 +++++++++++++ .../policy/method_createorupdate.go | 2 +- .../2023-03-01-preview/policy/method_delete.go | 2 +- .../2023-03-01-preview/policy/method_get.go | 2 +- .../policy/method_listbyservice.go | 13 +++++++++++++ .../policydescription/method_listbyservice.go | 2 +- .../policyfragment/method_createorupdate.go | 2 +- .../policyfragment/method_delete.go | 2 +- .../policyfragment/method_get.go | 2 +- .../policyfragment/method_listbyservice.go | 15 ++++++++++++++- .../policyfragment/method_listreferences.go | 15 ++++++++++++++- ...ethod_workspacepolicyfragmentcreateorupdate.go | 2 +- .../method_workspacepolicyfragmentdelete.go | 2 +- .../method_workspacepolicyfragmentget.go | 2 +- ...method_workspacepolicyfragmentlistbyservice.go | 15 ++++++++++++++- ...ethod_workspacepolicyfragmentlistreferences.go | 15 ++++++++++++++- .../portalconfig/method_createorupdate.go | 2 +- .../portalconfig/method_listbyservice.go | 13 +++++++++++++ .../portalconfig/method_update.go | 2 +- .../portalrevision/method_listbyservice.go | 15 ++++++++++++++- .../portalrevision/method_update.go | 2 +- .../product/method_createorupdate.go | 2 +- .../2023-03-01-preview/product/method_delete.go | 2 +- .../product/method_listbyservice.go | 15 ++++++++++++++- .../2023-03-01-preview/product/method_update.go | 2 +- .../method_workspaceproductcreateorupdate.go | 2 +- .../product/method_workspaceproductdelete.go | 2 +- .../method_workspaceproductlistbyservice.go | 15 ++++++++++++++- .../product/method_workspaceproductupdate.go | 2 +- .../productapi/method_listbyproduct.go | 15 ++++++++++++++- .../productapilink/method_listbyproduct.go | 15 ++++++++++++++- ...method_workspaceproductapilinklistbyproduct.go | 15 ++++++++++++++- .../productgroup/method_listbyproduct.go | 15 ++++++++++++++- .../productgrouplink/method_listbyproduct.go | 15 ++++++++++++++- ...thod_workspaceproductgrouplinklistbyproduct.go | 15 ++++++++++++++- .../productpolicy/method_createorupdate.go | 2 +- .../productpolicy/method_delete.go | 2 +- .../productpolicy/method_get.go | 2 +- .../productpolicy/method_listbyproduct.go | 13 +++++++++++++ ...method_workspaceproductpolicycreateorupdate.go | 2 +- .../method_workspaceproductpolicydelete.go | 2 +- .../method_workspaceproductpolicyget.go | 2 +- .../method_workspaceproductpolicylistbyproduct.go | 13 +++++++++++++ .../productsbytag/method_productlistbytags.go | 15 ++++++++++++++- .../productsubscription/method_list.go | 15 ++++++++++++++- .../producttag/method_taglistbyproduct.go | 15 ++++++++++++++- .../productwiki/method_createorupdate.go | 2 +- .../productwiki/method_delete.go | 2 +- .../2023-03-01-preview/productwiki/method_list.go | 15 ++++++++++++++- .../productwiki/method_update.go | 2 +- .../quotabycounterkeys/method_listbyservice.go | 13 +++++++++++++ .../region/method_listbyservice.go | 13 +++++++++++++ .../reports/method_listbyapi.go | 15 ++++++++++++++- .../reports/method_listbygeo.go | 15 ++++++++++++++- .../reports/method_listbyoperation.go | 15 ++++++++++++++- .../reports/method_listbyproduct.go | 15 ++++++++++++++- .../reports/method_listbyrequest.go | 2 +- .../reports/method_listbysubscription.go | 15 ++++++++++++++- .../reports/method_listbytime.go | 15 ++++++++++++++- .../reports/method_listbyuser.go | 15 ++++++++++++++- .../schema/method_globalschemacreateorupdate.go | 2 +- .../schema/method_globalschemadelete.go | 2 +- .../schema/method_globalschemalistbyservice.go | 15 ++++++++++++++- .../method_workspaceglobalschemacreateorupdate.go | 2 +- .../schema/method_workspaceglobalschemadelete.go | 2 +- .../method_workspaceglobalschemalistbyservice.go | 15 ++++++++++++++- .../signinsettings/method_createorupdate.go | 2 +- .../signinsettings/method_update.go | 2 +- .../signupsettings/method_createorupdate.go | 2 +- .../signupsettings/method_update.go | 2 +- .../skus/method_apimanagementskuslist.go | 13 +++++++++++++ .../subscription/method_createorupdate.go | 2 +- .../subscription/method_delete.go | 2 +- .../subscription/method_list.go | 15 ++++++++++++++- .../subscription/method_update.go | 2 +- .../method_workspacesubscriptioncreateorupdate.go | 2 +- .../method_workspacesubscriptiondelete.go | 2 +- .../method_workspacesubscriptionlist.go | 15 ++++++++++++++- .../method_workspacesubscriptionupdate.go | 2 +- .../tag/method_createorupdate.go | 2 +- .../2023-03-01-preview/tag/method_delete.go | 2 +- .../tag/method_listbyservice.go | 15 ++++++++++++++- .../2023-03-01-preview/tag/method_update.go | 2 +- .../tag/method_workspacetagcreateorupdate.go | 2 +- .../tag/method_workspacetagdelete.go | 2 +- .../tag/method_workspacetaglistbyservice.go | 15 ++++++++++++++- .../tag/method_workspacetagupdate.go | 2 +- .../tagapilink/method_listbyproduct.go | 15 ++++++++++++++- .../method_workspacetagapilinklistbyproduct.go | 15 ++++++++++++++- .../tagoperationlink/method_listbyproduct.go | 15 ++++++++++++++- ...thod_workspacetagoperationlinklistbyproduct.go | 15 ++++++++++++++- .../tagproductlink/method_listbyproduct.go | 15 ++++++++++++++- ...method_workspacetagproductlinklistbyproduct.go | 15 ++++++++++++++- .../tagresource/method_listbyservice.go | 15 ++++++++++++++- .../tenantaccess/method_create.go | 2 +- .../tenantaccess/method_listbyservice.go | 15 ++++++++++++++- .../tenantaccess/method_update.go | 2 +- .../tenantsettings/method_listbyservice.go | 15 ++++++++++++++- .../user/method_createorupdate.go | 2 +- .../2023-03-01-preview/user/method_delete.go | 2 +- .../user/method_listbyservice.go | 15 ++++++++++++++- .../2023-03-01-preview/user/method_update.go | 2 +- .../method_userconfirmationpasswordsend.go | 2 +- .../2023-03-01-preview/usergroup/method_list.go | 15 ++++++++++++++- .../useridentity/method_useridentitieslist.go | 13 +++++++++++++ .../usersubscription/method_list.go | 15 ++++++++++++++- .../workspace/method_createorupdate.go | 2 +- .../2023-03-01-preview/workspace/method_delete.go | 2 +- .../workspace/method_listbyservice.go | 15 ++++++++++++++- .../2023-03-01-preview/workspace/method_update.go | 2 +- .../workspacepolicy/method_createorupdate.go | 2 +- .../workspacepolicy/method_delete.go | 2 +- .../workspacepolicy/method_get.go | 2 +- .../workspacepolicy/method_listbyapi.go | 13 +++++++++++++ .../allpolicies/method_listbyservice.go | 13 +++++++++++++ .../api/method_createorupdate.go | 2 +- .../2023-05-01-preview/api/method_delete.go | 2 +- .../api/method_listbyservice.go | 15 ++++++++++++++- .../2023-05-01-preview/api/method_update.go | 2 +- .../api/method_workspaceapicreateorupdate.go | 2 +- .../api/method_workspaceapidelete.go | 2 +- .../api/method_workspaceapilistbyservice.go | 15 ++++++++++++++- .../api/method_workspaceapiupdate.go | 2 +- .../apidiagnostic/method_createorupdate.go | 2 +- .../apidiagnostic/method_delete.go | 2 +- .../apidiagnostic/method_listbyservice.go | 15 ++++++++++++++- .../apidiagnostic/method_update.go | 2 +- .../apiissue/method_createorupdate.go | 2 +- .../2023-05-01-preview/apiissue/method_delete.go | 2 +- .../2023-05-01-preview/apiissue/method_get.go | 2 +- .../apiissue/method_listbyservice.go | 15 ++++++++++++++- .../2023-05-01-preview/apiissue/method_update.go | 2 +- .../apiissueattachment/method_createorupdate.go | 2 +- .../apiissueattachment/method_delete.go | 2 +- .../apiissueattachment/method_listbyservice.go | 15 ++++++++++++++- .../apiissuecomment/method_createorupdate.go | 2 +- .../apiissuecomment/method_delete.go | 2 +- .../apiissuecomment/method_listbyservice.go | 15 ++++++++++++++- .../apimanagementservice/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listavailableserviceskus.go | 13 +++++++++++++ .../apioperation/method_createorupdate.go | 2 +- .../apioperation/method_delete.go | 2 +- .../apioperation/method_listbyapi.go | 15 ++++++++++++++- .../apioperation/method_update.go | 2 +- .../method_workspaceapioperationcreateorupdate.go | 2 +- .../method_workspaceapioperationdelete.go | 2 +- .../method_workspaceapioperationlistbyapi.go | 15 ++++++++++++++- .../method_workspaceapioperationupdate.go | 2 +- .../apioperationpolicy/method_createorupdate.go | 2 +- .../apioperationpolicy/method_delete.go | 2 +- .../apioperationpolicy/method_get.go | 2 +- .../apioperationpolicy/method_listbyoperation.go | 13 +++++++++++++ ...d_workspaceapioperationpolicycreateorupdate.go | 2 +- .../method_workspaceapioperationpolicydelete.go | 2 +- .../method_workspaceapioperationpolicyget.go | 2 +- ..._workspaceapioperationpolicylistbyoperation.go | 13 +++++++++++++ .../method_operationlistbytags.go | 15 ++++++++++++++- .../apioperationtag/method_taglistbyoperation.go | 15 ++++++++++++++- .../apipolicy/method_createorupdate.go | 2 +- .../2023-05-01-preview/apipolicy/method_delete.go | 2 +- .../2023-05-01-preview/apipolicy/method_get.go | 2 +- .../apipolicy/method_listbyapi.go | 13 +++++++++++++ .../method_workspaceapipolicycreateorupdate.go | 2 +- .../apipolicy/method_workspaceapipolicydelete.go | 2 +- .../apipolicy/method_workspaceapipolicyget.go | 2 +- .../method_workspaceapipolicylistbyapi.go | 13 +++++++++++++ .../apiproduct/method_listbyapis.go | 15 ++++++++++++++- .../apirelease/method_createorupdate.go | 2 +- .../apirelease/method_delete.go | 2 +- .../apirelease/method_listbyservice.go | 15 ++++++++++++++- .../apirelease/method_update.go | 2 +- .../method_workspaceapireleasecreateorupdate.go | 2 +- .../method_workspaceapireleasedelete.go | 2 +- .../method_workspaceapireleaselistbyservice.go | 15 ++++++++++++++- .../method_workspaceapireleaseupdate.go | 2 +- .../apirevision/method_listbyservice.go | 15 ++++++++++++++- .../method_workspaceapirevisionlistbyservice.go | 15 ++++++++++++++- .../apisbytag/method_apilistbytags.go | 15 ++++++++++++++- .../apischema/method_createorupdate.go | 2 +- .../2023-05-01-preview/apischema/method_delete.go | 2 +- .../apischema/method_listbyapi.go | 15 ++++++++++++++- .../method_workspaceapischemacreateorupdate.go | 2 +- .../apischema/method_workspaceapischemadelete.go | 2 +- .../method_workspaceapischemalistbyapi.go | 15 ++++++++++++++- .../apitag/method_taglistbyapi.go | 15 ++++++++++++++- .../apitagdescription/method_createorupdate.go | 2 +- .../apitagdescription/method_delete.go | 2 +- .../apitagdescription/method_listbyservice.go | 15 ++++++++++++++- .../apiversionset/method_createorupdate.go | 2 +- .../apiversionset/method_listbyservice.go | 15 ++++++++++++++- .../apiversionset/method_update.go | 2 +- ...method_workspaceapiversionsetcreateorupdate.go | 2 +- .../method_workspaceapiversionsetlistbyservice.go | 15 ++++++++++++++- .../method_workspaceapiversionsetupdate.go | 2 +- .../apiversionsets/method_apiversionsetdelete.go | 2 +- .../method_workspaceapiversionsetdelete.go | 2 +- .../apiwiki/method_createorupdate.go | 2 +- .../2023-05-01-preview/apiwiki/method_delete.go | 2 +- .../2023-05-01-preview/apiwiki/method_list.go | 15 ++++++++++++++- .../2023-05-01-preview/apiwiki/method_update.go | 2 +- .../authorization/method_createorupdate.go | 2 +- .../authorization/method_delete.go | 2 +- .../method_createorupdate.go | 2 +- .../authorizationaccesspolicy/method_delete.go | 2 +- .../method_listbyauthorization.go | 15 ++++++++++++++- .../method_createorupdate.go | 2 +- .../authorizationprovider/method_delete.go | 2 +- .../authorizationprovider/method_listbyservice.go | 15 ++++++++++++++- ...od_authorizationlistbyauthorizationprovider.go | 15 ++++++++++++++- .../authorizationserver/method_createorupdate.go | 2 +- .../authorizationserver/method_delete.go | 2 +- .../authorizationserver/method_listbyservice.go | 15 ++++++++++++++- .../authorizationserver/method_update.go | 2 +- .../backend/method_createorupdate.go | 2 +- .../2023-05-01-preview/backend/method_delete.go | 2 +- .../backend/method_listbyservice.go | 15 ++++++++++++++- .../2023-05-01-preview/backend/method_update.go | 2 +- .../cache/method_createorupdate.go | 2 +- .../2023-05-01-preview/cache/method_delete.go | 2 +- .../cache/method_listbyservice.go | 15 ++++++++++++++- .../2023-05-01-preview/cache/method_update.go | 2 +- .../certificate/method_createorupdate.go | 2 +- .../certificate/method_delete.go | 2 +- .../certificate/method_listbyservice.go | 15 ++++++++++++++- .../contenttype/method_createorupdate.go | 2 +- .../contenttype/method_delete.go | 2 +- .../contenttype/method_listbyservice.go | 13 +++++++++++++ .../method_contentitemcreateorupdate.go | 2 +- .../method_contentitemdelete.go | 2 +- .../method_contentitemlistbyservice.go | 13 +++++++++++++ .../delegationsettings/method_createorupdate.go | 2 +- .../delegationsettings/method_update.go | 2 +- .../deletedservice/method_listbysubscription.go | 13 +++++++++++++ .../diagnostic/method_createorupdate.go | 2 +- .../diagnostic/method_delete.go | 2 +- .../diagnostic/method_listbyservice.go | 15 ++++++++++++++- .../diagnostic/method_update.go | 2 +- .../method_createorupdate.go | 2 +- .../documentationresource/method_delete.go | 2 +- .../documentationresource/method_listbyservice.go | 15 ++++++++++++++- .../documentationresource/method_update.go | 2 +- .../emailtemplate/method_listbyservice.go | 15 ++++++++++++++- .../method_emailtemplatecreateorupdate.go | 2 +- .../emailtemplates/method_emailtemplatedelete.go | 2 +- .../emailtemplates/method_emailtemplateupdate.go | 2 +- .../gateway/method_createorupdate.go | 2 +- .../2023-05-01-preview/gateway/method_delete.go | 2 +- .../gateway/method_listbyservice.go | 15 ++++++++++++++- .../2023-05-01-preview/gateway/method_update.go | 2 +- .../gatewayapi/method_listbyservice.go | 15 ++++++++++++++- .../method_createorupdate.go | 2 +- .../gatewaycertificateauthority/method_delete.go | 2 +- .../method_listbyservice.go | 15 ++++++++++++++- .../method_createorupdate.go | 2 +- .../gatewayhostnameconfiguration/method_delete.go | 2 +- .../method_listbyservice.go | 15 ++++++++++++++- .../graphqlapiresolver/method_createorupdate.go | 2 +- .../graphqlapiresolver/method_delete.go | 2 +- .../graphqlapiresolver/method_listbyapi.go | 15 ++++++++++++++- .../graphqlapiresolver/method_update.go | 2 +- .../method_createorupdate.go | 2 +- .../graphqlapiresolverpolicy/method_delete.go | 2 +- .../graphqlapiresolverpolicy/method_get.go | 2 +- .../method_listbyresolver.go | 13 +++++++++++++ .../group/method_createorupdate.go | 2 +- .../2023-05-01-preview/group/method_delete.go | 2 +- .../group/method_listbyservice.go | 15 ++++++++++++++- .../2023-05-01-preview/group/method_update.go | 2 +- .../group/method_workspacegroupcreateorupdate.go | 2 +- .../group/method_workspacegroupdelete.go | 2 +- .../group/method_workspacegrouplistbyservice.go | 15 ++++++++++++++- .../group/method_workspacegroupupdate.go | 2 +- .../2023-05-01-preview/groupuser/method_list.go | 15 ++++++++++++++- .../groupuser/method_workspacegroupuserlist.go | 15 ++++++++++++++- .../identityprovider/method_createorupdate.go | 2 +- .../identityprovider/method_delete.go | 2 +- .../identityprovider/method_listbyservice.go | 13 +++++++++++++ .../identityprovider/method_update.go | 2 +- .../issue/method_listbyservice.go | 15 ++++++++++++++- .../logger/method_createorupdate.go | 2 +- .../2023-05-01-preview/logger/method_delete.go | 2 +- .../logger/method_listbyservice.go | 15 ++++++++++++++- .../2023-05-01-preview/logger/method_update.go | 2 +- .../namedvalue/method_createorupdate.go | 2 +- .../namedvalue/method_delete.go | 2 +- .../namedvalue/method_listbyservice.go | 15 ++++++++++++++- .../namedvalue/method_update.go | 2 +- .../method_workspacenamedvaluecreateorupdate.go | 2 +- .../method_workspacenamedvaluedelete.go | 2 +- .../method_workspacenamedvaluelistbyservice.go | 15 ++++++++++++++- .../method_workspacenamedvalueupdate.go | 2 +- .../notification/method_createorupdate.go | 2 +- .../notification/method_listbyservice.go | 15 ++++++++++++++- .../method_workspacenotificationcreateorupdate.go | 2 +- .../method_workspacenotificationlistbyservice.go | 15 ++++++++++++++- .../method_listbynotification.go | 13 +++++++++++++ ...otificationrecipientemaillistbynotification.go | 13 +++++++++++++ .../method_listbynotification.go | 13 +++++++++++++ ...notificationrecipientuserlistbynotification.go | 13 +++++++++++++ .../method_createorupdate.go | 2 +- .../openidconnectprovider/method_delete.go | 2 +- .../openidconnectprovider/method_listbyservice.go | 15 ++++++++++++++- .../openidconnectprovider/method_update.go | 2 +- .../method_listbyservice.go | 13 +++++++++++++ .../policy/method_createorupdate.go | 2 +- .../2023-05-01-preview/policy/method_delete.go | 2 +- .../2023-05-01-preview/policy/method_get.go | 2 +- .../policy/method_listbyservice.go | 13 +++++++++++++ .../policydescription/method_listbyservice.go | 2 +- .../policyfragment/method_createorupdate.go | 2 +- .../policyfragment/method_delete.go | 2 +- .../policyfragment/method_get.go | 2 +- .../policyfragment/method_listbyservice.go | 15 ++++++++++++++- .../policyfragment/method_listreferences.go | 15 ++++++++++++++- ...ethod_workspacepolicyfragmentcreateorupdate.go | 2 +- .../method_workspacepolicyfragmentdelete.go | 2 +- .../method_workspacepolicyfragmentget.go | 2 +- ...method_workspacepolicyfragmentlistbyservice.go | 15 ++++++++++++++- ...ethod_workspacepolicyfragmentlistreferences.go | 15 ++++++++++++++- .../policyrestriction/method_createorupdate.go | 2 +- .../policyrestriction/method_delete.go | 2 +- .../policyrestriction/method_update.go | 2 +- .../method_policyrestrictionlistbyservice.go | 13 +++++++++++++ .../portalconfig/method_createorupdate.go | 2 +- .../portalconfig/method_listbyservice.go | 13 +++++++++++++ .../portalconfig/method_update.go | 2 +- .../portalrevision/method_listbyservice.go | 15 ++++++++++++++- .../portalrevision/method_update.go | 2 +- .../product/method_createorupdate.go | 2 +- .../2023-05-01-preview/product/method_delete.go | 2 +- .../product/method_listbyservice.go | 15 ++++++++++++++- .../2023-05-01-preview/product/method_update.go | 2 +- .../method_workspaceproductcreateorupdate.go | 2 +- .../product/method_workspaceproductdelete.go | 2 +- .../method_workspaceproductlistbyservice.go | 15 ++++++++++++++- .../product/method_workspaceproductupdate.go | 2 +- .../productapi/method_listbyproduct.go | 15 ++++++++++++++- .../productapilink/method_listbyproduct.go | 15 ++++++++++++++- ...method_workspaceproductapilinklistbyproduct.go | 15 ++++++++++++++- .../productgroup/method_listbyproduct.go | 15 ++++++++++++++- .../productgrouplink/method_listbyproduct.go | 15 ++++++++++++++- ...thod_workspaceproductgrouplinklistbyproduct.go | 15 ++++++++++++++- .../productpolicy/method_createorupdate.go | 2 +- .../productpolicy/method_delete.go | 2 +- .../productpolicy/method_get.go | 2 +- .../productpolicy/method_listbyproduct.go | 13 +++++++++++++ ...method_workspaceproductpolicycreateorupdate.go | 2 +- .../method_workspaceproductpolicydelete.go | 2 +- .../method_workspaceproductpolicyget.go | 2 +- .../method_workspaceproductpolicylistbyproduct.go | 13 +++++++++++++ .../productsbytag/method_productlistbytags.go | 15 ++++++++++++++- .../productsubscription/method_list.go | 15 ++++++++++++++- .../producttag/method_taglistbyproduct.go | 15 ++++++++++++++- .../productwiki/method_createorupdate.go | 2 +- .../productwiki/method_delete.go | 2 +- .../2023-05-01-preview/productwiki/method_list.go | 15 ++++++++++++++- .../productwiki/method_update.go | 2 +- .../quotabycounterkeys/method_listbyservice.go | 13 +++++++++++++ .../region/method_listbyservice.go | 13 +++++++++++++ .../reports/method_listbyapi.go | 15 ++++++++++++++- .../reports/method_listbygeo.go | 15 ++++++++++++++- .../reports/method_listbyoperation.go | 15 ++++++++++++++- .../reports/method_listbyproduct.go | 15 ++++++++++++++- .../reports/method_listbyrequest.go | 2 +- .../reports/method_listbysubscription.go | 15 ++++++++++++++- .../reports/method_listbytime.go | 15 ++++++++++++++- .../reports/method_listbyuser.go | 15 ++++++++++++++- .../schema/method_globalschemacreateorupdate.go | 2 +- .../schema/method_globalschemadelete.go | 2 +- .../schema/method_globalschemalistbyservice.go | 15 ++++++++++++++- .../method_workspaceglobalschemacreateorupdate.go | 2 +- .../schema/method_workspaceglobalschemadelete.go | 2 +- .../method_workspaceglobalschemalistbyservice.go | 15 ++++++++++++++- .../signinsettings/method_createorupdate.go | 2 +- .../signinsettings/method_update.go | 2 +- .../signupsettings/method_createorupdate.go | 2 +- .../signupsettings/method_update.go | 2 +- .../skus/method_apimanagementskuslist.go | 13 +++++++++++++ .../subscription/method_createorupdate.go | 2 +- .../subscription/method_delete.go | 2 +- .../subscription/method_list.go | 15 ++++++++++++++- .../subscription/method_update.go | 2 +- .../method_workspacesubscriptioncreateorupdate.go | 2 +- .../method_workspacesubscriptiondelete.go | 2 +- .../method_workspacesubscriptionlist.go | 15 ++++++++++++++- .../method_workspacesubscriptionupdate.go | 2 +- .../tag/method_createorupdate.go | 2 +- .../2023-05-01-preview/tag/method_delete.go | 2 +- .../tag/method_listbyservice.go | 15 ++++++++++++++- .../2023-05-01-preview/tag/method_update.go | 2 +- .../tag/method_workspacetagcreateorupdate.go | 2 +- .../tag/method_workspacetagdelete.go | 2 +- .../tag/method_workspacetaglistbyservice.go | 15 ++++++++++++++- .../tag/method_workspacetagupdate.go | 2 +- .../tagapilink/method_listbyproduct.go | 15 ++++++++++++++- .../method_workspacetagapilinklistbyproduct.go | 15 ++++++++++++++- .../tagoperationlink/method_listbyproduct.go | 15 ++++++++++++++- ...thod_workspacetagoperationlinklistbyproduct.go | 15 ++++++++++++++- .../tagproductlink/method_listbyproduct.go | 15 ++++++++++++++- ...method_workspacetagproductlinklistbyproduct.go | 15 ++++++++++++++- .../tagresource/method_listbyservice.go | 15 ++++++++++++++- .../tenantaccess/method_create.go | 2 +- .../tenantaccess/method_listbyservice.go | 15 ++++++++++++++- .../tenantaccess/method_update.go | 2 +- .../tenantsettings/method_listbyservice.go | 15 ++++++++++++++- .../user/method_createorupdate.go | 2 +- .../2023-05-01-preview/user/method_delete.go | 2 +- .../user/method_listbyservice.go | 15 ++++++++++++++- .../2023-05-01-preview/user/method_update.go | 2 +- .../method_userconfirmationpasswordsend.go | 2 +- .../2023-05-01-preview/usergroup/method_list.go | 15 ++++++++++++++- .../useridentity/method_useridentitieslist.go | 13 +++++++++++++ .../usersubscription/method_list.go | 15 ++++++++++++++- .../workspace/method_createorupdate.go | 2 +- .../2023-05-01-preview/workspace/method_delete.go | 2 +- .../workspace/method_listbyservice.go | 15 ++++++++++++++- .../2023-05-01-preview/workspace/method_update.go | 2 +- .../workspacepolicy/method_createorupdate.go | 2 +- .../workspacepolicy/method_delete.go | 2 +- .../workspacepolicy/method_get.go | 2 +- .../workspacepolicy/method_listbyapi.go | 13 +++++++++++++ .../2023-03-01/configurationstores/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../configurationstores/method_listkeys.go | 13 +++++++++++++ .../method_configurationstoreslistdeleted.go | 13 +++++++++++++ .../method_listbyconfigurationstore.go | 13 +++++++++++++ .../method_listbyconfigurationstore.go | 13 +++++++++++++ .../replicas/method_listbyconfigurationstore.go | 13 +++++++++++++ .../method_analyticsitemsdelete.go | 2 +- .../method_analyticsitemsget.go | 2 +- .../method_analyticsitemslist.go | 2 +- .../method_analyticsitemsput.go | 2 +- .../method_annotationslist.go | 2 +- .../componentsapis/method_componentslist.go | 13 +++++++++++++ .../method_componentslistbyresourcegroup.go | 13 +++++++++++++ .../favoritesapis/method_favoriteslist.go | 2 +- .../method_myworkbookslistbyresourcegroup.go | 2 +- .../method_myworkbookslistbysubscription.go | 2 +- .../webtestsapis/method_webtestslist.go | 13 +++++++++++++ .../method_webtestslistbycomponent.go | 13 +++++++++++++ .../method_webtestslistbyresourcegroup.go | 13 +++++++++++++ .../method_workbookslistbyresourcegroup.go | 2 +- .../componentsapis/method_componentslist.go | 13 +++++++++++++ .../method_componentslistbyresourcegroup.go | 13 +++++++++++++ .../method_workbookscreateorupdate.go | 2 +- .../workbooksapis/method_workbooksget.go | 2 +- .../method_workbookslistbyresourcegroup.go | 15 ++++++++++++++- .../method_workbookslistbysubscription.go | 15 ++++++++++++++- .../method_workbooksrevisionslist.go | 13 +++++++++++++ .../workbooksapis/method_workbooksupdate.go | 2 +- .../webtestsapis/method_webtestslist.go | 13 +++++++++++++ .../method_webtestslistbycomponent.go | 13 +++++++++++++ .../method_webtestslistbyresourcegroup.go | 13 +++++++++++++ .../method_workbookscreateorupdate.go | 2 +- .../workbooksapis/method_workbooksget.go | 2 +- .../method_workbookslistbyresourcegroup.go | 15 ++++++++++++++- .../method_workbookslistbysubscription.go | 15 ++++++++++++++- .../method_workbooksrevisionslist.go | 13 +++++++++++++ .../workbooksapis/method_workbooksupdate.go | 2 +- .../method_apiportalcustomdomainslist.go | 13 +++++++++++++ .../appplatform/method_apiportalslist.go | 13 +++++++++++++ .../appplatform/method_apmslist.go | 13 +++++++++++++ .../method_applicationacceleratorslist.go | 13 +++++++++++++ .../method_applicationliveviewslist.go | 13 +++++++++++++ .../appplatform/method_appsget.go | 2 +- .../appplatform/method_appslist.go | 13 +++++++++++++ .../appplatform/method_bindingslist.go | 13 +++++++++++++ .../appplatform/method_buildpackbindinglist.go | 13 +++++++++++++ .../method_buildpackbindinglistforcluster.go | 13 +++++++++++++ .../method_buildserviceagentpoollist.go | 13 +++++++++++++ .../appplatform/method_buildservicebuilderlist.go | 13 +++++++++++++ .../method_buildservicelistbuildresults.go | 13 +++++++++++++ .../appplatform/method_buildservicelistbuilds.go | 13 +++++++++++++ .../method_buildservicelistbuildservices.go | 13 +++++++++++++ .../method_buildservicelistsupportedbuildpacks.go | 13 +++++++++++++ .../method_buildservicelistsupportedstacks.go | 13 +++++++++++++ .../appplatform/method_certificateslist.go | 13 +++++++++++++ .../method_configurationserviceslist.go | 13 +++++++++++++ .../appplatform/method_containerregistrieslist.go | 13 +++++++++++++ .../appplatform/method_customdomainslist.go | 13 +++++++++++++ .../method_customizedacceleratorslist.go | 13 +++++++++++++ .../appplatform/method_deploymentslist.go | 15 ++++++++++++++- .../method_deploymentslistforcluster.go | 15 ++++++++++++++- .../appplatform/method_devtoolportalslist.go | 13 +++++++++++++ .../appplatform/method_eurekaserverslist.go | 13 +++++++++++++ .../method_gatewaycustomdomainslist.go | 13 +++++++++++++ .../appplatform/method_gatewayrouteconfigslist.go | 13 +++++++++++++ .../appplatform/method_gatewayslist.go | 13 +++++++++++++ .../method_predefinedacceleratorslist.go | 13 +++++++++++++ .../appplatform/method_serviceregistrieslist.go | 13 +++++++++++++ .../appplatform/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbysubscription.go | 13 +++++++++++++ .../method_serviceslistsupportedapmtypes.go | 13 +++++++++++++ .../method_serviceslistsupportedserverversions.go | 13 +++++++++++++ .../appplatform/method_skuslist.go | 13 +++++++++++++ .../appplatform/method_storageslist.go | 13 +++++++++++++ .../method_apiportalcustomdomainslist.go | 13 +++++++++++++ .../appplatform/method_apiportalslist.go | 13 +++++++++++++ .../appplatform/method_apmslist.go | 13 +++++++++++++ .../method_applicationacceleratorslist.go | 13 +++++++++++++ .../method_applicationliveviewslist.go | 13 +++++++++++++ .../appplatform/method_appsget.go | 2 +- .../appplatform/method_appslist.go | 13 +++++++++++++ .../appplatform/method_bindingslist.go | 13 +++++++++++++ .../appplatform/method_buildpackbindinglist.go | 13 +++++++++++++ .../method_buildpackbindinglistforcluster.go | 13 +++++++++++++ .../method_buildserviceagentpoollist.go | 13 +++++++++++++ .../appplatform/method_buildservicebuilderlist.go | 13 +++++++++++++ .../method_buildservicelistbuildresults.go | 13 +++++++++++++ .../appplatform/method_buildservicelistbuilds.go | 13 +++++++++++++ .../method_buildservicelistbuildservices.go | 13 +++++++++++++ .../method_buildservicelistsupportedbuildpacks.go | 13 +++++++++++++ .../method_buildservicelistsupportedstacks.go | 13 +++++++++++++ .../appplatform/method_certificateslist.go | 13 +++++++++++++ .../method_configurationserviceslist.go | 13 +++++++++++++ .../appplatform/method_containerregistrieslist.go | 13 +++++++++++++ .../appplatform/method_customdomainslist.go | 13 +++++++++++++ .../method_customizedacceleratorslist.go | 13 +++++++++++++ .../appplatform/method_deploymentslist.go | 15 ++++++++++++++- .../method_deploymentslistforcluster.go | 15 ++++++++++++++- .../appplatform/method_devtoolportalslist.go | 13 +++++++++++++ .../appplatform/method_eurekaserverslist.go | 13 +++++++++++++ .../method_gatewaycustomdomainslist.go | 13 +++++++++++++ .../appplatform/method_gatewayrouteconfigslist.go | 13 +++++++++++++ .../appplatform/method_gatewayslist.go | 13 +++++++++++++ .../method_predefinedacceleratorslist.go | 13 +++++++++++++ .../appplatform/method_serviceregistrieslist.go | 13 +++++++++++++ .../appplatform/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbysubscription.go | 13 +++++++++++++ .../method_serviceslistsupportedapmtypes.go | 13 +++++++++++++ .../method_serviceslistsupportedserverversions.go | 13 +++++++++++++ .../appplatform/method_skuslist.go | 13 +++++++++++++ .../appplatform/method_storageslist.go | 13 +++++++++++++ .../method_apiportalcustomdomainslist.go | 13 +++++++++++++ .../appplatform/method_apiportalslist.go | 13 +++++++++++++ .../2023-12-01/appplatform/method_apmslist.go | 13 +++++++++++++ .../method_applicationacceleratorslist.go | 13 +++++++++++++ .../method_applicationliveviewslist.go | 13 +++++++++++++ .../2023-12-01/appplatform/method_appsget.go | 2 +- .../2023-12-01/appplatform/method_appslist.go | 13 +++++++++++++ .../2023-12-01/appplatform/method_bindingslist.go | 13 +++++++++++++ .../appplatform/method_buildpackbindinglist.go | 13 +++++++++++++ .../method_buildpackbindinglistforcluster.go | 13 +++++++++++++ .../method_buildserviceagentpoollist.go | 13 +++++++++++++ .../appplatform/method_buildservicebuilderlist.go | 13 +++++++++++++ .../method_buildservicelistbuildresults.go | 13 +++++++++++++ .../appplatform/method_buildservicelistbuilds.go | 13 +++++++++++++ .../method_buildservicelistbuildservices.go | 13 +++++++++++++ .../method_buildservicelistsupportedbuildpacks.go | 13 +++++++++++++ .../method_buildservicelistsupportedstacks.go | 13 +++++++++++++ .../appplatform/method_certificateslist.go | 13 +++++++++++++ .../method_configurationserviceslist.go | 13 +++++++++++++ .../appplatform/method_containerregistrieslist.go | 13 +++++++++++++ .../appplatform/method_customdomainslist.go | 13 +++++++++++++ .../method_customizedacceleratorslist.go | 13 +++++++++++++ .../appplatform/method_deploymentslist.go | 15 ++++++++++++++- .../method_deploymentslistforcluster.go | 15 ++++++++++++++- .../appplatform/method_devtoolportalslist.go | 13 +++++++++++++ .../method_gatewaycustomdomainslist.go | 13 +++++++++++++ .../appplatform/method_gatewayrouteconfigslist.go | 13 +++++++++++++ .../2023-12-01/appplatform/method_gatewayslist.go | 13 +++++++++++++ .../method_predefinedacceleratorslist.go | 13 +++++++++++++ .../appplatform/method_serviceregistrieslist.go | 13 +++++++++++++ .../2023-12-01/appplatform/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbysubscription.go | 13 +++++++++++++ .../method_serviceslistsupportedapmtypes.go | 13 +++++++++++++ .../method_serviceslistsupportedserverversions.go | 13 +++++++++++++ .../2023-12-01/appplatform/method_skuslist.go | 13 +++++++++++++ .../2023-12-01/appplatform/method_storageslist.go | 13 +++++++++++++ .../method_apiportalcustomdomainslist.go | 13 +++++++++++++ .../appplatform/method_apiportalslist.go | 13 +++++++++++++ .../appplatform/method_apmslist.go | 13 +++++++++++++ .../method_applicationacceleratorslist.go | 13 +++++++++++++ .../method_applicationliveviewslist.go | 13 +++++++++++++ .../appplatform/method_appsget.go | 2 +- .../appplatform/method_appslist.go | 13 +++++++++++++ .../appplatform/method_bindingslist.go | 13 +++++++++++++ .../appplatform/method_buildpackbindinglist.go | 13 +++++++++++++ .../method_buildpackbindinglistforcluster.go | 13 +++++++++++++ .../method_buildserviceagentpoollist.go | 13 +++++++++++++ .../appplatform/method_buildservicebuilderlist.go | 13 +++++++++++++ .../method_buildservicelistbuildresults.go | 13 +++++++++++++ .../appplatform/method_buildservicelistbuilds.go | 13 +++++++++++++ .../method_buildservicelistbuildservices.go | 13 +++++++++++++ .../method_buildservicelistsupportedbuildpacks.go | 13 +++++++++++++ .../method_buildservicelistsupportedstacks.go | 13 +++++++++++++ .../appplatform/method_certificateslist.go | 13 +++++++++++++ .../method_configurationserviceslist.go | 13 +++++++++++++ .../appplatform/method_containerregistrieslist.go | 13 +++++++++++++ .../appplatform/method_customdomainslist.go | 13 +++++++++++++ .../method_customizedacceleratorslist.go | 13 +++++++++++++ .../appplatform/method_deploymentslist.go | 15 ++++++++++++++- .../method_deploymentslistforcluster.go | 15 ++++++++++++++- .../appplatform/method_devtoolportalslist.go | 13 +++++++++++++ .../appplatform/method_eurekaserverslist.go | 13 +++++++++++++ .../method_gatewaycustomdomainslist.go | 13 +++++++++++++ .../appplatform/method_gatewayrouteconfigslist.go | 13 +++++++++++++ .../appplatform/method_gatewayslist.go | 13 +++++++++++++ .../method_predefinedacceleratorslist.go | 13 +++++++++++++ .../appplatform/method_serviceregistrieslist.go | 13 +++++++++++++ .../appplatform/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbysubscription.go | 13 +++++++++++++ .../method_serviceslistsupportedapmtypes.go | 13 +++++++++++++ .../method_serviceslistsupportedserverversions.go | 13 +++++++++++++ .../appplatform/method_skuslist.go | 13 +++++++++++++ .../appplatform/method_storageslist.go | 13 +++++++++++++ .../permissions/method_listforresource.go | 13 +++++++++++++ .../permissions/method_listforresourcegroup.go | 13 +++++++++++++ .../provideroperationsmetadata/method_get.go | 2 +- .../provideroperationsmetadata/method_list.go | 15 ++++++++++++++- .../roleassignments/method_list.go | 15 ++++++++++++++- .../roleassignments/method_listforresource.go | 15 ++++++++++++++- .../method_listforresourcegroup.go | 15 ++++++++++++++- .../roleassignments/method_listforscope.go | 15 ++++++++++++++- .../roledefinitions/method_list.go | 15 ++++++++++++++- .../roleassignments/method_delete.go | 2 +- .../roleassignments/method_deletebyid.go | 2 +- .../roleassignments/method_get.go | 2 +- .../roleassignments/method_getbyid.go | 2 +- .../roleassignments/method_list.go | 15 ++++++++++++++- .../roleassignments/method_listforresource.go | 15 ++++++++++++++- .../method_listforresourcegroup.go | 15 ++++++++++++++- .../roleassignments/method_listforscope.go | 15 ++++++++++++++- .../eligiblechildresources/method_get.go | 15 ++++++++++++++- .../method_listforscope.go | 15 ++++++++++++++- .../method_listforscope.go | 15 ++++++++++++++- .../method_listforscope.go | 15 ++++++++++++++- .../method_listforscope.go | 15 ++++++++++++++- .../method_listforscope.go | 15 ++++++++++++++- .../method_listforscope.go | 15 ++++++++++++++- .../rolemanagementpolicies/method_listforscope.go | 15 ++++++++++++++- .../method_listforscope.go | 13 +++++++++++++ .../2022-04-01/denyassignments/method_list.go | 15 ++++++++++++++- .../denyassignments/method_listforresource.go | 15 ++++++++++++++- .../method_listforresourcegroup.go | 15 ++++++++++++++- .../denyassignments/method_listforscope.go | 15 ++++++++++++++- .../permissions/method_listforresource.go | 13 +++++++++++++ .../permissions/method_listforresourcegroup.go | 13 +++++++++++++ .../provideroperationsmetadata/method_get.go | 2 +- .../provideroperationsmetadata/method_list.go | 15 ++++++++++++++- .../2022-04-01/roleassignments/method_delete.go | 2 +- .../roleassignments/method_deletebyid.go | 2 +- .../2022-04-01/roleassignments/method_get.go | 2 +- .../2022-04-01/roleassignments/method_getbyid.go | 2 +- .../roleassignments/method_listforresource.go | 15 ++++++++++++++- .../method_listforresourcegroup.go | 15 ++++++++++++++- .../roleassignments/method_listforscope.go | 15 ++++++++++++++- .../roleassignments/method_listforsubscription.go | 15 ++++++++++++++- .../2022-04-01/roledefinitions/method_list.go | 15 ++++++++++++++- .../permissions/method_listforresource.go | 13 +++++++++++++ .../permissions/method_listforresourcegroup.go | 13 +++++++++++++ .../roledefinitions/method_list.go | 15 ++++++++++++++- .../2015-10-31/activity/method_listbymodule.go | 13 +++++++++++++ .../2015-10-31/automationaccount/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../certificate/method_listbyautomationaccount.go | 13 +++++++++++++ .../connection/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 13 +++++++++++++ .../credential/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../dsccompilationjob/method_streamlistbyjob.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../dscnode/method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../job/method_listbyautomationaccount.go | 15 ++++++++++++++- .../jobschedule/method_listbyautomationaccount.go | 15 ++++++++++++++- .../2015-10-31/jobstream/method_listbyjob.go | 15 ++++++++++++++- .../module/method_listbyautomationaccount.go | 13 +++++++++++++ .../2015-10-31/nodereports/method_listbynode.go | 15 ++++++++++++++- .../runbook/method_listbyautomationaccount.go | 13 +++++++++++++ .../schedule/method_listbyautomationaccount.go | 13 +++++++++++++ .../statistics/method_listbyautomationaccount.go | 2 +- .../testjobstream/method_listbytestjob.go | 15 ++++++++++++++- .../variable/method_listbyautomationaccount.go | 13 +++++++++++++ .../watcher/method_listbyautomationaccount.go | 15 ++++++++++++++- .../webhook/method_listbyautomationaccount.go | 15 ++++++++++++++- .../2019-06-01/activity/method_listbymodule.go | 13 +++++++++++++ .../2019-06-01/automationaccount/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../certificate/method_listbyautomationaccount.go | 13 +++++++++++++ .../connection/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 13 +++++++++++++ .../credential/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../dsccompilationjob/method_streamlistbyjob.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../dscnode/method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../automation/2019-06-01/job/method_create.go | 2 +- .../automation/2019-06-01/job/method_get.go | 2 +- .../automation/2019-06-01/job/method_getoutput.go | 2 +- .../2019-06-01/job/method_getrunbookcontent.go | 2 +- .../job/method_listbyautomationaccount.go | 15 ++++++++++++++- .../automation/2019-06-01/job/method_resume.go | 2 +- .../automation/2019-06-01/job/method_stop.go | 2 +- .../automation/2019-06-01/job/method_suspend.go | 2 +- .../jobschedule/method_listbyautomationaccount.go | 15 ++++++++++++++- .../automation/2019-06-01/jobstream/method_get.go | 2 +- .../2019-06-01/jobstream/method_listbyjob.go | 15 ++++++++++++++- .../module/method_listbyautomationaccount.go | 13 +++++++++++++ .../2019-06-01/nodereports/method_listbynode.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 13 +++++++++++++ .../runbook/method_listbyautomationaccount.go | 13 +++++++++++++ .../schedule/method_listbyautomationaccount.go | 13 +++++++++++++ .../softwareupdateconfiguration/method_create.go | 2 +- .../softwareupdateconfiguration/method_delete.go | 2 +- .../method_getbyname.go | 2 +- .../softwareupdateconfiguration/method_list.go | 2 +- .../method_getbyid.go | 2 +- .../method_list.go | 15 ++++++++++++++- .../method_getbyid.go | 2 +- .../softwareupdateconfigurationrun/method_list.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbysyncjob.go | 15 ++++++++++++++- .../statistics/method_listbyautomationaccount.go | 2 +- .../testjobstream/method_listbytestjob.go | 15 ++++++++++++++- .../variable/method_listbyautomationaccount.go | 13 +++++++++++++ .../watcher/method_listbyautomationaccount.go | 15 ++++++++++++++- .../activity/method_listbymodule.go | 13 +++++++++++++ .../automationaccount/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../certificate/method_listbyautomationaccount.go | 13 +++++++++++++ .../connection/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 13 +++++++++++++ .../credential/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../dsccompilationjob/method_streamlistbyjob.go | 13 +++++++++++++ .../dscnode/method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../jobschedule/method_listbyautomationaccount.go | 15 ++++++++++++++- .../module/method_listbyautomationaccount.go | 13 +++++++++++++ .../nodereports/method_listbynode.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 13 +++++++++++++ .../schedule/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbysyncjob.go | 15 ++++++++++++++- .../statistics/method_listbyautomationaccount.go | 2 +- .../variable/method_listbyautomationaccount.go | 13 +++++++++++++ .../watcher/method_listbyautomationaccount.go | 15 ++++++++++++++- .../2021-06-22/automationaccount/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbyhybridrunbookworkergroup.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../statistics/method_listbyautomationaccount.go | 2 +- .../2022-08-08/activity/method_listbymodule.go | 13 +++++++++++++ .../2022-08-08/automationaccount/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../certificate/method_listbyautomationaccount.go | 13 +++++++++++++ .../connection/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 13 +++++++++++++ .../credential/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbyhybridrunbookworkergroup.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../automation/2022-08-08/job/method_create.go | 2 +- .../automation/2022-08-08/job/method_get.go | 2 +- .../automation/2022-08-08/job/method_getoutput.go | 2 +- .../2022-08-08/job/method_getrunbookcontent.go | 2 +- .../job/method_listbyautomationaccount.go | 15 ++++++++++++++- .../automation/2022-08-08/job/method_resume.go | 2 +- .../automation/2022-08-08/job/method_stop.go | 2 +- .../automation/2022-08-08/job/method_suspend.go | 2 +- .../jobschedule/method_listbyautomationaccount.go | 15 ++++++++++++++- .../automation/2022-08-08/jobstream/method_get.go | 2 +- .../2022-08-08/jobstream/method_listbyjob.go | 15 ++++++++++++++- .../module/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 13 +++++++++++++ .../runbook/method_listbyautomationaccount.go | 13 +++++++++++++ .../schedule/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_getbyid.go | 2 +- .../method_list.go | 15 ++++++++++++++- .../method_getbyid.go | 2 +- .../softwareupdateconfigurationrun/method_list.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbysyncjob.go | 15 ++++++++++++++- .../statistics/method_listbyautomationaccount.go | 2 +- .../testjobstream/method_listbytestjob.go | 15 ++++++++++++++- .../variable/method_listbyautomationaccount.go | 13 +++++++++++++ .../2023-11-01/activity/method_listbymodule.go | 13 +++++++++++++ .../2023-11-01/automationaccount/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../certificate/method_listbyautomationaccount.go | 13 +++++++++++++ .../connection/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 13 +++++++++++++ .../credential/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbyhybridrunbookworkergroup.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../automation/2023-11-01/job/method_create.go | 2 +- .../automation/2023-11-01/job/method_get.go | 2 +- .../automation/2023-11-01/job/method_getoutput.go | 2 +- .../2023-11-01/job/method_getrunbookcontent.go | 2 +- .../job/method_listbyautomationaccount.go | 15 ++++++++++++++- .../automation/2023-11-01/job/method_resume.go | 2 +- .../automation/2023-11-01/job/method_stop.go | 2 +- .../automation/2023-11-01/job/method_suspend.go | 2 +- .../jobschedule/method_listbyautomationaccount.go | 15 ++++++++++++++- .../automation/2023-11-01/jobstream/method_get.go | 2 +- .../2023-11-01/jobstream/method_listbyjob.go | 15 ++++++++++++++- .../module/method_listbyautomationaccount.go | 13 +++++++++++++ ...d_powershell72modulelistbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbyautomationaccount.go | 13 +++++++++++++ .../runbook/method_listbyautomationaccount.go | 13 +++++++++++++ .../schedule/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_getbyid.go | 2 +- .../method_list.go | 15 ++++++++++++++- .../method_getbyid.go | 2 +- .../softwareupdateconfigurationrun/method_list.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbyautomationaccount.go | 15 ++++++++++++++- .../method_listbysyncjob.go | 15 ++++++++++++++- .../statistics/method_listbyautomationaccount.go | 2 +- .../testjobstream/method_listbytestjob.go | 15 ++++++++++++++- .../variable/method_listbyautomationaccount.go | 13 +++++++++++++ .../method_listbypolicyname.go | 13 +++++++++++++ .../privatelinkforazuread/method_list.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listbyprivatelinkpolicy.go | 13 +++++++++++++ .../method_arcsettingslistbycluster.go | 13 +++++++++++++ .../clusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../clusters/method_listbysubscription.go | 13 +++++++++++++ .../deploymentsettings/method_listbyclusters.go | 13 +++++++++++++ .../2024-01-01/edgedevices/method_list.go | 13 +++++++++++++ .../extensions/method_listbyarcsetting.go | 13 +++++++++++++ .../2024-01-01/galleryimages/method_list.go | 13 +++++++++++++ .../2024-01-01/galleryimages/method_listall.go | 13 +++++++++++++ .../2024-01-01/guestagents/method_list.go | 13 +++++++++++++ .../hybrididentitymetadata/method_list.go | 13 +++++++++++++ .../2024-01-01/logicalnetworks/method_list.go | 13 +++++++++++++ .../2024-01-01/logicalnetworks/method_listall.go | 13 +++++++++++++ .../marketplacegalleryimages/method_list.go | 13 +++++++++++++ .../marketplacegalleryimages/method_listall.go | 13 +++++++++++++ .../2024-01-01/networkinterfaces/method_list.go | 13 +++++++++++++ .../networkinterfaces/method_listall.go | 13 +++++++++++++ .../azurestackhci/2024-01-01/offers/method_get.go | 2 +- .../2024-01-01/offers/method_listbycluster.go | 15 ++++++++++++++- .../2024-01-01/offers/method_listbypublisher.go | 15 ++++++++++++++- .../2024-01-01/publishers/method_listbycluster.go | 13 +++++++++++++ .../securitysettings/method_listbyclusters.go | 13 +++++++++++++ .../2024-01-01/skuses/method_skusget.go | 2 +- .../2024-01-01/skuses/method_skuslistbyoffer.go | 15 ++++++++++++++- .../2024-01-01/storagecontainers/method_list.go | 13 +++++++++++++ .../storagecontainers/method_listall.go | 13 +++++++++++++ .../2024-01-01/updateruns/method_list.go | 13 +++++++++++++ .../2024-01-01/updates/method_list.go | 13 +++++++++++++ .../2024-01-01/updatesummaries/method_list.go | 13 +++++++++++++ .../2024-01-01/virtualharddisks/method_list.go | 13 +++++++++++++ .../2024-01-01/virtualharddisks/method_listall.go | 13 +++++++++++++ .../virtualmachineinstances/method_list.go | 13 +++++++++++++ .../batch/2023-05-01/application/method_list.go | 15 ++++++++++++++- .../2023-05-01/applicationpackage/method_list.go | 15 ++++++++++++++- .../batch/2023-05-01/batchaccount/method_list.go | 13 +++++++++++++ .../batchaccount/method_listbyresourcegroup.go | 13 +++++++++++++ ...od_listoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../method_batchaccountlistdetectors.go | 13 +++++++++++++ .../batch/2023-05-01/certificate/method_create.go | 2 +- .../certificate/method_listbybatchaccount.go | 15 ++++++++++++++- .../batch/2023-05-01/certificate/method_update.go | 2 +- .../method_listsupportedcloudserviceskus.go | 15 ++++++++++++++- .../method_listsupportedvirtualmachineskus.go | 15 ++++++++++++++- .../batch/2023-05-01/pool/method_create.go | 2 +- .../2023-05-01/pool/method_listbybatchaccount.go | 15 ++++++++++++++- .../batch/2023-05-01/pool/method_update.go | 2 +- .../method_listbybatchaccount.go | 15 ++++++++++++++- .../privateendpointconnection/method_update.go | 2 +- .../method_listbybatchaccount.go | 15 ++++++++++++++- .../batch/2023-11-01/application/method_list.go | 15 ++++++++++++++- .../2023-11-01/applicationpackage/method_list.go | 15 ++++++++++++++- .../batch/2023-11-01/batchaccount/method_list.go | 13 +++++++++++++ .../batchaccount/method_listbyresourcegroup.go | 13 +++++++++++++ ...od_listoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../method_batchaccountlistdetectors.go | 13 +++++++++++++ .../batch/2023-11-01/certificate/method_create.go | 2 +- .../certificate/method_listbybatchaccount.go | 15 ++++++++++++++- .../batch/2023-11-01/certificate/method_update.go | 2 +- .../method_listsupportedcloudserviceskus.go | 15 ++++++++++++++- .../method_listsupportedvirtualmachineskus.go | 15 ++++++++++++++- .../batch/2023-11-01/pool/method_create.go | 2 +- .../2023-11-01/pool/method_listbybatchaccount.go | 15 ++++++++++++++- .../batch/2023-11-01/pool/method_update.go | 2 +- .../method_listbybatchaccount.go | 15 ++++++++++++++- .../privateendpointconnection/method_update.go | 2 +- .../method_listbybatchaccount.go | 15 ++++++++++++++- .../batch/2024-02-01/application/method_list.go | 15 ++++++++++++++- .../2024-02-01/applicationpackage/method_list.go | 15 ++++++++++++++- .../batch/2024-02-01/batchaccount/method_list.go | 13 +++++++++++++ .../batchaccount/method_listbyresourcegroup.go | 13 +++++++++++++ ...od_listoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../method_batchaccountlistdetectors.go | 13 +++++++++++++ .../batch/2024-02-01/certificate/method_create.go | 2 +- .../certificate/method_listbybatchaccount.go | 15 ++++++++++++++- .../batch/2024-02-01/certificate/method_update.go | 2 +- .../method_listsupportedcloudserviceskus.go | 15 ++++++++++++++- .../method_listsupportedvirtualmachineskus.go | 15 ++++++++++++++- .../batch/2024-02-01/pool/method_create.go | 2 +- .../2024-02-01/pool/method_listbybatchaccount.go | 15 ++++++++++++++- .../batch/2024-02-01/pool/method_update.go | 2 +- .../method_listbybatchaccount.go | 15 ++++++++++++++- .../privateendpointconnection/method_update.go | 2 +- .../method_listbybatchaccount.go | 15 ++++++++++++++- .../2019-10-01-preview/agreements/method_get.go | 2 +- .../agreements/method_listbybillingaccount.go | 15 ++++++++++++++- .../billingaccounts/method_get.go | 2 +- .../billingaccounts/method_list.go | 15 ++++++++++++++- ...voicesectionsbycreatesubscriptionpermission.go | 13 +++++++++++++ .../method_listbybillingaccount.go | 13 +++++++++++++ .../method_listbybillingprofile.go | 13 +++++++++++++ .../billingpermissions/method_listbycustomer.go | 13 +++++++++++++ .../billingpermissions/method_listbydepartment.go | 13 +++++++++++++ .../method_listbyenrollmentaccount.go | 13 +++++++++++++ .../method_listbyinvoicesections.go | 13 +++++++++++++ .../billingprofiles/method_get.go | 2 +- .../method_listbybillingaccount.go | 15 ++++++++++++++- .../method_addbybillingaccount.go | 13 +++++++++++++ .../method_addbybillingprofile.go | 13 +++++++++++++ .../method_addbyinvoicesection.go | 13 +++++++++++++ .../method_listbybillingaccount.go | 13 +++++++++++++ .../method_listbybillingprofile.go | 13 +++++++++++++ .../method_listbydepartment.go | 13 +++++++++++++ .../method_listbyenrollmentaccount.go | 13 +++++++++++++ .../method_listbyinvoicesection.go | 13 +++++++++++++ .../method_listbybillingaccount.go | 13 +++++++++++++ .../method_listbybillingprofile.go | 13 +++++++++++++ .../method_listbydepartment.go | 13 +++++++++++++ .../method_listbyenrollmentaccount.go | 13 +++++++++++++ .../method_listbyinvoicesection.go | 13 +++++++++++++ .../method_listbybillingaccount.go | 13 +++++++++++++ .../method_listbybillingprofile.go | 13 +++++++++++++ .../billingsubscriptions/method_listbycustomer.go | 13 +++++++++++++ .../method_listbyinvoicesection.go | 13 +++++++++++++ .../2019-10-01-preview/customers/method_get.go | 2 +- .../customers/method_listbybillingaccount.go | 15 ++++++++++++++- .../customers/method_listbybillingprofile.go | 15 ++++++++++++++- .../2019-10-01-preview/departments/method_get.go | 2 +- .../method_listbybillingaccountname.go | 15 ++++++++++++++- .../method_getbyenrollmentaccountid.go | 2 +- .../method_listbybillingaccountname.go | 15 ++++++++++++++- .../instructions/method_listbybillingprofile.go | 13 +++++++++++++ .../invoices/method_listbybillingaccount.go | 15 ++++++++++++++- .../invoices/method_listbybillingprofile.go | 15 ++++++++++++++- .../invoices/method_listbybillingsubscription.go | 15 ++++++++++++++- .../method_listbybillingprofile.go | 13 +++++++++++++ .../paymentmethods/method_listbybillingaccount.go | 13 +++++++++++++ .../paymentmethods/method_listbybillingprofile.go | 13 +++++++++++++ .../products/method_listbybillingaccount.go | 15 ++++++++++++++- .../products/method_listbycustomer.go | 15 ++++++++++++++- .../products/method_listbyinvoicesection.go | 15 ++++++++++++++- .../recipienttransfers/method_list.go | 13 +++++++++++++ .../2019-10-01-preview/transactions/method_get.go | 2 +- .../transactions/method_listbybillingaccount.go | 15 ++++++++++++++- .../transactions/method_listbybillingprofile.go | 15 ++++++++++++++- .../transactions/method_listbycustomer.go | 15 ++++++++++++++- .../transactions/method_listbyinvoice.go | 13 +++++++++++++ .../transactions/method_listbyinvoicesection.go | 15 ++++++++++++++- .../2019-10-01-preview/transfers/method_list.go | 13 +++++++++++++ .../transfers/method_partnertransferslist.go | 13 +++++++++++++ .../billing/2020-05-01/agreements/method_get.go | 2 +- .../agreements/method_listbybillingaccount.go | 15 ++++++++++++++- .../2020-05-01/billingaccounts/method_get.go | 2 +- .../2020-05-01/billingaccounts/method_list.go | 15 ++++++++++++++- ...voicesectionsbycreatesubscriptionpermission.go | 13 +++++++++++++ .../method_listbybillingaccount.go | 13 +++++++++++++ .../method_listbybillingprofile.go | 13 +++++++++++++ .../billingpermissions/method_listbycustomer.go | 13 +++++++++++++ .../method_listbyinvoicesections.go | 13 +++++++++++++ .../2020-05-01/billingprofiles/method_get.go | 2 +- .../method_listbybillingaccount.go | 15 ++++++++++++++- .../method_listbybillingaccount.go | 13 +++++++++++++ .../method_listbybillingprofile.go | 13 +++++++++++++ .../method_listbyinvoicesection.go | 13 +++++++++++++ .../method_listbybillingaccount.go | 13 +++++++++++++ .../method_listbybillingprofile.go | 13 +++++++++++++ .../method_listbyinvoicesection.go | 13 +++++++++++++ .../method_listbybillingaccount.go | 13 +++++++++++++ .../method_listbybillingprofile.go | 13 +++++++++++++ .../billingsubscriptions/method_listbycustomer.go | 13 +++++++++++++ .../method_listbyinvoicesection.go | 13 +++++++++++++ .../billing/2020-05-01/customers/method_get.go | 2 +- .../customers/method_listbybillingaccount.go | 15 ++++++++++++++- .../customers/method_listbybillingprofile.go | 15 ++++++++++++++- .../instructions/method_listbybillingprofile.go | 13 +++++++++++++ .../method_downloadbillingsubscriptioninvoice.go | 2 +- .../2020-05-01/invoices/method_downloadinvoice.go | 2 +- .../invoices/method_listbybillingaccount.go | 15 ++++++++++++++- .../invoices/method_listbybillingprofile.go | 15 ++++++++++++++- .../invoices/method_listbybillingsubscription.go | 15 ++++++++++++++- .../method_listbybillingprofile.go | 13 +++++++++++++ .../products/method_listbybillingaccount.go | 15 ++++++++++++++- .../products/method_listbybillingprofile.go | 15 ++++++++++++++- .../2020-05-01/products/method_listbycustomer.go | 13 +++++++++++++ .../products/method_listbyinvoicesection.go | 15 ++++++++++++++- .../reservations/method_listbybillingaccount.go | 15 ++++++++++++++- .../reservations/method_listbybillingprofile.go | 15 ++++++++++++++- .../transactions/method_listbyinvoice.go | 13 +++++++++++++ .../method_listbybillingaccount.go | 13 +++++++++++++ .../method_listbybillingaccount.go | 13 +++++++++++++ .../paymentmethods/method_listbybillingaccount.go | 13 +++++++++++++ .../paymentmethods/method_listbybillingprofile.go | 13 +++++++++++++ .../paymentmethods/method_listbyuser.go | 13 +++++++++++++ .../agreement/method_listbybillingaccount.go | 15 ++++++++++++++- .../method_listbybillingaccount.go | 15 ++++++++++++++- .../2024-04-01/billingaccount/method_list.go | 15 ++++++++++++++- ...voicesectionsbycreatesubscriptionpermission.go | 15 ++++++++++++++- .../method_listbybillingaccount.go | 13 +++++++++++++ .../method_listbybillingprofile.go | 13 +++++++++++++ .../billingpermission/method_listbycustomer.go | 13 +++++++++++++ .../method_listbycustomeratbillingaccount.go | 13 +++++++++++++ .../billingpermission/method_listbydepartment.go | 13 +++++++++++++ .../method_listbyenrollmentaccount.go | 13 +++++++++++++ .../method_listbyinvoicesection.go | 13 +++++++++++++ .../billingprofile/method_listbybillingaccount.go | 15 ++++++++++++++- .../2024-04-01/billingproperty/method_get.go | 2 +- .../billingrequest/method_listbybillingaccount.go | 15 ++++++++++++++- .../billingrequest/method_listbybillingprofile.go | 15 ++++++++++++++- .../billingrequest/method_listbycustomer.go | 15 ++++++++++++++- .../billingrequest/method_listbyinvoicesection.go | 15 ++++++++++++++- .../billingrequest/method_listbyuser.go | 15 ++++++++++++++- .../method_listbybillingaccount.go | 15 ++++++++++++++- .../method_listbybillingprofile.go | 15 ++++++++++++++- .../method_listbycustomer.go | 15 ++++++++++++++- .../method_listbydepartment.go | 13 +++++++++++++ .../method_listbyenrollmentaccount.go | 13 +++++++++++++ .../method_listbyinvoicesection.go | 15 ++++++++++++++- .../method_resolvebybillingaccount.go | 15 ++++++++++++++- .../method_resolvebybillingprofile.go | 15 ++++++++++++++- .../method_resolvebycustomer.go | 15 ++++++++++++++- .../method_resolvebyinvoicesection.go | 15 ++++++++++++++- .../method_listbybillingaccount.go | 13 +++++++++++++ .../method_listbybillingprofile.go | 13 +++++++++++++ .../method_listbycustomer.go | 13 +++++++++++++ .../method_listbydepartment.go | 13 +++++++++++++ .../method_listbyenrollmentaccount.go | 13 +++++++++++++ .../method_listbyinvoicesection.go | 13 +++++++++++++ .../method_aliaseslistbybillingaccount.go | 15 ++++++++++++++- .../2024-04-01/billingsubscription/method_get.go | 2 +- .../method_getbybillingprofile.go | 2 +- .../method_listbybillingaccount.go | 15 ++++++++++++++- .../method_listbybillingprofile.go | 15 ++++++++++++++- .../billingsubscription/method_listbycustomer.go | 15 ++++++++++++++- .../method_listbycustomeratbillingaccount.go | 15 ++++++++++++++- .../method_listbyenrollmentaccount.go | 15 ++++++++++++++- .../method_listbyinvoicesection.go | 15 ++++++++++++++- .../customer/method_listbybillingaccount.go | 15 ++++++++++++++- .../customer/method_listbybillingprofile.go | 15 ++++++++++++++- .../department/method_listbybillingaccount.go | 15 ++++++++++++++- .../method_listbybillingaccount.go | 15 ++++++++++++++- .../enrollmentaccount/method_listbydepartment.go | 15 ++++++++++++++- .../invoice/method_downloadbybillingaccount.go | 2 +- .../method_downloadbybillingsubscription.go | 2 +- .../invoice/method_listbybillingaccount.go | 15 ++++++++++++++- .../invoice/method_listbybillingprofile.go | 15 ++++++++++++++- .../invoice/method_listbybillingsubscription.go | 15 ++++++++++++++- .../invoicesection/method_listbybillingprofile.go | 15 ++++++++++++++- .../paymentmethods/method_listbybillingaccount.go | 13 +++++++++++++ .../paymentmethods/method_listbybillingprofile.go | 13 +++++++++++++ .../paymentmethods/method_listbyuser.go | 13 +++++++++++++ .../product/method_listbybillingaccount.go | 15 ++++++++++++++- .../product/method_listbybillingprofile.go | 15 ++++++++++++++- .../2024-04-01/product/method_listbycustomer.go | 15 ++++++++++++++- .../product/method_listbyinvoicesection.go | 15 ++++++++++++++- .../2024-04-01/recipienttransfers/method_list.go | 13 +++++++++++++ .../reservation/method_getbyreservationorder.go | 2 +- .../method_getbybillingaccount.go | 2 +- .../method_listbybillingaccount.go | 15 ++++++++++++++- .../reservations/method_listbybillingaccount.go | 15 ++++++++++++++- .../reservations/method_listbybillingprofile.go | 15 ++++++++++++++- .../reservations/method_listbyreservationorder.go | 13 +++++++++++++ .../savingsplan/method_getbybillingaccount.go | 2 +- .../savingsplan/method_listbybillingaccount.go | 15 ++++++++++++++- .../savingsplan/method_listbysavingsplanorder.go | 13 +++++++++++++ .../method_getbybillingaccount.go | 2 +- .../method_listbybillingaccount.go | 15 ++++++++++++++- .../method_gettransactionsummarybyinvoice.go | 2 +- .../transaction/method_listbybillingprofile.go | 15 ++++++++++++++- .../transaction/method_listbycustomer.go | 15 ++++++++++++++- .../transaction/method_listbyinvoice.go | 15 ++++++++++++++- .../transaction/method_listbyinvoicesection.go | 15 ++++++++++++++- .../billing/2024-04-01/transfers/method_list.go | 13 +++++++++++++ .../transfers/method_partnertransferslist.go | 13 +++++++++++++ .../2018-11-01-preview/artifact/method_list.go | 13 +++++++++++++ .../assignment/method_delete.go | 2 +- .../2018-11-01-preview/assignment/method_list.go | 13 +++++++++++++ .../assignmentoperations/method_list.go | 13 +++++++++++++ .../2018-11-01-preview/blueprint/method_list.go | 13 +++++++++++++ .../publishedartifact/method_list.go | 13 +++++++++++++ .../publishedblueprint/method_list.go | 13 +++++++++++++ .../botservice/2022-09-15/bot/method_list.go | 13 +++++++++++++ .../2022-09-15/bot/method_listbyresourcegroup.go | 13 +++++++++++++ .../botconnection/method_listbybotservice.go | 13 +++++++++++++ .../channel/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_botconnectionlistserviceproviders.go | 13 +++++++++++++ .../2023-11-01/capabilities/method_list.go | 15 ++++++++++++++- .../2023-11-01/capabilitytypes/method_list.go | 15 ++++++++++++++- .../2023-11-01/experiments/method_list.go | 15 ++++++++++++++- .../2023-11-01/experiments/method_listall.go | 15 ++++++++++++++- .../experiments/method_listallexecutions.go | 13 +++++++++++++ .../chaosstudio/2023-11-01/targets/method_list.go | 15 ++++++++++++++- .../2023-11-01/targettypes/method_list.go | 15 ++++++++++++++- .../2024-01-01/capabilities/method_list.go | 15 ++++++++++++++- .../2024-01-01/capabilitytypes/method_list.go | 15 ++++++++++++++- .../2024-01-01/experiments/method_list.go | 15 ++++++++++++++- .../2024-01-01/experiments/method_listall.go | 15 ++++++++++++++- .../experiments/method_listallexecutions.go | 13 +++++++++++++ .../chaosstudio/2024-01-01/targets/method_list.go | 15 ++++++++++++++- .../2024-01-01/targettypes/method_list.go | 15 ++++++++++++++- .../method_accountslist.go | 13 +++++++++++++ .../method_accountslistbyresourcegroup.go | 13 +++++++++++++ .../method_accountslistmodels.go | 13 +++++++++++++ .../method_accountslistusages.go | 15 ++++++++++++++- .../method_deletedaccountslist.go | 13 +++++++++++++ .../method_resourceskuslist.go | 13 +++++++++++++ ...hod_commitmentplanslistplansbyresourcegroup.go | 13 +++++++++++++ ...thod_commitmentplanslistplansbysubscription.go | 13 +++++++++++++ .../2023-05-01/commitmentplans/method_list.go | 13 +++++++++++++ .../commitmentplans/method_listassociations.go | 13 +++++++++++++ .../2023-05-01/commitmenttiers/method_list.go | 13 +++++++++++++ .../2023-05-01/deployments/method_list.go | 13 +++++++++++++ .../cognitive/2023-05-01/models/method_list.go | 13 +++++++++++++ .../2023-05-01/skus/method_resourceskuslist.go | 13 +++++++++++++ .../cognitive/2023-05-01/usages/method_list.go | 15 ++++++++++++++- .../method_accountslist.go | 13 +++++++++++++ .../method_accountslistbyresourcegroup.go | 13 +++++++++++++ .../method_accountslistmodels.go | 13 +++++++++++++ .../method_accountslistusages.go | 15 ++++++++++++++- .../method_deletedaccountslist.go | 13 +++++++++++++ .../method_resourceskuslist.go | 13 +++++++++++++ ...hod_commitmentplanslistplansbyresourcegroup.go | 13 +++++++++++++ ...thod_commitmentplanslistplansbysubscription.go | 13 +++++++++++++ .../commitmentplans/method_list.go | 13 +++++++++++++ .../commitmentplans/method_listassociations.go | 13 +++++++++++++ .../commitmenttiers/method_list.go | 13 +++++++++++++ .../2023-10-01-preview/deployments/method_list.go | 13 +++++++++++++ .../deployments/method_listskus.go | 13 +++++++++++++ .../encryptionscopes/method_list.go | 13 +++++++++++++ .../2023-10-01-preview/models/method_list.go | 13 +++++++++++++ .../raiblocklists/method_list.go | 13 +++++++++++++ .../raiblocklists/method_raiblocklistitemslist.go | 13 +++++++++++++ .../raicontentfilters/method_list.go | 13 +++++++++++++ .../2023-10-01-preview/raipolicies/method_list.go | 13 +++++++++++++ .../skus/method_resourceskuslist.go | 13 +++++++++++++ .../2023-10-01-preview/usages/method_list.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../domains/method_listbyemailserviceresource.go | 13 +++++++++++++ .../emailservices/method_listbyresourcegroup.go | 13 +++++++++++++ .../emailservices/method_listbysubscription.go | 13 +++++++++++++ .../senderusernames/method_listbydomains.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../domains/method_listbyemailserviceresource.go | 13 +++++++++++++ .../emailservices/method_listbyresourcegroup.go | 13 +++++++++++++ .../emailservices/method_listbysubscription.go | 13 +++++++++++++ .../senderusernames/method_listbydomains.go | 13 +++++++++++++ .../availabilitysets/method_resourceskuslist.go | 15 ++++++++++++++- .../method_listbycapacityreservationgroup.go | 13 +++++++++++++ .../capacityreservationgroups/method_get.go | 2 +- .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbysubscription.go | 15 ++++++++++++++- .../2021-07-01/capacityreservations/method_get.go | 2 +- .../dedicatedhost/method_listbyhostgroup.go | 13 +++++++++++++ .../2021-07-01/dedicatedhostgroups/method_get.go | 2 +- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../2021-07-01/dedicatedhosts/method_get.go | 2 +- .../compute/2021-07-01/galleries/method_get.go | 2 +- .../compute/2021-07-01/galleries/method_list.go | 13 +++++++++++++ .../galleries/method_listbyresourcegroup.go | 13 +++++++++++++ .../galleryapplications/method_listbygallery.go | 13 +++++++++++++ .../galleryapplicationversions/method_get.go | 2 +- .../method_listbygalleryapplication.go | 13 +++++++++++++ .../galleryimages/method_listbygallery.go | 13 +++++++++++++ .../2021-07-01/galleryimageversions/method_get.go | 2 +- .../method_listbygalleryimage.go | 13 +++++++++++++ .../compute/2021-07-01/images/method_get.go | 2 +- .../compute/2021-07-01/images/method_list.go | 13 +++++++++++++ .../images/method_listbyresourcegroup.go | 13 +++++++++++++ .../proximityplacementgroups/method_get.go | 2 +- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../restorepointcollections/method_get.go | 2 +- .../restorepointcollections/method_list.go | 13 +++++++++++++ .../restorepointcollections/method_listall.go | 13 +++++++++++++ .../2021-07-01/sharedgalleries/method_list.go | 15 ++++++++++++++- .../2021-07-01/sharedgalleryimages/method_list.go | 15 ++++++++++++++- .../sharedgalleryimageversions/method_list.go | 15 ++++++++++++++- .../2021-07-01/skus/method_resourceskuslist.go | 15 ++++++++++++++- .../sshpublickeys/method_listbyresourcegroup.go | 13 +++++++++++++ .../sshpublickeys/method_listbysubscription.go | 13 +++++++++++++ .../method_listversions.go | 2 +- .../virtualmachineextensions/method_get.go | 2 +- .../virtualmachineextensions/method_list.go | 2 +- .../virtualmachineimages/method_edgezonelist.go | 2 +- .../virtualmachineimages/method_list.go | 2 +- .../method_getbyvirtualmachine.go | 2 +- .../virtualmachineruncommands/method_list.go | 13 +++++++++++++ .../method_listbyvirtualmachine.go | 15 ++++++++++++++- .../virtualmachines/method_deallocate.go | 2 +- .../2021-07-01/virtualmachines/method_delete.go | 2 +- .../2021-07-01/virtualmachines/method_get.go | 2 +- .../2021-07-01/virtualmachines/method_list.go | 13 +++++++++++++ .../2021-07-01/virtualmachines/method_listall.go | 15 ++++++++++++++- .../virtualmachines/method_listbylocation.go | 13 +++++++++++++ .../2021-07-01/virtualmachines/method_poweroff.go | 2 +- .../method_retrievebootdiagnosticsdata.go | 2 +- .../method_get.go | 2 +- .../method_list.go | 13 +++++++++++++ .../virtualmachinescalesets/method_delete.go | 2 +- .../method_deleteinstances.go | 2 +- ...coveryservicefabricplatformupdatedomainwalk.go | 2 +- .../virtualmachinescalesets/method_get.go | 2 +- .../method_getosupgradehistory.go | 13 +++++++++++++ .../virtualmachinescalesets/method_list.go | 13 +++++++++++++ .../virtualmachinescalesets/method_listall.go | 13 +++++++++++++ .../method_listbylocation.go | 13 +++++++++++++ .../virtualmachinescalesets/method_listskus.go | 13 +++++++++++++ .../virtualmachinescalesets/method_poweroff.go | 2 +- .../method_get.go | 2 +- .../method_list.go | 2 +- .../method_get.go | 2 +- .../method_list.go | 15 ++++++++++++++- .../virtualmachinescalesetvms/method_delete.go | 2 +- .../virtualmachinescalesetvms/method_get.go | 2 +- .../virtualmachinescalesetvms/method_list.go | 15 ++++++++++++++- .../virtualmachinescalesetvms/method_poweroff.go | 2 +- .../method_retrievebootdiagnosticsdata.go | 2 +- .../2022-03-01/availabilitysets/method_list.go | 13 +++++++++++++ .../availabilitysets/method_listbysubscription.go | 15 ++++++++++++++- .../method_listbycapacityreservationgroup.go | 13 +++++++++++++ .../capacityreservationgroups/method_get.go | 2 +- .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbysubscription.go | 15 ++++++++++++++- .../2022-03-01/capacityreservations/method_get.go | 2 +- .../dedicatedhost/method_listbyhostgroup.go | 13 +++++++++++++ .../2022-03-01/dedicatedhostgroups/method_get.go | 2 +- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../2022-03-01/dedicatedhosts/method_get.go | 2 +- .../compute/2022-03-01/images/method_get.go | 2 +- .../compute/2022-03-01/images/method_list.go | 13 +++++++++++++ .../images/method_listbyresourcegroup.go | 13 +++++++++++++ .../proximityplacementgroups/method_get.go | 2 +- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../restorepointcollections/method_get.go | 2 +- .../restorepointcollections/method_list.go | 13 +++++++++++++ .../restorepointcollections/method_listall.go | 13 +++++++++++++ .../2022-03-01/restorepoints/method_get.go | 2 +- .../sshpublickeys/method_listbyresourcegroup.go | 13 +++++++++++++ .../sshpublickeys/method_listbysubscription.go | 13 +++++++++++++ .../method_listversions.go | 2 +- .../virtualmachineextensions/method_get.go | 2 +- .../virtualmachineextensions/method_list.go | 2 +- .../virtualmachineimages/method_edgezonelist.go | 2 +- .../virtualmachineimages/method_list.go | 2 +- .../virtualmachineimages/method_listbyedgezone.go | 13 +++++++++++++ .../method_getbyvirtualmachine.go | 2 +- .../virtualmachineruncommands/method_list.go | 13 +++++++++++++ .../method_listbyvirtualmachine.go | 15 ++++++++++++++- .../virtualmachines/method_deallocate.go | 2 +- .../2022-03-01/virtualmachines/method_delete.go | 2 +- .../2022-03-01/virtualmachines/method_get.go | 2 +- .../2022-03-01/virtualmachines/method_list.go | 15 ++++++++++++++- .../2022-03-01/virtualmachines/method_listall.go | 15 ++++++++++++++- .../virtualmachines/method_listbylocation.go | 13 +++++++++++++ .../2022-03-01/virtualmachines/method_poweroff.go | 2 +- .../method_retrievebootdiagnosticsdata.go | 2 +- .../method_get.go | 2 +- .../method_list.go | 13 +++++++++++++ .../virtualmachinescalesets/method_delete.go | 2 +- .../method_deleteinstances.go | 2 +- ...coveryservicefabricplatformupdatedomainwalk.go | 2 +- .../virtualmachinescalesets/method_get.go | 2 +- .../method_getosupgradehistory.go | 13 +++++++++++++ .../virtualmachinescalesets/method_list.go | 13 +++++++++++++ .../virtualmachinescalesets/method_listall.go | 13 +++++++++++++ .../method_listbylocation.go | 13 +++++++++++++ .../virtualmachinescalesets/method_listskus.go | 13 +++++++++++++ .../virtualmachinescalesets/method_poweroff.go | 2 +- .../method_get.go | 2 +- .../method_list.go | 2 +- .../method_get.go | 2 +- .../method_list.go | 15 ++++++++++++++- .../virtualmachinescalesetvms/method_delete.go | 2 +- .../virtualmachinescalesetvms/method_get.go | 2 +- .../virtualmachinescalesetvms/method_list.go | 15 ++++++++++++++- .../virtualmachinescalesetvms/method_poweroff.go | 2 +- .../method_retrievebootdiagnosticsdata.go | 2 +- .../2022-03-02/diskaccesses/method_list.go | 13 +++++++++++++ .../diskaccesses/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listprivateendpointconnections.go | 13 +++++++++++++ .../2022-03-02/diskencryptionsets/method_list.go | 13 +++++++++++++ .../method_listassociatedresources.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../compute/2022-03-02/disks/method_list.go | 13 +++++++++++++ .../disks/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_diskrestorepointlistbyrestorepoint.go | 13 +++++++++++++ .../compute/2022-03-02/snapshots/method_list.go | 13 +++++++++++++ .../snapshots/method_listbyresourcegroup.go | 13 +++++++++++++ .../communitygalleryimages/method_list.go | 13 +++++++++++++ .../communitygalleryimageversions/method_list.go | 13 +++++++++++++ .../compute/2022-03-03/galleries/method_get.go | 2 +- .../compute/2022-03-03/galleries/method_list.go | 13 +++++++++++++ .../galleries/method_listbyresourcegroup.go | 13 +++++++++++++ .../galleryapplications/method_listbygallery.go | 13 +++++++++++++ .../galleryapplicationversions/method_get.go | 2 +- .../method_listbygalleryapplication.go | 13 +++++++++++++ .../galleryimages/method_listbygallery.go | 13 +++++++++++++ .../2022-03-03/galleryimageversions/method_get.go | 2 +- .../method_listbygalleryimage.go | 13 +++++++++++++ .../2022-03-03/sharedgalleries/method_list.go | 15 ++++++++++++++- .../2022-03-03/sharedgalleryimages/method_list.go | 15 ++++++++++++++- .../sharedgalleryimageversions/method_list.go | 15 ++++++++++++++- .../2023-03-01/availabilitysets/method_list.go | 13 +++++++++++++ .../availabilitysets/method_listbysubscription.go | 15 ++++++++++++++- .../method_listbycapacityreservationgroup.go | 13 +++++++++++++ .../capacityreservationgroups/method_get.go | 2 +- .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbysubscription.go | 15 ++++++++++++++- .../2023-03-01/capacityreservations/method_get.go | 2 +- .../dedicatedhost/method_listbyhostgroup.go | 13 +++++++++++++ .../2023-03-01/dedicatedhostgroups/method_get.go | 2 +- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../2023-03-01/dedicatedhosts/method_get.go | 2 +- .../compute/2023-03-01/images/method_get.go | 2 +- .../compute/2023-03-01/images/method_list.go | 13 +++++++++++++ .../images/method_listbyresourcegroup.go | 13 +++++++++++++ .../proximityplacementgroups/method_get.go | 2 +- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../restorepointcollections/method_get.go | 2 +- .../restorepointcollections/method_list.go | 13 +++++++++++++ .../restorepointcollections/method_listall.go | 13 +++++++++++++ .../2023-03-01/restorepoints/method_get.go | 2 +- .../sshpublickeys/method_listbyresourcegroup.go | 13 +++++++++++++ .../sshpublickeys/method_listbysubscription.go | 13 +++++++++++++ .../method_listversions.go | 2 +- .../virtualmachineextensions/method_get.go | 2 +- .../virtualmachineextensions/method_list.go | 2 +- .../virtualmachineimages/method_edgezonelist.go | 2 +- .../virtualmachineimages/method_list.go | 2 +- .../virtualmachineimages/method_listbyedgezone.go | 13 +++++++++++++ .../method_getbyvirtualmachine.go | 2 +- .../virtualmachineruncommands/method_list.go | 13 +++++++++++++ .../method_listbyvirtualmachine.go | 15 ++++++++++++++- .../virtualmachines/method_deallocate.go | 2 +- .../2023-03-01/virtualmachines/method_delete.go | 2 +- .../2023-03-01/virtualmachines/method_get.go | 2 +- .../2023-03-01/virtualmachines/method_list.go | 15 ++++++++++++++- .../2023-03-01/virtualmachines/method_listall.go | 15 ++++++++++++++- .../virtualmachines/method_listbylocation.go | 13 +++++++++++++ .../2023-03-01/virtualmachines/method_poweroff.go | 2 +- .../method_retrievebootdiagnosticsdata.go | 2 +- .../method_get.go | 2 +- .../method_list.go | 13 +++++++++++++ .../virtualmachinescalesets/method_deallocate.go | 2 +- .../virtualmachinescalesets/method_delete.go | 2 +- .../method_deleteinstances.go | 2 +- ...coveryservicefabricplatformupdatedomainwalk.go | 2 +- .../virtualmachinescalesets/method_get.go | 2 +- .../method_getosupgradehistory.go | 13 +++++++++++++ .../virtualmachinescalesets/method_list.go | 13 +++++++++++++ .../virtualmachinescalesets/method_listall.go | 13 +++++++++++++ .../method_listbylocation.go | 13 +++++++++++++ .../virtualmachinescalesets/method_listskus.go | 13 +++++++++++++ .../virtualmachinescalesets/method_poweroff.go | 2 +- .../method_get.go | 2 +- .../method_list.go | 2 +- .../method_get.go | 2 +- .../method_list.go | 15 ++++++++++++++- .../virtualmachinescalesetvms/method_delete.go | 2 +- .../virtualmachinescalesetvms/method_get.go | 2 +- .../virtualmachinescalesetvms/method_list.go | 15 ++++++++++++++- .../virtualmachinescalesetvms/method_poweroff.go | 2 +- .../method_retrievebootdiagnosticsdata.go | 2 +- .../2023-04-02/diskaccesses/method_list.go | 13 +++++++++++++ .../diskaccesses/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listprivateendpointconnections.go | 13 +++++++++++++ .../2023-04-02/diskencryptionsets/method_list.go | 13 +++++++++++++ .../method_listassociatedresources.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../compute/2023-04-02/disks/method_list.go | 13 +++++++++++++ .../disks/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_diskrestorepointlistbyrestorepoint.go | 13 +++++++++++++ .../compute/2023-04-02/snapshots/method_list.go | 13 +++++++++++++ .../snapshots/method_listbyresourcegroup.go | 13 +++++++++++++ .../communitygalleryimages/method_list.go | 13 +++++++++++++ .../communitygalleryimageversions/method_list.go | 13 +++++++++++++ .../compute/2023-07-03/galleries/method_get.go | 2 +- .../compute/2023-07-03/galleries/method_list.go | 13 +++++++++++++ .../galleries/method_listbyresourcegroup.go | 13 +++++++++++++ .../galleryapplications/method_listbygallery.go | 13 +++++++++++++ .../galleryapplicationversions/method_get.go | 2 +- .../method_listbygalleryapplication.go | 13 +++++++++++++ .../galleryimages/method_listbygallery.go | 13 +++++++++++++ .../2023-07-03/galleryimageversions/method_get.go | 2 +- .../method_listbygalleryimage.go | 13 +++++++++++++ .../2023-07-03/sharedgalleries/method_list.go | 15 ++++++++++++++- .../2023-07-03/sharedgalleryimages/method_list.go | 15 ++++++++++++++- .../sharedgalleryimageversions/method_list.go | 15 ++++++++++++++- .../2024-03-01/availabilitysets/method_list.go | 13 +++++++++++++ .../availabilitysets/method_listbysubscription.go | 15 ++++++++++++++- .../method_listbycapacityreservationgroup.go | 13 +++++++++++++ .../capacityreservationgroups/method_get.go | 2 +- .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbysubscription.go | 15 ++++++++++++++- .../2024-03-01/capacityreservations/method_get.go | 2 +- .../dedicatedhost/method_listbyhostgroup.go | 13 +++++++++++++ .../2024-03-01/dedicatedhostgroups/method_get.go | 2 +- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../2024-03-01/dedicatedhosts/method_get.go | 2 +- .../compute/2024-03-01/images/method_get.go | 2 +- .../compute/2024-03-01/images/method_list.go | 13 +++++++++++++ .../images/method_listbyresourcegroup.go | 13 +++++++++++++ .../proximityplacementgroups/method_get.go | 2 +- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../restorepointcollections/method_get.go | 2 +- .../restorepointcollections/method_list.go | 13 +++++++++++++ .../restorepointcollections/method_listall.go | 13 +++++++++++++ .../2024-03-01/restorepoints/method_get.go | 2 +- .../sshpublickeys/method_listbyresourcegroup.go | 13 +++++++++++++ .../sshpublickeys/method_listbysubscription.go | 13 +++++++++++++ .../method_listversions.go | 2 +- .../virtualmachineextensions/method_get.go | 2 +- .../virtualmachineextensions/method_list.go | 2 +- .../virtualmachineimages/method_edgezonelist.go | 2 +- .../virtualmachineimages/method_list.go | 2 +- .../virtualmachineimages/method_listbyedgezone.go | 13 +++++++++++++ .../method_getbyvirtualmachine.go | 2 +- .../virtualmachineruncommands/method_list.go | 13 +++++++++++++ .../method_listbyvirtualmachine.go | 15 ++++++++++++++- .../virtualmachines/method_createorupdate.go | 2 +- .../virtualmachines/method_deallocate.go | 2 +- .../2024-03-01/virtualmachines/method_delete.go | 2 +- .../2024-03-01/virtualmachines/method_get.go | 2 +- .../2024-03-01/virtualmachines/method_list.go | 15 ++++++++++++++- .../2024-03-01/virtualmachines/method_listall.go | 15 ++++++++++++++- .../virtualmachines/method_listbylocation.go | 13 +++++++++++++ .../2024-03-01/virtualmachines/method_poweroff.go | 2 +- .../method_retrievebootdiagnosticsdata.go | 2 +- .../2024-03-01/virtualmachines/method_update.go | 2 +- .../method_get.go | 2 +- .../method_list.go | 13 +++++++++++++ .../method_createorupdate.go | 2 +- .../virtualmachinescalesets/method_deallocate.go | 2 +- .../virtualmachinescalesets/method_delete.go | 2 +- .../method_deleteinstances.go | 2 +- ...coveryservicefabricplatformupdatedomainwalk.go | 2 +- .../virtualmachinescalesets/method_get.go | 2 +- .../method_getosupgradehistory.go | 13 +++++++++++++ .../virtualmachinescalesets/method_list.go | 13 +++++++++++++ .../virtualmachinescalesets/method_listall.go | 13 +++++++++++++ .../method_listbylocation.go | 13 +++++++++++++ .../virtualmachinescalesets/method_listskus.go | 13 +++++++++++++ .../virtualmachinescalesets/method_poweroff.go | 2 +- .../virtualmachinescalesets/method_update.go | 2 +- .../method_get.go | 2 +- .../method_list.go | 2 +- .../method_get.go | 2 +- .../method_list.go | 15 ++++++++++++++- .../virtualmachinescalesetvms/method_delete.go | 2 +- .../virtualmachinescalesetvms/method_get.go | 2 +- .../virtualmachinescalesetvms/method_list.go | 15 ++++++++++++++- .../virtualmachinescalesetvms/method_poweroff.go | 2 +- .../method_retrievebootdiagnosticsdata.go | 2 +- .../virtualmachinescalesetvms/method_update.go | 2 +- .../method_ledgerlistbyresourcegroup.go | 15 ++++++++++++++- .../method_ledgerlistbysubscription.go | 15 ++++++++++++++- .../2022-01-10-preview/clusters/method_delete.go | 2 +- .../2022-01-10-preview/clusters/method_list.go | 13 +++++++++++++ .../clusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../datastores/method_delete.go | 2 +- .../2022-01-10-preview/datastores/method_list.go | 13 +++++++++++++ .../datastores/method_listbyresourcegroup.go | 13 +++++++++++++ .../guestagents/method_listbyvm.go | 13 +++++++++++++ .../2022-01-10-preview/hosts/method_delete.go | 2 +- .../2022-01-10-preview/hosts/method_list.go | 13 +++++++++++++ .../hosts/method_listbyresourcegroup.go | 13 +++++++++++++ .../hybrididentitymetadata/method_listbyvm.go | 13 +++++++++++++ .../inventoryitems/method_listbyvcenter.go | 13 +++++++++++++ .../machineextensions/method_list.go | 15 ++++++++++++++- .../resourcepools/method_delete.go | 2 +- .../resourcepools/method_list.go | 13 +++++++++++++ .../resourcepools/method_listbyresourcegroup.go | 13 +++++++++++++ .../2022-01-10-preview/vcenters/method_delete.go | 2 +- .../2022-01-10-preview/vcenters/method_list.go | 13 +++++++++++++ .../vcenters/method_listbyresourcegroup.go | 13 +++++++++++++ .../virtualmachines/method_delete.go | 2 +- .../virtualmachines/method_list.go | 13 +++++++++++++ .../virtualmachines/method_listbyresourcegroup.go | 13 +++++++++++++ .../virtualmachinetemplates/method_delete.go | 2 +- .../virtualmachinetemplates/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../virtualnetworks/method_delete.go | 2 +- .../virtualnetworks/method_list.go | 13 +++++++++++++ .../virtualnetworks/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-10-01/clusters/method_delete.go | 2 +- .../2023-10-01/clusters/method_list.go | 13 +++++++++++++ .../clusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-10-01/datastores/method_delete.go | 2 +- .../2023-10-01/datastores/method_list.go | 13 +++++++++++++ .../datastores/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-10-01/hosts/method_delete.go | 2 +- .../2023-10-01/hosts/method_list.go | 13 +++++++++++++ .../hosts/method_listbyresourcegroup.go | 13 +++++++++++++ .../inventoryitems/method_listbyvcenter.go | 13 +++++++++++++ .../2023-10-01/resourcepools/method_delete.go | 2 +- .../2023-10-01/resourcepools/method_list.go | 13 +++++++++++++ .../resourcepools/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-10-01/vcenters/method_delete.go | 2 +- .../2023-10-01/vcenters/method_list.go | 13 +++++++++++++ .../vcenters/method_listbyresourcegroup.go | 13 +++++++++++++ .../virtualmachineinstances/method_delete.go | 2 +- .../virtualmachineinstances/method_list.go | 13 +++++++++++++ .../virtualmachinetemplates/method_delete.go | 2 +- .../virtualmachinetemplates/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-10-01/virtualnetworks/method_delete.go | 2 +- .../2023-10-01/virtualnetworks/method_list.go | 13 +++++++++++++ .../virtualnetworks/method_listbyresourcegroup.go | 13 +++++++++++++ .../vminstanceguestagents/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../2023-12-01/clusters/method_delete.go | 2 +- .../2023-12-01/clusters/method_list.go | 13 +++++++++++++ .../clusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-12-01/datastores/method_delete.go | 2 +- .../2023-12-01/datastores/method_list.go | 13 +++++++++++++ .../datastores/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-12-01/hosts/method_delete.go | 2 +- .../2023-12-01/hosts/method_list.go | 13 +++++++++++++ .../hosts/method_listbyresourcegroup.go | 13 +++++++++++++ .../inventoryitems/method_listbyvcenter.go | 13 +++++++++++++ .../2023-12-01/resourcepools/method_delete.go | 2 +- .../2023-12-01/resourcepools/method_list.go | 13 +++++++++++++ .../resourcepools/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-12-01/vcenters/method_delete.go | 2 +- .../2023-12-01/vcenters/method_list.go | 13 +++++++++++++ .../vcenters/method_listbyresourcegroup.go | 13 +++++++++++++ .../virtualmachineinstances/method_delete.go | 2 +- .../virtualmachineinstances/method_list.go | 13 +++++++++++++ .../virtualmachinetemplates/method_delete.go | 2 +- .../virtualmachinetemplates/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-12-01/virtualnetworks/method_delete.go | 2 +- .../2023-12-01/virtualnetworks/method_list.go | 13 +++++++++++++ .../virtualnetworks/method_listbyresourcegroup.go | 13 +++++++++++++ .../vminstanceguestagents/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../aggregatedcost/method_getbymanagementgroup.go | 2 +- .../consumption/2019-10-01/budgets/method_list.go | 13 +++++++++++++ .../consumption/2019-10-01/charges/method_list.go | 2 +- .../consumption/2019-10-01/events/method_list.go | 15 ++++++++++++++- .../2019-10-01/forecasts/method_list.go | 2 +- .../consumption/2019-10-01/lots/method_list.go | 13 +++++++++++++ .../2019-10-01/marketplaces/method_list.go | 15 ++++++++++++++- .../2019-10-01/pricesheet/method_get.go | 2 +- .../pricesheet/method_getbybillingperiod.go | 2 +- .../method_reservationsdetailslist.go | 15 ++++++++++++++- ...d_reservationsdetailslistbyreservationorder.go | 15 ++++++++++++++- ...detailslistbyreservationorderandreservation.go | 15 ++++++++++++++- .../method_get.go | 2 +- .../reservationrecommendations/method_list.go | 15 ++++++++++++++- .../method_reservationssummarieslist.go | 15 ++++++++++++++- ...reservationssummarieslistbyreservationorder.go | 15 ++++++++++++++- ...mmarieslistbyreservationorderandreservation.go | 15 ++++++++++++++- .../reservationtransactions/method_list.go | 15 ++++++++++++++- .../method_listbybillingprofile.go | 15 ++++++++++++++- .../aggregatedcost/method_getbymanagementgroup.go | 2 +- .../consumption/2021-10-01/budgets/method_list.go | 13 +++++++++++++ .../consumption/2021-10-01/charges/method_list.go | 2 +- .../events/method_listbybillingaccount.go | 15 ++++++++++++++- .../events/method_listbybillingprofile.go | 15 ++++++++++++++- .../lots/method_listbybillingaccount.go | 15 ++++++++++++++- .../lots/method_listbybillingprofile.go | 13 +++++++++++++ .../2021-10-01/lots/method_listbycustomer.go | 15 ++++++++++++++- .../2021-10-01/marketplaces/method_list.go | 15 ++++++++++++++- .../2021-10-01/pricesheet/method_get.go | 2 +- .../pricesheet/method_getbybillingperiod.go | 2 +- .../method_reservationsdetailslist.go | 15 ++++++++++++++- ...d_reservationsdetailslistbyreservationorder.go | 15 ++++++++++++++- ...detailslistbyreservationorderandreservation.go | 15 ++++++++++++++- .../method_get.go | 2 +- .../reservationrecommendations/method_list.go | 15 ++++++++++++++- .../method_reservationssummarieslist.go | 15 ++++++++++++++- ...reservationssummarieslistbyreservationorder.go | 15 ++++++++++++++- ...mmarieslistbyreservationorderandreservation.go | 15 ++++++++++++++- .../reservationtransactions/method_list.go | 15 ++++++++++++++- .../method_listbybillingprofile.go | 15 ++++++++++++++- .../aggregatedcost/method_getbymanagementgroup.go | 2 +- .../consumption/2022-09-01/budgets/method_list.go | 13 +++++++++++++ .../consumption/2022-09-01/charges/method_list.go | 2 +- .../events/method_listbybillingaccount.go | 15 ++++++++++++++- .../events/method_listbybillingprofile.go | 15 ++++++++++++++- .../lots/method_listbybillingaccount.go | 15 ++++++++++++++- .../lots/method_listbybillingprofile.go | 13 +++++++++++++ .../2022-09-01/lots/method_listbycustomer.go | 15 ++++++++++++++- .../2022-09-01/marketplaces/method_list.go | 15 ++++++++++++++- .../2022-09-01/pricesheet/method_get.go | 2 +- .../pricesheet/method_getbybillingperiod.go | 2 +- .../method_reservationsdetailslist.go | 15 ++++++++++++++- ...d_reservationsdetailslistbyreservationorder.go | 15 ++++++++++++++- ...detailslistbyreservationorderandreservation.go | 15 ++++++++++++++- .../method_get.go | 2 +- .../reservationrecommendations/method_list.go | 15 ++++++++++++++- .../method_reservationssummarieslist.go | 15 ++++++++++++++- ...reservationssummarieslistbyreservationorder.go | 15 ++++++++++++++- ...mmarieslistbyreservationorderandreservation.go | 15 ++++++++++++++- .../reservationtransactions/method_list.go | 15 ++++++++++++++- .../method_listbybillingprofile.go | 15 ++++++++++++++- .../aggregatedcost/method_getbymanagementgroup.go | 2 +- .../consumption/2023-05-01/budgets/method_list.go | 13 +++++++++++++ .../consumption/2023-05-01/charges/method_list.go | 2 +- .../events/method_listbybillingaccount.go | 15 ++++++++++++++- .../events/method_listbybillingprofile.go | 15 ++++++++++++++- .../lots/method_listbybillingaccount.go | 15 ++++++++++++++- .../lots/method_listbybillingprofile.go | 13 +++++++++++++ .../2023-05-01/lots/method_listbycustomer.go | 15 ++++++++++++++- .../2023-05-01/marketplaces/method_list.go | 15 ++++++++++++++- .../2023-05-01/pricesheet/method_get.go | 2 +- .../pricesheet/method_getbybillingperiod.go | 2 +- .../method_reservationsdetailslist.go | 15 ++++++++++++++- ...d_reservationsdetailslistbyreservationorder.go | 15 ++++++++++++++- ...detailslistbyreservationorderandreservation.go | 15 ++++++++++++++- .../method_get.go | 2 +- .../reservationrecommendations/method_list.go | 15 ++++++++++++++- .../method_reservationssummarieslist.go | 15 ++++++++++++++- ...reservationssummarieslistbyreservationorder.go | 15 ++++++++++++++- ...mmarieslistbyreservationorderandreservation.go | 15 ++++++++++++++- .../reservationtransactions/method_list.go | 15 ++++++++++++++- .../method_listbybillingprofile.go | 15 ++++++++++++++- .../aggregatedcost/method_getbymanagementgroup.go | 2 +- .../consumption/2023-11-01/budgets/method_list.go | 13 +++++++++++++ .../consumption/2023-11-01/charges/method_list.go | 2 +- .../events/method_listbybillingaccount.go | 15 ++++++++++++++- .../events/method_listbybillingprofile.go | 15 ++++++++++++++- .../lots/method_listbybillingaccount.go | 15 ++++++++++++++- .../lots/method_listbybillingprofile.go | 13 +++++++++++++ .../2023-11-01/lots/method_listbycustomer.go | 15 ++++++++++++++- .../2023-11-01/marketplaces/method_list.go | 15 ++++++++++++++- .../2023-11-01/pricesheet/method_get.go | 2 +- .../pricesheet/method_getbybillingperiod.go | 2 +- .../method_reservationsdetailslist.go | 15 ++++++++++++++- ...d_reservationsdetailslistbyreservationorder.go | 15 ++++++++++++++- ...detailslistbyreservationorderandreservation.go | 15 ++++++++++++++- .../method_get.go | 2 +- .../reservationrecommendations/method_list.go | 15 ++++++++++++++- .../method_reservationssummarieslist.go | 15 ++++++++++++++- ...reservationssummarieslistbyreservationorder.go | 15 ++++++++++++++- ...mmarieslistbyreservationorderandreservation.go | 15 ++++++++++++++- .../reservationtransactions/method_list.go | 15 ++++++++++++++- .../method_listbybillingprofile.go | 15 ++++++++++++++- .../availableworkloadprofiles/method_get.go | 13 +++++++++++++ ...ethod_connectedenvironmentscertificateslist.go | 13 +++++++++++++ .../2023-05-01/certificates/method_list.go | 13 +++++++++++++ .../method_certificateslist.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_diagnosticslistdetectors.go | 13 +++++++++++++ .../method_diagnosticslistrevisions.go | 15 ++++++++++++++- .../containerapps/method_listbyresourcegroup.go | 13 +++++++++++++ .../containerapps/method_listbysubscription.go | 13 +++++++++++++ .../method_listcustomhostnameanalysis.go | 2 +- .../method_listbycontainerapp.go | 13 +++++++++++++ .../method_listrevisions.go | 15 ++++++++++++++- .../method_listbycontainerapp.go | 13 +++++++++++++ ...hod_connectedenvironmentsdaprcomponentslist.go | 13 +++++++++++++ .../2023-05-01/daprcomponents/method_list.go | 13 +++++++++++++ ...ethod_containerappsdiagnosticslistdetectors.go | 13 +++++++++++++ ...ethod_containerappsdiagnosticslistrevisions.go | 15 ++++++++++++++- ..._managedenvironmentdiagnosticslistdetectors.go | 13 +++++++++++++ .../2023-05-01/jobs/method_executionslist.go | 15 ++++++++++++++- .../2023-05-01/jobs/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-05-01/jobs/method_listbysubscription.go | 13 +++++++++++++ .../jobs/method_stopmultipleexecutions.go | 13 +++++++++++++ .../2023-05-01/managedcertificates/method_list.go | 13 +++++++++++++ .../method_certificateslist.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listworkloadprofilestates.go | 13 +++++++++++++ .../method_managedcertificateslist.go | 13 +++++++++++++ ..._managedenvironmentdiagnosticslistdetectors.go | 13 +++++++++++++ .../availableworkloadprofiles/method_get.go | 13 +++++++++++++ ...ethod_connectedenvironmentscertificateslist.go | 13 +++++++++++++ .../2024-03-01/certificates/method_list.go | 13 +++++++++++++ .../method_certificateslist.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_diagnosticslistdetectors.go | 13 +++++++++++++ .../method_diagnosticslistrevisions.go | 15 ++++++++++++++- .../containerapps/method_listbyresourcegroup.go | 13 +++++++++++++ .../containerapps/method_listbysubscription.go | 13 +++++++++++++ .../method_listcustomhostnameanalysis.go | 2 +- .../method_listbycontainerapp.go | 13 +++++++++++++ .../method_listrevisions.go | 15 ++++++++++++++- .../method_listbycontainerapp.go | 13 +++++++++++++ ...hod_connectedenvironmentsdaprcomponentslist.go | 13 +++++++++++++ .../2024-03-01/daprcomponents/method_list.go | 13 +++++++++++++ ...ethod_containerappsdiagnosticslistdetectors.go | 13 +++++++++++++ ...ethod_containerappsdiagnosticslistrevisions.go | 15 ++++++++++++++- .../diagnostics/method_jobslistdetectors.go | 13 +++++++++++++ ..._managedenvironmentdiagnosticslistdetectors.go | 13 +++++++++++++ .../2024-03-01/jobs/method_executionslist.go | 15 ++++++++++++++- .../2024-03-01/jobs/method_listbyresourcegroup.go | 13 +++++++++++++ .../2024-03-01/jobs/method_listbysubscription.go | 13 +++++++++++++ .../2024-03-01/jobs/method_listdetectors.go | 13 +++++++++++++ .../jobs/method_stopmultipleexecutions.go | 13 +++++++++++++ .../2024-03-01/managedcertificates/method_list.go | 13 +++++++++++++ .../method_certificateslist.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listworkloadprofilestates.go | 13 +++++++++++++ .../method_managedcertificateslist.go | 13 +++++++++++++ ..._managedenvironmentdiagnosticslistdetectors.go | 13 +++++++++++++ .../2024-03-01/usages/method_list.go | 13 +++++++++++++ .../usages/method_managedenvironmentusageslist.go | 13 +++++++++++++ .../method_containergroupslist.go | 13 +++++++++++++ .../method_containergroupslistbyresourcegroup.go | 13 +++++++++++++ .../method_containerslistlogs.go | 2 +- .../method_locationlistcachedimages.go | 13 +++++++++++++ .../method_locationlistcapabilities.go | 13 +++++++++++++ .../2019-06-01-preview/agentpools/method_list.go | 13 +++++++++++++ .../2019-06-01-preview/runs/method_list.go | 15 ++++++++++++++- .../2019-06-01-preview/taskruns/method_list.go | 13 +++++++++++++ .../2019-06-01-preview/tasks/method_list.go | 13 +++++++++++++ .../connectedregistries/method_list.go | 15 ++++++++++++++- .../exportpipelines/method_list.go | 13 +++++++++++++ .../importpipelines/method_list.go | 13 +++++++++++++ .../pipelineruns/method_list.go | 13 +++++++++++++ .../privateendpointconnections/method_list.go | 13 +++++++++++++ .../2021-08-01-preview/registries/method_list.go | 13 +++++++++++++ .../registries/method_listbyresourcegroup.go | 13 +++++++++++++ .../registries/method_listprivatelinkresources.go | 13 +++++++++++++ .../replications/method_list.go | 13 +++++++++++++ .../2021-08-01-preview/scopemaps/method_list.go | 13 +++++++++++++ .../2021-08-01-preview/tokens/method_list.go | 13 +++++++++++++ .../2021-08-01-preview/webhooks/method_list.go | 13 +++++++++++++ .../webhooks/method_listevents.go | 13 +++++++++++++ .../privateendpointconnections/method_list.go | 13 +++++++++++++ .../2022-12-01/registries/method_list.go | 13 +++++++++++++ .../registries/method_listbyresourcegroup.go | 13 +++++++++++++ .../registries/method_listprivatelinkresources.go | 13 +++++++++++++ .../2022-12-01/replications/method_list.go | 13 +++++++++++++ .../2022-12-01/scopemaps/method_list.go | 13 +++++++++++++ .../2022-12-01/tokens/method_list.go | 13 +++++++++++++ .../2022-12-01/webhooks/method_list.go | 13 +++++++++++++ .../2022-12-01/webhooks/method_listevents.go | 13 +++++++++++++ .../2023-06-01-preview/archives/method_list.go | 13 +++++++++++++ .../archiveversions/method_list.go | 13 +++++++++++++ .../2023-06-01-preview/cacherules/method_list.go | 13 +++++++++++++ .../connectedregistries/method_list.go | 15 ++++++++++++++- .../credentialsets/method_list.go | 13 +++++++++++++ .../exportpipelines/method_list.go | 13 +++++++++++++ .../importpipelines/method_list.go | 13 +++++++++++++ .../pipelineruns/method_list.go | 13 +++++++++++++ .../privateendpointconnections/method_list.go | 13 +++++++++++++ .../2023-06-01-preview/registries/method_list.go | 13 +++++++++++++ .../registries/method_listbyresourcegroup.go | 13 +++++++++++++ .../registries/method_listprivatelinkresources.go | 13 +++++++++++++ .../replications/method_list.go | 13 +++++++++++++ .../2023-06-01-preview/scopemaps/method_list.go | 13 +++++++++++++ .../2023-06-01-preview/tokens/method_list.go | 13 +++++++++++++ .../2023-06-01-preview/webhooks/method_list.go | 13 +++++++++++++ .../webhooks/method_listevents.go | 13 +++++++++++++ .../2023-07-01/cacherules/method_list.go | 13 +++++++++++++ .../2023-07-01/credentialsets/method_list.go | 13 +++++++++++++ .../privateendpointconnections/method_list.go | 13 +++++++++++++ .../2023-07-01/registries/method_list.go | 13 +++++++++++++ .../registries/method_listbyresourcegroup.go | 13 +++++++++++++ .../registries/method_listprivatelinkresources.go | 13 +++++++++++++ .../2023-07-01/replications/method_list.go | 13 +++++++++++++ .../2023-07-01/scopemaps/method_list.go | 13 +++++++++++++ .../2023-07-01/tokens/method_list.go | 13 +++++++++++++ .../2023-07-01/webhooks/method_list.go | 13 +++++++++++++ .../2023-07-01/webhooks/method_listevents.go | 13 +++++++++++++ .../2019-08-01/agentpools/method_list.go | 13 +++++++++++++ .../containerservices/method_listorchestrators.go | 2 +- .../2019-08-01/managedclusters/method_list.go | 13 +++++++++++++ .../managedclusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../agentpools/method_delete.go | 2 +- .../2023-03-02-preview/agentpools/method_list.go | 13 +++++++++++++ .../method_listbymanagedcluster.go | 13 +++++++++++++ .../managedclusters/method_delete.go | 2 +- .../managedclusters/method_getosoptions.go | 2 +- .../managedclusters/method_list.go | 13 +++++++++++++ .../managedclusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listclusteradmincredentials.go | 2 +- ...method_listclustermonitoringusercredentials.go | 2 +- .../method_listclusterusercredentials.go | 2 +- ...od_listoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../managedclustersnapshots/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-03-02-preview/snapshots/method_list.go | 13 +++++++++++++ .../snapshots/method_listbyresourcegroup.go | 13 +++++++++++++ .../trustedaccess/method_rolebindingslist.go | 13 +++++++++++++ .../trustedaccess/method_roleslist.go | 13 +++++++++++++ .../agentpools/method_delete.go | 2 +- .../2023-06-02-preview/agentpools/method_list.go | 13 +++++++++++++ .../method_listbymanagedcluster.go | 13 +++++++++++++ .../managedclusters/method_delete.go | 2 +- .../managedclusters/method_getosoptions.go | 2 +- .../managedclusters/method_list.go | 13 +++++++++++++ .../managedclusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listclusteradmincredentials.go | 2 +- ...method_listclustermonitoringusercredentials.go | 2 +- .../method_listclusterusercredentials.go | 2 +- .../method_listmeshrevisionprofiles.go | 13 +++++++++++++ .../method_listmeshupgradeprofiles.go | 13 +++++++++++++ ...od_listoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../managedclustersnapshots/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-06-02-preview/snapshots/method_list.go | 13 +++++++++++++ .../snapshots/method_listbyresourcegroup.go | 13 +++++++++++++ .../trustedaccess/method_rolebindingslist.go | 13 +++++++++++++ .../trustedaccess/method_roleslist.go | 13 +++++++++++++ .../agentpools/method_delete.go | 2 +- .../2023-09-02-preview/agentpools/method_list.go | 13 +++++++++++++ .../2023-09-02-preview/machines/method_list.go | 13 +++++++++++++ .../method_listbymanagedcluster.go | 13 +++++++++++++ .../managedclusters/method_delete.go | 2 +- .../managedclusters/method_getosoptions.go | 2 +- .../managedclusters/method_list.go | 13 +++++++++++++ .../managedclusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listclusteradmincredentials.go | 2 +- ...method_listclustermonitoringusercredentials.go | 2 +- .../method_listclusterusercredentials.go | 2 +- .../method_listguardrailsversions.go | 13 +++++++++++++ .../method_listmeshrevisionprofiles.go | 13 +++++++++++++ .../method_listmeshupgradeprofiles.go | 13 +++++++++++++ ...od_listoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../managedclustersnapshots/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-09-02-preview/snapshots/method_list.go | 13 +++++++++++++ .../snapshots/method_listbyresourcegroup.go | 13 +++++++++++++ .../trustedaccess/method_rolebindingslist.go | 13 +++++++++++++ .../trustedaccess/method_roleslist.go | 13 +++++++++++++ .../2023-10-01/agentpools/method_list.go | 13 +++++++++++++ .../method_listbymanagedcluster.go | 13 +++++++++++++ .../managedclusters/method_getosoptions.go | 2 +- .../2023-10-01/managedclusters/method_list.go | 13 +++++++++++++ .../managedclusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listclusteradmincredentials.go | 2 +- ...method_listclustermonitoringusercredentials.go | 2 +- .../method_listclusterusercredentials.go | 2 +- .../method_listmeshrevisionprofiles.go | 13 +++++++++++++ .../method_listmeshupgradeprofiles.go | 13 +++++++++++++ ...od_listoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../2023-10-01/snapshots/method_list.go | 13 +++++++++++++ .../snapshots/method_listbyresourcegroup.go | 13 +++++++++++++ .../trustedaccess/method_rolebindingslist.go | 13 +++++++++++++ .../2023-10-01/trustedaccess/method_roleslist.go | 13 +++++++++++++ .../2023-10-15/fleetmembers/method_create.go | 2 +- .../2023-10-15/fleetmembers/method_delete.go | 2 +- .../2023-10-15/fleetmembers/method_listbyfleet.go | 13 +++++++++++++ .../2023-10-15/fleetmembers/method_update.go | 2 +- .../2023-10-15/fleets/method_createorupdate.go | 2 +- .../2023-10-15/fleets/method_delete.go | 2 +- .../fleets/method_listbyresourcegroup.go | 13 +++++++++++++ .../fleets/method_listbysubscription.go | 13 +++++++++++++ .../2023-10-15/fleets/method_update.go | 2 +- .../method_createorupdate.go | 2 +- .../fleetupdatestrategies/method_delete.go | 2 +- .../fleetupdatestrategies/method_listbyfleet.go | 13 +++++++++++++ .../updateruns/method_createorupdate.go | 2 +- .../2023-10-15/updateruns/method_delete.go | 2 +- .../2023-10-15/updateruns/method_listbyfleet.go | 13 +++++++++++++ .../2023-10-15/updateruns/method_start.go | 2 +- .../2023-10-15/updateruns/method_stop.go | 2 +- .../2024-01-01/agentpools/method_list.go | 13 +++++++++++++ .../method_listbymanagedcluster.go | 13 +++++++++++++ .../managedclusters/method_getosoptions.go | 2 +- .../2024-01-01/managedclusters/method_list.go | 13 +++++++++++++ .../managedclusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listclusteradmincredentials.go | 2 +- ...method_listclustermonitoringusercredentials.go | 2 +- .../method_listclusterusercredentials.go | 2 +- .../method_listmeshrevisionprofiles.go | 13 +++++++++++++ .../method_listmeshupgradeprofiles.go | 13 +++++++++++++ ...od_listoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../2024-01-01/snapshots/method_list.go | 13 +++++++++++++ .../snapshots/method_listbyresourcegroup.go | 13 +++++++++++++ .../trustedaccess/method_rolebindingslist.go | 13 +++++++++++++ .../2024-01-01/trustedaccess/method_roleslist.go | 13 +++++++++++++ .../2024-02-01/agentpools/method_list.go | 13 +++++++++++++ .../method_listbymanagedcluster.go | 13 +++++++++++++ .../managedclusters/method_getosoptions.go | 2 +- .../2024-02-01/managedclusters/method_list.go | 13 +++++++++++++ .../managedclusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listclusteradmincredentials.go | 2 +- ...method_listclustermonitoringusercredentials.go | 2 +- .../method_listclusterusercredentials.go | 2 +- .../method_listmeshrevisionprofiles.go | 13 +++++++++++++ .../method_listmeshupgradeprofiles.go | 13 +++++++++++++ ...od_listoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../2024-02-01/snapshots/method_list.go | 13 +++++++++++++ .../snapshots/method_listbyresourcegroup.go | 13 +++++++++++++ .../trustedaccess/method_rolebindingslist.go | 13 +++++++++++++ .../2024-02-01/trustedaccess/method_roleslist.go | 13 +++++++++++++ .../cosmosdb/method_collectionlistmetrics.go | 2 +- .../cosmosdb/method_collectionlistusages.go | 2 +- .../method_collectionpartitionlistmetrics.go | 2 +- .../method_collectionpartitionlistusages.go | 2 +- ...method_collectionpartitionregionlistmetrics.go | 2 +- .../method_collectionregionlistmetrics.go | 2 +- .../method_databaseaccountregionlistmetrics.go | 2 +- .../method_databaseaccountslistmetrics.go | 2 +- .../cosmosdb/method_databaseaccountslistusages.go | 2 +- .../cosmosdb/method_databaselistmetrics.go | 2 +- .../cosmosdb/method_databaselistusages.go | 2 +- .../method_partitionkeyrangeidlistmetrics.go | 2 +- ...method_partitionkeyrangeidregionlistmetrics.go | 2 +- .../cosmosdb/method_percentilelistmetrics.go | 2 +- .../method_percentilesourcetargetlistmetrics.go | 2 +- .../method_percentiletargetlistmetrics.go | 2 +- .../method_restorablemongodbcollectionslist.go | 2 +- .../method_restorablemongodbresourceslist.go | 2 +- .../method_restorablesqlcontainerslist.go | 2 +- .../method_restorablesqlresourceslist.go | 2 +- .../cosmosdb/method_collectionlistmetrics.go | 2 +- .../cosmosdb/method_collectionlistusages.go | 2 +- .../method_collectionpartitionlistmetrics.go | 2 +- .../method_collectionpartitionlistusages.go | 2 +- ...method_collectionpartitionregionlistmetrics.go | 2 +- .../method_collectionregionlistmetrics.go | 2 +- .../method_databaseaccountregionlistmetrics.go | 2 +- .../method_databaseaccountslistmetrics.go | 2 +- .../cosmosdb/method_databaseaccountslistusages.go | 2 +- .../cosmosdb/method_databaselistmetrics.go | 2 +- .../cosmosdb/method_databaselistusages.go | 2 +- .../method_partitionkeyrangeidlistmetrics.go | 2 +- ...method_partitionkeyrangeidregionlistmetrics.go | 2 +- .../cosmosdb/method_percentilelistmetrics.go | 2 +- .../method_percentilesourcetargetlistmetrics.go | 2 +- .../method_percentiletargetlistmetrics.go | 2 +- .../method_restorablegremlingraphslist.go | 2 +- .../method_restorablegremlinresourceslist.go | 2 +- .../method_restorablemongodbcollectionslist.go | 2 +- .../method_restorablemongodbresourceslist.go | 2 +- .../method_restorablesqlcontainerslist.go | 2 +- .../method_restorablesqlresourceslist.go | 2 +- .../method_restorabletableresourceslist.go | 2 +- .../restorables/method_restorabletableslist.go | 2 +- .../cosmosdb/method_collectionlistmetrics.go | 2 +- .../cosmosdb/method_collectionlistusages.go | 2 +- .../method_collectionpartitionlistmetrics.go | 2 +- .../method_collectionpartitionlistusages.go | 2 +- ...method_collectionpartitionregionlistmetrics.go | 2 +- .../method_collectionregionlistmetrics.go | 2 +- .../method_databaseaccountregionlistmetrics.go | 2 +- .../method_databaseaccountslistmetrics.go | 2 +- .../cosmosdb/method_databaseaccountslistusages.go | 2 +- .../cosmosdb/method_databaselistmetrics.go | 2 +- .../cosmosdb/method_databaselistusages.go | 2 +- .../method_partitionkeyrangeidlistmetrics.go | 2 +- ...method_partitionkeyrangeidregionlistmetrics.go | 2 +- .../cosmosdb/method_percentilelistmetrics.go | 2 +- .../method_percentilesourcetargetlistmetrics.go | 2 +- .../method_percentiletargetlistmetrics.go | 2 +- .../method_restorablegremlingraphslist.go | 2 +- .../method_restorablegremlinresourceslist.go | 2 +- .../method_restorablemongodbcollectionslist.go | 2 +- .../method_restorablemongodbresourceslist.go | 2 +- .../method_restorablesqlcontainerslist.go | 2 +- .../method_restorablesqlresourceslist.go | 2 +- .../method_restorabletableresourceslist.go | 2 +- .../restorables/method_restorabletableslist.go | 2 +- .../cosmosdb/method_collectionlistmetrics.go | 2 +- .../cosmosdb/method_collectionlistusages.go | 2 +- .../method_collectionpartitionlistmetrics.go | 2 +- .../method_collectionpartitionlistusages.go | 2 +- ...method_collectionpartitionregionlistmetrics.go | 2 +- .../method_collectionregionlistmetrics.go | 2 +- .../method_databaseaccountregionlistmetrics.go | 2 +- .../method_databaseaccountslistmetrics.go | 2 +- .../cosmosdb/method_databaseaccountslistusages.go | 2 +- .../cosmosdb/method_databaselistmetrics.go | 2 +- .../cosmosdb/method_databaselistusages.go | 2 +- .../method_partitionkeyrangeidlistmetrics.go | 2 +- ...method_partitionkeyrangeidregionlistmetrics.go | 2 +- .../cosmosdb/method_percentilelistmetrics.go | 2 +- .../method_percentilesourcetargetlistmetrics.go | 2 +- .../method_percentiletargetlistmetrics.go | 2 +- .../method_restorablegremlingraphslist.go | 2 +- .../method_restorablegremlinresourceslist.go | 2 +- .../method_restorablemongodbcollectionslist.go | 2 +- .../method_restorablemongodbresourceslist.go | 2 +- .../method_restorablesqlcontainerslist.go | 2 +- .../method_restorablesqlresourceslist.go | 2 +- .../method_restorabletableresourceslist.go | 2 +- .../restorables/method_restorabletableslist.go | 2 +- .../cosmosdb/method_collectionlistmetrics.go | 2 +- .../cosmosdb/method_collectionlistusages.go | 2 +- .../method_collectionpartitionlistmetrics.go | 2 +- .../method_collectionpartitionlistusages.go | 2 +- ...method_collectionpartitionregionlistmetrics.go | 2 +- .../method_collectionregionlistmetrics.go | 2 +- .../method_databaseaccountregionlistmetrics.go | 2 +- .../method_databaseaccountslistmetrics.go | 2 +- .../cosmosdb/method_databaseaccountslistusages.go | 2 +- .../cosmosdb/method_databaselistmetrics.go | 2 +- .../cosmosdb/method_databaselistusages.go | 2 +- .../method_partitionkeyrangeidlistmetrics.go | 2 +- ...method_partitionkeyrangeidregionlistmetrics.go | 2 +- .../cosmosdb/method_percentilelistmetrics.go | 2 +- .../method_percentilesourcetargetlistmetrics.go | 2 +- .../method_percentiletargetlistmetrics.go | 2 +- .../method_restorablegremlingraphslist.go | 2 +- .../method_restorablegremlinresourceslist.go | 2 +- .../method_restorablemongodbcollectionslist.go | 2 +- .../method_restorablemongodbresourceslist.go | 2 +- .../method_restorablesqlcontainerslist.go | 2 +- .../method_restorablesqlresourceslist.go | 2 +- .../method_restorabletableresourceslist.go | 2 +- .../restorables/method_restorabletableslist.go | 2 +- .../cosmosdb/method_collectionlistmetrics.go | 2 +- .../cosmosdb/method_collectionlistusages.go | 2 +- .../method_collectionpartitionlistmetrics.go | 2 +- .../method_collectionpartitionlistusages.go | 2 +- ...method_collectionpartitionregionlistmetrics.go | 2 +- .../method_collectionregionlistmetrics.go | 2 +- .../method_databaseaccountregionlistmetrics.go | 2 +- .../method_databaseaccountslistmetrics.go | 2 +- .../cosmosdb/method_databaseaccountslistusages.go | 2 +- .../cosmosdb/method_databaselistmetrics.go | 2 +- .../cosmosdb/method_databaselistusages.go | 2 +- .../method_partitionkeyrangeidlistmetrics.go | 2 +- ...method_partitionkeyrangeidregionlistmetrics.go | 2 +- .../cosmosdb/method_percentilelistmetrics.go | 2 +- .../method_percentilesourcetargetlistmetrics.go | 2 +- .../method_percentiletargetlistmetrics.go | 2 +- .../method_restorablegremlingraphslist.go | 2 +- .../method_restorablegremlinresourceslist.go | 2 +- .../method_restorablemongodbcollectionslist.go | 2 +- .../method_restorablemongodbresourceslist.go | 2 +- .../method_restorablesqlcontainerslist.go | 2 +- .../method_restorablesqlresourceslist.go | 2 +- .../method_restorabletableresourceslist.go | 2 +- .../restorables/method_restorabletableslist.go | 2 +- .../2021-10-01/alerts/method_list.go | 13 +++++++++++++ .../2021-10-01/alerts/method_listexternal.go | 13 +++++++++++++ .../method_byexternalcloudprovidertype.go | 2 +- .../2021-10-01/dimensions/method_list.go | 2 +- .../2021-10-01/exports/method_get.go | 2 +- .../2021-10-01/exports/method_list.go | 2 +- .../forecast/method_externalcloudproviderusage.go | 2 +- .../2021-10-01/forecast/method_usage.go | 2 +- ...ereservationdetailsreportbybillingaccountid.go | 2 +- ...ereservationdetailsreportbybillingprofileid.go | 2 +- .../2021-10-01/views/method_list.go | 13 +++++++++++++ .../2021-10-01/views/method_listbyscope.go | 13 +++++++++++++ .../scheduledactions/method_list.go | 15 ++++++++++++++- .../scheduledactions/method_listbyscope.go | 15 ++++++++++++++- .../2022-10-01/alerts/method_list.go | 13 +++++++++++++ .../2022-10-01/alerts/method_listexternal.go | 13 +++++++++++++ .../benefitrecommendations/method_list.go | 15 ++++++++++++++- .../method_listbybillingaccountid.go | 15 ++++++++++++++- .../method_listbybillingprofileid.go | 15 ++++++++++++++- .../method_listbysavingsplanid.go | 15 ++++++++++++++- .../method_listbysavingsplanorder.go | 15 ++++++++++++++- .../method_byexternalcloudprovidertype.go | 2 +- .../2022-10-01/dimensions/method_list.go | 2 +- .../2022-10-01/exports/method_get.go | 2 +- .../2022-10-01/exports/method_list.go | 2 +- .../forecast/method_externalcloudproviderusage.go | 2 +- .../2022-10-01/forecast/method_usage.go | 2 +- ...ereservationdetailsreportbybillingaccountid.go | 2 +- ...ereservationdetailsreportbybillingprofileid.go | 2 +- .../scheduledactions/method_createorupdate.go | 2 +- .../method_createorupdatebyscope.go | 2 +- .../2022-10-01/scheduledactions/method_list.go | 15 ++++++++++++++- .../scheduledactions/method_listbyscope.go | 15 ++++++++++++++- .../2022-10-01/views/method_list.go | 13 +++++++++++++ .../2022-10-01/views/method_listbyscope.go | 13 +++++++++++++ .../2023-03-01/alerts/method_list.go | 13 +++++++++++++ .../2023-03-01/alerts/method_listexternal.go | 13 +++++++++++++ .../benefitrecommendations/method_list.go | 15 ++++++++++++++- .../method_listbybillingaccountid.go | 15 ++++++++++++++- .../method_listbybillingprofileid.go | 15 ++++++++++++++- .../method_listbysavingsplanid.go | 15 ++++++++++++++- .../method_listbysavingsplanorder.go | 15 ++++++++++++++- .../method_byexternalcloudprovidertype.go | 2 +- .../2023-03-01/dimensions/method_list.go | 2 +- .../2023-03-01/exports/method_get.go | 2 +- .../2023-03-01/exports/method_list.go | 2 +- .../forecast/method_externalcloudproviderusage.go | 2 +- .../2023-03-01/forecast/method_usage.go | 2 +- ...ereservationdetailsreportbybillingaccountid.go | 2 +- ...ereservationdetailsreportbybillingprofileid.go | 2 +- .../scheduledactions/method_createorupdate.go | 2 +- .../method_createorupdatebyscope.go | 2 +- .../2023-03-01/scheduledactions/method_list.go | 15 ++++++++++++++- .../scheduledactions/method_listbyscope.go | 15 ++++++++++++++- .../2023-03-01/views/method_list.go | 13 +++++++++++++ .../2023-03-01/views/method_listbyscope.go | 13 +++++++++++++ .../2023-07-01-preview/alerts/method_list.go | 13 +++++++++++++ .../alerts/method_listexternal.go | 13 +++++++++++++ .../benefitrecommendations/method_list.go | 15 ++++++++++++++- .../method_listbybillingaccountid.go | 15 ++++++++++++++- .../method_listbybillingprofileid.go | 15 ++++++++++++++- .../method_listbysavingsplanid.go | 15 ++++++++++++++- .../method_listbysavingsplanorder.go | 15 ++++++++++++++- .../method_byexternalcloudprovidertype.go | 2 +- .../2023-07-01-preview/dimensions/method_list.go | 2 +- .../2023-07-01-preview/exports/method_get.go | 2 +- .../2023-07-01-preview/exports/method_list.go | 2 +- .../forecast/method_externalcloudproviderusage.go | 2 +- .../2023-07-01-preview/forecast/method_usage.go | 2 +- ...ereservationdetailsreportbybillingaccountid.go | 2 +- ...ereservationdetailsreportbybillingprofileid.go | 2 +- .../scheduledactions/method_createorupdate.go | 2 +- .../method_createorupdatebyscope.go | 2 +- .../scheduledactions/method_list.go | 15 ++++++++++++++- .../scheduledactions/method_listbyscope.go | 15 ++++++++++++++- .../2023-07-01-preview/views/method_list.go | 13 +++++++++++++ .../views/method_listbyscope.go | 13 +++++++++++++ .../2023-08-01/alerts/method_list.go | 13 +++++++++++++ .../2023-08-01/alerts/method_listexternal.go | 13 +++++++++++++ .../benefitrecommendations/method_list.go | 15 ++++++++++++++- .../method_listbybillingaccountid.go | 15 ++++++++++++++- .../method_listbybillingprofileid.go | 15 ++++++++++++++- .../method_listbysavingsplanid.go | 15 ++++++++++++++- .../method_listbysavingsplanorder.go | 15 ++++++++++++++- .../2023-08-01/budgets/method_list.go | 15 ++++++++++++++- .../2023-08-01/costallocationrules/method_list.go | 13 +++++++++++++ .../method_byexternalcloudprovidertype.go | 2 +- .../2023-08-01/dimensions/method_list.go | 2 +- .../2023-08-01/exports/method_get.go | 2 +- .../2023-08-01/exports/method_list.go | 2 +- .../forecast/method_externalcloudproviderusage.go | 2 +- .../2023-08-01/forecast/method_usage.go | 2 +- ...ereservationdetailsreportbybillingaccountid.go | 2 +- ...ereservationdetailsreportbybillingprofileid.go | 2 +- .../scheduledactions/method_createorupdate.go | 2 +- .../method_createorupdatebyscope.go | 2 +- .../2023-08-01/scheduledactions/method_list.go | 15 ++++++++++++++- .../scheduledactions/method_listbyscope.go | 15 ++++++++++++++- .../2023-08-01/views/method_list.go | 13 +++++++++++++ .../2023-08-01/views/method_listbyscope.go | 13 +++++++++++++ .../2023-11-01/alerts/method_list.go | 13 +++++++++++++ .../2023-11-01/alerts/method_listexternal.go | 13 +++++++++++++ .../benefitrecommendations/method_list.go | 15 ++++++++++++++- .../method_listbybillingaccountid.go | 15 ++++++++++++++- .../method_listbybillingprofileid.go | 15 ++++++++++++++- .../method_listbysavingsplanid.go | 15 ++++++++++++++- .../method_listbysavingsplanorder.go | 15 ++++++++++++++- .../2023-11-01/budgets/method_list.go | 15 ++++++++++++++- .../2023-11-01/costallocationrules/method_list.go | 13 +++++++++++++ .../method_byexternalcloudprovidertype.go | 2 +- .../2023-11-01/dimensions/method_list.go | 2 +- .../2023-11-01/exports/method_get.go | 2 +- .../2023-11-01/exports/method_list.go | 2 +- .../forecast/method_externalcloudproviderusage.go | 2 +- .../2023-11-01/forecast/method_usage.go | 2 +- ...ereservationdetailsreportbybillingaccountid.go | 2 +- ...ereservationdetailsreportbybillingprofileid.go | 2 +- .../scheduledactions/method_createorupdate.go | 2 +- .../method_createorupdatebyscope.go | 2 +- .../2023-11-01/scheduledactions/method_list.go | 15 ++++++++++++++- .../scheduledactions/method_listbyscope.go | 15 ++++++++++++++- .../2023-11-01/views/method_list.go | 13 +++++++++++++ .../2023-11-01/views/method_listbyscope.go | 13 +++++++++++++ .../associations/method_listall.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../grafanaresource/method_grafanalist.go | 13 +++++++++++++ .../method_grafanalistbyresourcegroup.go | 13 +++++++++++++ .../privateendpointconnection/method_list.go | 13 +++++++++++++ .../2022-08-01/privatelinkresource/method_list.go | 13 +++++++++++++ .../method_grafanafetchavailableplugins.go | 13 +++++++++++++ .../grafanaresource/method_grafanalist.go | 13 +++++++++++++ .../method_grafanalistbyresourcegroup.go | 13 +++++++++++++ .../managedprivateendpoints/method_list.go | 13 +++++++++++++ .../privateendpointconnection/method_list.go | 13 +++++++++++++ .../2023-09-01/privatelinkresource/method_list.go | 13 +++++++++++++ .../2022-03-01/addons/method_listbyrole.go | 13 +++++++++++++ .../alerts/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../2022-03-01/availableskus/method_list.go | 13 +++++++++++++ .../method_listbydataboxedgedevice.go | 13 +++++++++++++ .../containers/method_listbystorageaccount.go | 13 +++++++++++++ .../method_checkresourcecreationfeasibility.go | 2 +- .../devices/method_listbyresourcegroup.go | 15 ++++++++++++++- .../devices/method_listbysubscription.go | 15 ++++++++++++++- .../2022-03-01/monitoringconfig/method_list.go | 13 +++++++++++++ .../nodes/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../orders/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../roles/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../shares/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../method_listbydataboxedgedevice.go | 13 +++++++++++++ .../method_listbydataboxedgedevice.go | 13 +++++++++++++ .../triggers/method_listbydataboxedgedevice.go | 15 ++++++++++++++- .../users/method_listbydataboxedgedevice.go | 15 ++++++++++++++- .../2023-07-01/addons/method_listbyrole.go | 13 +++++++++++++ .../alerts/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../2023-07-01/availableskus/method_list.go | 13 +++++++++++++ .../method_listbydataboxedgedevice.go | 13 +++++++++++++ .../containers/method_listbystorageaccount.go | 13 +++++++++++++ .../method_checkresourcecreationfeasibility.go | 2 +- .../devices/method_listbyresourcegroup.go | 15 ++++++++++++++- .../devices/method_listbysubscription.go | 15 ++++++++++++++- .../2023-07-01/monitoringconfig/method_list.go | 13 +++++++++++++ .../nodes/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../orders/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../roles/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../shares/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../method_listbydataboxedgedevice.go | 13 +++++++++++++ .../method_listbydataboxedgedevice.go | 13 +++++++++++++ .../triggers/method_listbydataboxedgedevice.go | 15 ++++++++++++++- .../users/method_listbydataboxedgedevice.go | 15 ++++++++++++++- .../2023-12-01/addons/method_listbyrole.go | 13 +++++++++++++ .../alerts/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../2023-12-01/availableskus/method_list.go | 13 +++++++++++++ .../method_listbydataboxedgedevice.go | 13 +++++++++++++ .../containers/method_listbystorageaccount.go | 13 +++++++++++++ .../method_checkresourcecreationfeasibility.go | 2 +- .../devices/method_listbyresourcegroup.go | 15 ++++++++++++++- .../devices/method_listbysubscription.go | 15 ++++++++++++++- .../2023-12-01/monitoringconfig/method_list.go | 13 +++++++++++++ .../nodes/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../orders/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../roles/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../shares/method_listbydataboxedgedevice.go | 13 +++++++++++++ .../method_listbydataboxedgedevice.go | 13 +++++++++++++ .../method_listbydataboxedgedevice.go | 13 +++++++++++++ .../triggers/method_listbydataboxedgedevice.go | 15 ++++++++++++++- .../users/method_listbydataboxedgedevice.go | 15 ++++++++++++++- .../accessconnector/method_listbyresourcegroup.go | 13 +++++++++++++ .../accessconnector/method_listbysubscription.go | 13 +++++++++++++ .../privateendpointconnections/method_list.go | 13 +++++++++++++ .../privatelinkresources/method_list.go | 13 +++++++++++++ .../vnetpeering/method_listbyworkspace.go | 13 +++++++++++++ .../workspaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../workspaces/method_listbysubscription.go | 13 +++++++++++++ .../accessconnector/method_listbyresourcegroup.go | 13 +++++++++++++ .../accessconnector/method_listbysubscription.go | 13 +++++++++++++ .../privateendpointconnections/method_list.go | 13 +++++++++++++ .../privatelinkresources/method_list.go | 13 +++++++++++++ .../vnetpeering/method_listbyworkspace.go | 13 +++++++++++++ .../workspaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../workspaces/method_listbysubscription.go | 13 +++++++++++++ .../accessconnector/method_listbyresourcegroup.go | 13 +++++++++++++ .../accessconnector/method_listbysubscription.go | 13 +++++++++++++ .../accessconnector/method_listbyresourcegroup.go | 13 +++++++++++++ .../accessconnector/method_listbysubscription.go | 13 +++++++++++++ .../privateendpointconnections/method_list.go | 13 +++++++++++++ .../privatelinkresources/method_list.go | 13 +++++++++++++ .../vnetpeering/method_listbyworkspace.go | 13 +++++++++++++ .../2024-05-01/workspaces/method_delete.go | 2 +- .../workspaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../workspaces/method_listbysubscription.go | 13 +++++++++++++ .../method_marketplaceagreementslist.go | 13 +++++++++++++ .../apikey/method_monitorslistapikeys.go | 13 +++++++++++++ .../2021-03-01/hosts/method_monitorslisthosts.go | 13 +++++++++++++ .../method_monitorslistlinkedresources.go | 13 +++++++++++++ .../method_monitorslistmonitoredresources.go | 13 +++++++++++++ .../monitorsresource/method_monitorslist.go | 13 +++++++++++++ .../method_monitorslistbyresourcegroup.go | 13 +++++++++++++ .../2021-03-01/rules/method_tagruleslist.go | 13 +++++++++++++ .../singlesignon/method_configurationslist.go | 13 +++++++++++++ .../method_marketplaceagreementslist.go | 13 +++++++++++++ .../apikey/method_monitorslistapikeys.go | 13 +++++++++++++ .../2022-06-01/hosts/method_monitorslisthosts.go | 13 +++++++++++++ .../method_monitorslistlinkedresources.go | 13 +++++++++++++ .../method_monitorslistmonitoredresources.go | 13 +++++++++++++ .../monitorsresource/method_monitorslist.go | 13 +++++++++++++ .../method_monitorslistbyresourcegroup.go | 13 +++++++++++++ .../2022-06-01/rules/method_tagruleslist.go | 13 +++++++++++++ .../singlesignon/method_configurationslist.go | 13 +++++++++++++ .../method_marketplaceagreementslist.go | 13 +++++++++++++ .../apikey/method_monitorslistapikeys.go | 13 +++++++++++++ .../createresource/method_creationsupportedget.go | 2 +- .../method_creationsupportedlist.go | 2 +- .../2023-01-01/hosts/method_monitorslisthosts.go | 13 +++++++++++++ .../method_monitorslistlinkedresources.go | 13 +++++++++++++ .../method_monitorslistmonitoredresources.go | 13 +++++++++++++ .../monitorsresource/method_monitorslist.go | 13 +++++++++++++ .../method_monitorslistbyresourcegroup.go | 13 +++++++++++++ .../2023-01-01/rules/method_tagruleslist.go | 13 +++++++++++++ .../singlesignon/method_configurationslist.go | 13 +++++++++++++ .../changedatacapture/method_createorupdate.go | 2 +- .../2018-06-01/changedatacapture/method_get.go | 2 +- .../changedatacapture/method_listbyfactory.go | 13 +++++++++++++ .../method_credentialoperationscreateorupdate.go | 2 +- .../credentials/method_credentialoperationsget.go | 2 +- .../method_credentialoperationslistbyfactory.go | 13 +++++++++++++ .../dataflowdebugsession/method_querybyfactory.go | 13 +++++++++++++ .../2018-06-01/dataflows/method_createorupdate.go | 2 +- .../2018-06-01/dataflows/method_get.go | 2 +- .../2018-06-01/dataflows/method_listbyfactory.go | 13 +++++++++++++ .../2018-06-01/datasets/method_createorupdate.go | 2 +- .../datafactory/2018-06-01/datasets/method_get.go | 2 +- .../2018-06-01/datasets/method_listbyfactory.go | 13 +++++++++++++ .../2018-06-01/factories/method_createorupdate.go | 2 +- .../2018-06-01/factories/method_get.go | 2 +- .../2018-06-01/factories/method_list.go | 13 +++++++++++++ .../factories/method_listbyresourcegroup.go | 13 +++++++++++++ .../globalparameters/method_listbyfactory.go | 13 +++++++++++++ .../method_get.go | 13 +++++++++++++ .../integrationruntimes/method_createorupdate.go | 2 +- .../2018-06-01/integrationruntimes/method_get.go | 2 +- .../integrationruntimes/method_listbyfactory.go | 13 +++++++++++++ .../linkedservices/method_createorupdate.go | 2 +- .../2018-06-01/linkedservices/method_get.go | 2 +- .../linkedservices/method_listbyfactory.go | 13 +++++++++++++ .../method_createorupdate.go | 2 +- .../managedprivateendpoints/method_get.go | 2 +- .../method_listbyfactory.go | 13 +++++++++++++ .../method_createorupdate.go | 2 +- .../managedvirtualnetworks/method_get.go | 2 +- .../method_listbyfactory.go | 13 +++++++++++++ .../2018-06-01/pipelineruns/method_cancel.go | 2 +- .../2018-06-01/pipelines/method_createorupdate.go | 2 +- .../2018-06-01/pipelines/method_createrun.go | 2 +- .../2018-06-01/pipelines/method_get.go | 2 +- .../2018-06-01/pipelines/method_listbyfactory.go | 13 +++++++++++++ .../method_listbyfactory.go | 13 +++++++++++++ ...hod_privateendpointconnectioncreateorupdate.go | 2 +- .../method_privateendpointconnectionget.go | 2 +- .../datafactory/2018-06-01/trigger/method_get.go | 2 +- .../2018-06-01/triggers/method_createorupdate.go | 2 +- .../2018-06-01/triggers/method_listbyfactory.go | 13 +++++++++++++ .../2016-11-01/accounts/method_list.go | 15 ++++++++++++++- .../accounts/method_listbyresourcegroup.go | 15 ++++++++++++++- .../computepolicies/method_listbyaccount.go | 13 +++++++++++++ .../datalakestoreaccounts/method_listbyaccount.go | 15 ++++++++++++++- .../firewallrules/method_listbyaccount.go | 13 +++++++++++++ .../storageaccounts/method_listbyaccount.go | 15 ++++++++++++++- .../storageaccounts/method_listsastokens.go | 13 +++++++++++++ .../method_liststoragecontainers.go | 13 +++++++++++++ .../2016-11-01/accounts/method_list.go | 15 ++++++++++++++- .../accounts/method_listbyresourcegroup.go | 15 ++++++++++++++- .../firewallrules/method_listbyaccount.go | 13 +++++++++++++ .../trustedidproviders/method_listbyaccount.go | 13 +++++++++++++ .../virtualnetworkrules/method_listbyaccount.go | 13 +++++++++++++ .../2018-04-19/delete/method_projectsdelete.go | 2 +- .../2018-04-19/delete/method_servicesdelete.go | 2 +- .../2018-04-19/delete/method_tasksdelete.go | 2 +- .../get/method_projectslistbyresourcegroup.go | 13 +++++++++++++ .../2018-04-19/get/method_resourceskuslistskus.go | 13 +++++++++++++ .../2018-04-19/get/method_serviceslist.go | 13 +++++++++++++ .../get/method_serviceslistbyresourcegroup.go | 13 +++++++++++++ .../2018-04-19/get/method_serviceslistskus.go | 13 +++++++++++++ .../2018-04-19/get/method_tasksget.go | 2 +- .../2018-04-19/get/method_taskslist.go | 15 ++++++++++++++- .../2018-04-19/get/method_usageslist.go | 13 +++++++++++++ .../projectresource/method_projectsdelete.go | 2 +- .../method_projectslistbyresourcegroup.go | 13 +++++++++++++ .../serviceresource/method_servicesdelete.go | 2 +- .../serviceresource/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbyresourcegroup.go | 13 +++++++++++++ .../serviceresource/method_serviceslistskus.go | 13 +++++++++++++ .../serviceresource/method_taskslist.go | 15 ++++++++++++++- .../standardoperation/method_projectsdelete.go | 2 +- .../method_projectslistbyresourcegroup.go | 13 +++++++++++++ .../method_resourceskuslistskus.go | 13 +++++++++++++ .../standardoperation/method_servicesdelete.go | 2 +- .../standardoperation/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbyresourcegroup.go | 13 +++++++++++++ .../standardoperation/method_serviceslistskus.go | 13 +++++++++++++ .../standardoperation/method_tasksdelete.go | 2 +- .../standardoperation/method_tasksget.go | 2 +- .../standardoperation/method_taskslist.go | 15 ++++++++++++++- .../standardoperation/method_usageslist.go | 13 +++++++++++++ .../2018-04-19/taskresource/method_tasksdelete.go | 2 +- .../2018-04-19/taskresource/method_tasksget.go | 2 +- .../2021-06-30/delete/method_projectsdelete.go | 2 +- .../2021-06-30/delete/method_servicesdelete.go | 2 +- .../delete/method_servicetasksdelete.go | 2 +- .../2021-06-30/delete/method_tasksdelete.go | 2 +- .../2021-06-30/fileresource/method_fileslist.go | 13 +++++++++++++ .../2021-06-30/get/method_fileslist.go | 13 +++++++++++++ .../2021-06-30/get/method_projectslist.go | 13 +++++++++++++ .../2021-06-30/get/method_resourceskuslistskus.go | 13 +++++++++++++ .../2021-06-30/get/method_serviceslist.go | 13 +++++++++++++ .../get/method_serviceslistbyresourcegroup.go | 13 +++++++++++++ .../2021-06-30/get/method_serviceslistskus.go | 13 +++++++++++++ .../2021-06-30/get/method_servicetasksget.go | 2 +- .../2021-06-30/get/method_servicetaskslist.go | 15 ++++++++++++++- .../2021-06-30/get/method_tasksget.go | 2 +- .../2021-06-30/get/method_taskslist.go | 15 ++++++++++++++- .../2021-06-30/get/method_usageslist.go | 13 +++++++++++++ .../projectresource/method_projectsdelete.go | 2 +- .../projectresource/method_projectslist.go | 13 +++++++++++++ .../serviceresource/method_servicesdelete.go | 2 +- .../serviceresource/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbyresourcegroup.go | 13 +++++++++++++ .../serviceresource/method_serviceslistskus.go | 13 +++++++++++++ .../serviceresource/method_servicetaskslist.go | 15 ++++++++++++++- .../serviceresource/method_taskslist.go | 15 ++++++++++++++- .../method_servicetasksdelete.go | 2 +- .../servicetaskresource/method_servicetasksget.go | 2 +- .../standardoperation/method_fileslist.go | 13 +++++++++++++ .../standardoperation/method_projectsdelete.go | 2 +- .../standardoperation/method_projectslist.go | 13 +++++++++++++ .../method_resourceskuslistskus.go | 13 +++++++++++++ .../standardoperation/method_servicesdelete.go | 2 +- .../standardoperation/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbyresourcegroup.go | 13 +++++++++++++ .../standardoperation/method_serviceslistskus.go | 13 +++++++++++++ .../method_servicetasksdelete.go | 2 +- .../standardoperation/method_servicetasksget.go | 2 +- .../standardoperation/method_servicetaskslist.go | 15 ++++++++++++++- .../standardoperation/method_tasksdelete.go | 2 +- .../standardoperation/method_tasksget.go | 2 +- .../standardoperation/method_taskslist.go | 15 ++++++++++++++- .../standardoperation/method_usageslist.go | 13 +++++++++++++ .../2021-06-30/taskresource/method_tasksdelete.go | 2 +- .../2021-06-30/taskresource/method_tasksget.go | 2 +- .../2023-05-01/azurebackupjobs/method_jobslist.go | 13 +++++++++++++ .../2023-05-01/backupinstances/method_list.go | 13 +++++++++++++ .../2023-05-01/backuppolicies/method_list.go | 13 +++++++++++++ .../backupvaults/method_getinresourcegroup.go | 13 +++++++++++++ .../backupvaults/method_getinsubscription.go | 13 +++++++++++++ .../deletedbackupinstances/method_list.go | 13 +++++++++++++ .../method_dppresourceguardproxylist.go | 13 +++++++++++++ .../2023-05-01/recoverypoint/method_list.go | 15 ++++++++++++++- .../method_getbackupsecuritypinrequestsobjects.go | 13 +++++++++++++ ...ethod_getdeleteprotecteditemrequestsobjects.go | 13 +++++++++++++ ..._getdeleteresourceguardproxyrequestsobjects.go | 13 +++++++++++++ .../method_getdisablesoftdeleterequestsobjects.go | 13 +++++++++++++ .../method_getresourcesinresourcegroup.go | 13 +++++++++++++ .../method_getresourcesinsubscription.go | 13 +++++++++++++ ...ethod_getupdateprotecteditemrequestsobjects.go | 13 +++++++++++++ ...od_getupdateprotectionpolicyrequestsobjects.go | 13 +++++++++++++ .../2023-11-01/azurebackupjobs/method_jobslist.go | 13 +++++++++++++ .../2023-11-01/backupinstances/method_list.go | 13 +++++++++++++ .../2023-11-01/backuppolicies/method_list.go | 13 +++++++++++++ .../backupvaults/method_getinresourcegroup.go | 13 +++++++++++++ .../backupvaults/method_getinsubscription.go | 13 +++++++++++++ .../deletedbackupinstances/method_list.go | 13 +++++++++++++ .../method_fetchcrossregionrestorejobslist.go | 15 ++++++++++++++- .../method_dppresourceguardproxylist.go | 13 +++++++++++++ .../fetchsecondaryrecoverypoints/method_list.go | 15 ++++++++++++++- .../2023-11-01/recoverypoint/method_list.go | 15 ++++++++++++++- .../method_getbackupsecuritypinrequestsobjects.go | 13 +++++++++++++ ...ethod_getdeleteprotecteditemrequestsobjects.go | 13 +++++++++++++ ..._getdeleteresourceguardproxyrequestsobjects.go | 13 +++++++++++++ .../method_getdisablesoftdeleterequestsobjects.go | 13 +++++++++++++ .../method_getresourcesinresourcegroup.go | 13 +++++++++++++ .../method_getresourcesinsubscription.go | 13 +++++++++++++ ...ethod_getupdateprotecteditemrequestsobjects.go | 13 +++++++++++++ ...od_getupdateprotectionpolicyrequestsobjects.go | 13 +++++++++++++ .../2023-12-01/azurebackupjobs/method_jobslist.go | 13 +++++++++++++ .../2023-12-01/backupinstances/method_list.go | 13 +++++++++++++ .../2023-12-01/backuppolicies/method_list.go | 13 +++++++++++++ .../backupvaults/method_getinresourcegroup.go | 13 +++++++++++++ .../backupvaults/method_getinsubscription.go | 13 +++++++++++++ .../deletedbackupinstances/method_list.go | 13 +++++++++++++ .../method_fetchcrossregionrestorejobslist.go | 15 ++++++++++++++- .../method_dppresourceguardproxylist.go | 13 +++++++++++++ .../fetchsecondaryrecoverypoints/method_list.go | 15 ++++++++++++++- .../2023-12-01/recoverypoint/method_list.go | 15 ++++++++++++++- .../method_getbackupsecuritypinrequestsobjects.go | 13 +++++++++++++ ...ethod_getdeleteprotecteditemrequestsobjects.go | 13 +++++++++++++ ..._getdeleteresourceguardproxyrequestsobjects.go | 13 +++++++++++++ .../method_getdisablesoftdeleterequestsobjects.go | 13 +++++++++++++ .../method_getresourcesinresourcegroup.go | 13 +++++++++++++ .../method_getresourcesinsubscription.go | 13 +++++++++++++ ...ethod_getupdateprotecteditemrequestsobjects.go | 13 +++++++++++++ ...od_getupdateprotectionpolicyrequestsobjects.go | 13 +++++++++++++ .../2024-03-01/azurebackupjobs/method_jobslist.go | 13 +++++++++++++ .../2024-03-01/backupinstances/method_list.go | 13 +++++++++++++ .../2024-03-01/backuppolicies/method_list.go | 13 +++++++++++++ .../backupvaults/method_getinresourcegroup.go | 13 +++++++++++++ .../backupvaults/method_getinsubscription.go | 13 +++++++++++++ .../deletedbackupinstances/method_list.go | 13 +++++++++++++ .../method_fetchcrossregionrestorejobslist.go | 15 ++++++++++++++- .../method_dppresourceguardproxylist.go | 13 +++++++++++++ .../fetchsecondaryrecoverypoints/method_list.go | 15 ++++++++++++++- .../2024-03-01/recoverypoint/method_list.go | 15 ++++++++++++++- .../method_getbackupsecuritypinrequestsobjects.go | 13 +++++++++++++ ...ethod_getdeleteprotecteditemrequestsobjects.go | 13 +++++++++++++ ..._getdeleteresourceguardproxyrequestsobjects.go | 13 +++++++++++++ .../method_getdisablesoftdeleterequestsobjects.go | 13 +++++++++++++ .../method_getresourcesinresourcegroup.go | 13 +++++++++++++ .../method_getresourcesinsubscription.go | 13 +++++++++++++ ...ethod_getupdateprotecteditemrequestsobjects.go | 13 +++++++++++++ ...od_getupdateprotectionpolicyrequestsobjects.go | 13 +++++++++++++ .../2024-04-01/azurebackupjobs/method_jobslist.go | 13 +++++++++++++ .../backupinstances/method_createorupdate.go | 2 +- .../2024-04-01/backupinstances/method_delete.go | 2 +- .../2024-04-01/backupinstances/method_list.go | 13 +++++++++++++ .../backupinstances/method_stopprotection.go | 2 +- .../backupinstances/method_suspendbackups.go | 2 +- .../backupinstances/method_triggerrestore.go | 2 +- .../method_list.go | 13 +++++++++++++ .../2024-04-01/backuppolicies/method_list.go | 13 +++++++++++++ .../backupvaults/method_createorupdate.go | 2 +- .../backupvaults/method_getinresourcegroup.go | 13 +++++++++++++ .../backupvaults/method_getinsubscription.go | 13 +++++++++++++ .../2024-04-01/backupvaults/method_update.go | 2 +- .../deletedbackupinstances/method_list.go | 13 +++++++++++++ .../method_fetchcrossregionrestorejobslist.go | 15 ++++++++++++++- .../method_dppresourceguardproxylist.go | 13 +++++++++++++ .../method_dppresourceguardproxyunlockdelete.go | 2 +- .../fetchsecondaryrecoverypoints/method_list.go | 15 ++++++++++++++- .../2024-04-01/recoverypoint/method_list.go | 15 ++++++++++++++- .../method_getbackupsecuritypinrequestsobjects.go | 13 +++++++++++++ ...ethod_getdeleteprotecteditemrequestsobjects.go | 13 +++++++++++++ ..._getdeleteresourceguardproxyrequestsobjects.go | 13 +++++++++++++ .../method_getdisablesoftdeleterequestsobjects.go | 13 +++++++++++++ .../method_getresourcesinresourcegroup.go | 13 +++++++++++++ .../method_getresourcesinsubscription.go | 13 +++++++++++++ ...ethod_getupdateprotecteditemrequestsobjects.go | 13 +++++++++++++ ...od_getupdateprotectionpolicyrequestsobjects.go | 13 +++++++++++++ .../account/method_listbyresourcegroup.go | 13 +++++++++++++ .../account/method_listbysubscription.go | 13 +++++++++++++ .../consumerinvitation/method_listinvitations.go | 13 +++++++++++++ .../2019-11-01/dataset/method_listbyshare.go | 15 ++++++++++++++- .../method_listbysharesubscription.go | 15 ++++++++++++++- .../2019-11-01/invitation/method_listbyshare.go | 15 ++++++++++++++- .../2019-11-01/share/method_listbyaccount.go | 15 ++++++++++++++- .../share/method_listsynchronizationdetails.go | 15 ++++++++++++++- .../share/method_listsynchronizations.go | 15 ++++++++++++++- ...ethod_providersharesubscriptionslistbyshare.go | 13 +++++++++++++ ...nsumersourcedatasetslistbysharesubscription.go | 13 +++++++++++++ .../sharesubscription/method_listbyaccount.go | 15 ++++++++++++++- ...thod_listsourcesharesynchronizationsettings.go | 13 +++++++++++++ .../method_listsynchronizationdetails.go | 15 ++++++++++++++- .../method_listsynchronizations.go | 15 ++++++++++++++- .../synchronizationsetting/method_listbyshare.go | 13 +++++++++++++ .../trigger/method_listbysharesubscription.go | 13 +++++++++++++ .../account/method_listbyresourcegroup.go | 13 +++++++++++++ .../account/method_listbysubscription.go | 13 +++++++++++++ .../consumerinvitation/method_listinvitations.go | 13 +++++++++++++ .../2021-08-01/dataset/method_listbyshare.go | 15 ++++++++++++++- .../method_listbysharesubscription.go | 15 ++++++++++++++- .../2021-08-01/invitation/method_listbyshare.go | 15 ++++++++++++++- .../2021-08-01/share/method_listbyaccount.go | 15 ++++++++++++++- .../share/method_listsynchronizationdetails.go | 15 ++++++++++++++- .../share/method_listsynchronizations.go | 15 ++++++++++++++- ...ethod_providersharesubscriptionslistbyshare.go | 13 +++++++++++++ ...nsumersourcedatasetslistbysharesubscription.go | 13 +++++++++++++ .../sharesubscription/method_listbyaccount.go | 15 ++++++++++++++- ...thod_listsourcesharesynchronizationsettings.go | 13 +++++++++++++ .../method_listsynchronizationdetails.go | 15 ++++++++++++++- .../method_listsynchronizations.go | 15 ++++++++++++++- .../synchronizationsetting/method_listbyshare.go | 13 +++++++++++++ .../trigger/method_listbysharesubscription.go | 13 +++++++++++++ .../2021-09-03-preview/application/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../applicationgroup/method_listbysubscription.go | 15 ++++++++++++++- .../2021-09-03-preview/desktop/method_list.go | 13 +++++++++++++ .../2021-09-03-preview/hostpool/method_delete.go | 2 +- .../2021-09-03-preview/hostpool/method_list.go | 13 +++++++++++++ .../hostpool/method_listbyresourcegroup.go | 13 +++++++++++++ .../2021-09-03-preview/msiximage/method_expand.go | 13 +++++++++++++ .../2021-09-03-preview/msixpackage/method_list.go | 13 +++++++++++++ ...od_privateendpointconnectionslistbyhostpool.go | 13 +++++++++++++ ...d_privateendpointconnectionslistbyworkspace.go | 13 +++++++++++++ .../privatelink/method_resourceslistbyhostpool.go | 13 +++++++++++++ .../method_resourceslistbyworkspace.go | 13 +++++++++++++ .../scalingplan/method_listbyhostpool.go | 13 +++++++++++++ .../scalingplan/method_listbyresourcegroup.go | 13 +++++++++++++ .../scalingplan/method_listbysubscription.go | 13 +++++++++++++ .../sessionhost/method_delete.go | 2 +- .../2021-09-03-preview/sessionhost/method_list.go | 13 +++++++++++++ .../sessionhost/method_update.go | 2 +- .../startmenuitem/method_list.go | 13 +++++++++++++ .../usersession/method_delete.go | 2 +- .../2021-09-03-preview/usersession/method_list.go | 13 +++++++++++++ .../usersession/method_listbyhostpool.go | 15 ++++++++++++++- .../workspace/method_listbyresourcegroup.go | 13 +++++++++++++ .../workspace/method_listbysubscription.go | 13 +++++++++++++ .../2022-02-10-preview/application/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../applicationgroup/method_listbysubscription.go | 15 ++++++++++++++- .../2022-02-10-preview/desktop/method_list.go | 13 +++++++++++++ .../2022-02-10-preview/hostpool/method_delete.go | 2 +- .../2022-02-10-preview/hostpool/method_list.go | 13 +++++++++++++ .../hostpool/method_listbyresourcegroup.go | 13 +++++++++++++ .../2022-02-10-preview/msiximage/method_expand.go | 13 +++++++++++++ .../2022-02-10-preview/msixpackage/method_list.go | 13 +++++++++++++ ...od_privateendpointconnectionslistbyhostpool.go | 13 +++++++++++++ ...d_privateendpointconnectionslistbyworkspace.go | 13 +++++++++++++ .../privatelink/method_resourceslistbyhostpool.go | 13 +++++++++++++ .../method_resourceslistbyworkspace.go | 13 +++++++++++++ .../scalingplan/method_listbyhostpool.go | 13 +++++++++++++ .../scalingplan/method_listbyresourcegroup.go | 13 +++++++++++++ .../scalingplan/method_listbysubscription.go | 13 +++++++++++++ .../sessionhost/method_delete.go | 2 +- .../2022-02-10-preview/sessionhost/method_list.go | 13 +++++++++++++ .../sessionhost/method_update.go | 2 +- .../startmenuitem/method_list.go | 13 +++++++++++++ .../usersession/method_delete.go | 2 +- .../2022-02-10-preview/usersession/method_list.go | 13 +++++++++++++ .../usersession/method_listbyhostpool.go | 15 ++++++++++++++- .../workspace/method_listbyresourcegroup.go | 13 +++++++++++++ .../workspace/method_listbysubscription.go | 13 +++++++++++++ .../2022-09-09/application/method_list.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../applicationgroup/method_listbysubscription.go | 15 ++++++++++++++- .../2022-09-09/desktop/method_list.go | 15 ++++++++++++++- .../2022-09-09/hostpool/method_delete.go | 2 +- .../2022-09-09/hostpool/method_list.go | 15 ++++++++++++++- .../hostpool/method_listbyresourcegroup.go | 15 ++++++++++++++- .../2022-09-09/msiximage/method_expand.go | 13 +++++++++++++ .../2022-09-09/msixpackage/method_list.go | 15 ++++++++++++++- .../scalingplan/method_listbyhostpool.go | 15 ++++++++++++++- .../scalingplan/method_listbyresourcegroup.go | 15 ++++++++++++++- .../scalingplan/method_listbysubscription.go | 15 ++++++++++++++- .../scalingplanpooledschedule/method_list.go | 15 ++++++++++++++- .../2022-09-09/sessionhost/method_delete.go | 2 +- .../2022-09-09/sessionhost/method_list.go | 15 ++++++++++++++- .../2022-09-09/sessionhost/method_update.go | 2 +- .../2022-09-09/startmenuitem/method_list.go | 15 ++++++++++++++- .../2022-09-09/usersession/method_delete.go | 2 +- .../2022-09-09/usersession/method_list.go | 15 ++++++++++++++- .../usersession/method_listbyhostpool.go | 15 ++++++++++++++- .../workspace/method_listbyresourcegroup.go | 15 ++++++++++++++- .../workspace/method_listbysubscription.go | 13 +++++++++++++ .../method_attachednetworkslistbydevcenter.go | 15 ++++++++++++++- .../method_attachednetworkslistbyproject.go | 15 ++++++++++++++- .../2023-04-01/catalogs/method_listbydevcenter.go | 15 ++++++++++++++- .../devboxdefinitions/method_listbydevcenter.go | 13 +++++++++++++ .../devboxdefinitions/method_listbyproject.go | 13 +++++++++++++ .../devcenters/method_listbyresourcegroup.go | 15 ++++++++++++++- .../devcenters/method_listbysubscription.go | 15 ++++++++++++++- .../method_environmenttypeslistbydevcenter.go | 15 ++++++++++++++- .../method_projectallowedenvironmenttypeslist.go | 15 ++++++++++++++- .../method_projectenvironmenttypeslist.go | 15 ++++++++++++++- .../galleries/method_listbydevcenter.go | 15 ++++++++++++++- .../2023-04-01/images/method_listbydevcenter.go | 15 ++++++++++++++- .../2023-04-01/images/method_listbygallery.go | 15 ++++++++++++++- .../imageversions/method_listbyimage.go | 13 +++++++++++++ ...od_listoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listhealthdetails.go | 13 +++++++++++++ .../2023-04-01/pools/method_listbyproject.go | 13 +++++++++++++ .../projects/method_listbyresourcegroup.go | 15 ++++++++++++++- .../projects/method_listbysubscription.go | 15 ++++++++++++++- .../2023-04-01/schedules/method_listbypool.go | 13 +++++++++++++ .../2023-04-01/skus/method_listbysubscription.go | 13 +++++++++++++ .../2023-04-01/usages/method_listbylocation.go | 13 +++++++++++++ .../method_attachednetworkslistbydevcenter.go | 15 ++++++++++++++- .../method_attachednetworkslistbyproject.go | 15 ++++++++++++++- .../2024-02-01/catalogs/method_listbydevcenter.go | 15 ++++++++++++++- .../devboxdefinitions/method_listbydevcenter.go | 13 +++++++++++++ .../devboxdefinitions/method_listbyproject.go | 13 +++++++++++++ .../devcenters/method_listbyresourcegroup.go | 15 ++++++++++++++- .../devcenters/method_listbysubscription.go | 15 ++++++++++++++- .../method_environmentdefinitionslistbycatalog.go | 15 ++++++++++++++- ..._environmentdefinitionslistbyprojectcatalog.go | 13 +++++++++++++ .../method_environmenttypeslistbydevcenter.go | 15 ++++++++++++++- .../method_projectallowedenvironmenttypeslist.go | 15 ++++++++++++++- .../method_projectenvironmenttypeslist.go | 15 ++++++++++++++- .../galleries/method_listbydevcenter.go | 15 ++++++++++++++- .../2024-02-01/images/method_listbydevcenter.go | 15 ++++++++++++++- .../2024-02-01/images/method_listbygallery.go | 15 ++++++++++++++- .../imageversions/method_listbyimage.go | 13 +++++++++++++ ...od_listoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listhealthdetails.go | 13 +++++++++++++ .../2024-02-01/pools/method_listbyproject.go | 13 +++++++++++++ .../2024-02-01/projectcatalogs/method_list.go | 15 ++++++++++++++- .../projects/method_listbyresourcegroup.go | 15 ++++++++++++++- .../projects/method_listbysubscription.go | 15 ++++++++++++++- .../2024-02-01/schedules/method_listbypool.go | 13 +++++++++++++ .../2024-02-01/skus/method_listbysubscription.go | 13 +++++++++++++ .../2024-02-01/usages/method_listbylocation.go | 13 +++++++++++++ .../dpscertificate/method_createorupdate.go | 2 +- .../2022-02-05/dpscertificate/method_delete.go | 2 +- .../method_generateverificationcode.go | 2 +- .../2022-02-05/dpscertificate/method_get.go | 2 +- .../dpscertificate/method_verifycertificate.go | 2 +- .../iotdpsresource/method_listbyresourcegroup.go | 13 +++++++++++++ .../iotdpsresource/method_listbysubscription.go | 13 +++++++++++++ .../2022-02-05/iotdpsresource/method_listkeys.go | 13 +++++++++++++ .../iotdpsresource/method_listvalidskus.go | 13 +++++++++++++ .../dpscertificate/method_createorupdate.go | 2 +- .../2022-12-12/dpscertificate/method_delete.go | 2 +- .../method_generateverificationcode.go | 2 +- .../2022-12-12/dpscertificate/method_get.go | 2 +- .../dpscertificate/method_verifycertificate.go | 2 +- .../iotdpsresource/method_listbyresourcegroup.go | 13 +++++++++++++ .../iotdpsresource/method_listbysubscription.go | 13 +++++++++++++ .../2022-12-12/iotdpsresource/method_listkeys.go | 13 +++++++++++++ .../iotdpsresource/method_listvalidskus.go | 13 +++++++++++++ .../method_accountslistbyresourcegroup.go | 13 +++++++++++++ .../method_accountslistbysubscription.go | 13 +++++++++++++ .../method_instanceslistbyaccount.go | 13 +++++++++++++ .../method_listbyaccount.go | 13 +++++++++++++ .../privatelinkresources/method_listbyaccount.go | 13 +++++++++++++ .../method_accountslistbyresourcegroup.go | 13 +++++++++++++ .../method_accountslistbysubscription.go | 13 +++++++++++++ .../method_instanceslistbyaccount.go | 13 +++++++++++++ .../method_listbyaccount.go | 13 +++++++++++++ .../privatelinkresources/method_listbyaccount.go | 13 +++++++++++++ .../2018-09-15/armtemplates/method_get.go | 2 +- .../2018-09-15/armtemplates/method_list.go | 15 ++++++++++++++- .../devtestlab/2018-09-15/artifacts/method_get.go | 2 +- .../2018-09-15/artifacts/method_list.go | 15 ++++++++++++++- .../2018-09-15/artifactsources/method_get.go | 2 +- .../2018-09-15/artifactsources/method_list.go | 15 ++++++++++++++- .../devtestlab/2018-09-15/costs/method_get.go | 2 +- .../2018-09-15/customimages/method_get.go | 2 +- .../2018-09-15/customimages/method_list.go | 15 ++++++++++++++- .../devtestlab/2018-09-15/disks/method_get.go | 2 +- .../devtestlab/2018-09-15/disks/method_list.go | 15 ++++++++++++++- .../2018-09-15/environments/method_get.go | 2 +- .../2018-09-15/environments/method_list.go | 15 ++++++++++++++- .../devtestlab/2018-09-15/formulas/method_get.go | 2 +- .../devtestlab/2018-09-15/formulas/method_list.go | 15 ++++++++++++++- .../2018-09-15/galleryimages/method_list.go | 15 ++++++++++++++- .../2018-09-15/globalschedules/method_get.go | 2 +- .../globalschedules/method_listbyresourcegroup.go | 15 ++++++++++++++- .../globalschedules/method_listbysubscription.go | 15 ++++++++++++++- .../devtestlab/2018-09-15/labs/method_get.go | 2 +- .../2018-09-15/labs/method_listbyresourcegroup.go | 15 ++++++++++++++- .../2018-09-15/labs/method_listbysubscription.go | 15 ++++++++++++++- .../devtestlab/2018-09-15/labs/method_listvhds.go | 13 +++++++++++++ .../2018-09-15/notificationchannels/method_get.go | 2 +- .../notificationchannels/method_list.go | 15 ++++++++++++++- .../devtestlab/2018-09-15/policies/method_get.go | 2 +- .../devtestlab/2018-09-15/policies/method_list.go | 15 ++++++++++++++- .../devtestlab/2018-09-15/schedules/method_get.go | 2 +- .../2018-09-15/schedules/method_list.go | 15 ++++++++++++++- .../2018-09-15/schedules/method_listapplicable.go | 13 +++++++++++++ .../devtestlab/2018-09-15/secrets/method_get.go | 2 +- .../devtestlab/2018-09-15/secrets/method_list.go | 15 ++++++++++++++- .../2018-09-15/servicefabrics/method_get.go | 2 +- .../2018-09-15/servicefabrics/method_list.go | 15 ++++++++++++++- .../servicefabricschedules/method_get.go | 2 +- .../servicefabricschedules/method_list.go | 15 ++++++++++++++- .../devtestlab/2018-09-15/users/method_get.go | 2 +- .../devtestlab/2018-09-15/users/method_list.go | 15 ++++++++++++++- .../2018-09-15/virtualmachines/method_get.go | 2 +- .../2018-09-15/virtualmachines/method_list.go | 15 ++++++++++++++- .../virtualmachineschedules/method_get.go | 2 +- .../virtualmachineschedules/method_list.go | 15 ++++++++++++++- .../2018-09-15/virtualnetworks/method_get.go | 2 +- .../2018-09-15/virtualnetworks/method_list.go | 15 ++++++++++++++- .../method_digitaltwinslist.go | 13 +++++++++++++ .../method_digitaltwinslistbyresourcegroup.go | 13 +++++++++++++ .../endpoints/method_digitaltwinsendpointlist.go | 13 +++++++++++++ .../method_delete.go | 2 +- .../timeseriesdatabaseconnections/method_list.go | 13 +++++++++++++ .../recordsets/method_createorupdate.go | 2 +- .../dns/2018-05-01/recordsets/method_delete.go | 2 +- .../recordsets/method_listallbydnszone.go | 15 ++++++++++++++- .../2018-05-01/recordsets/method_listbydnszone.go | 15 ++++++++++++++- .../2018-05-01/recordsets/method_listbytype.go | 15 ++++++++++++++- .../dns/2018-05-01/recordsets/method_update.go | 2 +- .../dns/2018-05-01/zones/method_createorupdate.go | 2 +- .../dns/2018-05-01/zones/method_delete.go | 2 +- .../dns/2018-05-01/zones/method_list.go | 15 ++++++++++++++- .../zones/method_listbyresourcegroup.go | 15 ++++++++++++++- .../dns/2018-05-01/zones/method_update.go | 2 +- .../method_createorupdate.go | 2 +- .../dnsforwardingrulesets/method_delete.go | 2 +- .../dnsforwardingrulesets/method_list.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbyvirtualnetwork.go | 15 ++++++++++++++- .../dnsforwardingrulesets/method_update.go | 2 +- .../dnsresolvers/method_createorupdate.go | 2 +- .../2022-07-01/dnsresolvers/method_delete.go | 2 +- .../2022-07-01/dnsresolvers/method_list.go | 15 ++++++++++++++- .../dnsresolvers/method_listbyresourcegroup.go | 15 ++++++++++++++- .../dnsresolvers/method_listbyvirtualnetwork.go | 15 ++++++++++++++- .../2022-07-01/dnsresolvers/method_update.go | 2 +- .../forwardingrules/method_createorupdate.go | 2 +- .../2022-07-01/forwardingrules/method_delete.go | 2 +- .../2022-07-01/forwardingrules/method_list.go | 15 ++++++++++++++- .../2022-07-01/forwardingrules/method_update.go | 2 +- .../inboundendpoints/method_createorupdate.go | 2 +- .../2022-07-01/inboundendpoints/method_delete.go | 2 +- .../2022-07-01/inboundendpoints/method_list.go | 15 ++++++++++++++- .../2022-07-01/inboundendpoints/method_update.go | 2 +- .../outboundendpoints/method_createorupdate.go | 2 +- .../2022-07-01/outboundendpoints/method_delete.go | 2 +- .../2022-07-01/outboundendpoints/method_list.go | 15 ++++++++++++++- .../2022-07-01/outboundendpoints/method_update.go | 2 +- .../virtualnetworklinks/method_createorupdate.go | 2 +- .../virtualnetworklinks/method_delete.go | 2 +- .../2022-07-01/virtualnetworklinks/method_list.go | 15 ++++++++++++++- .../virtualnetworklinks/method_update.go | 2 +- .../2021-09-01/monitors/method_listappservices.go | 13 +++++++++++++ .../monitors/method_listbyresourcegroup.go | 13 +++++++++++++ .../monitors/method_listbysubscriptionid.go | 13 +++++++++++++ .../2021-09-01/monitors/method_listhosts.go | 13 +++++++++++++ .../monitors/method_listlinkableenvironments.go | 13 +++++++++++++ .../monitors/method_listmonitoredresources.go | 13 +++++++++++++ .../2021-09-01/singlesignon/method_list.go | 13 +++++++++++++ .../dynatrace/2021-09-01/tagrules/method_list.go | 13 +++++++++++++ .../2023-04-27/monitors/method_listappservices.go | 13 +++++++++++++ .../monitors/method_listbyresourcegroup.go | 13 +++++++++++++ .../monitors/method_listbysubscriptionid.go | 13 +++++++++++++ .../2023-04-27/monitors/method_listhosts.go | 13 +++++++++++++ .../monitors/method_listlinkableenvironments.go | 13 +++++++++++++ .../monitors/method_listmonitoredresources.go | 13 +++++++++++++ .../2023-04-27/singlesignon/method_list.go | 13 +++++++++++++ .../dynatrace/2023-04-27/tagrules/method_list.go | 13 +++++++++++++ .../2023-06-01/elasticversions/method_list.go | 15 ++++++++++++++- .../2023-06-01/monitoredresources/method_list.go | 13 +++++++++++++ .../monitorsresource/method_monitorslist.go | 13 +++++++++++++ .../method_monitorslistbyresourcegroup.go | 13 +++++++++++++ .../2023-06-01/rules/method_tagruleslist.go | 13 +++++++++++++ .../method_associatetrafficfilterassociate.go | 2 +- .../method_createandassociateipfiltercreate.go | 2 +- .../method_createandassociateplfiltercreate.go | 2 +- .../2023-06-01/trafficfilter/method_delete.go | 2 +- .../method_detachanddeletetrafficfilterdelete.go | 2 +- .../method_detachtrafficfilterupdate.go | 2 +- .../2023-06-01/vmhhostlist/method_vmhostlist.go | 13 +++++++++++++ .../method_connectedpartnerresourceslist.go | 13 +++++++++++++ .../2024-03-01/elasticversions/method_list.go | 15 ++++++++++++++- .../2024-03-01/monitoredresources/method_list.go | 13 +++++++++++++ .../monitorsresource/method_monitorslist.go | 13 +++++++++++++ .../method_monitorslistbyresourcegroup.go | 13 +++++++++++++ .../openaiintegration/method_openailist.go | 13 +++++++++++++ .../2024-03-01/rules/method_tagruleslist.go | 13 +++++++++++++ .../method_associatetrafficfilterassociate.go | 2 +- .../method_createandassociateipfiltercreate.go | 2 +- .../method_createandassociateplfiltercreate.go | 2 +- .../2024-03-01/trafficfilter/method_delete.go | 2 +- .../method_detachanddeletetrafficfilterdelete.go | 2 +- .../method_detachtrafficfilterupdate.go | 2 +- .../2024-03-01/vmhhostlist/method_vmhostlist.go | 13 +++++++++++++ .../elasticsan/method_listbyresourcegroup.go | 13 +++++++++++++ .../elasticsans/method_listbysubscription.go | 13 +++++++++++++ .../2023-01-01/elasticsanskus/method_skuslist.go | 15 ++++++++++++++- .../privateendpointconnections/method_list.go | 13 +++++++++++++ .../method_listbyelasticsan.go | 13 +++++++++++++ .../method_volumesnapshotslistbyvolumegroup.go | 15 ++++++++++++++- .../volumegroups/method_listbyelasticsan.go | 13 +++++++++++++ .../2023-01-01/volumes/method_delete.go | 2 +- .../volumes/method_listbyvolumegroup.go | 13 +++++++++++++ .../elasticsan/method_listbyresourcegroup.go | 13 +++++++++++++ .../elasticsans/method_listbysubscription.go | 13 +++++++++++++ .../2024-05-01/elasticsanskus/method_skuslist.go | 15 ++++++++++++++- .../privateendpointconnections/method_list.go | 13 +++++++++++++ .../method_listbyelasticsan.go | 13 +++++++++++++ .../method_volumesnapshotslistbyvolumegroup.go | 15 ++++++++++++++- .../volumegroups/method_listbyelasticsan.go | 13 +++++++++++++ .../2024-05-01/volumes/method_delete.go | 2 +- .../volumes/method_listbyvolumegroup.go | 13 +++++++++++++ .../channels/method_listbypartnernamespace.go | 15 ++++++++++++++- .../domains/method_listbyresourcegroup.go | 15 ++++++++++++++- .../domains/method_listbysubscription.go | 15 ++++++++++++++- .../domaintopics/method_listbydomain.go | 15 ++++++++++++++- .../method_domaineventsubscriptionslist.go | 15 ++++++++++++++- .../method_domaintopiceventsubscriptionslist.go | 15 ++++++++++++++- .../method_listbydomaintopic.go | 15 ++++++++++++++- .../eventsubscriptions/method_listbyresource.go | 15 ++++++++++++++- .../method_listglobalbyresourcegroup.go | 15 ++++++++++++++- ...ethod_listglobalbyresourcegroupfortopictype.go | 15 ++++++++++++++- .../method_listglobalbysubscription.go | 15 ++++++++++++++- ...method_listglobalbysubscriptionfortopictype.go | 15 ++++++++++++++- .../method_listregionalbyresourcegroup.go | 15 ++++++++++++++- ...hod_listregionalbyresourcegroupfortopictype.go | 15 ++++++++++++++- .../method_listregionalbysubscription.go | 15 ++++++++++++++- ...thod_listregionalbysubscriptionfortopictype.go | 15 ++++++++++++++- ...ertopiceventsubscriptionslistbypartnertopic.go | 15 ++++++++++++++- ...temtopiceventsubscriptionslistbysystemtopic.go | 15 ++++++++++++++- .../method_topiceventsubscriptionslist.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbysubscription.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbysubscription.go | 15 ++++++++++++++- .../partnertopics/method_listbyresourcegroup.go | 15 ++++++++++++++- .../partnertopics/method_listbysubscription.go | 15 ++++++++++++++- .../method_listbyresource.go | 15 ++++++++++++++- .../privatelinkresources/method_listbyresource.go | 15 ++++++++++++++- .../systemtopics/method_listbyresourcegroup.go | 15 ++++++++++++++- .../systemtopics/method_listbysubscription.go | 15 ++++++++++++++- .../topics/method_listbyresourcegroup.go | 15 ++++++++++++++- .../topics/method_listbysubscription.go | 15 ++++++++++++++- .../2022-06-15/verifiedpartners/method_list.go | 15 ++++++++++++++- .../cacertificates/method_listbynamespace.go | 15 ++++++++++++++- .../channels/method_listbypartnernamespace.go | 15 ++++++++++++++- .../clientgroups/method_listbynamespace.go | 15 ++++++++++++++- .../clients/method_listbynamespace.go | 15 ++++++++++++++- .../domains/method_listbyresourcegroup.go | 15 ++++++++++++++- .../domains/method_listbysubscription.go | 15 ++++++++++++++- .../domaintopics/method_listbydomain.go | 15 ++++++++++++++- .../method_domaineventsubscriptionslist.go | 15 ++++++++++++++- .../method_domaintopiceventsubscriptionslist.go | 15 ++++++++++++++- .../method_listbydomaintopic.go | 15 ++++++++++++++- .../eventsubscriptions/method_listbyresource.go | 15 ++++++++++++++- .../method_listglobalbyresourcegroup.go | 15 ++++++++++++++- ...ethod_listglobalbyresourcegroupfortopictype.go | 15 ++++++++++++++- .../method_listglobalbysubscription.go | 15 ++++++++++++++- ...method_listglobalbysubscriptionfortopictype.go | 15 ++++++++++++++- .../method_listregionalbyresourcegroup.go | 15 ++++++++++++++- ...hod_listregionalbyresourcegroupfortopictype.go | 15 ++++++++++++++- .../method_listregionalbysubscription.go | 15 ++++++++++++++- ...thod_listregionalbysubscriptionfortopictype.go | 15 ++++++++++++++- ...topiceventsubscriptionslistbynamespacetopic.go | 15 ++++++++++++++- ...ertopiceventsubscriptionslistbypartnertopic.go | 15 ++++++++++++++- ...temtopiceventsubscriptionslistbysystemtopic.go | 15 ++++++++++++++- .../method_topiceventsubscriptionslist.go | 15 ++++++++++++++- .../namespaces/method_listbyresourcegroup.go | 15 ++++++++++++++- .../namespaces/method_listbysubscription.go | 15 ++++++++++++++- .../namespacetopics/method_listbynamespace.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbysubscription.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbysubscription.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbysubscription.go | 15 ++++++++++++++- .../partnertopics/method_listbyresourcegroup.go | 15 ++++++++++++++- .../partnertopics/method_listbysubscription.go | 15 ++++++++++++++- ..._networksecurityperimeterconfigurationslist.go | 13 +++++++++++++ .../permissionbindings/method_listbynamespace.go | 15 ++++++++++++++- .../method_listbyresource.go | 15 ++++++++++++++- .../privatelinkresources/method_listbyresource.go | 15 ++++++++++++++- .../systemtopics/method_listbyresourcegroup.go | 15 ++++++++++++++- .../systemtopics/method_listbysubscription.go | 15 ++++++++++++++- .../topics/method_listbyresourcegroup.go | 15 ++++++++++++++- .../topics/method_listbysubscription.go | 15 ++++++++++++++- .../topicspaces/method_listbynamespace.go | 15 ++++++++++++++- .../verifiedpartners/method_list.go | 15 ++++++++++++++- ...sasterrecoveryconfigslistauthorizationrules.go | 13 +++++++++++++ .../method_eventhubslistauthorizationrules.go | 13 +++++++++++++ .../method_namespaceslistauthorizationrules.go | 13 +++++++++++++ .../consumergroups/method_listbyeventhub.go | 15 ++++++++++++++- .../disasterrecoveryconfigs/method_list.go | 13 +++++++++++++ .../eventhubs/method_listbynamespace.go | 15 ++++++++++++++- .../method_clusterslistbyresourcegroup.go | 13 +++++++++++++ .../method_clusterslistbysubscription.go | 13 +++++++++++++ .../eventhub/2021-11-01/namespaces/method_list.go | 13 +++++++++++++ .../namespaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_privateendpointconnectionslist.go | 13 +++++++++++++ .../method_privatelinkresourcesget.go | 13 +++++++++++++ .../method_namespaceslistnetworkruleset.go | 13 +++++++++++++ .../schemaregistry/method_listbynamespace.go | 15 ++++++++++++++- .../applicationgroup/method_listbynamespace.go | 13 +++++++++++++ ...sasterrecoveryconfigslistauthorizationrules.go | 13 +++++++++++++ .../method_eventhubslistauthorizationrules.go | 13 +++++++++++++ .../method_namespaceslistauthorizationrules.go | 13 +++++++++++++ .../consumergroups/method_listbyeventhub.go | 15 ++++++++++++++- .../disasterrecoveryconfigs/method_list.go | 13 +++++++++++++ .../eventhubs/method_listbynamespace.go | 15 ++++++++++++++- .../method_clusterslistbyresourcegroup.go | 13 +++++++++++++ .../method_clusterslistbysubscription.go | 13 +++++++++++++ .../2022-01-01-preview/namespaces/method_list.go | 13 +++++++++++++ .../namespaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_privateendpointconnectionslist.go | 13 +++++++++++++ .../method_privatelinkresourcesget.go | 13 +++++++++++++ .../method_namespaceslistnetworkruleset.go | 13 +++++++++++++ .../schemaregistry/method_listbynamespace.go | 15 ++++++++++++++- .../applicationgroup/method_listbynamespace.go | 13 +++++++++++++ ...sasterrecoveryconfigslistauthorizationrules.go | 13 +++++++++++++ .../method_eventhubslistauthorizationrules.go | 13 +++++++++++++ .../method_namespaceslistauthorizationrules.go | 13 +++++++++++++ .../consumergroups/method_listbyeventhub.go | 15 ++++++++++++++- .../disasterrecoveryconfigs/method_list.go | 13 +++++++++++++ .../eventhubs/method_listbynamespace.go | 15 ++++++++++++++- .../method_clusterslistbyresourcegroup.go | 13 +++++++++++++ .../method_clusterslistbysubscription.go | 13 +++++++++++++ .../eventhub/2024-01-01/namespaces/method_list.go | 13 +++++++++++++ .../namespaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_privateendpointconnectionslist.go | 13 +++++++++++++ .../method_privatelinkresourcesget.go | 13 +++++++++++++ .../method_namespaceslistnetworkruleset.go | 13 +++++++++++++ .../schemaregistry/method_listbynamespace.go | 15 ++++++++++++++- .../customlocations/method_listbyresourcegroup.go | 13 +++++++++++++ .../customlocations/method_listbysubscription.go | 13 +++++++++++++ .../method_listenabledresourcetypes.go | 13 +++++++++++++ .../method_listbyfluidrelayservers.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listbyfluidrelayservers.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_accountslistbyresourcegroup.go | 13 +++++++++++++ .../method_accountslistbysubscription.go | 13 +++++++++++++ .../method_dedicatedhsmlistbyresourcegroup.go | 15 ++++++++++++++- .../method_dedicatedhsmlistbysubscription.go | 15 ++++++++++++++- ...hsmlistoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../applications/method_listbycluster.go | 13 +++++++++++++ .../hdinsight/2021-06-01/clusters/method_list.go | 13 +++++++++++++ .../clusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbycluster.go | 13 +++++++++++++ .../scriptactions/method_listbycluster.go | 13 +++++++++++++ .../method_listbycluster.go | 13 +++++++++++++ .../2022-08-08/healthbots/method_botslist.go | 13 +++++++++++++ .../healthbots/method_botslistbyresourcegroup.go | 13 +++++++++++++ .../2023-05-01/healthbots/method_botslist.go | 13 +++++++++++++ .../healthbots/method_botslistbyresourcegroup.go | 13 +++++++++++++ .../2022-12-01/collection/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbyresourcegroup.go | 13 +++++++++++++ .../dicomservices/method_listbyworkspace.go | 13 +++++++++++++ .../fhirservices/method_listbyworkspace.go | 13 +++++++++++++ .../method_fhirdestinationslistbyiotconnector.go | 13 +++++++++++++ .../iotconnectors/method_listbyworkspace.go | 13 +++++++++++++ .../workspaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../workspaces/method_listbysubscription.go | 13 +++++++++++++ .../2023-02-28/collection/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbyresourcegroup.go | 13 +++++++++++++ .../dicomservices/method_listbyworkspace.go | 13 +++++++++++++ .../fhirservices/method_listbyworkspace.go | 13 +++++++++++++ .../method_fhirdestinationslistbyiotconnector.go | 13 +++++++++++++ .../iotconnectors/method_listbyworkspace.go | 13 +++++++++++++ .../workspaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../workspaces/method_listbysubscription.go | 13 +++++++++++++ .../2023-09-06/collection/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbyresourcegroup.go | 13 +++++++++++++ .../dicomservices/method_listbyworkspace.go | 13 +++++++++++++ .../fhirservices/method_listbyworkspace.go | 13 +++++++++++++ .../method_fhirdestinationslistbyiotconnector.go | 13 +++++++++++++ .../iotconnectors/method_listbyworkspace.go | 13 +++++++++++++ .../workspaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../workspaces/method_listbysubscription.go | 13 +++++++++++++ .../2023-11-01/collection/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbyresourcegroup.go | 13 +++++++++++++ .../dicomservices/method_listbyworkspace.go | 13 +++++++++++++ .../fhirservices/method_listbyworkspace.go | 13 +++++++++++++ .../method_fhirdestinationslistbyiotconnector.go | 13 +++++++++++++ .../iotconnectors/method_listbyworkspace.go | 13 +++++++++++++ .../workspaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../workspaces/method_listbysubscription.go | 13 +++++++++++++ .../2023-12-01/collection/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbyresourcegroup.go | 13 +++++++++++++ .../dicomservices/method_listbyworkspace.go | 13 +++++++++++++ .../fhirservices/method_listbyworkspace.go | 13 +++++++++++++ .../method_fhirdestinationslistbyiotconnector.go | 13 +++++++++++++ .../iotconnectors/method_listbyworkspace.go | 13 +++++++++++++ .../workspaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../workspaces/method_listbysubscription.go | 13 +++++++++++++ .../2024-03-01/collection/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbyresourcegroup.go | 13 +++++++++++++ .../dicomservices/method_listbyworkspace.go | 13 +++++++++++++ .../fhirservices/method_listbyworkspace.go | 13 +++++++++++++ .../method_fhirdestinationslistbyiotconnector.go | 13 +++++++++++++ .../iotconnectors/method_listbyworkspace.go | 13 +++++++++++++ .../workspaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../workspaces/method_listbysubscription.go | 13 +++++++++++++ .../2024-03-31/collection/method_serviceslist.go | 13 +++++++++++++ .../method_serviceslistbyresourcegroup.go | 13 +++++++++++++ .../dicomservices/method_listbyworkspace.go | 13 +++++++++++++ .../fhirservices/method_listbyworkspace.go | 13 +++++++++++++ .../method_fhirdestinationslistbyiotconnector.go | 13 +++++++++++++ .../iotconnectors/method_listbyworkspace.go | 13 +++++++++++++ .../workspaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../workspaces/method_listbysubscription.go | 13 +++++++++++++ .../method_agentpoollistbyprovisionedcluster.go | 13 +++++++++++++ .../method_hybrididentitymetadatalistbycluster.go | 13 +++++++++++++ .../method_kubernetesversionslist.go | 13 +++++++++++++ .../method_provisionedclusterinstanceslist.go | 13 +++++++++++++ .../method_vmskuslist.go | 13 +++++++++++++ .../virtualnetworks/method_listbyresourcegroup.go | 13 +++++++++++++ .../virtualnetworks/method_listbysubscription.go | 13 +++++++++++++ .../2022-11-10/machineextensions/method_list.go | 15 ++++++++++++++- .../2022-11-10/machines/method_get.go | 2 +- .../machines/method_listbyresourcegroup.go | 13 +++++++++++++ .../machines/method_listbysubscription.go | 13 +++++++++++++ .../method_listbyprivatelinkscope.go | 13 +++++++++++++ .../method_listbyprivatelinkscope.go | 13 +++++++++++++ .../2022-11-10/privatelinkscopes/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2022-12-27/machineextensions/method_list.go | 15 ++++++++++++++- .../2022-12-27/machines/method_get.go | 2 +- .../machines/method_listbyresourcegroup.go | 13 +++++++++++++ .../machines/method_listbysubscription.go | 13 +++++++++++++ .../method_listbyprivatelinkscope.go | 13 +++++++++++++ .../method_listbyprivatelinkscope.go | 13 +++++++++++++ .../2022-12-27/privatelinkscopes/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_connectedclusterlistbyresourcegroup.go | 13 +++++++++++++ .../method_connectedclusterlistbysubscription.go | 13 +++++++++++++ .../method_connectedclusterlistbyresourcegroup.go | 13 +++++++++++++ .../method_connectedclusterlistbysubscription.go | 13 +++++++++++++ .../2015-04-01/activitylogs/method_list.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../2015-04-01/tenantactivitylogs/method_list.go | 15 ++++++++++++++- .../2016-03-01/metricdefinitions/method_list.go | 2 +- .../method_actiongroupslistbyresourcegroup.go | 13 +++++++++++++ .../method_actiongroupslistbysubscriptionid.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 2 +- .../method_listbysubscription.go | 2 +- .../method_listbyprivatelinkscope.go | 13 +++++++++++++ .../method_listbyprivatelinkscope.go | 13 +++++++++++++ .../method_listbyprivatelinkscope.go | 13 +++++++++++++ .../method_privatelinkscopeslist.go | 13 +++++++++++++ ...method_privatelinkscopeslistbyresourcegroup.go | 13 +++++++++++++ ...method_activitylogalertslistbyresourcegroup.go | 13 +++++++++++++ ...ethod_activitylogalertslistbysubscriptionid.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../metrics/method_predictivemetricget.go | 2 +- .../method_listbyprivatelinkscope.go | 13 +++++++++++++ .../method_privatelinkscopeslist.go | 13 +++++++++++++ ...method_privatelinkscopeslistbyresourcegroup.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_actiongroupslistbyresourcegroup.go | 13 +++++++++++++ .../method_actiongroupslistbysubscriptionid.go | 13 +++++++++++++ .../method_actiongroupslistbyresourcegroup.go | 13 +++++++++++++ .../method_actiongroupslistbysubscriptionid.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listbydatacollectionendpoint.go | 13 +++++++++++++ .../method_listbyresource.go | 13 +++++++++++++ .../method_listbyrule.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../metrics/method_predictivemetricget.go | 2 +- .../method_actiongroupslistbyresourcegroup.go | 13 +++++++++++++ .../method_actiongroupslistbysubscriptionid.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../2023-10-01/metricdefinitions/method_list.go | 2 +- .../method_listatsubscriptionscope.go | 2 +- .../insights/2023-10-01/metrics/method_list.go | 2 +- .../metrics/method_listatsubscriptionscope.go | 2 +- .../metrics/method_listatsubscriptionscopepost.go | 2 +- .../2024-02-01/metricdefinitions/method_list.go | 2 +- .../method_listatsubscriptionscope.go | 2 +- .../2024-02-01/metricnamespaces/method_list.go | 2 +- .../insights/2024-02-01/metrics/method_list.go | 2 +- .../metrics/method_listatsubscriptionscope.go | 2 +- .../metrics/method_listatsubscriptionscopepost.go | 2 +- .../apps/method_listbyresourcegroup.go | 13 +++++++++++++ .../apps/method_listbysubscription.go | 13 +++++++++++++ .../apps/method_listtemplates.go | 13 +++++++++++++ .../keyvault/2023-07-01/keys/method_list.go | 13 +++++++++++++ .../2023-07-01/keys/method_listversions.go | 13 +++++++++++++ .../2023-07-01/managedhsmkeys/method_list.go | 13 +++++++++++++ .../managedhsmkeys/method_listversions.go | 13 +++++++++++++ .../managedhsms/method_listbyresourcegroup.go | 15 ++++++++++++++- .../managedhsms/method_listbysubscription.go | 15 ++++++++++++++- .../2023-07-01/managedhsms/method_listdeleted.go | 13 +++++++++++++ ...hsmprivateendpointconnectionslistbyresource.go | 13 +++++++++++++ .../method_mhsmregionslistbyresource.go | 13 +++++++++++++ .../method_listbyresource.go | 13 +++++++++++++ .../keyvault/2023-07-01/secrets/method_list.go | 15 ++++++++++++++- .../keyvault/2023-07-01/vaults/method_list.go | 15 ++++++++++++++- .../vaults/method_listbyresourcegroup.go | 15 ++++++++++++++- .../vaults/method_listbysubscription.go | 15 ++++++++++++++- .../2023-07-01/vaults/method_listdeleted.go | 13 +++++++++++++ .../clusterextensions/method_extensionsdelete.go | 2 +- .../clusterextensions/method_extensionslist.go | 13 +++++++++++++ .../2022-11-01/extensions/method_delete.go | 2 +- .../2022-11-01/extensions/method_list.go | 13 +++++++++++++ .../flux/method_configurationsdelete.go | 2 +- .../2022-11-01/flux/method_configurationslist.go | 13 +++++++++++++ .../2022-11-01/fluxconfiguration/method_delete.go | 2 +- .../2022-11-01/fluxconfiguration/method_list.go | 13 +++++++++++++ .../method_operationstatuslist.go | 13 +++++++++++++ .../sourcecontrolconfiguration/method_list.go | 13 +++++++++++++ .../clusterextensions/method_extensionsdelete.go | 2 +- .../clusterextensions/method_extensionslist.go | 13 +++++++++++++ .../2023-05-01/extensions/method_delete.go | 2 +- .../2023-05-01/extensions/method_list.go | 13 +++++++++++++ .../flux/method_configurationsdelete.go | 2 +- .../2023-05-01/flux/method_configurationslist.go | 13 +++++++++++++ .../2023-05-01/fluxconfiguration/method_delete.go | 2 +- .../2023-05-01/fluxconfiguration/method_list.go | 13 +++++++++++++ .../method_operationstatuslist.go | 13 +++++++++++++ .../sourcecontrolconfiguration/method_list.go | 13 +++++++++++++ .../2023-08-15/clusters/method_createorupdate.go | 2 +- .../kusto/2023-08-15/clusters/method_update.go | 2 +- .../2023-08-15/databases/method_createorupdate.go | 2 +- .../2023-08-15/databases/method_listbycluster.go | 15 ++++++++++++++- .../kusto/2023-08-15/databases/method_update.go | 2 +- ...erslistoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../sandboxcustomimages/method_listbycluster.go | 13 +++++++++++++ .../2022-08-01/image/method_listbylabplan.go | 13 +++++++++++++ .../2022-08-01/lab/method_listbyresourcegroup.go | 13 +++++++++++++ .../2022-08-01/lab/method_listbysubscription.go | 13 +++++++++++++ .../labplan/method_listbyresourcegroup.go | 13 +++++++++++++ .../labplan/method_listbysubscription.go | 13 +++++++++++++ .../2022-08-01/schedule/method_listbylab.go | 13 +++++++++++++ .../labservices/2022-08-01/skus/method_list.go | 13 +++++++++++++ .../2022-08-01/usages/method_listbylocation.go | 13 +++++++++++++ .../2022-08-01/user/method_listbylab.go | 13 +++++++++++++ .../2022-08-01/virtualmachine/method_listbylab.go | 13 +++++++++++++ .../2023-06-07/image/method_listbylabplan.go | 13 +++++++++++++ .../2023-06-07/lab/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-06-07/lab/method_listbysubscription.go | 13 +++++++++++++ .../labplan/method_listbyresourcegroup.go | 13 +++++++++++++ .../labplan/method_listbysubscription.go | 13 +++++++++++++ .../2023-06-07/schedule/method_listbylab.go | 13 +++++++++++++ .../labservices/2023-06-07/skus/method_list.go | 13 +++++++++++++ .../2023-06-07/usages/method_listbylocation.go | 13 +++++++++++++ .../2023-06-07/user/method_listbylab.go | 13 +++++++++++++ .../2023-06-07/virtualmachine/method_listbylab.go | 13 +++++++++++++ .../loadtests/method_listbyresourcegroup.go | 13 +++++++++++++ .../loadtests/method_listbysubscription.go | 13 +++++++++++++ ...od_listoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../2022-12-01/quotas/method_list.go | 13 +++++++++++++ .../integrationaccountagreements/method_list.go | 15 ++++++++++++++- .../integrationaccountcertificates/method_list.go | 15 ++++++++++++++- .../integrationaccountmaps/method_list.go | 15 ++++++++++++++- .../integrationaccountpartners/method_list.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbysubscription.go | 15 ++++++++++++++- .../integrationaccountschemas/method_list.go | 15 ++++++++++++++- .../integrationaccountsessions/method_list.go | 15 ++++++++++++++- ...nserviceenvironmentmanagedapioperationslist.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbysubscription.go | 15 ++++++++++++++- .../method_list.go | 13 +++++++++++++ .../method_coperepetitionslist.go | 13 +++++++++++++ .../2019-05-01/workflowrunactions/method_list.go | 15 ++++++++++++++- .../method_workflowrunactionrepetitionslist.go | 13 +++++++++++++ ...lowrunactionrepetitionsrequesthistorieslist.go | 13 +++++++++++++ ...ethod_workflowrunactionrequesthistorieslist.go | 13 +++++++++++++ .../logic/2019-05-01/workflowruns/method_list.go | 15 ++++++++++++++- .../workflows/method_listbyresourcegroup.go | 15 ++++++++++++++- .../workflows/method_listbysubscription.go | 15 ++++++++++++++- .../workflowtriggerhistories/method_list.go | 15 ++++++++++++++- .../2019-05-01/workflowtriggers/method_list.go | 15 ++++++++++++++- .../2019-05-01/workflowversions/method_list.go | 15 ++++++++++++++- .../monitors/method_listbyresourcegroup.go | 13 +++++++++++++ .../monitors/method_listbysubscription.go | 13 +++++++++++++ .../monitors/method_listmonitoredresources.go | 13 +++++++++++++ .../2020-10-01/monitors/method_listuserroles.go | 13 +++++++++++++ .../logz/2020-10-01/singlesignon/method_list.go | 13 +++++++++++++ .../logz/2020-10-01/subaccount/method_list.go | 13 +++++++++++++ .../subaccount/method_listmonitoredresources.go | 13 +++++++++++++ .../logz/2020-10-01/tagrules/method_list.go | 13 +++++++++++++ .../tagrules/method_subaccounttagruleslist.go | 13 +++++++++++++ .../vmhost/method_monitorlistvmhosts.go | 13 +++++++++++++ .../vmhost/method_monitorlistvmhostupdate.go | 13 +++++++++++++ .../vmhost/method_subaccountlistvmhosts.go | 13 +++++++++++++ .../vmhost/method_subaccountlistvmhostupdate.go | 13 +++++++++++++ .../2023-10-01/batchdeployment/method_list.go | 15 ++++++++++++++- .../2023-10-01/batchendpoint/method_list.go | 15 ++++++++++++++- .../2023-10-01/codecontainer/method_list.go | 15 ++++++++++++++- .../method_registrycodecontainerslist.go | 15 ++++++++++++++- .../2023-10-01/codeversion/method_list.go | 15 ++++++++++++++- .../method_registrycodeversionslist.go | 15 ++++++++++++++- .../2023-10-01/componentcontainer/method_list.go | 15 ++++++++++++++- .../method_registrycomponentcontainerslist.go | 15 ++++++++++++++- .../2023-10-01/componentversion/method_list.go | 15 ++++++++++++++- .../method_registrycomponentversionslist.go | 15 ++++++++++++++- .../2023-10-01/datacontainer/method_list.go | 15 ++++++++++++++- .../method_registrydatacontainerslist.go | 15 ++++++++++++++- .../2023-10-01/datastore/method_createorupdate.go | 2 +- .../2023-10-01/datastore/method_list.go | 15 ++++++++++++++- .../2023-10-01/dataversion/method_list.go | 15 ++++++++++++++- .../method_registrydataversionslist.go | 15 ++++++++++++++- .../environmentcontainer/method_list.go | 15 ++++++++++++++- .../method_registryenvironmentcontainerslist.go | 15 ++++++++++++++- .../2023-10-01/environmentversion/method_list.go | 15 ++++++++++++++- .../method_registryenvironmentversionslist.go | 15 ++++++++++++++- .../2023-10-01/feature/method_list.go | 15 ++++++++++++++- .../2023-10-01/featuresetcontainer/method_list.go | 15 ++++++++++++++- .../2023-10-01/featuresetversion/method_list.go | 15 ++++++++++++++- .../featurestoreentitycontainer/method_list.go | 15 ++++++++++++++- .../featurestoreentityversion/method_list.go | 15 ++++++++++++++- .../2023-10-01/job/method_list.go | 15 ++++++++++++++- .../method_computedelete.go | 2 +- .../machinelearningcomputes/method_computelist.go | 15 ++++++++++++++- .../method_computelistnodes.go | 13 +++++++++++++ .../managednetwork/method_settingsrulelist.go | 13 +++++++++++++ .../2023-10-01/modelcontainer/method_list.go | 15 ++++++++++++++- .../method_registrymodelcontainerslist.go | 15 ++++++++++++++- .../2023-10-01/modelversion/method_list.go | 15 ++++++++++++++- .../method_registrymodelversionslist.go | 15 ++++++++++++++- .../2023-10-01/onlinedeployment/method_list.go | 15 ++++++++++++++- .../onlinedeployment/method_listskus.go | 15 ++++++++++++++- .../2023-10-01/onlineendpoint/method_list.go | 15 ++++++++++++++- .../method_computedelete.go | 2 +- .../method_computelist.go | 15 ++++++++++++++- .../2023-10-01/quota/method_list.go | 13 +++++++++++++ .../2023-10-01/quota/method_update.go | 13 +++++++++++++ .../registrymanagement/method_registrieslist.go | 13 +++++++++++++ .../method_registrieslistbysubscription.go | 13 +++++++++++++ .../2023-10-01/schedule/method_list.go | 15 ++++++++++++++- .../method_workspaceconnectionslist.go | 15 ++++++++++++++- .../2023-10-01/workspaces/method_delete.go | 2 +- .../workspaces/method_listbyresourcegroup.go | 15 ++++++++++++++- .../workspaces/method_listbysubscription.go | 15 ++++++++++++++- .../workspaces/method_workspacefeatureslist.go | 13 +++++++++++++ .../2024-04-01/batchdeployment/method_list.go | 15 ++++++++++++++- .../2024-04-01/batchendpoint/method_list.go | 15 ++++++++++++++- .../2024-04-01/codecontainer/method_list.go | 15 ++++++++++++++- .../method_registrycodecontainerslist.go | 15 ++++++++++++++- .../2024-04-01/codeversion/method_list.go | 15 ++++++++++++++- .../method_registrycodeversionslist.go | 15 ++++++++++++++- .../2024-04-01/componentcontainer/method_list.go | 15 ++++++++++++++- .../method_registrycomponentcontainerslist.go | 15 ++++++++++++++- .../2024-04-01/componentversion/method_list.go | 15 ++++++++++++++- .../method_registrycomponentversionslist.go | 15 ++++++++++++++- .../2024-04-01/datacontainer/method_list.go | 15 ++++++++++++++- .../method_registrydatacontainerslist.go | 15 ++++++++++++++- .../2024-04-01/datastore/method_createorupdate.go | 2 +- .../2024-04-01/datastore/method_list.go | 15 ++++++++++++++- .../2024-04-01/dataversion/method_list.go | 15 ++++++++++++++- .../method_registrydataversionslist.go | 15 ++++++++++++++- .../environmentcontainer/method_list.go | 15 ++++++++++++++- .../method_registryenvironmentcontainerslist.go | 15 ++++++++++++++- .../2024-04-01/environmentversion/method_list.go | 15 ++++++++++++++- .../method_registryenvironmentversionslist.go | 15 ++++++++++++++- .../2024-04-01/feature/method_list.go | 15 ++++++++++++++- .../2024-04-01/featuresetcontainer/method_list.go | 15 ++++++++++++++- .../2024-04-01/featuresetversion/method_list.go | 15 ++++++++++++++- .../featurestoreentitycontainer/method_list.go | 15 ++++++++++++++- .../featurestoreentityversion/method_list.go | 15 ++++++++++++++- .../2024-04-01/job/method_list.go | 15 ++++++++++++++- .../method_computedelete.go | 2 +- .../machinelearningcomputes/method_computelist.go | 15 ++++++++++++++- .../method_computelistnodes.go | 13 +++++++++++++ .../managednetwork/method_settingsrulelist.go | 13 +++++++++++++ .../marketplacesubscription/method_list.go | 15 ++++++++++++++- .../2024-04-01/modelcontainer/method_list.go | 15 ++++++++++++++- .../method_registrymodelcontainerslist.go | 15 ++++++++++++++- .../2024-04-01/modelversion/method_list.go | 15 ++++++++++++++- .../method_registrymodelversionslist.go | 15 ++++++++++++++- .../2024-04-01/onlinedeployment/method_list.go | 15 ++++++++++++++- .../onlinedeployment/method_listskus.go | 15 ++++++++++++++- .../2024-04-01/onlineendpoint/method_list.go | 15 ++++++++++++++- .../method_computedelete.go | 2 +- .../method_computelist.go | 15 ++++++++++++++- .../2024-04-01/quota/method_list.go | 13 +++++++++++++ .../2024-04-01/quota/method_update.go | 13 +++++++++++++ .../registrymanagement/method_registrieslist.go | 13 +++++++++++++ .../method_registrieslistbysubscription.go | 13 +++++++++++++ .../2024-04-01/schedule/method_list.go | 15 ++++++++++++++- .../2024-04-01/serverlessendpoint/method_list.go | 15 ++++++++++++++- .../method_workspaceconnectionslist.go | 15 ++++++++++++++- .../2024-04-01/workspaces/method_delete.go | 2 +- .../workspaces/method_listbyresourcegroup.go | 15 ++++++++++++++- .../workspaces/method_listbysubscription.go | 15 ++++++++++++++- .../workspaces/method_workspacefeatureslist.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../applications/method_listbyresourcegroup.go | 13 +++++++++++++ .../applications/method_listbysubscription.go | 13 +++++++++++++ .../jitrequests/method_listbyresourcegroup.go | 13 +++++++++++++ .../jitrequests/method_listbysubscription.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../applications/method_listbyresourcegroup.go | 13 +++++++++++++ .../applications/method_listbysubscription.go | 13 +++++++++++++ .../jitrequests/method_listbyresourcegroup.go | 13 +++++++++++++ .../jitrequests/method_listbysubscription.go | 13 +++++++++++++ .../method_federatedidentitycredentialslist.go | 15 ++++++++++++++- ...d_userassignedidentitieslistbyresourcegroup.go | 13 +++++++++++++ ...od_userassignedidentitieslistbysubscription.go | 13 +++++++++++++ .../registrationassignments/method_get.go | 2 +- .../registrationassignments/method_list.go | 15 ++++++++++++++- .../registrationdefinitions/method_list.go | 13 +++++++++++++ .../method_list.go | 15 ++++++++++++++- .../method_withoutscopelist.go | 15 ++++++++++++++- .../registrationassignments/method_get.go | 2 +- .../registrationassignments/method_list.go | 15 ++++++++++++++- .../registrationdefinitions/method_list.go | 15 ++++++++++++++- .../2020-05-01/entities/method_list.go | 15 ++++++++++++++- .../managementgroups/method_createorupdate.go | 2 +- .../2020-05-01/managementgroups/method_delete.go | 2 +- .../2020-05-01/managementgroups/method_get.go | 2 +- .../managementgroups/method_getdescendants.go | 15 ++++++++++++++- .../2020-05-01/managementgroups/method_list.go | 15 ++++++++++++++- .../managementgroups/method_ubscriptionscreate.go | 2 +- .../managementgroups/method_ubscriptionsdelete.go | 2 +- .../method_ubscriptionsgetsubscription.go | 2 +- ...iptionsgetsubscriptionsundermanagementgroup.go | 13 +++++++++++++ .../2020-05-01/managementgroups/method_update.go | 2 +- .../2021-04-01/entities/method_list.go | 15 ++++++++++++++- .../managementgroups/method_createorupdate.go | 2 +- .../2021-04-01/managementgroups/method_delete.go | 2 +- .../2021-04-01/managementgroups/method_get.go | 2 +- .../managementgroups/method_getdescendants.go | 15 ++++++++++++++- .../2021-04-01/managementgroups/method_list.go | 15 ++++++++++++++- .../managementgroups/method_ubscriptionscreate.go | 2 +- .../managementgroups/method_ubscriptionsdelete.go | 2 +- .../method_ubscriptionsgetsubscription.go | 2 +- ...iptionsgetsubscriptionsundermanagementgroup.go | 13 +++++++++++++ .../2021-04-01/managementgroups/method_update.go | 2 +- .../2023-04-01/entities/method_list.go | 15 ++++++++++++++- .../managementgroups/method_createorupdate.go | 2 +- .../2023-04-01/managementgroups/method_delete.go | 2 +- .../2023-04-01/managementgroups/method_get.go | 2 +- .../managementgroups/method_getdescendants.go | 15 ++++++++++++++- .../2023-04-01/managementgroups/method_list.go | 15 ++++++++++++++- .../managementgroups/method_ubscriptionscreate.go | 2 +- .../managementgroups/method_ubscriptionsdelete.go | 2 +- .../method_ubscriptionsgetsubscription.go | 2 +- ...iptionsgetsubscriptionsundermanagementgroup.go | 13 +++++++++++++ .../2023-04-01/managementgroups/method_update.go | 2 +- .../accounts/method_listbyresourcegroup.go | 13 +++++++++++++ .../accounts/method_listbysubscription.go | 13 +++++++++++++ .../2021-02-01/creators/method_listbyaccount.go | 13 +++++++++++++ .../method_mapslistsubscriptionoperations.go | 13 +++++++++++++ .../accounts/method_listbyresourcegroup.go | 13 +++++++++++++ .../accounts/method_listbysubscription.go | 13 +++++++++++++ .../2023-06-01/creators/method_listbyaccount.go | 13 +++++++++++++ .../method_mapslistsubscriptionoperations.go | 13 +++++++++++++ .../method_listbyserver.go | 13 +++++++++++++ .../virtualnetworkrules/method_listbyserver.go | 13 +++++++++++++ .../2018-06-01/advisors/method_listbyserver.go | 13 +++++++++++++ .../method_listbyserver.go | 13 +++++++++++++ .../privatelinkresources/method_listbyserver.go | 13 +++++++++++++ .../2018-06-01/querytexts/method_listbyserver.go | 15 ++++++++++++++- .../recommendedactions/method_listbyserver.go | 15 ++++++++++++++- .../method_createrecommendedactionsession.go | 2 +- .../method_listbyserver.go | 13 +++++++++++++ .../topquerystatistics/method_listbyserver.go | 13 +++++++++++++ .../virtualnetworkrules/method_listbyserver.go | 13 +++++++++++++ .../waitstatistics/method_listbyserver.go | 13 +++++++++++++ .../2021-11-01/accountfilters/method_list.go | 13 +++++++++++++ .../accounts/method_mediaserviceslist.go | 13 +++++++++++++ .../method_mediaserviceslistbysubscription.go | 13 +++++++++++++ .../method_assetfilterslist.go | 13 +++++++++++++ .../assetsandassetfilters/method_assetslist.go | 15 ++++++++++++++- .../2021-11-01/contentkeypolicies/method_list.go | 15 ++++++++++++++- .../media/2021-11-01/encodings/method_jobslist.go | 15 ++++++++++++++- .../2021-11-01/encodings/method_transformslist.go | 15 ++++++++++++++- .../media/2021-11-01/liveevents/method_create.go | 2 +- .../media/2021-11-01/liveevents/method_list.go | 13 +++++++++++++ .../media/2021-11-01/liveoutputs/method_list.go | 13 +++++++++++++ .../streamingendpoints/method_create.go | 2 +- .../2021-11-01/streamingendpoints/method_list.go | 13 +++++++++++++ .../method_streaminglocatorslist.go | 15 ++++++++++++++- .../method_streamingpolicieslist.go | 15 ++++++++++++++- .../media/2022-07-01/encodings/method_jobslist.go | 15 ++++++++++++++- .../2022-07-01/encodings/method_transformslist.go | 15 ++++++++++++++- .../2022-08-01/accountfilters/method_list.go | 13 +++++++++++++ .../method_assetfilterslist.go | 13 +++++++++++++ .../assetsandassetfilters/method_assetslist.go | 15 ++++++++++++++- .../2022-08-01/contentkeypolicies/method_list.go | 15 ++++++++++++++- .../media/2022-08-01/liveevents/method_create.go | 2 +- .../media/2022-08-01/liveevents/method_list.go | 13 +++++++++++++ .../media/2022-08-01/liveoutputs/method_list.go | 13 +++++++++++++ .../streamingendpoints/method_create.go | 2 +- .../2022-08-01/streamingendpoints/method_list.go | 13 +++++++++++++ .../method_streaminglocatorslist.go | 15 ++++++++++++++- .../method_streamingpolicieslist.go | 15 ++++++++++++++- .../hypervcluster/method_getallclustersinsite.go | 15 ++++++++++++++- .../hypervhost/method_getallhostsinsite.go | 15 ++++++++++++++- .../hypervjobs/method_getalljobsinsite.go | 13 +++++++++++++ .../hypervmachines/method_getallmachinesinsite.go | 15 ++++++++++++++- .../method_getallrunasaccountsinsite.go | 13 +++++++++++++ .../hypervsites/method_getsitehealthsummary.go | 13 +++++++++++++ .../2020-01-01/jobs/method_getalljobsinsite.go | 13 +++++++++++++ .../machines/method_getallmachinesinsite.go | 15 ++++++++++++++- .../method_getallrunasaccountsinsite.go | 13 +++++++++++++ .../sites/method_getsitehealthsummary.go | 13 +++++++++++++ .../vcenter/method_getallvcentersinsite.go | 15 ++++++++++++++- .../hypervcluster/method_getallclustersinsite.go | 15 ++++++++++++++- .../hypervhost/method_getallhostsinsite.go | 15 ++++++++++++++- .../hypervjobs/method_getalljobsinsite.go | 13 +++++++++++++ .../hypervmachines/method_getallmachinesinsite.go | 15 ++++++++++++++- .../method_getallrunasaccountsinsite.go | 13 +++++++++++++ .../hypervsites/method_getsitehealthsummary.go | 13 +++++++++++++ .../2020-07-07/jobs/method_getalljobsinsite.go | 13 +++++++++++++ .../machines/method_getallmachinesinsite.go | 15 ++++++++++++++- .../migrate/2020-07-07/mastersites/method_list.go | 13 +++++++++++++ .../mastersites/method_listbysubscription.go | 13 +++++++++++++ .../2020-07-07/migrates/method_hypervsiteslist.go | 13 +++++++++++++ .../method_hypervsiteslistbysubscription.go | 13 +++++++++++++ .../2020-07-07/migrates/method_vmwaresiteslist.go | 13 +++++++++++++ .../method_vmwaresiteslistbysubscription.go | 13 +++++++++++++ .../method_getprivateendpointconnections.go | 13 +++++++++++++ .../method_getprivatelinkresources.go | 13 +++++++++++++ .../method_getallrunasaccountsinsite.go | 13 +++++++++++++ .../sites/method_getsitehealthsummary.go | 13 +++++++++++++ .../vcenter/method_getallvcentersinsite.go | 15 ++++++++++++++- ...d_remoterenderingaccountslistbysubscription.go | 13 +++++++++++++ ...od_spatialanchorsaccountslistbysubscription.go | 13 +++++++++++++ ..._remoterenderingaccountslistbyresourcegroup.go | 13 +++++++++++++ ...d_remoterenderingaccountslistbysubscription.go | 13 +++++++++++++ ...d_spatialanchorsaccountslistbyresourcegroup.go | 13 +++++++++++++ ...od_spatialanchorsaccountslistbysubscription.go | 13 +++++++++++++ .../method_listbypacketcoredataplane.go | 13 +++++++++++++ .../datanetworks/method_listbymobilenetwork.go | 13 +++++++++++++ .../mobilenetworks/method_listbyresourcegroup.go | 13 +++++++++++++ .../mobilenetworks/method_listbysubscription.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../packetcorecontrolplaneversion/method_list.go | 13 +++++++++++++ .../method_listbypacketcorecontrolplane.go | 13 +++++++++++++ .../services/method_listbymobilenetwork.go | 13 +++++++++++++ .../simgroups/method_listbyresourcegroup.go | 13 +++++++++++++ .../simgroups/method_listbysubscription.go | 13 +++++++++++++ .../simpolicies/method_listbymobilenetwork.go | 13 +++++++++++++ .../2022-11-01/sims/method_listbygroup.go | 13 +++++++++++++ .../sites/method_listbymobilenetwork.go | 13 +++++++++++++ .../slices/method_listbymobilenetwork.go | 13 +++++++++++++ .../method_listbypacketcoredataplane.go | 13 +++++++++++++ .../datanetworks/method_listbymobilenetwork.go | 13 +++++++++++++ .../method_listbypacketcorecontrolplane.go | 13 +++++++++++++ .../mobilenetworks/method_listbyresourcegroup.go | 13 +++++++++++++ .../mobilenetworks/method_listbysubscription.go | 13 +++++++++++++ .../method_listbypacketcorecontrolplane.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../packetcorecontrolplaneversion/method_list.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listbypacketcorecontrolplane.go | 13 +++++++++++++ .../services/method_listbymobilenetwork.go | 13 +++++++++++++ .../simgroups/method_listbyresourcegroup.go | 13 +++++++++++++ .../simgroups/method_listbysubscription.go | 13 +++++++++++++ .../simpolicies/method_listbymobilenetwork.go | 13 +++++++++++++ .../2023-06-01/sims/method_listbygroup.go | 13 +++++++++++++ .../sites/method_listbymobilenetwork.go | 13 +++++++++++++ .../slices/method_listbymobilenetwork.go | 13 +++++++++++++ .../method_listbypacketcoredataplane.go | 13 +++++++++++++ .../datanetworks/method_listbymobilenetwork.go | 13 +++++++++++++ .../method_listbypacketcorecontrolplane.go | 13 +++++++++++++ .../mobilenetworks/method_listbyresourcegroup.go | 13 +++++++++++++ .../mobilenetworks/method_listbysubscription.go | 13 +++++++++++++ .../method_listbypacketcorecontrolplane.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../packetcorecontrolplaneversion/method_list.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listbypacketcorecontrolplane.go | 13 +++++++++++++ .../services/method_listbymobilenetwork.go | 13 +++++++++++++ .../simgroups/method_listbyresourcegroup.go | 13 +++++++++++++ .../simgroups/method_listbysubscription.go | 13 +++++++++++++ .../simpolicies/method_listbymobilenetwork.go | 13 +++++++++++++ .../2023-09-01/sims/method_listbygroup.go | 13 +++++++++++++ .../sites/method_listbymobilenetwork.go | 13 +++++++++++++ .../slices/method_listbymobilenetwork.go | 13 +++++++++++++ .../method_listbypacketcoredataplane.go | 13 +++++++++++++ .../datanetworks/method_listbymobilenetwork.go | 13 +++++++++++++ .../method_listbypacketcorecontrolplane.go | 13 +++++++++++++ .../mobilenetworks/method_listbyresourcegroup.go | 13 +++++++++++++ .../mobilenetworks/method_listbysubscription.go | 13 +++++++++++++ .../method_listbypacketcorecontrolplane.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../packetcorecontrolplaneversion/method_list.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listbypacketcorecontrolplane.go | 13 +++++++++++++ .../services/method_listbymobilenetwork.go | 13 +++++++++++++ .../simgroups/method_listbyresourcegroup.go | 13 +++++++++++++ .../simgroups/method_listbysubscription.go | 13 +++++++++++++ .../simpolicies/method_listbymobilenetwork.go | 13 +++++++++++++ .../2024-02-01/sims/method_listbygroup.go | 13 +++++++++++++ .../sites/method_listbymobilenetwork.go | 13 +++++++++++++ .../slices/method_listbymobilenetwork.go | 13 +++++++++++++ .../ueinformationlist/method_ueinformationlist.go | 13 +++++++++++++ .../method_listbypacketcoredataplane.go | 13 +++++++++++++ .../datanetworks/method_listbymobilenetwork.go | 13 +++++++++++++ .../method_listbypacketcorecontrolplane.go | 13 +++++++++++++ .../mobilenetworks/method_listbyresourcegroup.go | 13 +++++++++++++ .../mobilenetworks/method_listbysubscription.go | 13 +++++++++++++ .../mobilenetworks/method_listsimgroups.go | 13 +++++++++++++ .../method_listbypacketcorecontrolplane.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../packetcorecontrolplaneversion/method_list.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listbypacketcorecontrolplane.go | 13 +++++++++++++ .../2024-04-01/routinginfo/method_list.go | 13 +++++++++++++ .../services/method_listbymobilenetwork.go | 13 +++++++++++++ .../simgroups/method_listbyresourcegroup.go | 13 +++++++++++++ .../simgroups/method_listbysubscription.go | 13 +++++++++++++ .../simpolicies/method_listbymobilenetwork.go | 13 +++++++++++++ .../2024-04-01/sims/method_listbygroup.go | 13 +++++++++++++ .../sites/method_listbymobilenetwork.go | 13 +++++++++++++ .../slices/method_listbymobilenetwork.go | 13 +++++++++++++ .../ueinformationlist/method_ueinformationlist.go | 13 +++++++++++++ .../method_listbyserver.go | 13 +++++++++++++ .../virtualnetworkrules/method_listbyserver.go | 13 +++++++++++++ .../mysql/2020-01-01/serverkeys/method_list.go | 13 +++++++++++++ .../2021-05-01/backups/method_listbyserver.go | 13 +++++++++++++ .../configurations/method_batchupdate.go | 13 +++++++++++++ .../configurations/method_listbyserver.go | 13 +++++++++++++ .../2021-05-01/databases/method_listbyserver.go | 13 +++++++++++++ .../firewallrules/method_listbyserver.go | 13 +++++++++++++ .../locationbasedcapabilities/method_list.go | 13 +++++++++++++ .../mysql/2021-05-01/servers/method_list.go | 13 +++++++++++++ .../servers/method_listbyresourcegroup.go | 13 +++++++++++++ .../servers/method_replicaslistbyserver.go | 13 +++++++++++++ .../azureadadministrators/method_listbyserver.go | 13 +++++++++++++ .../backups/method_listbyserver.go | 13 +++++++++++++ .../configurations/method_batchupdate.go | 13 +++++++++++++ .../configurations/method_listbyserver.go | 15 ++++++++++++++- .../databases/method_listbyserver.go | 13 +++++++++++++ .../firewallrules/method_listbyserver.go | 13 +++++++++++++ .../locationbasedcapabilities/method_list.go | 13 +++++++++++++ .../logfiles/method_listbyserver.go | 13 +++++++++++++ .../2021-12-01-preview/servers/method_list.go | 13 +++++++++++++ .../servers/method_listbyresourcegroup.go | 13 +++++++++++++ .../servers/method_replicaslistbyserver.go | 13 +++++++++++++ .../azureadadministrators/method_listbyserver.go | 13 +++++++++++++ .../2022-01-01/backups/method_listbyserver.go | 13 +++++++++++++ .../configurations/method_batchupdate.go | 13 +++++++++++++ .../configurations/method_listbyserver.go | 15 ++++++++++++++- .../2022-01-01/databases/method_listbyserver.go | 13 +++++++++++++ .../firewallrules/method_listbyserver.go | 13 +++++++++++++ .../locationbasedcapabilities/method_list.go | 13 +++++++++++++ .../2022-01-01/logfiles/method_listbyserver.go | 13 +++++++++++++ .../mysql/2022-01-01/servers/method_list.go | 13 +++++++++++++ .../servers/method_listbyresourcegroup.go | 13 +++++++++++++ .../servers/method_replicaslistbyserver.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../azureadadministrators/method_listbyserver.go | 13 +++++++++++++ .../2023-12-30/backups/method_listbyserver.go | 13 +++++++++++++ .../backupsv2/method_longrunningbackupslist.go | 13 +++++++++++++ .../configurations/method_batchupdate.go | 13 +++++++++++++ .../configurations/method_listbyserver.go | 15 ++++++++++++++- .../2023-12-30/databases/method_listbyserver.go | 13 +++++++++++++ .../firewallrules/method_listbyserver.go | 13 +++++++++++++ .../locationbasedcapabilities/method_list.go | 13 +++++++++++++ .../locationbasedcapability/method_setlist.go | 13 +++++++++++++ .../2023-12-30/logfiles/method_listbyserver.go | 13 +++++++++++++ .../mysql/2023-12-30/maintenances/method_list.go | 13 +++++++++++++ .../mysql/2023-12-30/servers/method_list.go | 13 +++++++++++++ .../servers/method_listbyresourcegroup.go | 13 +++++++++++++ .../servers/method_replicaslistbyserver.go | 13 +++++++++++++ .../2023-05-01/capacitypools/method_poolslist.go | 13 +++++++++++++ .../netappaccounts/method_accountslist.go | 13 +++++++++++++ .../method_accountslistbysubscription.go | 13 +++++++++++++ .../2023-05-01/subvolumes/method_listbyvolume.go | 13 +++++++++++++ .../netapp/2023-05-01/volumes/method_delete.go | 2 +- .../netapp/2023-05-01/volumes/method_list.go | 13 +++++++++++++ .../2023-07-01/capacitypools/method_poolslist.go | 13 +++++++++++++ .../netappaccounts/method_accountslist.go | 13 +++++++++++++ .../method_accountslistbysubscription.go | 13 +++++++++++++ .../2023-07-01/subvolumes/method_listbyvolume.go | 13 +++++++++++++ .../netapp/2023-07-01/volumes/method_delete.go | 2 +- .../netapp/2023-07-01/volumes/method_list.go | 13 +++++++++++++ .../2023-11-01/backups/method_listbyvault.go | 15 ++++++++++++++- .../backupvaults/method_listbynetappaccount.go | 13 +++++++++++++ .../2023-11-01/capacitypools/method_poolslist.go | 13 +++++++++++++ .../netappaccounts/method_accountslist.go | 13 +++++++++++++ .../method_accountslistbysubscription.go | 13 +++++++++++++ .../netappresource/method_regioninfoslist.go | 13 +++++++++++++ .../2023-11-01/subvolumes/method_listbyvolume.go | 13 +++++++++++++ .../netapp/2023-11-01/volumes/method_delete.go | 2 +- .../netapp/2023-11-01/volumes/method_list.go | 13 +++++++++++++ .../adminrulecollections/method_delete.go | 2 +- .../adminrulecollections/method_list.go | 15 ++++++++++++++- .../2022-07-01/adminrules/method_delete.go | 2 +- .../network/2022-07-01/adminrules/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../applicationgateways/method_backendhealth.go | 2 +- .../method_backendhealthondemand.go | 2 +- .../2022-07-01/applicationgateways/method_list.go | 13 +++++++++++++ .../applicationgateways/method_listall.go | 13 +++++++++++++ .../method_listavailablesslpredefinedpolicies.go | 13 +++++++++++++ .../method_get.go | 13 +++++++++++++ .../applicationsecuritygroups/method_list.go | 13 +++++++++++++ .../applicationsecuritygroups/method_listall.go | 13 +++++++++++++ .../method_availabledelegationslist.go | 13 +++++++++++++ ...ethod_availableresourcegroupdelegationslist.go | 13 +++++++++++++ .../availableservicealiases/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2022-07-01/azurefirewalls/method_list.go | 13 +++++++++++++ .../2022-07-01/azurefirewalls/method_listall.go | 13 +++++++++++++ .../method_disconnectactivesessions.go | 13 +++++++++++++ .../bastionhosts/method_getactivesessions.go | 13 +++++++++++++ .../method_getbastionshareablelink.go | 13 +++++++++++++ .../2022-07-01/bastionhosts/method_list.go | 13 +++++++++++++ .../bastionhosts/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_putbastionshareablelink.go | 13 +++++++++++++ .../method_getbastionshareablelink.go | 13 +++++++++++++ .../method_putbastionshareablelink.go | 13 +++++++++++++ .../bgpservicecommunities/method_list.go | 13 +++++++++++++ .../method_checkdnsnameavailability.go | 2 +- ...icipaddressesgetcloudservicepublicipaddress.go | 2 +- ...paddresseslistcloudservicepublicipaddresses.go | 13 +++++++++++++ ...stcloudserviceroleinstancepublicipaddresses.go | 13 +++++++++++++ .../connectionmonitors/method_createorupdate.go | 2 +- .../connectivityconfigurations/method_delete.go | 2 +- .../connectivityconfigurations/method_list.go | 15 ++++++++++++++- .../2022-07-01/customipprefixes/method_get.go | 2 +- .../2022-07-01/customipprefixes/method_list.go | 13 +++++++++++++ .../2022-07-01/customipprefixes/method_listall.go | 13 +++++++++++++ .../2022-07-01/ddosprotectionplans/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_dscpconfigurationlist.go | 13 +++++++++++++ .../method_dscpconfigurationlistall.go | 13 +++++++++++++ .../method_availableendpointserviceslist.go | 13 +++++++++++++ .../method_expressroutecircuitslistarptable.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../expressroutecircuitconnections/method_list.go | 13 +++++++++++++ .../expressroutecircuitpeerings/method_list.go | 13 +++++++++++++ .../method_expressroutecircuitslistroutestable.go | 13 +++++++++++++ ..._expressroutecircuitslistroutestablesummary.go | 13 +++++++++++++ .../expressroutecircuits/method_list.go | 13 +++++++++++++ .../expressroutecircuits/method_listall.go | 13 +++++++++++++ ...od_expressroutecrossconnectionslistarptable.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...expressroutecrossconnectionslistroutestable.go | 13 +++++++++++++ ...routecrossconnectionslistroutestablesummary.go | 13 +++++++++++++ .../expressroutecrossconnections/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2022-07-01/expressroutelinks/method_list.go | 13 +++++++++++++ .../expressrouteportauthorizations/method_list.go | 13 +++++++++++++ .../2022-07-01/expressrouteports/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../expressrouteportslocations/method_list.go | 13 +++++++++++++ .../method_locationlist.go | 15 ++++++++++++++- .../expressrouteserviceproviders/method_list.go | 13 +++++++++++++ .../2022-07-01/firewallpolicies/method_get.go | 2 +- .../2022-07-01/firewallpolicies/method_list.go | 13 +++++++++++++ .../2022-07-01/firewallpolicies/method_listall.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../network/2022-07-01/flowlogs/method_list.go | 13 +++++++++++++ .../2022-07-01/ipallocations/method_get.go | 2 +- .../2022-07-01/ipallocations/method_list.go | 13 +++++++++++++ .../ipallocations/method_listbyresourcegroup.go | 13 +++++++++++++ .../network/2022-07-01/ipgroups/method_get.go | 2 +- .../network/2022-07-01/ipgroups/method_list.go | 13 +++++++++++++ .../ipgroups/method_listbyresourcegroup.go | 13 +++++++++++++ .../2022-07-01/loadbalancers/method_get.go | 2 +- .../loadbalancers/method_inboundnatrulesget.go | 2 +- .../loadbalancers/method_inboundnatruleslist.go | 13 +++++++++++++ .../2022-07-01/loadbalancers/method_list.go | 13 +++++++++++++ .../2022-07-01/loadbalancers/method_listall.go | 13 +++++++++++++ .../method_loadbalancerbackendaddresspoolslist.go | 13 +++++++++++++ ...od_loadbalancerfrontendipconfigurationslist.go | 13 +++++++++++++ .../method_loadbalancerloadbalancingruleslist.go | 13 +++++++++++++ .../method_loadbalancernetworkinterfaceslist.go | 13 +++++++++++++ .../method_loadbalanceroutboundruleslist.go | 13 +++++++++++++ .../method_loadbalancerprobeslist.go | 13 +++++++++++++ .../localnetworkgateways/method_list.go | 13 +++++++++++++ .../network/2022-07-01/natgateways/method_get.go | 2 +- .../network/2022-07-01/natgateways/method_list.go | 13 +++++++++++++ .../2022-07-01/natgateways/method_listall.go | 13 +++++++++++++ .../networkgroups/method_createorupdate.go | 2 +- .../2022-07-01/networkgroups/method_delete.go | 2 +- .../2022-07-01/networkgroups/method_list.go | 15 ++++++++++++++- .../2022-07-01/networkinterfaces/method_get.go | 2 +- .../method_getcloudservicenetworkinterface.go | 2 +- .../method_geteffectiveroutetable.go | 13 +++++++++++++ ...od_getvirtualmachinescalesetipconfiguration.go | 2 +- ...d_getvirtualmachinescalesetnetworkinterface.go | 2 +- .../2022-07-01/networkinterfaces/method_list.go | 13 +++++++++++++ .../networkinterfaces/method_listall.go | 13 +++++++++++++ .../method_listcloudservicenetworkinterfaces.go | 13 +++++++++++++ ...stcloudserviceroleinstancenetworkinterfaces.go | 13 +++++++++++++ .../method_listeffectivenetworksecuritygroups.go | 13 +++++++++++++ ..._listvirtualmachinescalesetipconfigurations.go | 15 ++++++++++++++- ...listvirtualmachinescalesetnetworkinterfaces.go | 13 +++++++++++++ ...stvirtualmachinescalesetvmnetworkinterfaces.go | 13 +++++++++++++ ...method_networkinterfaceipconfigurationslist.go | 13 +++++++++++++ .../method_networkinterfaceloadbalancerslist.go | 13 +++++++++++++ ...ethod_networkinterfacetapconfigurationslist.go | 13 +++++++++++++ ...anagementgroupnetworkmanagerconnectionslist.go | 15 ++++++++++++++- ...d_subscriptionnetworkmanagerconnectionslist.go | 15 ++++++++++++++- .../2022-07-01/networkmanagers/method_delete.go | 2 +- .../2022-07-01/networkmanagers/method_list.go | 15 ++++++++++++++- .../networkmanagers/method_listbysubscription.go | 15 ++++++++++++++- .../2022-07-01/networkprofiles/method_get.go | 2 +- .../2022-07-01/networkprofiles/method_list.go | 13 +++++++++++++ .../2022-07-01/networkprofiles/method_listall.go | 13 +++++++++++++ .../networksecuritygroups/method_get.go | 2 +- .../networksecuritygroups/method_list.go | 13 +++++++++++++ .../networksecuritygroups/method_listall.go | 13 +++++++++++++ .../networkvirtualappliances/method_get.go | 2 +- .../networkvirtualappliances/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../privatednszonegroups/method_list.go | 13 +++++++++++++ .../method_availableprivateendpointtypeslist.go | 13 +++++++++++++ ...ableprivateendpointtypeslistbyresourcegroup.go | 13 +++++++++++++ .../2022-07-01/privateendpoints/method_get.go | 2 +- .../2022-07-01/privateendpoints/method_list.go | 13 +++++++++++++ .../privateendpoints/method_listbysubscription.go | 13 +++++++++++++ .../2022-07-01/privatelinkservices/method_get.go | 2 +- .../method_getprivateendpointconnection.go | 2 +- .../2022-07-01/privatelinkservices/method_list.go | 13 +++++++++++++ .../method_listautoapprovedprivatelinkservices.go | 13 +++++++++++++ ...oapprovedprivatelinkservicesbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listprivateendpointconnections.go | 13 +++++++++++++ .../2022-07-01/publicipaddresses/method_get.go | 2 +- .../2022-07-01/publicipaddresses/method_list.go | 13 +++++++++++++ .../publicipaddresses/method_listall.go | 13 +++++++++++++ .../2022-07-01/publicipprefixes/method_get.go | 2 +- .../2022-07-01/publicipprefixes/method_list.go | 13 +++++++++++++ .../2022-07-01/publicipprefixes/method_listall.go | 13 +++++++++++++ .../routefilterrules/method_listbyroutefilter.go | 13 +++++++++++++ .../network/2022-07-01/routefilters/method_get.go | 2 +- .../2022-07-01/routefilters/method_list.go | 13 +++++++++++++ .../routefilters/method_listbyresourcegroup.go | 13 +++++++++++++ .../network/2022-07-01/routes/method_list.go | 13 +++++++++++++ .../network/2022-07-01/routetables/method_get.go | 2 +- .../network/2022-07-01/routetables/method_list.go | 13 +++++++++++++ .../2022-07-01/routetables/method_listall.go | 13 +++++++++++++ .../2022-07-01/scopeconnections/method_list.go | 15 ++++++++++++++- .../securityadminconfigurations/method_delete.go | 2 +- .../securityadminconfigurations/method_list.go | 15 ++++++++++++++- .../securitypartnerproviders/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_defaultsecurityruleslist.go | 13 +++++++++++++ .../2022-07-01/securityrules/method_list.go | 13 +++++++++++++ .../serviceendpointpolicies/method_get.go | 2 +- .../serviceendpointpolicies/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_servicetaginformationlist.go | 15 ++++++++++++++- .../2022-07-01/staticmembers/method_list.go | 15 ++++++++++++++- .../network/2022-07-01/subnets/method_get.go | 2 +- .../network/2022-07-01/subnets/method_list.go | 13 +++++++++++++ .../network/2022-07-01/usages/method_list.go | 13 +++++++++++++ .../virtualappliancesites/method_list.go | 13 +++++++++++++ .../virtualapplianceskus/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_getadvertisedroutes.go | 2 +- .../method_getbgppeerstatus.go | 2 +- .../virtualnetworkgateways/method_list.go | 13 +++++++++++++ .../method_listconnections.go | 13 +++++++++++++ .../virtualnetworkgateways/method_reset.go | 2 +- ...kgatewaynatruleslistbyvirtualnetworkgateway.go | 13 +++++++++++++ .../method_createorupdate.go | 2 +- .../virtualnetworkpeerings/method_list.go | 13 +++++++++++++ .../2022-07-01/virtualnetworks/method_get.go | 2 +- .../2022-07-01/virtualnetworks/method_list.go | 13 +++++++++++++ .../2022-07-01/virtualnetworks/method_listall.go | 13 +++++++++++++ .../method_resourcenavigationlinkslist.go | 13 +++++++++++++ .../method_serviceassociationlinkslist.go | 13 +++++++++++++ ...d_virtualnetworkscheckipaddressavailability.go | 2 +- ...hod_virtualnetworkslistddosprotectionstatus.go | 15 ++++++++++++++- .../method_virtualnetworkslistusage.go | 13 +++++++++++++ .../virtualnetworktaps/method_listall.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../virtualrouterpeerings/method_list.go | 13 +++++++++++++ .../2022-07-01/virtualrouters/method_get.go | 2 +- .../2022-07-01/virtualrouters/method_list.go | 13 +++++++++++++ .../virtualrouters/method_listbyresourcegroup.go | 13 +++++++++++++ ...ionpolicygroupslistbyvpnserverconfiguration.go | 13 +++++++++++++ .../virtualwans/method_hubroutetableslist.go | 13 +++++++++++++ .../method_hubvirtualnetworkconnectionslist.go | 13 +++++++++++++ .../method_natruleslistbyvpngateway.go | 13 +++++++++++++ .../virtualwans/method_p2svpngatewayslist.go | 13 +++++++++++++ .../method_p2svpngatewayslistbyresourcegroup.go | 13 +++++++++++++ .../virtualwans/method_routemapslist.go | 13 +++++++++++++ .../virtualwans/method_routingintentlist.go | 13 +++++++++++++ .../method_virtualhubbgpconnectionslist.go | 13 +++++++++++++ .../method_virtualhubipconfigurationlist.go | 13 +++++++++++++ .../method_virtualhubroutetablev2slist.go | 13 +++++++++++++ .../virtualwans/method_virtualhubslist.go | 13 +++++++++++++ .../method_virtualhubslistbyresourcegroup.go | 13 +++++++++++++ .../virtualwans/method_virtualwanslist.go | 13 +++++++++++++ .../method_virtualwanslistbyresourcegroup.go | 13 +++++++++++++ .../method_vpnconnectionslistbyvpngateway.go | 13 +++++++++++++ .../virtualwans/method_vpngatewayslist.go | 13 +++++++++++++ .../method_vpngatewayslistbyresourcegroup.go | 13 +++++++++++++ ...ethod_vpnlinkconnectionslistbyvpnconnection.go | 13 +++++++++++++ .../method_vpnserverconfigurationslist.go | 13 +++++++++++++ ..._vpnserverconfigurationslistbyresourcegroup.go | 13 +++++++++++++ .../method_vpnsitelinkslistbyvpnsite.go | 13 +++++++++++++ .../2022-07-01/virtualwans/method_vpnsiteslist.go | 13 +++++++++++++ .../method_vpnsiteslistbyresourcegroup.go | 13 +++++++++++++ ...sesgetvirtualmachinescalesetpublicipaddress.go | 2 +- ...listvirtualmachinescalesetpublicipaddresses.go | 13 +++++++++++++ ...stvirtualmachinescalesetvmpublicipaddresses.go | 13 +++++++++++++ .../webapplicationfirewallpolicies/method_list.go | 13 +++++++++++++ .../method_listall.go | 13 +++++++++++++ .../2022-07-01/webcategories/method_get.go | 2 +- .../webcategories/method_listbysubscription.go | 13 +++++++++++++ .../adminrulecollections/method_delete.go | 2 +- .../adminrulecollections/method_list.go | 15 ++++++++++++++- .../2023-09-01/adminrules/method_delete.go | 2 +- .../network/2023-09-01/adminrules/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../applicationgateways/method_backendhealth.go | 2 +- .../method_backendhealthondemand.go | 2 +- .../2023-09-01/applicationgateways/method_list.go | 13 +++++++++++++ .../applicationgateways/method_listall.go | 13 +++++++++++++ .../method_listavailablesslpredefinedpolicies.go | 13 +++++++++++++ .../method_get.go | 13 +++++++++++++ .../applicationsecuritygroups/method_list.go | 13 +++++++++++++ .../applicationsecuritygroups/method_listall.go | 13 +++++++++++++ .../method_availabledelegationslist.go | 13 +++++++++++++ ...ethod_availableresourcegroupdelegationslist.go | 13 +++++++++++++ .../availableservicealiases/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-09-01/azurefirewalls/method_list.go | 13 +++++++++++++ .../2023-09-01/azurefirewalls/method_listall.go | 13 +++++++++++++ .../method_disconnectactivesessions.go | 13 +++++++++++++ .../bastionhosts/method_getactivesessions.go | 13 +++++++++++++ .../method_getbastionshareablelink.go | 13 +++++++++++++ .../2023-09-01/bastionhosts/method_list.go | 13 +++++++++++++ .../bastionhosts/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_putbastionshareablelink.go | 13 +++++++++++++ .../method_getbastionshareablelink.go | 13 +++++++++++++ .../method_putbastionshareablelink.go | 13 +++++++++++++ .../bgpservicecommunities/method_list.go | 13 +++++++++++++ .../method_checkdnsnameavailability.go | 2 +- ...icipaddressesgetcloudservicepublicipaddress.go | 2 +- ...paddresseslistcloudservicepublicipaddresses.go | 13 +++++++++++++ ...stcloudserviceroleinstancepublicipaddresses.go | 13 +++++++++++++ .../connectionmonitors/method_createorupdate.go | 2 +- .../connectivityconfigurations/method_delete.go | 2 +- .../connectivityconfigurations/method_list.go | 15 ++++++++++++++- .../2023-09-01/customipprefixes/method_get.go | 2 +- .../2023-09-01/customipprefixes/method_list.go | 13 +++++++++++++ .../2023-09-01/customipprefixes/method_listall.go | 13 +++++++++++++ .../2023-09-01/ddosprotectionplans/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_dscpconfigurationlist.go | 13 +++++++++++++ .../method_dscpconfigurationlistall.go | 13 +++++++++++++ .../method_availableendpointserviceslist.go | 13 +++++++++++++ .../method_expressroutecircuitslistarptable.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../expressroutecircuitconnections/method_list.go | 13 +++++++++++++ .../expressroutecircuitpeerings/method_list.go | 13 +++++++++++++ .../method_expressroutecircuitslistroutestable.go | 13 +++++++++++++ ..._expressroutecircuitslistroutestablesummary.go | 13 +++++++++++++ .../expressroutecircuits/method_list.go | 13 +++++++++++++ .../expressroutecircuits/method_listall.go | 13 +++++++++++++ ...od_expressroutecrossconnectionslistarptable.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...expressroutecrossconnectionslistroutestable.go | 13 +++++++++++++ ...routecrossconnectionslistroutestablesummary.go | 13 +++++++++++++ .../expressroutecrossconnections/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-09-01/expressroutelinks/method_list.go | 13 +++++++++++++ .../expressrouteportauthorizations/method_list.go | 13 +++++++++++++ .../2023-09-01/expressrouteports/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../expressrouteportslocations/method_list.go | 13 +++++++++++++ .../method_locationlist.go | 15 ++++++++++++++- .../expressrouteserviceproviders/method_list.go | 13 +++++++++++++ .../2023-09-01/firewallpolicies/method_get.go | 2 +- .../2023-09-01/firewallpolicies/method_list.go | 13 +++++++++++++ .../2023-09-01/firewallpolicies/method_listall.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../network/2023-09-01/flowlogs/method_list.go | 13 +++++++++++++ .../2023-09-01/ipallocations/method_get.go | 2 +- .../2023-09-01/ipallocations/method_list.go | 13 +++++++++++++ .../ipallocations/method_listbyresourcegroup.go | 13 +++++++++++++ .../network/2023-09-01/ipgroups/method_get.go | 2 +- .../network/2023-09-01/ipgroups/method_list.go | 13 +++++++++++++ .../ipgroups/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-09-01/loadbalancers/method_get.go | 2 +- .../loadbalancers/method_inboundnatrulesget.go | 2 +- .../loadbalancers/method_inboundnatruleslist.go | 13 +++++++++++++ .../2023-09-01/loadbalancers/method_list.go | 13 +++++++++++++ .../2023-09-01/loadbalancers/method_listall.go | 13 +++++++++++++ .../method_loadbalancerbackendaddresspoolslist.go | 13 +++++++++++++ ...od_loadbalancerfrontendipconfigurationslist.go | 13 +++++++++++++ .../method_loadbalancerloadbalancingruleslist.go | 13 +++++++++++++ .../method_loadbalancernetworkinterfaceslist.go | 13 +++++++++++++ .../method_loadbalanceroutboundruleslist.go | 13 +++++++++++++ .../method_loadbalancerprobeslist.go | 13 +++++++++++++ .../localnetworkgateways/method_list.go | 13 +++++++++++++ .../network/2023-09-01/natgateways/method_get.go | 2 +- .../network/2023-09-01/natgateways/method_list.go | 13 +++++++++++++ .../2023-09-01/natgateways/method_listall.go | 13 +++++++++++++ .../networkgroups/method_createorupdate.go | 2 +- .../2023-09-01/networkgroups/method_delete.go | 2 +- .../2023-09-01/networkgroups/method_list.go | 15 ++++++++++++++- .../2023-09-01/networkinterfaces/method_get.go | 2 +- .../method_getcloudservicenetworkinterface.go | 2 +- .../method_geteffectiveroutetable.go | 13 +++++++++++++ ...od_getvirtualmachinescalesetipconfiguration.go | 2 +- ...d_getvirtualmachinescalesetnetworkinterface.go | 2 +- .../2023-09-01/networkinterfaces/method_list.go | 13 +++++++++++++ .../networkinterfaces/method_listall.go | 13 +++++++++++++ .../method_listcloudservicenetworkinterfaces.go | 13 +++++++++++++ ...stcloudserviceroleinstancenetworkinterfaces.go | 13 +++++++++++++ .../method_listeffectivenetworksecuritygroups.go | 13 +++++++++++++ ..._listvirtualmachinescalesetipconfigurations.go | 15 ++++++++++++++- ...listvirtualmachinescalesetnetworkinterfaces.go | 13 +++++++++++++ ...stvirtualmachinescalesetvmnetworkinterfaces.go | 13 +++++++++++++ ...method_networkinterfaceipconfigurationslist.go | 13 +++++++++++++ .../method_networkinterfaceloadbalancerslist.go | 13 +++++++++++++ ...ethod_networkinterfacetapconfigurationslist.go | 13 +++++++++++++ ...anagementgroupnetworkmanagerconnectionslist.go | 15 ++++++++++++++- ...d_subscriptionnetworkmanagerconnectionslist.go | 15 ++++++++++++++- .../2023-09-01/networkmanagers/method_delete.go | 2 +- .../2023-09-01/networkmanagers/method_list.go | 15 ++++++++++++++- .../networkmanagers/method_listbysubscription.go | 15 ++++++++++++++- .../2023-09-01/networkprofiles/method_get.go | 2 +- .../2023-09-01/networkprofiles/method_list.go | 13 +++++++++++++ .../2023-09-01/networkprofiles/method_listall.go | 13 +++++++++++++ .../networksecuritygroups/method_get.go | 2 +- .../networksecuritygroups/method_list.go | 13 +++++++++++++ .../networksecuritygroups/method_listall.go | 13 +++++++++++++ .../networkvirtualappliances/method_get.go | 2 +- .../networkvirtualappliances/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../privatednszonegroups/method_list.go | 13 +++++++++++++ .../method_availableprivateendpointtypeslist.go | 13 +++++++++++++ ...ableprivateendpointtypeslistbyresourcegroup.go | 13 +++++++++++++ .../2023-09-01/privateendpoints/method_get.go | 2 +- .../2023-09-01/privateendpoints/method_list.go | 13 +++++++++++++ .../privateendpoints/method_listbysubscription.go | 13 +++++++++++++ .../2023-09-01/privatelinkservices/method_get.go | 2 +- .../method_getprivateendpointconnection.go | 2 +- .../2023-09-01/privatelinkservices/method_list.go | 13 +++++++++++++ .../method_listautoapprovedprivatelinkservices.go | 13 +++++++++++++ ...oapprovedprivatelinkservicesbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listprivateendpointconnections.go | 13 +++++++++++++ .../2023-09-01/publicipaddresses/method_get.go | 2 +- .../2023-09-01/publicipaddresses/method_list.go | 13 +++++++++++++ .../publicipaddresses/method_listall.go | 13 +++++++++++++ .../2023-09-01/publicipprefixes/method_get.go | 2 +- .../2023-09-01/publicipprefixes/method_list.go | 13 +++++++++++++ .../2023-09-01/publicipprefixes/method_listall.go | 13 +++++++++++++ .../routefilterrules/method_listbyroutefilter.go | 13 +++++++++++++ .../network/2023-09-01/routefilters/method_get.go | 2 +- .../2023-09-01/routefilters/method_list.go | 13 +++++++++++++ .../routefilters/method_listbyresourcegroup.go | 13 +++++++++++++ .../network/2023-09-01/routes/method_list.go | 13 +++++++++++++ .../network/2023-09-01/routetables/method_get.go | 2 +- .../network/2023-09-01/routetables/method_list.go | 13 +++++++++++++ .../2023-09-01/routetables/method_listall.go | 13 +++++++++++++ .../2023-09-01/scopeconnections/method_list.go | 15 ++++++++++++++- .../securityadminconfigurations/method_delete.go | 2 +- .../securityadminconfigurations/method_list.go | 15 ++++++++++++++- .../securitypartnerproviders/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_defaultsecurityruleslist.go | 13 +++++++++++++ .../2023-09-01/securityrules/method_list.go | 13 +++++++++++++ .../serviceendpointpolicies/method_get.go | 2 +- .../serviceendpointpolicies/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_servicetaginformationlist.go | 15 ++++++++++++++- .../2023-09-01/staticmembers/method_list.go | 15 ++++++++++++++- .../network/2023-09-01/subnets/method_get.go | 2 +- .../network/2023-09-01/subnets/method_list.go | 13 +++++++++++++ .../network/2023-09-01/usages/method_list.go | 13 +++++++++++++ .../virtualappliancesites/method_list.go | 13 +++++++++++++ .../virtualapplianceskus/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_getadvertisedroutes.go | 2 +- .../method_getbgppeerstatus.go | 2 +- .../virtualnetworkgateways/method_list.go | 13 +++++++++++++ .../method_listconnections.go | 13 +++++++++++++ .../virtualnetworkgateways/method_reset.go | 2 +- ...kgatewaynatruleslistbyvirtualnetworkgateway.go | 13 +++++++++++++ .../method_createorupdate.go | 2 +- .../virtualnetworkpeerings/method_list.go | 13 +++++++++++++ .../2023-09-01/virtualnetworks/method_get.go | 2 +- .../2023-09-01/virtualnetworks/method_list.go | 13 +++++++++++++ .../2023-09-01/virtualnetworks/method_listall.go | 13 +++++++++++++ .../method_resourcenavigationlinkslist.go | 13 +++++++++++++ .../method_serviceassociationlinkslist.go | 13 +++++++++++++ ...d_virtualnetworkscheckipaddressavailability.go | 2 +- ...hod_virtualnetworkslistddosprotectionstatus.go | 15 ++++++++++++++- .../method_virtualnetworkslistusage.go | 13 +++++++++++++ .../virtualnetworktaps/method_listall.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../virtualrouterpeerings/method_list.go | 13 +++++++++++++ .../2023-09-01/virtualrouters/method_get.go | 2 +- .../2023-09-01/virtualrouters/method_list.go | 13 +++++++++++++ .../virtualrouters/method_listbyresourcegroup.go | 13 +++++++++++++ ...ionpolicygroupslistbyvpnserverconfiguration.go | 13 +++++++++++++ .../virtualwans/method_hubroutetableslist.go | 13 +++++++++++++ .../method_hubvirtualnetworkconnectionslist.go | 13 +++++++++++++ .../method_natruleslistbyvpngateway.go | 13 +++++++++++++ ...thod_networkvirtualapplianceconnectionslist.go | 13 +++++++++++++ .../virtualwans/method_p2svpngatewayslist.go | 13 +++++++++++++ .../method_p2svpngatewayslistbyresourcegroup.go | 13 +++++++++++++ .../virtualwans/method_routemapslist.go | 13 +++++++++++++ .../virtualwans/method_routingintentlist.go | 13 +++++++++++++ .../method_virtualhubbgpconnectionslist.go | 13 +++++++++++++ .../method_virtualhubipconfigurationlist.go | 13 +++++++++++++ .../method_virtualhubroutetablev2slist.go | 13 +++++++++++++ .../virtualwans/method_virtualhubslist.go | 13 +++++++++++++ .../method_virtualhubslistbyresourcegroup.go | 13 +++++++++++++ .../virtualwans/method_virtualwanslist.go | 13 +++++++++++++ .../method_virtualwanslistbyresourcegroup.go | 13 +++++++++++++ .../method_vpnconnectionslistbyvpngateway.go | 13 +++++++++++++ .../virtualwans/method_vpngatewayslist.go | 13 +++++++++++++ .../method_vpngatewayslistbyresourcegroup.go | 13 +++++++++++++ ...ethod_vpnlinkconnectionslistbyvpnconnection.go | 13 +++++++++++++ .../method_vpnserverconfigurationslist.go | 13 +++++++++++++ ..._vpnserverconfigurationslistbyresourcegroup.go | 13 +++++++++++++ .../method_vpnsitelinkslistbyvpnsite.go | 13 +++++++++++++ .../2023-09-01/virtualwans/method_vpnsiteslist.go | 13 +++++++++++++ .../method_vpnsiteslistbyresourcegroup.go | 13 +++++++++++++ ...sesgetvirtualmachinescalesetpublicipaddress.go | 2 +- ...listvirtualmachinescalesetpublicipaddresses.go | 13 +++++++++++++ ...stvirtualmachinescalesetvmpublicipaddresses.go | 13 +++++++++++++ .../2023-09-01/vpngateways/method_reset.go | 2 +- .../webapplicationfirewallpolicies/method_list.go | 13 +++++++++++++ .../method_listall.go | 13 +++++++++++++ .../2023-09-01/webcategories/method_get.go | 2 +- .../webcategories/method_listbysubscription.go | 13 +++++++++++++ .../adminrulecollections/method_delete.go | 2 +- .../adminrulecollections/method_list.go | 15 ++++++++++++++- .../2023-11-01/adminrules/method_delete.go | 2 +- .../network/2023-11-01/adminrules/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../applicationgateways/method_backendhealth.go | 2 +- .../method_backendhealthondemand.go | 2 +- .../2023-11-01/applicationgateways/method_list.go | 13 +++++++++++++ .../applicationgateways/method_listall.go | 13 +++++++++++++ .../method_listavailablesslpredefinedpolicies.go | 13 +++++++++++++ .../method_get.go | 13 +++++++++++++ .../applicationsecuritygroups/method_list.go | 13 +++++++++++++ .../applicationsecuritygroups/method_listall.go | 13 +++++++++++++ .../method_availabledelegationslist.go | 13 +++++++++++++ ...ethod_availableresourcegroupdelegationslist.go | 13 +++++++++++++ .../availableservicealiases/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-11-01/azurefirewalls/method_list.go | 13 +++++++++++++ .../2023-11-01/azurefirewalls/method_listall.go | 13 +++++++++++++ .../method_disconnectactivesessions.go | 13 +++++++++++++ .../bastionhosts/method_getactivesessions.go | 13 +++++++++++++ .../method_getbastionshareablelink.go | 13 +++++++++++++ .../2023-11-01/bastionhosts/method_list.go | 13 +++++++++++++ .../bastionhosts/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_putbastionshareablelink.go | 13 +++++++++++++ .../method_getbastionshareablelink.go | 13 +++++++++++++ .../method_putbastionshareablelink.go | 13 +++++++++++++ .../bgpservicecommunities/method_list.go | 13 +++++++++++++ .../method_checkdnsnameavailability.go | 2 +- ...icipaddressesgetcloudservicepublicipaddress.go | 2 +- ...paddresseslistcloudservicepublicipaddresses.go | 13 +++++++++++++ ...stcloudserviceroleinstancepublicipaddresses.go | 13 +++++++++++++ .../connectionmonitors/method_createorupdate.go | 2 +- .../connectivityconfigurations/method_delete.go | 2 +- .../connectivityconfigurations/method_list.go | 15 ++++++++++++++- .../2023-11-01/customipprefixes/method_get.go | 2 +- .../2023-11-01/customipprefixes/method_list.go | 13 +++++++++++++ .../2023-11-01/customipprefixes/method_listall.go | 13 +++++++++++++ .../2023-11-01/ddosprotectionplans/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_dscpconfigurationlist.go | 13 +++++++++++++ .../method_dscpconfigurationlistall.go | 13 +++++++++++++ .../method_availableendpointserviceslist.go | 13 +++++++++++++ .../method_expressroutecircuitslistarptable.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../expressroutecircuitconnections/method_list.go | 13 +++++++++++++ .../expressroutecircuitpeerings/method_list.go | 13 +++++++++++++ .../method_expressroutecircuitslistroutestable.go | 13 +++++++++++++ ..._expressroutecircuitslistroutestablesummary.go | 13 +++++++++++++ .../expressroutecircuits/method_list.go | 13 +++++++++++++ .../expressroutecircuits/method_listall.go | 13 +++++++++++++ ...od_expressroutecrossconnectionslistarptable.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...expressroutecrossconnectionslistroutestable.go | 13 +++++++++++++ ...routecrossconnectionslistroutestablesummary.go | 13 +++++++++++++ .../expressroutecrossconnections/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-11-01/expressroutelinks/method_list.go | 13 +++++++++++++ .../expressrouteportauthorizations/method_list.go | 13 +++++++++++++ .../2023-11-01/expressrouteports/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../expressrouteportslocations/method_list.go | 13 +++++++++++++ .../method_locationlist.go | 15 ++++++++++++++- .../expressrouteserviceproviders/method_list.go | 13 +++++++++++++ .../2023-11-01/firewallpolicies/method_get.go | 2 +- .../2023-11-01/firewallpolicies/method_list.go | 13 +++++++++++++ .../2023-11-01/firewallpolicies/method_listall.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../network/2023-11-01/flowlogs/method_list.go | 13 +++++++++++++ .../2023-11-01/ipallocations/method_get.go | 2 +- .../2023-11-01/ipallocations/method_list.go | 13 +++++++++++++ .../ipallocations/method_listbyresourcegroup.go | 13 +++++++++++++ .../network/2023-11-01/ipgroups/method_get.go | 2 +- .../network/2023-11-01/ipgroups/method_list.go | 13 +++++++++++++ .../ipgroups/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-11-01/loadbalancers/method_get.go | 2 +- .../loadbalancers/method_inboundnatrulesget.go | 2 +- .../loadbalancers/method_inboundnatruleslist.go | 13 +++++++++++++ .../2023-11-01/loadbalancers/method_list.go | 13 +++++++++++++ .../2023-11-01/loadbalancers/method_listall.go | 13 +++++++++++++ .../method_loadbalancerbackendaddresspoolslist.go | 13 +++++++++++++ ...od_loadbalancerfrontendipconfigurationslist.go | 13 +++++++++++++ .../method_loadbalancerloadbalancingruleslist.go | 13 +++++++++++++ .../method_loadbalancernetworkinterfaceslist.go | 13 +++++++++++++ .../method_loadbalanceroutboundruleslist.go | 13 +++++++++++++ .../method_loadbalancerprobeslist.go | 13 +++++++++++++ .../localnetworkgateways/method_list.go | 13 +++++++++++++ .../network/2023-11-01/natgateways/method_get.go | 2 +- .../network/2023-11-01/natgateways/method_list.go | 13 +++++++++++++ .../2023-11-01/natgateways/method_listall.go | 13 +++++++++++++ .../networkgroups/method_createorupdate.go | 2 +- .../2023-11-01/networkgroups/method_delete.go | 2 +- .../2023-11-01/networkgroups/method_list.go | 15 ++++++++++++++- .../2023-11-01/networkinterfaces/method_get.go | 2 +- .../method_getcloudservicenetworkinterface.go | 2 +- .../method_geteffectiveroutetable.go | 13 +++++++++++++ ...od_getvirtualmachinescalesetipconfiguration.go | 2 +- ...d_getvirtualmachinescalesetnetworkinterface.go | 2 +- .../2023-11-01/networkinterfaces/method_list.go | 13 +++++++++++++ .../networkinterfaces/method_listall.go | 13 +++++++++++++ .../method_listcloudservicenetworkinterfaces.go | 13 +++++++++++++ ...stcloudserviceroleinstancenetworkinterfaces.go | 13 +++++++++++++ .../method_listeffectivenetworksecuritygroups.go | 13 +++++++++++++ ..._listvirtualmachinescalesetipconfigurations.go | 15 ++++++++++++++- ...listvirtualmachinescalesetnetworkinterfaces.go | 13 +++++++++++++ ...stvirtualmachinescalesetvmnetworkinterfaces.go | 13 +++++++++++++ ...method_networkinterfaceipconfigurationslist.go | 13 +++++++++++++ .../method_networkinterfaceloadbalancerslist.go | 13 +++++++++++++ ...ethod_networkinterfacetapconfigurationslist.go | 13 +++++++++++++ ...anagementgroupnetworkmanagerconnectionslist.go | 15 ++++++++++++++- ...d_subscriptionnetworkmanagerconnectionslist.go | 15 ++++++++++++++- .../2023-11-01/networkmanagers/method_delete.go | 2 +- .../2023-11-01/networkmanagers/method_list.go | 15 ++++++++++++++- .../networkmanagers/method_listbysubscription.go | 15 ++++++++++++++- .../2023-11-01/networkprofiles/method_get.go | 2 +- .../2023-11-01/networkprofiles/method_list.go | 13 +++++++++++++ .../2023-11-01/networkprofiles/method_listall.go | 13 +++++++++++++ .../networksecuritygroups/method_get.go | 2 +- .../networksecuritygroups/method_list.go | 13 +++++++++++++ .../networksecuritygroups/method_listall.go | 13 +++++++++++++ .../networkvirtualappliances/method_get.go | 2 +- .../networkvirtualappliances/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../privatednszonegroups/method_list.go | 13 +++++++++++++ .../method_availableprivateendpointtypeslist.go | 13 +++++++++++++ ...ableprivateendpointtypeslistbyresourcegroup.go | 13 +++++++++++++ .../2023-11-01/privateendpoints/method_get.go | 2 +- .../2023-11-01/privateendpoints/method_list.go | 13 +++++++++++++ .../privateendpoints/method_listbysubscription.go | 13 +++++++++++++ .../2023-11-01/privatelinkservices/method_get.go | 2 +- .../method_getprivateendpointconnection.go | 2 +- .../2023-11-01/privatelinkservices/method_list.go | 13 +++++++++++++ .../method_listautoapprovedprivatelinkservices.go | 13 +++++++++++++ ...oapprovedprivatelinkservicesbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listprivateendpointconnections.go | 13 +++++++++++++ .../2023-11-01/publicipaddresses/method_get.go | 2 +- .../2023-11-01/publicipaddresses/method_list.go | 13 +++++++++++++ .../publicipaddresses/method_listall.go | 13 +++++++++++++ .../2023-11-01/publicipprefixes/method_get.go | 2 +- .../2023-11-01/publicipprefixes/method_list.go | 13 +++++++++++++ .../2023-11-01/publicipprefixes/method_listall.go | 13 +++++++++++++ .../routefilterrules/method_listbyroutefilter.go | 13 +++++++++++++ .../network/2023-11-01/routefilters/method_get.go | 2 +- .../2023-11-01/routefilters/method_list.go | 13 +++++++++++++ .../routefilters/method_listbyresourcegroup.go | 13 +++++++++++++ .../network/2023-11-01/routes/method_list.go | 13 +++++++++++++ .../network/2023-11-01/routetables/method_get.go | 2 +- .../network/2023-11-01/routetables/method_list.go | 13 +++++++++++++ .../2023-11-01/routetables/method_listall.go | 13 +++++++++++++ .../2023-11-01/scopeconnections/method_list.go | 15 ++++++++++++++- .../securityadminconfigurations/method_delete.go | 2 +- .../securityadminconfigurations/method_list.go | 15 ++++++++++++++- .../securitypartnerproviders/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_defaultsecurityruleslist.go | 13 +++++++++++++ .../2023-11-01/securityrules/method_list.go | 13 +++++++++++++ .../serviceendpointpolicies/method_get.go | 2 +- .../serviceendpointpolicies/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_servicetaginformationlist.go | 15 ++++++++++++++- .../2023-11-01/staticmembers/method_list.go | 15 ++++++++++++++- .../network/2023-11-01/subnets/method_get.go | 2 +- .../network/2023-11-01/subnets/method_list.go | 13 +++++++++++++ .../network/2023-11-01/usages/method_list.go | 13 +++++++++++++ .../virtualappliancesites/method_list.go | 13 +++++++++++++ .../virtualapplianceskus/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_getadvertisedroutes.go | 2 +- .../method_getbgppeerstatus.go | 2 +- .../virtualnetworkgateways/method_list.go | 13 +++++++++++++ .../method_listconnections.go | 13 +++++++++++++ .../virtualnetworkgateways/method_reset.go | 2 +- ...kgatewaynatruleslistbyvirtualnetworkgateway.go | 13 +++++++++++++ .../method_createorupdate.go | 2 +- .../virtualnetworkpeerings/method_list.go | 13 +++++++++++++ .../2023-11-01/virtualnetworks/method_get.go | 2 +- .../2023-11-01/virtualnetworks/method_list.go | 13 +++++++++++++ .../2023-11-01/virtualnetworks/method_listall.go | 13 +++++++++++++ .../method_resourcenavigationlinkslist.go | 13 +++++++++++++ .../method_serviceassociationlinkslist.go | 13 +++++++++++++ ...d_virtualnetworkscheckipaddressavailability.go | 2 +- ...hod_virtualnetworkslistddosprotectionstatus.go | 15 ++++++++++++++- .../method_virtualnetworkslistusage.go | 13 +++++++++++++ .../virtualnetworktaps/method_listall.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../virtualrouterpeerings/method_list.go | 13 +++++++++++++ .../2023-11-01/virtualrouters/method_get.go | 2 +- .../2023-11-01/virtualrouters/method_list.go | 13 +++++++++++++ .../virtualrouters/method_listbyresourcegroup.go | 13 +++++++++++++ ...ionpolicygroupslistbyvpnserverconfiguration.go | 13 +++++++++++++ .../virtualwans/method_hubroutetableslist.go | 13 +++++++++++++ .../method_hubvirtualnetworkconnectionslist.go | 13 +++++++++++++ .../method_natruleslistbyvpngateway.go | 13 +++++++++++++ ...thod_networkvirtualapplianceconnectionslist.go | 13 +++++++++++++ .../virtualwans/method_p2svpngatewayslist.go | 13 +++++++++++++ .../method_p2svpngatewayslistbyresourcegroup.go | 13 +++++++++++++ .../virtualwans/method_routemapslist.go | 13 +++++++++++++ .../virtualwans/method_routingintentlist.go | 13 +++++++++++++ .../method_virtualhubbgpconnectionslist.go | 13 +++++++++++++ .../method_virtualhubipconfigurationlist.go | 13 +++++++++++++ .../method_virtualhubroutetablev2slist.go | 13 +++++++++++++ .../virtualwans/method_virtualhubslist.go | 13 +++++++++++++ .../method_virtualhubslistbyresourcegroup.go | 13 +++++++++++++ .../virtualwans/method_virtualwanslist.go | 13 +++++++++++++ .../method_virtualwanslistbyresourcegroup.go | 13 +++++++++++++ .../method_vpnconnectionslistbyvpngateway.go | 13 +++++++++++++ .../virtualwans/method_vpngatewayslist.go | 13 +++++++++++++ .../method_vpngatewayslistbyresourcegroup.go | 13 +++++++++++++ ...ethod_vpnlinkconnectionslistbyvpnconnection.go | 13 +++++++++++++ .../method_vpnserverconfigurationslist.go | 13 +++++++++++++ ..._vpnserverconfigurationslistbyresourcegroup.go | 13 +++++++++++++ .../method_vpnsitelinkslistbyvpnsite.go | 13 +++++++++++++ .../2023-11-01/virtualwans/method_vpnsiteslist.go | 13 +++++++++++++ .../method_vpnsiteslistbyresourcegroup.go | 13 +++++++++++++ ...sesgetvirtualmachinescalesetpublicipaddress.go | 2 +- ...listvirtualmachinescalesetpublicipaddresses.go | 13 +++++++++++++ ...stvirtualmachinescalesetvmpublicipaddresses.go | 13 +++++++++++++ .../2023-11-01/vpngateways/method_reset.go | 2 +- .../webapplicationfirewallpolicies/method_list.go | 13 +++++++++++++ .../method_listall.go | 13 +++++++++++++ .../2023-11-01/webcategories/method_get.go | 2 +- .../webcategories/method_listbysubscription.go | 13 +++++++++++++ .../adminrulecollections/method_delete.go | 2 +- .../adminrulecollections/method_list.go | 15 ++++++++++++++- .../2024-01-01/adminrules/method_delete.go | 2 +- .../network/2024-01-01/adminrules/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../applicationgateways/method_backendhealth.go | 2 +- .../method_backendhealthondemand.go | 2 +- .../2024-01-01/applicationgateways/method_list.go | 13 +++++++++++++ .../applicationgateways/method_listall.go | 13 +++++++++++++ .../method_listavailablesslpredefinedpolicies.go | 13 +++++++++++++ .../method_get.go | 13 +++++++++++++ .../applicationsecuritygroups/method_list.go | 13 +++++++++++++ .../applicationsecuritygroups/method_listall.go | 13 +++++++++++++ .../method_availabledelegationslist.go | 13 +++++++++++++ ...ethod_availableresourcegroupdelegationslist.go | 13 +++++++++++++ .../availableservicealiases/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2024-01-01/azurefirewalls/method_list.go | 13 +++++++++++++ .../2024-01-01/azurefirewalls/method_listall.go | 13 +++++++++++++ .../method_disconnectactivesessions.go | 13 +++++++++++++ .../bastionhosts/method_getactivesessions.go | 13 +++++++++++++ .../method_getbastionshareablelink.go | 13 +++++++++++++ .../2024-01-01/bastionhosts/method_list.go | 13 +++++++++++++ .../bastionhosts/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_putbastionshareablelink.go | 13 +++++++++++++ .../method_getbastionshareablelink.go | 13 +++++++++++++ .../method_putbastionshareablelink.go | 13 +++++++++++++ .../bgpservicecommunities/method_list.go | 13 +++++++++++++ .../method_checkdnsnameavailability.go | 2 +- ...icipaddressesgetcloudservicepublicipaddress.go | 2 +- ...paddresseslistcloudservicepublicipaddresses.go | 13 +++++++++++++ ...stcloudserviceroleinstancepublicipaddresses.go | 13 +++++++++++++ .../connectionmonitors/method_createorupdate.go | 2 +- .../connectivityconfigurations/method_delete.go | 2 +- .../connectivityconfigurations/method_list.go | 15 ++++++++++++++- .../2024-01-01/customipprefixes/method_get.go | 2 +- .../2024-01-01/customipprefixes/method_list.go | 13 +++++++++++++ .../2024-01-01/customipprefixes/method_listall.go | 13 +++++++++++++ .../2024-01-01/ddosprotectionplans/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_dscpconfigurationlist.go | 13 +++++++++++++ .../method_dscpconfigurationlistall.go | 13 +++++++++++++ .../method_availableendpointserviceslist.go | 13 +++++++++++++ .../method_expressroutecircuitslistarptable.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../expressroutecircuitconnections/method_list.go | 13 +++++++++++++ .../expressroutecircuitpeerings/method_list.go | 13 +++++++++++++ .../method_expressroutecircuitslistroutestable.go | 13 +++++++++++++ ..._expressroutecircuitslistroutestablesummary.go | 13 +++++++++++++ .../expressroutecircuits/method_list.go | 13 +++++++++++++ .../expressroutecircuits/method_listall.go | 13 +++++++++++++ ...od_expressroutecrossconnectionslistarptable.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...expressroutecrossconnectionslistroutestable.go | 13 +++++++++++++ ...routecrossconnectionslistroutestablesummary.go | 13 +++++++++++++ .../expressroutecrossconnections/method_list.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2024-01-01/expressroutelinks/method_list.go | 13 +++++++++++++ .../expressrouteportauthorizations/method_list.go | 13 +++++++++++++ .../2024-01-01/expressrouteports/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../expressrouteportslocations/method_list.go | 13 +++++++++++++ .../method_locationlist.go | 15 ++++++++++++++- .../expressrouteserviceproviders/method_list.go | 13 +++++++++++++ .../2024-01-01/firewallpolicies/method_get.go | 2 +- .../2024-01-01/firewallpolicies/method_list.go | 13 +++++++++++++ .../2024-01-01/firewallpolicies/method_listall.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../network/2024-01-01/flowlogs/method_list.go | 13 +++++++++++++ .../2024-01-01/ipallocations/method_get.go | 2 +- .../2024-01-01/ipallocations/method_list.go | 13 +++++++++++++ .../ipallocations/method_listbyresourcegroup.go | 13 +++++++++++++ .../network/2024-01-01/ipgroups/method_get.go | 2 +- .../network/2024-01-01/ipgroups/method_list.go | 13 +++++++++++++ .../ipgroups/method_listbyresourcegroup.go | 13 +++++++++++++ .../2024-01-01/loadbalancers/method_get.go | 2 +- .../loadbalancers/method_inboundnatrulesget.go | 2 +- .../loadbalancers/method_inboundnatruleslist.go | 13 +++++++++++++ .../2024-01-01/loadbalancers/method_list.go | 13 +++++++++++++ .../2024-01-01/loadbalancers/method_listall.go | 13 +++++++++++++ .../method_loadbalancerbackendaddresspoolslist.go | 13 +++++++++++++ ...od_loadbalancerfrontendipconfigurationslist.go | 13 +++++++++++++ .../method_loadbalancerloadbalancingruleslist.go | 13 +++++++++++++ .../method_loadbalancernetworkinterfaceslist.go | 13 +++++++++++++ .../method_loadbalanceroutboundruleslist.go | 13 +++++++++++++ .../method_loadbalancerprobeslist.go | 13 +++++++++++++ .../localnetworkgateways/method_list.go | 13 +++++++++++++ .../network/2024-01-01/natgateways/method_get.go | 2 +- .../network/2024-01-01/natgateways/method_list.go | 13 +++++++++++++ .../2024-01-01/natgateways/method_listall.go | 13 +++++++++++++ .../networkgroups/method_createorupdate.go | 2 +- .../2024-01-01/networkgroups/method_delete.go | 2 +- .../2024-01-01/networkgroups/method_list.go | 15 ++++++++++++++- .../2024-01-01/networkinterfaces/method_get.go | 2 +- .../method_getcloudservicenetworkinterface.go | 2 +- .../method_geteffectiveroutetable.go | 13 +++++++++++++ ...od_getvirtualmachinescalesetipconfiguration.go | 2 +- ...d_getvirtualmachinescalesetnetworkinterface.go | 2 +- .../2024-01-01/networkinterfaces/method_list.go | 13 +++++++++++++ .../networkinterfaces/method_listall.go | 13 +++++++++++++ .../method_listcloudservicenetworkinterfaces.go | 13 +++++++++++++ ...stcloudserviceroleinstancenetworkinterfaces.go | 13 +++++++++++++ .../method_listeffectivenetworksecuritygroups.go | 13 +++++++++++++ ..._listvirtualmachinescalesetipconfigurations.go | 15 ++++++++++++++- ...listvirtualmachinescalesetnetworkinterfaces.go | 13 +++++++++++++ ...stvirtualmachinescalesetvmnetworkinterfaces.go | 13 +++++++++++++ ...method_networkinterfaceipconfigurationslist.go | 13 +++++++++++++ .../method_networkinterfaceloadbalancerslist.go | 13 +++++++++++++ ...ethod_networkinterfacetapconfigurationslist.go | 13 +++++++++++++ ...anagementgroupnetworkmanagerconnectionslist.go | 15 ++++++++++++++- ...d_subscriptionnetworkmanagerconnectionslist.go | 15 ++++++++++++++- .../2024-01-01/networkmanagers/method_delete.go | 2 +- .../2024-01-01/networkmanagers/method_list.go | 15 ++++++++++++++- .../networkmanagers/method_listbysubscription.go | 15 ++++++++++++++- .../2024-01-01/networkprofiles/method_get.go | 2 +- .../2024-01-01/networkprofiles/method_list.go | 13 +++++++++++++ .../2024-01-01/networkprofiles/method_listall.go | 13 +++++++++++++ .../networksecuritygroups/method_get.go | 2 +- .../networksecuritygroups/method_list.go | 13 +++++++++++++ .../networksecuritygroups/method_listall.go | 13 +++++++++++++ .../networkvirtualappliances/method_get.go | 2 +- .../networkvirtualappliances/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../privatednszonegroups/method_list.go | 13 +++++++++++++ .../method_availableprivateendpointtypeslist.go | 13 +++++++++++++ ...ableprivateendpointtypeslistbyresourcegroup.go | 13 +++++++++++++ .../2024-01-01/privateendpoints/method_get.go | 2 +- .../2024-01-01/privateendpoints/method_list.go | 13 +++++++++++++ .../privateendpoints/method_listbysubscription.go | 13 +++++++++++++ .../2024-01-01/privatelinkservices/method_get.go | 2 +- .../method_getprivateendpointconnection.go | 2 +- .../2024-01-01/privatelinkservices/method_list.go | 13 +++++++++++++ .../method_listautoapprovedprivatelinkservices.go | 13 +++++++++++++ ...oapprovedprivatelinkservicesbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listprivateendpointconnections.go | 13 +++++++++++++ .../2024-01-01/publicipaddresses/method_get.go | 2 +- .../2024-01-01/publicipaddresses/method_list.go | 13 +++++++++++++ .../publicipaddresses/method_listall.go | 13 +++++++++++++ .../2024-01-01/publicipprefixes/method_get.go | 2 +- .../2024-01-01/publicipprefixes/method_list.go | 13 +++++++++++++ .../2024-01-01/publicipprefixes/method_listall.go | 13 +++++++++++++ .../routefilterrules/method_listbyroutefilter.go | 13 +++++++++++++ .../network/2024-01-01/routefilters/method_get.go | 2 +- .../2024-01-01/routefilters/method_list.go | 13 +++++++++++++ .../routefilters/method_listbyresourcegroup.go | 13 +++++++++++++ .../network/2024-01-01/routes/method_list.go | 13 +++++++++++++ .../network/2024-01-01/routetables/method_get.go | 2 +- .../network/2024-01-01/routetables/method_list.go | 13 +++++++++++++ .../2024-01-01/routetables/method_listall.go | 13 +++++++++++++ .../2024-01-01/scopeconnections/method_list.go | 15 ++++++++++++++- .../securityadminconfigurations/method_delete.go | 2 +- .../securityadminconfigurations/method_list.go | 15 ++++++++++++++- .../securitypartnerproviders/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_defaultsecurityruleslist.go | 13 +++++++++++++ .../2024-01-01/securityrules/method_list.go | 13 +++++++++++++ .../serviceendpointpolicies/method_get.go | 2 +- .../serviceendpointpolicies/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_servicetaginformationlist.go | 15 ++++++++++++++- .../2024-01-01/staticmembers/method_list.go | 15 ++++++++++++++- .../network/2024-01-01/subnets/method_get.go | 2 +- .../network/2024-01-01/subnets/method_list.go | 13 +++++++++++++ .../network/2024-01-01/usages/method_list.go | 13 +++++++++++++ .../virtualappliancesites/method_list.go | 13 +++++++++++++ .../virtualapplianceskus/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_getadvertisedroutes.go | 2 +- .../method_getbgppeerstatus.go | 2 +- .../virtualnetworkgateways/method_list.go | 13 +++++++++++++ .../method_listconnections.go | 13 +++++++++++++ .../virtualnetworkgateways/method_reset.go | 2 +- ...kgatewaynatruleslistbyvirtualnetworkgateway.go | 13 +++++++++++++ .../method_createorupdate.go | 2 +- .../virtualnetworkpeerings/method_list.go | 13 +++++++++++++ .../2024-01-01/virtualnetworks/method_get.go | 2 +- .../2024-01-01/virtualnetworks/method_list.go | 13 +++++++++++++ .../2024-01-01/virtualnetworks/method_listall.go | 13 +++++++++++++ .../method_resourcenavigationlinkslist.go | 13 +++++++++++++ .../method_serviceassociationlinkslist.go | 13 +++++++++++++ ...d_virtualnetworkscheckipaddressavailability.go | 2 +- ...hod_virtualnetworkslistddosprotectionstatus.go | 15 ++++++++++++++- .../method_virtualnetworkslistusage.go | 13 +++++++++++++ .../virtualnetworktaps/method_listall.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../virtualrouterpeerings/method_list.go | 13 +++++++++++++ .../2024-01-01/virtualrouters/method_get.go | 2 +- .../2024-01-01/virtualrouters/method_list.go | 13 +++++++++++++ .../virtualrouters/method_listbyresourcegroup.go | 13 +++++++++++++ ...ionpolicygroupslistbyvpnserverconfiguration.go | 13 +++++++++++++ .../virtualwans/method_hubroutetableslist.go | 13 +++++++++++++ .../method_hubvirtualnetworkconnectionslist.go | 13 +++++++++++++ .../method_natruleslistbyvpngateway.go | 13 +++++++++++++ ...thod_networkvirtualapplianceconnectionslist.go | 13 +++++++++++++ .../virtualwans/method_p2svpngatewayslist.go | 13 +++++++++++++ .../method_p2svpngatewayslistbyresourcegroup.go | 13 +++++++++++++ .../virtualwans/method_routemapslist.go | 13 +++++++++++++ .../virtualwans/method_routingintentlist.go | 13 +++++++++++++ .../method_virtualhubbgpconnectionslist.go | 13 +++++++++++++ .../method_virtualhubipconfigurationlist.go | 13 +++++++++++++ .../method_virtualhubroutetablev2slist.go | 13 +++++++++++++ .../virtualwans/method_virtualhubslist.go | 13 +++++++++++++ .../method_virtualhubslistbyresourcegroup.go | 13 +++++++++++++ .../virtualwans/method_virtualwanslist.go | 13 +++++++++++++ .../method_virtualwanslistbyresourcegroup.go | 13 +++++++++++++ .../method_vpnconnectionslistbyvpngateway.go | 13 +++++++++++++ .../virtualwans/method_vpngatewayslist.go | 13 +++++++++++++ .../method_vpngatewayslistbyresourcegroup.go | 13 +++++++++++++ ...ethod_vpnlinkconnectionslistbyvpnconnection.go | 13 +++++++++++++ .../method_vpnserverconfigurationslist.go | 13 +++++++++++++ ..._vpnserverconfigurationslistbyresourcegroup.go | 13 +++++++++++++ .../method_vpnsitelinkslistbyvpnsite.go | 13 +++++++++++++ .../2024-01-01/virtualwans/method_vpnsiteslist.go | 13 +++++++++++++ .../method_vpnsiteslistbyresourcegroup.go | 13 +++++++++++++ ...sesgetvirtualmachinescalesetpublicipaddress.go | 2 +- ...listvirtualmachinescalesetpublicipaddresses.go | 13 +++++++++++++ ...stvirtualmachinescalesetvmpublicipaddresses.go | 13 +++++++++++++ .../2024-01-01/vpngateways/method_reset.go | 2 +- .../webapplicationfirewallpolicies/method_list.go | 13 +++++++++++++ .../method_listall.go | 13 +++++++++++++ .../2024-01-01/webcategories/method_get.go | 2 +- .../webcategories/method_listbysubscription.go | 13 +++++++++++++ .../dataproducts/method_listbyresourcegroup.go | 13 +++++++++++++ .../dataproducts/method_listbysubscription.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../datatypes/method_listbydataproduct.go | 13 +++++++++++++ .../method_agentpoolslistbykubernetescluster.go | 13 +++++++++++++ ...method_baremetalmachinekeysetslistbycluster.go | 13 +++++++++++++ ...method_baremetalmachineslistbyresourcegroup.go | 13 +++++++++++++ .../method_baremetalmachineslistbysubscription.go | 13 +++++++++++++ .../method_bmckeysetslistbycluster.go | 13 +++++++++++++ ...od_cloudservicesnetworkslistbyresourcegroup.go | 13 +++++++++++++ ...hod_cloudservicesnetworkslistbysubscription.go | 13 +++++++++++++ .../method_clustermanagerslistbyresourcegroup.go | 13 +++++++++++++ .../method_clustermanagerslistbysubscription.go | 13 +++++++++++++ .../method_clusterslistbyresourcegroup.go | 13 +++++++++++++ .../method_clusterslistbysubscription.go | 13 +++++++++++++ .../method_consoleslistbyvirtualmachine.go | 13 +++++++++++++ ...ethod_kubernetesclusterslistbyresourcegroup.go | 13 +++++++++++++ ...method_kubernetesclusterslistbysubscription.go | 13 +++++++++++++ .../method_l2networkslistbyresourcegroup.go | 13 +++++++++++++ .../method_l2networkslistbysubscription.go | 13 +++++++++++++ .../method_l3networkslistbyresourcegroup.go | 13 +++++++++++++ .../method_l3networkslistbysubscription.go | 13 +++++++++++++ .../method_metricsconfigurationslistbycluster.go | 13 +++++++++++++ .../method_rackskuslistbysubscription.go | 13 +++++++++++++ .../method_rackslistbyresourcegroup.go | 13 +++++++++++++ .../method_rackslistbysubscription.go | 13 +++++++++++++ ...method_storageapplianceslistbyresourcegroup.go | 13 +++++++++++++ .../method_storageapplianceslistbysubscription.go | 13 +++++++++++++ .../method_trunkednetworkslistbyresourcegroup.go | 13 +++++++++++++ .../method_trunkednetworkslistbysubscription.go | 13 +++++++++++++ .../method_virtualmachineslistbyresourcegroup.go | 13 +++++++++++++ .../method_virtualmachineslistbysubscription.go | 13 +++++++++++++ .../method_volumeslistbyresourcegroup.go | 13 +++++++++++++ .../method_volumeslistbysubscription.go | 13 +++++++++++++ .../method_byresourcegrouplist.go | 13 +++++++++++++ .../method_bysubscriptionlist.go | 13 +++++++++++++ .../2022-11-01/collectorpolicies/method_list.go | 13 +++++++++++++ .../newrelic/2022-07-01/accounts/method_list.go | 15 ++++++++++++++- .../newrelic/2022-07-01/monitors/method_delete.go | 2 +- .../2022-07-01/monitors/method_listappservices.go | 13 +++++++++++++ .../monitors/method_listbyresourcegroup.go | 13 +++++++++++++ .../monitors/method_listbysubscription.go | 13 +++++++++++++ .../2022-07-01/monitors/method_listhosts.go | 13 +++++++++++++ .../monitors/method_listmonitoredresources.go | 13 +++++++++++++ .../2022-07-01/organizations/method_list.go | 15 ++++++++++++++- .../newrelic/2022-07-01/plan/method_list.go | 15 ++++++++++++++- .../method_listbynewrelicmonitorresource.go | 13 +++++++++++++ .../newrelic/2024-03-01/accounts/method_list.go | 15 ++++++++++++++- .../method_connectedpartnerresourceslist.go | 13 +++++++++++++ .../method_monitorslistlinkedresources.go | 13 +++++++++++++ .../monitoredsubscriptions/method_list.go | 13 +++++++++++++ .../newrelic/2024-03-01/monitors/method_delete.go | 2 +- .../2024-03-01/monitors/method_listappservices.go | 13 +++++++++++++ .../monitors/method_listbyresourcegroup.go | 13 +++++++++++++ .../monitors/method_listbysubscription.go | 13 +++++++++++++ .../2024-03-01/monitors/method_listhosts.go | 13 +++++++++++++ .../monitors/method_listmonitoredresources.go | 13 +++++++++++++ .../2024-03-01/organizations/method_list.go | 15 ++++++++++++++- .../newrelic/2024-03-01/plan/method_list.go | 15 ++++++++++++++- .../method_listbynewrelicmonitorresource.go | 13 +++++++++++++ .../nginxcertificate/method_certificateslist.go | 13 +++++++++++++ .../method_configurationslist.go | 13 +++++++++++++ .../nginxdeployment/method_deploymentslist.go | 13 +++++++++++++ .../method_deploymentslistbyresourcegroup.go | 13 +++++++++++++ .../nginxcertificate/method_certificateslist.go | 13 +++++++++++++ .../method_configurationslist.go | 13 +++++++++++++ .../nginxdeployment/method_deploymentslist.go | 13 +++++++++++++ .../method_deploymentslistbyresourcegroup.go | 13 +++++++++++++ .../nginxcertificate/method_certificateslist.go | 13 +++++++++++++ .../method_configurationslist.go | 13 +++++++++++++ .../nginxdeployment/method_deploymentslist.go | 13 +++++++++++++ .../method_deploymentslistbyresourcegroup.go | 13 +++++++++++++ .../2017-04-01/namespaces/method_list.go | 13 +++++++++++++ .../2017-04-01/namespaces/method_listall.go | 13 +++++++++++++ .../namespaces/method_listauthorizationrules.go | 13 +++++++++++++ .../2017-04-01/notificationhubs/method_list.go | 13 +++++++++++++ .../method_listauthorizationrules.go | 13 +++++++++++++ .../hubs/method_notificationhubslist.go | 15 ++++++++++++++- ...thod_notificationhubslistauthorizationrules.go | 13 +++++++++++++ .../2023-09-01/namespaces/method_list.go | 15 ++++++++++++++- .../2023-09-01/namespaces/method_listall.go | 15 ++++++++++++++- .../namespaces/method_listauthorizationrules.go | 13 +++++++++++++ .../method_privateendpointconnectionslist.go | 13 +++++++++++++ ...thod_privateendpointconnectionslistgroupids.go | 13 +++++++++++++ .../querypackqueries/method_querieslist.go | 15 ++++++++++++++- .../querypackqueries/method_queriessearch.go | 15 ++++++++++++++- .../2019-09-01/querypacks/method_list.go | 13 +++++++++++++ .../querypacks/method_listbyresourcegroup.go | 13 +++++++++++++ .../2020-08-01/clusters/method_list.go | 13 +++++++++++++ .../clusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../datasources/method_listbyworkspace.go | 15 ++++++++++++++- ...method_storageinsightconfigslistbyworkspace.go | 13 +++++++++++++ .../2020-08-01/workspaces/method_delete.go | 2 +- .../2021-06-01/clusters/method_list.go | 13 +++++++++++++ .../clusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../2021-06-01/workspaces/method_delete.go | 2 +- .../2022-10-01/clusters/method_list.go | 13 +++++++++++++ .../clusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../2022-10-01/workspaces/method_delete.go | 2 +- .../2023-09-01/workspaces/method_delete.go | 2 +- .../orbital/2022-11-01/contact/method_list.go | 13 +++++++++++++ .../method_spacecraftslistavailablecontacts.go | 13 +++++++++++++ .../2022-11-01/contactprofile/method_list.go | 13 +++++++++++++ .../contactprofile/method_listbysubscription.go | 13 +++++++++++++ ...hod_availablegroundstationslistbycapability.go | 15 ++++++++++++++- .../orbital/2022-11-01/spacecraft/method_list.go | 13 +++++++++++++ .../spacecraft/method_listbysubscription.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbylocalrulestacks.go | 13 +++++++++++++ .../2022-08-29/firewalls/method_getsupportinfo.go | 2 +- .../firewalls/method_listbyresourcegroup.go | 13 +++++++++++++ .../firewalls/method_listbysubscription.go | 13 +++++++++++++ .../firewallstatus/method_listbyfirewalls.go | 13 +++++++++++++ .../fqdnlistglobalrulestack/method_list.go | 13 +++++++++++++ .../method_listbylocalrulestacks.go | 13 +++++++++++++ .../2022-08-29/globalrulestack/method_list.go | 13 +++++++++++++ .../method_listadvancedsecurityobjects.go | 15 ++++++++++++++- .../globalrulestack/method_listappids.go | 15 ++++++++++++++- .../globalrulestack/method_listcountries.go | 15 ++++++++++++++- .../globalrulestack/method_listfirewalls.go | 13 +++++++++++++ .../method_listpredefinedurlcategories.go | 15 ++++++++++++++- .../method_listsecurityservices.go | 15 ++++++++++++++- .../2022-08-29/localrules/method_getcounters.go | 2 +- .../localrules/method_listbylocalrulestacks.go | 13 +++++++++++++ .../localrules/method_refreshcounters.go | 2 +- .../2022-08-29/localrules/method_resetcounters.go | 2 +- .../localrulestacks/method_getsupportinfo.go | 2 +- .../method_listadvancedsecurityobjects.go | 15 ++++++++++++++- .../localrulestacks/method_listappids.go | 15 ++++++++++++++- .../localrulestacks/method_listbyresourcegroup.go | 13 +++++++++++++ .../localrulestacks/method_listbysubscription.go | 13 +++++++++++++ .../localrulestacks/method_listcountries.go | 15 ++++++++++++++- .../localrulestacks/method_listfirewalls.go | 13 +++++++++++++ .../method_listpredefinedurlcategories.go | 15 ++++++++++++++- .../method_listsecurityservices.go | 15 ++++++++++++++- .../2022-08-29/postrules/method_getcounters.go | 2 +- .../2022-08-29/postrules/method_list.go | 13 +++++++++++++ .../postrules/method_refreshcounters.go | 2 +- .../2022-08-29/postrules/method_resetcounters.go | 2 +- .../prefixlistglobalrulestack/method_list.go | 13 +++++++++++++ .../method_listbylocalrulestacks.go | 13 +++++++++++++ .../2022-08-29/prerules/method_getcounters.go | 2 +- .../2022-08-29/prerules/method_list.go | 13 +++++++++++++ .../2022-08-29/prerules/method_refreshcounters.go | 2 +- .../2022-08-29/prerules/method_resetcounters.go | 2 +- .../method_list.go | 13 +++++++++++++ .../method_listbylocalrulestacks.go | 13 +++++++++++++ .../2023-09-01/firewalls/method_getsupportinfo.go | 2 +- .../firewalls/method_listbyresourcegroup.go | 13 +++++++++++++ .../firewalls/method_listbysubscription.go | 13 +++++++++++++ .../firewallstatus/method_listbyfirewalls.go | 13 +++++++++++++ .../fqdnlistglobalrulestack/method_list.go | 13 +++++++++++++ .../method_listbylocalrulestacks.go | 13 +++++++++++++ .../2023-09-01/globalrulestack/method_list.go | 13 +++++++++++++ .../method_listadvancedsecurityobjects.go | 15 ++++++++++++++- .../globalrulestack/method_listappids.go | 15 ++++++++++++++- .../globalrulestack/method_listcountries.go | 15 ++++++++++++++- .../globalrulestack/method_listfirewalls.go | 13 +++++++++++++ .../method_listpredefinedurlcategories.go | 15 ++++++++++++++- .../method_listsecurityservices.go | 15 ++++++++++++++- .../2023-09-01/localrules/method_getcounters.go | 2 +- .../localrules/method_listbylocalrulestacks.go | 13 +++++++++++++ .../localrules/method_refreshcounters.go | 2 +- .../2023-09-01/localrules/method_resetcounters.go | 2 +- .../localrulestacks/method_getsupportinfo.go | 2 +- .../method_listadvancedsecurityobjects.go | 15 ++++++++++++++- .../localrulestacks/method_listappids.go | 15 ++++++++++++++- .../localrulestacks/method_listbyresourcegroup.go | 13 +++++++++++++ .../localrulestacks/method_listbysubscription.go | 13 +++++++++++++ .../localrulestacks/method_listcountries.go | 15 ++++++++++++++- .../localrulestacks/method_listfirewalls.go | 13 +++++++++++++ .../method_listpredefinedurlcategories.go | 15 ++++++++++++++- .../method_listsecurityservices.go | 15 ++++++++++++++- .../2023-09-01/postrules/method_getcounters.go | 2 +- .../2023-09-01/postrules/method_list.go | 13 +++++++++++++ .../postrules/method_refreshcounters.go | 2 +- .../2023-09-01/postrules/method_resetcounters.go | 2 +- .../prefixlistglobalrulestack/method_list.go | 13 +++++++++++++ .../method_listbylocalrulestacks.go | 13 +++++++++++++ .../2023-09-01/prerules/method_getcounters.go | 2 +- .../2023-09-01/prerules/method_list.go | 13 +++++++++++++ .../2023-09-01/prerules/method_refreshcounters.go | 2 +- .../2023-09-01/prerules/method_resetcounters.go | 2 +- .../method_listdeploymentsatmanagementgroup.go | 15 ++++++++++++++- .../method_listdeploymentsatresource.go | 15 ++++++++++++++- .../method_listdeploymentsatresourcegroup.go | 15 ++++++++++++++- .../method_listdeploymentsatsubscription.go | 15 ++++++++++++++- .../remediations/method_listformanagementgroup.go | 15 ++++++++++++++- .../remediations/method_listforresource.go | 15 ++++++++++++++- .../remediations/method_listforresourcegroup.go | 15 ++++++++++++++- .../remediations/method_listforsubscription.go | 15 ++++++++++++++- .../attestations/method_listforresource.go | 15 ++++++++++++++- .../attestations/method_listforresourcegroup.go | 15 ++++++++++++++- .../attestations/method_listforsubscription.go | 15 ++++++++++++++- .../dashboard/method_listbyresourcegroup.go | 13 +++++++++++++ .../dashboard/method_listbysubscription.go | 13 +++++++++++++ .../tenantconfiguration/method_list.go | 13 +++++++++++++ .../dashboard/method_listbyresourcegroup.go | 13 +++++++++++++ .../dashboard/method_listbysubscription.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../tenantconfiguration/method_list.go | 13 +++++++++++++ .../method_listbyserver.go | 13 +++++++++++++ .../virtualnetworkrules/method_listbyserver.go | 13 +++++++++++++ .../2020-01-01/serverkeys/method_list.go | 13 +++++++++++++ .../configurations/method_listbyserver.go | 13 +++++++++++++ .../2021-06-01/databases/method_listbyserver.go | 13 +++++++++++++ .../firewallrules/method_listbyserver.go | 13 +++++++++++++ .../locationbasedcapabilities/method_execute.go | 13 +++++++++++++ .../postgresql/2021-06-01/servers/method_list.go | 13 +++++++++++++ .../servers/method_listbyresourcegroup.go | 13 +++++++++++++ .../administrators/method_listbyserver.go | 13 +++++++++++++ .../2022-12-01/backups/method_listbyserver.go | 13 +++++++++++++ .../configurations/method_listbyserver.go | 13 +++++++++++++ .../2022-12-01/databases/method_listbyserver.go | 13 +++++++++++++ .../firewallrules/method_listbyserver.go | 13 +++++++++++++ .../locationbasedcapabilities/method_execute.go | 13 +++++++++++++ .../2022-12-01/replicas/method_listbyserver.go | 13 +++++++++++++ .../postgresql/2022-12-01/servers/method_list.go | 13 +++++++++++++ .../servers/method_listbyresourcegroup.go | 13 +++++++++++++ .../administrators/method_listbyserver.go | 13 +++++++++++++ ..._serverthreatprotectionsettingslistbyserver.go | 13 +++++++++++++ .../backups/method_listbyserver.go | 13 +++++++++++++ .../configurations/method_listbyserver.go | 13 +++++++++++++ .../databases/method_listbyserver.go | 13 +++++++++++++ .../firewallrules/method_listbyserver.go | 13 +++++++++++++ .../method_servercapabilitieslist.go | 13 +++++++++++++ .../locationbasedcapabilities/method_execute.go | 13 +++++++++++++ .../logfiles/method_listbyserver.go | 13 +++++++++++++ .../method_ltrbackupoperationslistbyserver.go | 13 +++++++++++++ .../migrations/method_listbytargetserver.go | 15 ++++++++++++++- .../method_listbyserver.go | 13 +++++++++++++ .../privatelinkresources/method_listbyserver.go | 13 +++++++++++++ .../method_quotausageslist.go | 13 +++++++++++++ .../replicas/method_listbyserver.go | 13 +++++++++++++ .../2023-06-01-preview/servers/method_list.go | 13 +++++++++++++ .../servers/method_listbyresourcegroup.go | 13 +++++++++++++ .../virtualendpoints/method_listbyserver.go | 13 +++++++++++++ .../2022-11-08/clusters/method_list.go | 13 +++++++++++++ .../clusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../configurations/method_listbycluster.go | 13 +++++++++++++ .../configurations/method_listbyserver.go | 13 +++++++++++++ .../privatezones/method_createorupdate.go | 2 +- .../2020-06-01/privatezones/method_delete.go | 2 +- .../2020-06-01/privatezones/method_list.go | 15 ++++++++++++++- .../privatezones/method_listbyresourcegroup.go | 15 ++++++++++++++- .../2020-06-01/privatezones/method_update.go | 2 +- .../recordsets/method_createorupdate.go | 2 +- .../2020-06-01/recordsets/method_delete.go | 2 +- .../2020-06-01/recordsets/method_list.go | 15 ++++++++++++++- .../2020-06-01/recordsets/method_listbytype.go | 15 ++++++++++++++- .../2020-06-01/recordsets/method_update.go | 2 +- .../virtualnetworklinks/method_createorupdate.go | 2 +- .../virtualnetworklinks/method_delete.go | 2 +- .../2020-06-01/virtualnetworklinks/method_list.go | 15 ++++++++++++++- .../virtualnetworklinks/method_update.go | 2 +- .../account/method_listbyresourcegroup.go | 13 +++++++++++++ .../account/method_listbysubscription.go | 13 +++++++++++++ .../2021-07-01/defaultaccount/method_get.go | 2 +- .../2021-07-01/defaultaccount/method_remove.go | 2 +- .../method_listbyaccount.go | 13 +++++++++++++ .../privatelinkresource/method_listbyaccount.go | 13 +++++++++++++ .../account/method_listbyresourcegroup.go | 13 +++++++++++++ .../account/method_listbysubscription.go | 13 +++++++++++++ .../2021-12-01/defaultaccount/method_get.go | 2 +- .../2021-12-01/defaultaccount/method_remove.go | 2 +- .../kafkaconfiguration/method_listbyaccount.go | 13 +++++++++++++ .../method_listbyaccount.go | 13 +++++++++++++ .../privatelinkresource/method_listbyaccount.go | 13 +++++++++++++ .../purview/2021-12-01/usages/method_get.go | 15 ++++++++++++++- .../filesystems/method_listbyresourcegroup.go | 13 +++++++++++++ .../filesystems/method_listbysubscription.go | 13 +++++++++++++ .../quotainformation/method_quotalist.go | 13 +++++++++++++ .../2023-02-01/quotarequests/method_tatuslist.go | 15 ++++++++++++++- .../usagesinformation/method_usageslist.go | 13 +++++++++++++ .../method_privatelinkresourceslist.go | 13 +++++++++++++ .../vaults/method_listbyresourcegroup.go | 13 +++++++++++++ .../vaults/method_listbysubscriptionid.go | 13 +++++++++++++ .../method_privatelinkresourceslist.go | 13 +++++++++++++ .../vaults/method_listbyresourcegroup.go | 13 +++++++++++++ .../vaults/method_listbysubscriptionid.go | 13 +++++++++++++ .../method_privatelinkresourceslist.go | 13 +++++++++++++ .../vaults/method_listbyresourcegroup.go | 13 +++++++++++++ .../vaults/method_listbysubscriptionid.go | 13 +++++++++++++ .../method_privatelinkresourceslist.go | 13 +++++++++++++ .../2024-04-01/vaults/method_createorupdate.go | 2 +- .../vaults/method_listbyresourcegroup.go | 13 +++++++++++++ .../vaults/method_listbysubscriptionid.go | 13 +++++++++++++ .../2024-04-01/vaults/method_update.go | 2 +- .../method_listbyreplicationmigrationitems.go | 13 +++++++++++++ .../2022-10-01/operations/method_list.go | 13 +++++++++++++ .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../replicationalertsettings/method_list.go | 13 +++++++++++++ .../replicationappliances/method_list.go | 15 ++++++++++++++- .../2022-10-01/replicationevents/method_list.go | 15 ++++++++++++++- .../2022-10-01/replicationfabrics/method_get.go | 2 +- .../2022-10-01/replicationfabrics/method_list.go | 13 +++++++++++++ .../2022-10-01/replicationjobs/method_list.go | 15 ++++++++++++++- .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationmigrationitems/method_delete.go | 2 +- .../replicationmigrationitems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationnetworkmappings/method_list.go | 13 +++++++++++++ .../method_listbyreplicationnetworks.go | 13 +++++++++++++ .../2022-10-01/replicationnetworks/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../2022-10-01/replicationpolicies/method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationprotecteditems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationprotectionintents/method_list.go | 15 ++++++++++++++- .../replicationrecoveryplans/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...hod_listbyreplicationstorageclassifications.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationvaultsetting/method_list.go | 13 +++++++++++++ .../2022-10-01/replicationvcenters/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../supportedoperatingsystems/method_get.go | 2 +- .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../method_listbyreplicationmigrationitems.go | 13 +++++++++++++ .../2023-01-01/operations/method_list.go | 13 +++++++++++++ .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../replicationalertsettings/method_list.go | 13 +++++++++++++ .../replicationappliances/method_list.go | 15 ++++++++++++++- .../2023-01-01/replicationevents/method_list.go | 15 ++++++++++++++- .../2023-01-01/replicationfabrics/method_get.go | 2 +- .../2023-01-01/replicationfabrics/method_list.go | 13 +++++++++++++ .../2023-01-01/replicationjobs/method_list.go | 15 ++++++++++++++- .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationmigrationitems/method_delete.go | 2 +- .../replicationmigrationitems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationnetworkmappings/method_list.go | 13 +++++++++++++ .../method_listbyreplicationnetworks.go | 13 +++++++++++++ .../2023-01-01/replicationnetworks/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../2023-01-01/replicationpolicies/method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationprotecteditems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationprotectionintents/method_list.go | 15 ++++++++++++++- .../replicationrecoveryplans/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...hod_listbyreplicationstorageclassifications.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationvaultsetting/method_list.go | 13 +++++++++++++ .../2023-01-01/replicationvcenters/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../supportedoperatingsystems/method_get.go | 2 +- .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../method_listbyreplicationmigrationitems.go | 13 +++++++++++++ .../2023-02-01/operations/method_list.go | 13 +++++++++++++ .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../replicationalertsettings/method_list.go | 13 +++++++++++++ .../replicationappliances/method_list.go | 15 ++++++++++++++- .../2023-02-01/replicationevents/method_list.go | 15 ++++++++++++++- .../2023-02-01/replicationfabrics/method_get.go | 2 +- .../2023-02-01/replicationfabrics/method_list.go | 13 +++++++++++++ .../2023-02-01/replicationjobs/method_list.go | 15 ++++++++++++++- .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationmigrationitems/method_delete.go | 2 +- .../replicationmigrationitems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationnetworkmappings/method_list.go | 13 +++++++++++++ .../method_listbyreplicationnetworks.go | 13 +++++++++++++ .../2023-02-01/replicationnetworks/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../2023-02-01/replicationpolicies/method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationprotecteditems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationprotectionintents/method_list.go | 15 ++++++++++++++- .../replicationrecoveryplans/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...hod_listbyreplicationstorageclassifications.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationvaultsetting/method_list.go | 13 +++++++++++++ .../2023-02-01/replicationvcenters/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../supportedoperatingsystems/method_get.go | 2 +- .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../method_listbyreplicationmigrationitems.go | 13 +++++++++++++ .../2023-04-01/operations/method_list.go | 13 +++++++++++++ .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../replicationalertsettings/method_list.go | 13 +++++++++++++ .../replicationappliances/method_list.go | 15 ++++++++++++++- .../2023-04-01/replicationevents/method_list.go | 15 ++++++++++++++- .../2023-04-01/replicationfabrics/method_get.go | 2 +- .../2023-04-01/replicationfabrics/method_list.go | 13 +++++++++++++ .../2023-04-01/replicationjobs/method_list.go | 15 ++++++++++++++- .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationmigrationitems/method_delete.go | 2 +- .../replicationmigrationitems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationnetworkmappings/method_list.go | 13 +++++++++++++ .../method_listbyreplicationnetworks.go | 13 +++++++++++++ .../2023-04-01/replicationnetworks/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../2023-04-01/replicationpolicies/method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationprotecteditems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationprotectionintents/method_list.go | 15 ++++++++++++++- .../replicationrecoveryplans/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...hod_listbyreplicationstorageclassifications.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationvaultsetting/method_list.go | 13 +++++++++++++ .../2023-04-01/replicationvcenters/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../supportedoperatingsystems/method_get.go | 2 +- .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../method_listbyreplicationmigrationitems.go | 13 +++++++++++++ .../2023-06-01/operations/method_list.go | 13 +++++++++++++ .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../replicationalertsettings/method_list.go | 13 +++++++++++++ .../replicationappliances/method_list.go | 15 ++++++++++++++- .../2023-06-01/replicationevents/method_list.go | 15 ++++++++++++++- .../2023-06-01/replicationfabrics/method_get.go | 2 +- .../2023-06-01/replicationfabrics/method_list.go | 13 +++++++++++++ .../2023-06-01/replicationjobs/method_list.go | 15 ++++++++++++++- .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationmigrationitems/method_delete.go | 2 +- .../replicationmigrationitems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationnetworkmappings/method_list.go | 13 +++++++++++++ .../method_listbyreplicationnetworks.go | 13 +++++++++++++ .../2023-06-01/replicationnetworks/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../2023-06-01/replicationpolicies/method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationprotecteditems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationprotectionintents/method_list.go | 15 ++++++++++++++- .../replicationrecoveryplans/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...hod_listbyreplicationstorageclassifications.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationvaultsetting/method_list.go | 13 +++++++++++++ .../2023-06-01/replicationvcenters/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../supportedoperatingsystems/method_get.go | 2 +- .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../method_listbyreplicationmigrationitems.go | 13 +++++++++++++ .../2023-08-01/operations/method_list.go | 13 +++++++++++++ .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../replicationalertsettings/method_list.go | 13 +++++++++++++ .../replicationappliances/method_list.go | 15 ++++++++++++++- .../2023-08-01/replicationevents/method_list.go | 15 ++++++++++++++- .../2023-08-01/replicationfabrics/method_get.go | 2 +- .../2023-08-01/replicationfabrics/method_list.go | 13 +++++++++++++ .../2023-08-01/replicationjobs/method_list.go | 15 ++++++++++++++- .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationmigrationitems/method_delete.go | 2 +- .../replicationmigrationitems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationnetworkmappings/method_list.go | 13 +++++++++++++ .../method_listbyreplicationnetworks.go | 13 +++++++++++++ .../2023-08-01/replicationnetworks/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../2023-08-01/replicationpolicies/method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationprotecteditems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationprotectionintents/method_list.go | 15 ++++++++++++++- .../replicationrecoveryplans/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...hod_listbyreplicationstorageclassifications.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationvaultsetting/method_list.go | 13 +++++++++++++ .../2023-08-01/replicationvcenters/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../supportedoperatingsystems/method_get.go | 2 +- .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../method_listbyreplicationmigrationitems.go | 13 +++++++++++++ .../2024-01-01/operations/method_list.go | 13 +++++++++++++ .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../replicationalertsettings/method_list.go | 13 +++++++++++++ .../replicationappliances/method_list.go | 15 ++++++++++++++- .../2024-01-01/replicationevents/method_list.go | 15 ++++++++++++++- .../2024-01-01/replicationfabrics/method_get.go | 2 +- .../2024-01-01/replicationfabrics/method_list.go | 13 +++++++++++++ .../2024-01-01/replicationjobs/method_list.go | 15 ++++++++++++++- .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationmigrationitems/method_delete.go | 2 +- .../replicationmigrationitems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationnetworkmappings/method_list.go | 13 +++++++++++++ .../method_listbyreplicationnetworks.go | 13 +++++++++++++ .../2024-01-01/replicationnetworks/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../2024-01-01/replicationpolicies/method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationprotecteditems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationprotectionintents/method_list.go | 15 ++++++++++++++- .../replicationrecoveryplans/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...hod_listbyreplicationstorageclassifications.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationvaultsetting/method_list.go | 13 +++++++++++++ .../2024-01-01/replicationvcenters/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../supportedoperatingsystems/method_get.go | 2 +- .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../method_listbyreplicationprotectioncluster.go | 13 +++++++++++++ .../method_listbyreplicationmigrationitems.go | 13 +++++++++++++ .../2024-02-01/operations/method_list.go | 13 +++++++++++++ .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../replicationalertsettings/method_list.go | 13 +++++++++++++ .../replicationappliances/method_list.go | 15 ++++++++++++++- .../2024-02-01/replicationevents/method_list.go | 15 ++++++++++++++- .../2024-02-01/replicationfabrics/method_get.go | 2 +- .../2024-02-01/replicationfabrics/method_list.go | 13 +++++++++++++ .../2024-02-01/replicationjobs/method_list.go | 15 ++++++++++++++- .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationmigrationitems/method_delete.go | 2 +- .../replicationmigrationitems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationnetworkmappings/method_list.go | 13 +++++++++++++ .../method_listbyreplicationnetworks.go | 13 +++++++++++++ .../2024-02-01/replicationnetworks/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../2024-02-01/replicationpolicies/method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationprotecteditems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../replicationprotectionclusters/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationprotectionintents/method_list.go | 15 ++++++++++++++- .../replicationrecoveryplans/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...hod_listbyreplicationstorageclassifications.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationvaultsetting/method_list.go | 13 +++++++++++++ .../2024-02-01/replicationvcenters/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../supportedoperatingsystems/method_get.go | 2 +- .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../method_listbyreplicationprotectioncluster.go | 13 +++++++++++++ .../method_listbyreplicationmigrationitems.go | 13 +++++++++++++ .../2024-04-01/operations/method_list.go | 13 +++++++++++++ .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../replicationalertsettings/method_list.go | 13 +++++++++++++ .../replicationappliances/method_list.go | 15 ++++++++++++++- .../2024-04-01/replicationevents/method_list.go | 15 ++++++++++++++- .../2024-04-01/replicationfabrics/method_get.go | 2 +- .../2024-04-01/replicationfabrics/method_list.go | 13 +++++++++++++ .../2024-04-01/replicationjobs/method_list.go | 15 ++++++++++++++- .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationmigrationitems/method_delete.go | 2 +- .../replicationmigrationitems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationnetworkmappings/method_list.go | 13 +++++++++++++ .../method_listbyreplicationnetworks.go | 13 +++++++++++++ .../2024-04-01/replicationnetworks/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../2024-04-01/replicationpolicies/method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 15 ++++++++++++++- .../replicationprotecteditems/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../replicationprotectionclusters/method_list.go | 15 ++++++++++++++- ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...ethod_listbyreplicationprotectioncontainers.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationprotectionintents/method_list.go | 15 ++++++++++++++- .../replicationrecoveryplans/method_list.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...hod_listbyreplicationstorageclassifications.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../replicationvaultsetting/method_list.go | 13 +++++++++++++ .../2024-04-01/replicationvcenters/method_list.go | 13 +++++++++++++ .../method_listbyreplicationfabrics.go | 13 +++++++++++++ .../supportedoperatingsystems/method_get.go | 2 +- .../method_listbyreplicationprotecteditems.go | 13 +++++++++++++ .../2023-09-04/machinepools/method_list.go | 13 +++++++++++++ .../2023-09-04/openshiftclusters/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-09-04/openshiftversions/method_list.go | 13 +++++++++++++ .../2023-09-04/secrets/method_list.go | 13 +++++++++++++ .../syncidentityproviders/method_list.go | 13 +++++++++++++ .../2023-09-04/syncsets/method_list.go | 13 +++++++++++++ .../2023-11-22/machinepools/method_list.go | 13 +++++++++++++ .../2023-11-22/openshiftclusters/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-11-22/openshiftversions/method_list.go | 13 +++++++++++++ .../2023-11-22/secrets/method_list.go | 13 +++++++++++++ .../syncidentityproviders/method_list.go | 13 +++++++++++++ .../2023-11-22/syncsets/method_list.go | 13 +++++++++++++ .../aad/method_accesspolicyassignmentlist.go | 13 +++++++++++++ .../2023-08-01/aad/method_accesspolicylist.go | 13 +++++++++++++ .../redis/2023-08-01/firewallrules/method_list.go | 13 +++++++++++++ .../patchschedules/method_listbyredisresource.go | 13 +++++++++++++ .../redis/method_accesspolicyassignmentlist.go | 13 +++++++++++++ .../2023-08-01/redis/method_accesspolicylist.go | 13 +++++++++++++ .../2023-08-01/redis/method_firewallruleslist.go | 13 +++++++++++++ .../2023-08-01/redis/method_linkedserverlist.go | 13 +++++++++++++ .../redis/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-08-01/redis/method_listbysubscription.go | 13 +++++++++++++ .../redis/method_listupgradenotifications.go | 15 ++++++++++++++- .../method_patchscheduleslistbyredisresource.go | 13 +++++++++++++ .../aad/method_accesspolicyassignmentlist.go | 13 +++++++++++++ .../2024-03-01/aad/method_accesspolicylist.go | 13 +++++++++++++ .../redis/2024-03-01/firewallrules/method_list.go | 13 +++++++++++++ .../patchschedules/method_listbyredisresource.go | 13 +++++++++++++ .../redis/method_accesspolicyassignmentlist.go | 13 +++++++++++++ .../2024-03-01/redis/method_accesspolicylist.go | 13 +++++++++++++ .../2024-03-01/redis/method_firewallruleslist.go | 13 +++++++++++++ .../2024-03-01/redis/method_linkedserverlist.go | 13 +++++++++++++ .../redis/method_listbyresourcegroup.go | 13 +++++++++++++ .../2024-03-01/redis/method_listbysubscription.go | 13 +++++++++++++ .../redis/method_listupgradenotifications.go | 15 ++++++++++++++- .../method_patchscheduleslistbyredisresource.go | 13 +++++++++++++ .../2023-07-01/databases/method_listbycluster.go | 13 +++++++++++++ .../method_databaseslistbycluster.go | 13 +++++++++++++ .../2023-07-01/redisenterprise/method_list.go | 13 +++++++++++++ .../redisenterprise/method_listbyresourcegroup.go | 13 +++++++++++++ .../databases/method_listbycluster.go | 13 +++++++++++++ .../method_databaseslistbycluster.go | 13 +++++++++++++ .../redisenterprise/method_list.go | 13 +++++++++++++ .../redisenterprise/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-11-01/databases/method_listbycluster.go | 13 +++++++++++++ .../method_databaseslistbycluster.go | 13 +++++++++++++ .../2023-11-01/redisenterprise/method_list.go | 13 +++++++++++++ .../redisenterprise/method_listbyresourcegroup.go | 13 +++++++++++++ .../2024-02-01/databases/method_listbycluster.go | 13 +++++++++++++ .../method_databaseslistbycluster.go | 13 +++++++++++++ .../2024-02-01/redisenterprise/method_list.go | 13 +++++++++++++ .../redisenterprise/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listauthorizationrules.go | 13 +++++++++++++ .../hybridconnections/method_listbynamespace.go | 13 +++++++++++++ .../relay/2021-11-01/namespaces/method_list.go | 13 +++++++++++++ .../namespaces/method_listauthorizationrules.go | 13 +++++++++++++ .../namespaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_privateendpointconnectionslist.go | 13 +++++++++++++ .../method_privatelinkresourceslist.go | 13 +++++++++++++ .../wcfrelays/method_listauthorizationrules.go | 13 +++++++++++++ .../wcfrelays/method_listbynamespace.go | 13 +++++++++++++ .../appliances/method_listbyresourcegroup.go | 13 +++++++++++++ .../appliances/method_listbysubscription.go | 13 +++++++++++++ .../2022-10-27/appliances/method_listkeys.go | 2 +- .../2022-10-01/graphquery/method_list.go | 13 +++++++++++++ .../graphquery/method_listbysubscription.go | 13 +++++++++++++ .../deploymentoperations/method_list.go | 15 ++++++++++++++- .../2015-11-01/deployments/method_list.go | 15 ++++++++++++++- .../2015-11-01/policyassignments/method_list.go | 15 ++++++++++++++- .../policyassignments/method_listforresource.go | 15 ++++++++++++++- .../method_listforresourcegroup.go | 15 ++++++++++++++- .../policyassignments/method_listforscope.go | 15 ++++++++++++++- .../resources/2015-11-01/providers/method_list.go | 15 ++++++++++++++- .../2015-11-01/resourcegroups/method_list.go | 15 ++++++++++++++- .../resourcegroups/method_listresources.go | 15 ++++++++++++++- .../resources/2015-11-01/resources/method_list.go | 15 ++++++++++++++- .../2015-11-01/subscriptions/method_list.go | 13 +++++++++++++ .../resources/2015-11-01/tags/method_list.go | 13 +++++++++++++ .../resources/2015-11-01/tenants/method_list.go | 13 +++++++++++++ .../method_listatresourcegrouplevel.go | 15 ++++++++++++++- .../managementlocks/method_listatresourcelevel.go | 15 ++++++++++++++- .../method_listatsubscriptionlevel.go | 15 ++++++++++++++- .../managementlocks/method_listbyscope.go | 15 ++++++++++++++- .../deploymentoperations/method_list.go | 15 ++++++++++++++- .../method_listatmanagementgroupscope.go | 15 ++++++++++++++- .../deploymentoperations/method_listatscope.go | 15 ++++++++++++++- .../method_listatsubscriptionscope.go | 15 ++++++++++++++- .../method_listattenantscope.go | 15 ++++++++++++++- .../method_listatmanagementgroupscope.go | 15 ++++++++++++++- .../2020-10-01/deployments/method_listatscope.go | 15 ++++++++++++++- .../deployments/method_listatsubscriptionscope.go | 15 ++++++++++++++- .../deployments/method_listattenantscope.go | 15 ++++++++++++++- .../deployments/method_listbyresourcegroup.go | 15 ++++++++++++++- .../deploymentscripts/method_getlogsdefault.go | 2 +- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../resources/2020-10-01/providers/method_get.go | 2 +- .../providers/method_getattenantscope.go | 2 +- .../resources/2020-10-01/providers/method_list.go | 15 ++++++++++++++- .../providers/method_listattenantscope.go | 15 ++++++++++++++- .../providers/method_providerresourcetypeslist.go | 15 ++++++++++++++- .../2020-10-01/resourcegroups/method_list.go | 15 ++++++++++++++- .../method_resourceslistbyresourcegroup.go | 15 ++++++++++++++- .../resources/2020-10-01/resources/method_list.go | 15 ++++++++++++++- .../resources/2020-10-01/tags/method_list.go | 13 +++++++++++++ .../resources/2021-07-01/features/method_list.go | 13 +++++++++++++ .../2021-07-01/features/method_listall.go | 13 +++++++++++++ .../method_listallbysubscription.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../2022-02-01/templatespecs/method_get.go | 2 +- .../2022-02-01/templatespecs/method_getbuiltin.go | 2 +- .../templatespecs/method_listbuiltins.go | 15 ++++++++++++++- .../templatespecs/method_listbyresourcegroup.go | 15 ++++++++++++++- .../templatespecs/method_listbysubscription.go | 15 ++++++++++++++- .../templatespecversions/method_list.go | 13 +++++++++++++ .../templatespecversions/method_listbuiltins.go | 13 +++++++++++++ .../2022-06-01/policyassignments/method_list.go | 15 ++++++++++++++- .../method_listformanagementgroup.go | 15 ++++++++++++++- .../policyassignments/method_listforresource.go | 15 ++++++++++++++- .../method_listforresourcegroup.go | 15 ++++++++++++++- .../deploymentoperations/method_list.go | 15 ++++++++++++++- .../method_listatmanagementgroupscope.go | 15 ++++++++++++++- .../deploymentoperations/method_listatscope.go | 15 ++++++++++++++- .../method_listatsubscriptionscope.go | 15 ++++++++++++++- .../method_listattenantscope.go | 15 ++++++++++++++- .../method_listatmanagementgroupscope.go | 15 ++++++++++++++- .../2022-09-01/deployments/method_listatscope.go | 15 ++++++++++++++- .../deployments/method_listatsubscriptionscope.go | 15 ++++++++++++++- .../deployments/method_listattenantscope.go | 15 ++++++++++++++- .../deployments/method_listbyresourcegroup.go | 15 ++++++++++++++- .../resources/2022-09-01/providers/method_get.go | 2 +- .../providers/method_getattenantscope.go | 2 +- .../resources/2022-09-01/providers/method_list.go | 15 ++++++++++++++- .../providers/method_listattenantscope.go | 15 ++++++++++++++- .../providers/method_providerpermissions.go | 13 +++++++++++++ .../providers/method_providerresourcetypeslist.go | 15 ++++++++++++++- .../2022-09-01/resourcegroups/method_delete.go | 2 +- .../2022-09-01/resourcegroups/method_list.go | 15 ++++++++++++++- .../method_resourceslistbyresourcegroup.go | 15 ++++++++++++++- .../resources/2022-09-01/resources/method_list.go | 15 ++++++++++++++- .../resources/2022-09-01/tags/method_list.go | 13 +++++++++++++ .../2022-12-01/subscriptions/method_list.go | 13 +++++++++++++ .../subscriptions/method_listlocations.go | 2 +- .../resources/2022-12-01/tenants/method_list.go | 13 +++++++++++++ .../deploymentoperations/method_list.go | 15 ++++++++++++++- .../method_listatmanagementgroupscope.go | 15 ++++++++++++++- .../deploymentoperations/method_listatscope.go | 15 ++++++++++++++- .../method_listatsubscriptionscope.go | 15 ++++++++++++++- .../method_listattenantscope.go | 15 ++++++++++++++- .../method_listatmanagementgroupscope.go | 15 ++++++++++++++- .../2023-07-01/deployments/method_listatscope.go | 15 ++++++++++++++- .../deployments/method_listatsubscriptionscope.go | 15 ++++++++++++++- .../deployments/method_listattenantscope.go | 15 ++++++++++++++- .../deployments/method_listbyresourcegroup.go | 15 ++++++++++++++- .../resources/2023-07-01/providers/method_get.go | 2 +- .../providers/method_getattenantscope.go | 2 +- .../resources/2023-07-01/providers/method_list.go | 15 ++++++++++++++- .../providers/method_listattenantscope.go | 15 ++++++++++++++- .../providers/method_providerpermissions.go | 13 +++++++++++++ .../providers/method_providerresourcetypeslist.go | 15 ++++++++++++++- .../2023-07-01/resourcegroups/method_delete.go | 2 +- .../2023-07-01/resourcegroups/method_list.go | 15 ++++++++++++++- .../method_resourceslistbyresourcegroup.go | 15 ++++++++++++++- .../resources/2023-07-01/resources/method_list.go | 15 ++++++++++++++- .../resources/2023-07-01/tags/method_list.go | 13 +++++++++++++ .../deploymentscripts/method_getlogsdefault.go | 2 +- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../deploymentoperations/method_list.go | 15 ++++++++++++++- .../method_listatmanagementgroupscope.go | 15 ++++++++++++++- .../deploymentoperations/method_listatscope.go | 15 ++++++++++++++- .../method_listatsubscriptionscope.go | 15 ++++++++++++++- .../method_listattenantscope.go | 15 ++++++++++++++- .../method_listatmanagementgroupscope.go | 15 ++++++++++++++- .../2024-03-01/deployments/method_listatscope.go | 15 ++++++++++++++- .../deployments/method_listatsubscriptionscope.go | 15 ++++++++++++++- .../deployments/method_listattenantscope.go | 15 ++++++++++++++- .../deployments/method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_deleteatmanagementgroup.go | 2 +- .../method_deleteatresourcegroup.go | 2 +- .../method_deleteatsubscription.go | 2 +- .../method_listatmanagementgroup.go | 13 +++++++++++++ .../method_listatresourcegroup.go | 13 +++++++++++++ .../deploymentstacks/method_listatsubscription.go | 13 +++++++++++++ .../resources/2024-03-01/providers/method_get.go | 2 +- .../providers/method_getattenantscope.go | 2 +- .../resources/2024-03-01/providers/method_list.go | 15 ++++++++++++++- .../providers/method_listattenantscope.go | 15 ++++++++++++++- .../providers/method_providerpermissions.go | 13 +++++++++++++ .../providers/method_providerresourcetypeslist.go | 15 ++++++++++++++- .../2024-03-01/resourcegroups/method_delete.go | 2 +- .../2024-03-01/resourcegroups/method_list.go | 15 ++++++++++++++- .../method_resourceslistbyresourcegroup.go | 15 ++++++++++++++- .../resources/2024-03-01/resources/method_list.go | 15 ++++++++++++++- .../resources/2024-03-01/tags/method_list.go | 13 +++++++++++++ .../2024-04-01/policyassignments/method_list.go | 15 ++++++++++++++- .../method_listformanagementgroup.go | 15 ++++++++++++++- .../policyassignments/method_listforresource.go | 15 ++++++++++++++- .../method_listforresourcegroup.go | 15 ++++++++++++++- .../search/2022-09-01/adminkeys/method_get.go | 2 +- .../2022-09-01/adminkeys/method_regenerate.go | 2 +- .../privateendpointconnections/method_delete.go | 2 +- .../privateendpointconnections/method_get.go | 2 +- .../method_listbyservice.go | 15 ++++++++++++++- .../privateendpointconnections/method_update.go | 2 +- .../privatelinkresources/method_listsupported.go | 2 +- .../search/2022-09-01/querykeys/method_create.go | 2 +- .../search/2022-09-01/querykeys/method_delete.go | 2 +- .../querykeys/method_listbysearchservice.go | 15 ++++++++++++++- .../services/method_checknameavailability.go | 2 +- .../2022-09-01/services/method_createorupdate.go | 2 +- .../search/2022-09-01/services/method_delete.go | 2 +- .../search/2022-09-01/services/method_get.go | 2 +- .../services/method_listbyresourcegroup.go | 15 ++++++++++++++- .../services/method_listbysubscription.go | 15 ++++++++++++++- .../search/2022-09-01/services/method_update.go | 2 +- .../method_createorupdate.go | 2 +- .../sharedprivatelinkresources/method_delete.go | 2 +- .../sharedprivatelinkresources/method_get.go | 2 +- .../method_listbyservice.go | 15 ++++++++++++++- .../search/2023-11-01/adminkeys/method_get.go | 2 +- .../2023-11-01/adminkeys/method_regenerate.go | 2 +- .../privateendpointconnections/method_delete.go | 2 +- .../privateendpointconnections/method_get.go | 2 +- .../method_listbyservice.go | 15 ++++++++++++++- .../privateendpointconnections/method_update.go | 2 +- .../privatelinkresources/method_listsupported.go | 2 +- .../search/2023-11-01/querykeys/method_create.go | 2 +- .../search/2023-11-01/querykeys/method_delete.go | 2 +- .../querykeys/method_listbysearchservice.go | 15 ++++++++++++++- .../services/method_checknameavailability.go | 2 +- .../2023-11-01/services/method_createorupdate.go | 2 +- .../search/2023-11-01/services/method_delete.go | 2 +- .../search/2023-11-01/services/method_get.go | 2 +- .../services/method_listbyresourcegroup.go | 15 ++++++++++++++- .../services/method_listbysubscription.go | 15 ++++++++++++++- .../search/2023-11-01/services/method_update.go | 2 +- .../method_createorupdate.go | 2 +- .../sharedprivatelinkresources/method_delete.go | 2 +- .../sharedprivatelinkresources/method_get.go | 2 +- .../method_listbyservice.go | 15 ++++++++++++++- .../usages/method_listbysubscription.go | 15 ++++++++++++++- .../usages/method_usagebysubscriptionsku.go | 2 +- .../alertssuppressionrules/method_list.go | 15 ++++++++++++++- .../2019-01-01-preview/assessments/method_get.go | 2 +- .../2019-01-01-preview/assessments/method_list.go | 13 +++++++++++++ .../assessmentsmetadata/method_list.go | 13 +++++++++++++ .../method_subscriptionlist.go | 13 +++++++++++++ .../2019-01-01-preview/automations/method_list.go | 13 +++++++++++++ .../automations/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_assessmentslist.go | 15 ++++++++++++++- .../regulatorycompliance/method_controlslist.go | 15 ++++++++++++++- .../regulatorycompliance/method_standardslist.go | 15 ++++++++++++++- .../subassessments/method_list.go | 13 +++++++++++++ .../subassessments/method_listall.go | 13 +++++++++++++ .../method_listbyextendedresource.go | 13 +++++++++++++ .../security/2020-01-01/alerts/method_list.go | 13 +++++++++++++ .../alerts/method_listbyresourcegroup.go | 13 +++++++++++++ ...method_listresourcegrouplevelalertsbyregion.go | 13 +++++++++++++ .../method_listsubscriptionlevelalertsbyregion.go | 13 +++++++++++++ .../2020-01-01/allowedconnections/method_list.go | 13 +++++++++++++ .../allowedconnections/method_listbyhomeregion.go | 13 +++++++++++++ .../method_adaptiveapplicationcontrolslist.go | 2 +- .../security/2020-01-01/assessments/method_get.go | 2 +- .../2020-01-01/assessments/method_list.go | 13 +++++++++++++ .../2020-01-01/assessmentsmetadata/method_list.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../discoveredsecuritysolutions/method_list.go | 13 +++++++++++++ .../method_listbyhomeregion.go | 13 +++++++++++++ .../externalsecuritysolutions/method_list.go | 13 +++++++++++++ .../method_listbyhomeregion.go | 13 +++++++++++++ .../jitnetworkaccesspolicies/method_list.go | 13 +++++++++++++ .../method_listbyregion.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbyresourcegroupandregion.go | 13 +++++++++++++ .../method_controlslistbysecurescore.go | 15 ++++++++++++++- .../2020-01-01/securescore/method_list.go | 13 +++++++++++++ .../securescorecontroldefinitions/method_list.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../2020-01-01/securescorecontrols/method_list.go | 15 ++++++++++++++- .../2020-01-01/securitysolutions/method_list.go | 13 +++++++++++++ .../security/2020-01-01/topology/method_list.go | 13 +++++++++++++ .../topology/method_listbyhomeregion.go | 13 +++++++++++++ .../security/2021-06-01/assessments/method_get.go | 2 +- .../2021-06-01/assessments/method_list.go | 13 +++++++++++++ .../2021-06-01/assessmentsmetadata/method_list.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../security/2021-06-01/settings/method_list.go | 13 +++++++++++++ .../security/2022-05-01/settings/method_list.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../securityconnectors/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ ...icollectionslistbyazureapimanagementservice.go | 13 +++++++++++++ ...icollectionslistbyazureapimanagementservice.go | 13 +++++++++++++ .../method_apicollectionslistbyresourcegroup.go | 13 +++++++++++++ .../method_apicollectionslistbysubscription.go | 13 +++++++++++++ .../security/2024-01-01/pricings/method_list.go | 2 +- .../devops/method_azuredevopsorgslist.go | 13 +++++++++++++ .../devops/method_azuredevopsorgslistavailable.go | 13 +++++++++++++ .../devops/method_azuredevopsprojectslist.go | 13 +++++++++++++ .../devops/method_azuredevopsreposlist.go | 13 +++++++++++++ .../devops/method_configurationslist.go | 13 +++++++++++++ .../2024-04-01/devops/method_githubownerslist.go | 13 +++++++++++++ .../devops/method_githubownerslistavailable.go | 13 +++++++++++++ .../2024-04-01/devops/method_githubreposlist.go | 13 +++++++++++++ .../2024-04-01/devops/method_gitlabgroupslist.go | 13 +++++++++++++ .../devops/method_gitlabgroupslistavailable.go | 13 +++++++++++++ .../devops/method_gitlabprojectslist.go | 13 +++++++++++++ .../devops/method_gitlabsubgroupslist.go | 13 +++++++++++++ .../actions/method_listbyalertrule.go | 13 +++++++++++++ .../2022-10-01-preview/alertrules/method_list.go | 13 +++++++++++++ .../alertruletemplates/method_list.go | 13 +++++++++++++ .../automationrules/method_list.go | 13 +++++++++++++ .../bookmarkrelations/method_list.go | 15 ++++++++++++++- .../2022-10-01-preview/bookmarks/method_list.go | 13 +++++++++++++ .../dataconnectors/method_list.go | 13 +++++++++++++ .../enrichment/method_domainwhoisget.go | 2 +- .../enrichment/method_ipgeodataget.go | 2 +- .../2022-10-01-preview/entities/method_list.go | 13 +++++++++++++ .../2022-10-01-preview/entities/method_queries.go | 2 +- .../method_entityquerytemplateslist.go | 15 ++++++++++++++- .../entityqueries/method_list.go | 15 ++++++++++++++- .../method_entitiesrelationslist.go | 15 ++++++++++++++- .../2022-10-01-preview/fileimports/method_list.go | 15 ++++++++++++++- .../incidentcomments/method_list.go | 15 ++++++++++++++- .../incidentrelations/method_list.go | 15 ++++++++++++++- .../2022-10-01-preview/incidents/method_list.go | 15 ++++++++++++++- .../2022-10-01-preview/metadata/method_list.go | 15 ++++++++++++++- .../officeconsents/method_list.go | 13 +++++++++++++ .../method_sourcecontrollistrepositories.go | 13 +++++++++++++ .../securitymlanalyticssettings/method_list.go | 13 +++++++++++++ .../sourcecontrols/method_list.go | 13 +++++++++++++ .../method_indicatorqueryindicators.go | 13 +++++++++++++ .../threatintelligence/method_indicatorslist.go | 15 ++++++++++++++- .../watchlistitems/method_list.go | 13 +++++++++++++ .../2022-10-01-preview/watchlists/method_list.go | 13 +++++++++++++ .../2022-11-01/actions/method_listbyalertrule.go | 13 +++++++++++++ .../2022-11-01/alertrules/method_list.go | 13 +++++++++++++ .../2022-11-01/alertruletemplates/method_list.go | 13 +++++++++++++ .../2022-11-01/automationrules/method_list.go | 13 +++++++++++++ .../2022-11-01/bookmarks/method_list.go | 13 +++++++++++++ .../2022-11-01/dataconnectors/method_list.go | 13 +++++++++++++ .../2022-11-01/incidentcomments/method_list.go | 15 ++++++++++++++- .../2022-11-01/incidentrelations/method_list.go | 15 ++++++++++++++- .../2022-11-01/incidents/method_list.go | 15 ++++++++++++++- .../securitymlanalyticssettings/method_list.go | 13 +++++++++++++ .../method_indicatorqueryindicators.go | 13 +++++++++++++ .../threatintelligence/method_indicatorslist.go | 15 ++++++++++++++- .../2022-11-01/watchlistitems/method_list.go | 13 +++++++++++++ .../2022-11-01/watchlists/method_list.go | 13 +++++++++++++ .../2023-02-01/actions/method_listbyalertrule.go | 13 +++++++++++++ .../2023-02-01/alertrules/method_list.go | 13 +++++++++++++ .../2023-02-01/alertruletemplates/method_list.go | 13 +++++++++++++ .../2023-02-01/automationrules/method_list.go | 13 +++++++++++++ .../2023-02-01/bookmarks/method_list.go | 13 +++++++++++++ .../2023-02-01/dataconnectors/method_list.go | 13 +++++++++++++ .../2023-02-01/incidentcomments/method_list.go | 15 ++++++++++++++- .../2023-02-01/incidentrelations/method_list.go | 15 ++++++++++++++- .../2023-02-01/incidents/method_list.go | 15 ++++++++++++++- .../2023-02-01/metadata/method_list.go | 15 ++++++++++++++- .../securitymlanalyticssettings/method_list.go | 13 +++++++++++++ .../method_indicatorqueryindicators.go | 13 +++++++++++++ .../threatintelligence/method_indicatorslist.go | 15 ++++++++++++++- .../2023-02-01/watchlistitems/method_list.go | 13 +++++++++++++ .../2023-02-01/watchlists/method_list.go | 13 +++++++++++++ .../2023-11-01/actions/method_listbyalertrule.go | 13 +++++++++++++ .../2023-11-01/alertrules/method_list.go | 13 +++++++++++++ .../2023-11-01/alertruletemplates/method_list.go | 13 +++++++++++++ .../2023-11-01/automationrules/method_list.go | 13 +++++++++++++ .../2023-11-01/bookmarks/method_list.go | 13 +++++++++++++ .../2023-11-01/contentpackages/method_list.go | 15 ++++++++++++++- .../method_productpackageslist.go | 15 ++++++++++++++- .../method_producttemplateslist.go | 15 ++++++++++++++- .../2023-11-01/contenttemplates/method_list.go | 15 ++++++++++++++- .../2023-11-01/dataconnectors/method_list.go | 13 +++++++++++++ .../2023-11-01/incidentcomments/method_list.go | 15 ++++++++++++++- .../2023-11-01/incidentrelations/method_list.go | 15 ++++++++++++++- .../2023-11-01/incidents/method_list.go | 15 ++++++++++++++- .../2023-11-01/metadata/method_list.go | 15 ++++++++++++++- .../method_sourcecontrollistrepositories.go | 13 +++++++++++++ .../securitymlanalyticssettings/method_list.go | 13 +++++++++++++ .../2023-11-01/sourcecontrols/method_list.go | 13 +++++++++++++ .../method_indicatorqueryindicators.go | 13 +++++++++++++ .../threatintelligence/method_indicatorslist.go | 15 ++++++++++++++- .../2023-11-01/watchlistitems/method_list.go | 13 +++++++++++++ .../2023-11-01/watchlists/method_list.go | 13 +++++++++++++ .../2024-03-01/actions/method_listbyalertrule.go | 13 +++++++++++++ .../2024-03-01/alertrules/method_list.go | 13 +++++++++++++ .../2024-03-01/alertruletemplates/method_list.go | 13 +++++++++++++ .../2024-03-01/automationrules/method_list.go | 13 +++++++++++++ .../2024-03-01/bookmarks/method_list.go | 13 +++++++++++++ .../2024-03-01/contentpackages/method_list.go | 15 ++++++++++++++- .../method_productpackageslist.go | 15 ++++++++++++++- .../method_producttemplateslist.go | 15 ++++++++++++++- .../2024-03-01/contenttemplates/method_list.go | 15 ++++++++++++++- .../2024-03-01/dataconnectors/method_list.go | 13 +++++++++++++ .../2024-03-01/incidentcomments/method_list.go | 15 ++++++++++++++- .../2024-03-01/incidentrelations/method_list.go | 15 ++++++++++++++- .../2024-03-01/incidents/method_list.go | 15 ++++++++++++++- .../2024-03-01/incidenttasks/method_list.go | 13 +++++++++++++ .../2024-03-01/metadata/method_list.go | 15 ++++++++++++++- .../method_sourcecontrollistrepositories.go | 13 +++++++++++++ .../securitymlanalyticssettings/method_list.go | 13 +++++++++++++ .../2024-03-01/sourcecontrols/method_list.go | 13 +++++++++++++ .../method_indicatorqueryindicators.go | 13 +++++++++++++ .../threatintelligence/method_indicatorslist.go | 15 ++++++++++++++- .../2024-03-01/watchlistitems/method_list.go | 13 +++++++++++++ .../2024-03-01/watchlists/method_list.go | 13 +++++++++++++ .../disasterrecoveryconfigs/method_list.go | 13 +++++++++++++ .../method_listauthorizationrules.go | 13 +++++++++++++ .../migrationconfigs/method_list.go | 13 +++++++++++++ .../2021-06-01-preview/namespaces/method_list.go | 13 +++++++++++++ .../namespaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../namespaces/method_listnetworkrulesets.go | 13 +++++++++++++ .../method_namespaceslistauthorizationrules.go | 13 +++++++++++++ .../method_privateendpointconnectionslist.go | 13 +++++++++++++ .../method_privatelinkresourcesget.go | 13 +++++++++++++ .../queues/method_listbynamespace.go | 15 ++++++++++++++- .../method_queueslistauthorizationrules.go | 13 +++++++++++++ .../rules/method_listbysubscriptions.go | 15 ++++++++++++++- .../subscriptions/method_listbytopic.go | 15 ++++++++++++++- .../topics/method_listbynamespace.go | 15 ++++++++++++++- .../method_topicslistauthorizationrules.go | 13 +++++++++++++ .../disasterrecoveryconfigs/method_list.go | 13 +++++++++++++ .../method_listauthorizationrules.go | 13 +++++++++++++ .../2021-11-01/migrationconfigs/method_list.go | 13 +++++++++++++ .../2021-11-01/namespaces/method_list.go | 13 +++++++++++++ .../namespaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../namespaces/method_listnetworkrulesets.go | 13 +++++++++++++ .../method_namespaceslistauthorizationrules.go | 13 +++++++++++++ .../method_privateendpointconnectionslist.go | 13 +++++++++++++ .../method_privatelinkresourcesget.go | 13 +++++++++++++ .../2021-11-01/queues/method_listbynamespace.go | 15 ++++++++++++++- .../method_queueslistauthorizationrules.go | 13 +++++++++++++ .../rules/method_listbysubscriptions.go | 15 ++++++++++++++- .../subscriptions/method_listbytopic.go | 15 ++++++++++++++- .../2021-11-01/topics/method_listbynamespace.go | 15 ++++++++++++++- .../method_topicslistauthorizationrules.go | 13 +++++++++++++ .../disasterrecoveryconfigs/method_list.go | 13 +++++++++++++ .../method_listauthorizationrules.go | 13 +++++++++++++ .../migrationconfigs/method_list.go | 13 +++++++++++++ .../2022-01-01-preview/namespaces/method_list.go | 13 +++++++++++++ .../namespaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../namespaces/method_listnetworkrulesets.go | 13 +++++++++++++ .../method_namespaceslistauthorizationrules.go | 13 +++++++++++++ .../method_privateendpointconnectionslist.go | 13 +++++++++++++ .../method_privatelinkresourcesget.go | 13 +++++++++++++ .../queues/method_listbynamespace.go | 15 ++++++++++++++- .../method_queueslistauthorizationrules.go | 13 +++++++++++++ .../rules/method_listbysubscriptions.go | 15 ++++++++++++++- .../subscriptions/method_listbytopic.go | 15 ++++++++++++++- .../topics/method_listbynamespace.go | 15 ++++++++++++++- .../method_topicslistauthorizationrules.go | 13 +++++++++++++ .../disasterrecoveryconfigs/method_list.go | 13 +++++++++++++ .../method_listauthorizationrules.go | 13 +++++++++++++ .../migrationconfigs/method_list.go | 13 +++++++++++++ .../2022-10-01-preview/namespaces/method_list.go | 13 +++++++++++++ .../namespaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../namespaces/method_listnetworkrulesets.go | 13 +++++++++++++ .../method_namespaceslistauthorizationrules.go | 13 +++++++++++++ .../method_privateendpointconnectionslist.go | 13 +++++++++++++ .../method_privatelinkresourcesget.go | 13 +++++++++++++ .../queues/method_listbynamespace.go | 15 ++++++++++++++- .../method_queueslistauthorizationrules.go | 13 +++++++++++++ .../rules/method_listbysubscriptions.go | 15 ++++++++++++++- .../subscriptions/method_listbytopic.go | 15 ++++++++++++++- .../topics/method_listbynamespace.go | 15 ++++++++++++++- .../method_topicslistauthorizationrules.go | 13 +++++++++++++ .../2021-06-01/application/method_list.go | 13 +++++++++++++ .../2021-06-01/applicationtype/method_list.go | 13 +++++++++++++ .../applicationtypeversion/method_list.go | 13 +++++++++++++ .../2021-06-01/cluster/method_list.go | 13 +++++++++++++ .../cluster/method_listbyresourcegroup.go | 13 +++++++++++++ .../2021-06-01/clusterversion/method_get.go | 13 +++++++++++++ .../clusterversion/method_getbyenvironment.go | 13 +++++++++++++ .../2021-06-01/clusterversion/method_list.go | 13 +++++++++++++ .../clusterversion/method_listbyenvironment.go | 13 +++++++++++++ .../2021-06-01/service/method_list.go | 13 +++++++++++++ .../2021-05-01/application/method_list.go | 13 +++++++++++++ .../2021-05-01/applicationtype/method_list.go | 13 +++++++++++++ .../method_listbyapplicationtypes.go | 13 +++++++++++++ .../managedcluster/method_listbyresourcegroup.go | 13 +++++++++++++ .../managedcluster/method_listbysubscription.go | 13 +++++++++++++ .../nodetype/method_listbymanagedclusters.go | 13 +++++++++++++ .../service/method_listbyapplications.go | 13 +++++++++++++ .../2022-01-01/application/method_list.go | 13 +++++++++++++ .../2022-01-01/applicationtype/method_list.go | 13 +++++++++++++ .../method_listbyapplicationtypes.go | 13 +++++++++++++ .../managedcluster/method_listbyresourcegroup.go | 13 +++++++++++++ .../managedcluster/method_listbysubscription.go | 13 +++++++++++++ .../method_managedunsupportedvmsizeslist.go | 13 +++++++++++++ .../nodetype/method_listbymanagedclusters.go | 13 +++++++++++++ .../2022-01-01/nodetype/method_skuslist.go | 13 +++++++++++++ .../service/method_listbyapplications.go | 13 +++++++++++++ .../2024-04-01/application/method_list.go | 13 +++++++++++++ .../2024-04-01/applicationtype/method_list.go | 13 +++++++++++++ .../method_listbyapplicationtypes.go | 13 +++++++++++++ .../managedcluster/method_listbyresourcegroup.go | 13 +++++++++++++ .../managedcluster/method_listbysubscription.go | 13 +++++++++++++ .../method_managedunsupportedvmsizeslist.go | 13 +++++++++++++ .../nodetype/method_listbymanagedclusters.go | 13 +++++++++++++ .../2024-04-01/nodetype/method_skuslist.go | 13 +++++++++++++ .../service/method_listbyapplications.go | 13 +++++++++++++ .../2022-05-01/servicelinker/method_linkerlist.go | 13 +++++++++++++ .../2024-04-01/configurationnames/method_list.go | 15 ++++++++++++++- .../2024-04-01/connector/method_listdryrun.go | 13 +++++++++++++ .../linkers/method_listdaprconfigurations.go | 13 +++++++++++++ .../2024-04-01/linkers/method_listdryrun.go | 13 +++++++++++++ .../servicelinker/method_connectorlist.go | 13 +++++++++++++ .../2024-04-01/servicelinker/method_linkerlist.go | 13 +++++++++++++ .../method_listbytrafficcontroller.go | 13 +++++++++++++ .../method_listbytrafficcontroller.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listbytrafficcontroller.go | 13 +++++++++++++ .../method_listbytrafficcontroller.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../signalr/method_customcertificateslist.go | 13 +++++++++++++ .../signalr/method_customdomainslist.go | 13 +++++++++++++ .../signalr/method_listbyresourcegroup.go | 13 +++++++++++++ .../signalr/method_listbysubscription.go | 13 +++++++++++++ .../signalr/2023-02-01/signalr/method_listskus.go | 13 +++++++++++++ .../method_privateendpointconnectionslist.go | 13 +++++++++++++ .../signalr/method_privatelinkresourceslist.go | 13 +++++++++++++ .../method_sharedprivatelinkresourceslist.go | 13 +++++++++++++ .../2023-02-01/signalr/method_usageslist.go | 13 +++++++++++++ .../signalr/method_customcertificateslist.go | 13 +++++++++++++ .../signalr/method_customdomainslist.go | 13 +++++++++++++ .../signalr/method_listbyresourcegroup.go | 13 +++++++++++++ .../signalr/method_listbysubscription.go | 13 +++++++++++++ .../2024-03-01/signalr/method_listreplicaskus.go | 13 +++++++++++++ .../signalr/2024-03-01/signalr/method_listskus.go | 13 +++++++++++++ .../method_privateendpointconnectionslist.go | 13 +++++++++++++ .../signalr/method_privatelinkresourceslist.go | 13 +++++++++++++ ...ethod_replicasharedprivatelinkresourceslist.go | 13 +++++++++++++ .../2024-03-01/signalr/method_replicaslist.go | 13 +++++++++++++ .../method_sharedprivatelinkresourceslist.go | 13 +++++++++++++ .../2024-03-01/signalr/method_usageslist.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ ..._databaseblobauditingpolicieslistbydatabase.go | 13 +++++++++++++ ...ddatabaseblobauditingpolicieslistbydatabase.go | 13 +++++++++++++ ...endedserverblobauditingpolicieslistbyserver.go | 13 +++++++++++++ ...thod_serverblobauditingpolicieslistbyserver.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../databaseadvisors/method_listbydatabase.go | 2 +- .../databasecolumns/method_listbydatabase.go | 15 ++++++++++++++- .../databasecolumns/method_listbytable.go | 15 ++++++++++++++- .../databaseextensions/method_listbydatabase.go | 13 +++++++++++++ .../databaseoperations/method_listbydatabase.go | 13 +++++++++++++ .../databases/method_failover.go | 2 +- .../2023-02-01-preview/databases/method_get.go | 2 +- .../databases/method_listbyelasticpool.go | 13 +++++++++++++ .../databases/method_listbyserver.go | 13 +++++++++++++ .../databases/method_listinaccessiblebyserver.go | 13 +++++++++++++ .../databaseschemas/method_listbydatabase.go | 15 ++++++++++++++- .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbysqlvulnerabilityassessment.go | 13 +++++++++++++ .../method_listbybaseline.go | 13 +++++++++++++ .../method_listbyscan.go | 13 +++++++++++++ .../method_listbysqlvulnerabilityassessments.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../databasetables/method_listbyschema.go | 15 ++++++++++++++- .../databaseusages/method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../datamaskingrules/method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../deletedservers/method_list.go | 13 +++++++++++++ .../deletedservers/method_listbylocation.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../method_listbyelasticpool.go | 13 +++++++++++++ .../elasticpools/method_listbyserver.go | 15 ++++++++++++++- .../encryptionprotectors/method_listbyserver.go | 13 +++++++++++++ .../endpointcertificates/method_listbyinstance.go | 13 +++++++++++++ .../failovergroups/method_listbyserver.go | 13 +++++++++++++ .../firewallrules/method_listbyserver.go | 13 +++++++++++++ .../geobackuppolicies/method_list.go | 13 +++++++++++++ .../method_listbylocation.go | 13 +++++++++++++ .../instancepools/method_list.go | 13 +++++++++++++ .../instancepools/method_listbyresourcegroup.go | 13 +++++++++++++ .../ipv6firewallrules/method_listbyserver.go | 13 +++++++++++++ .../jobagents/method_listbyserver.go | 13 +++++++++++++ .../jobcredentials/method_listbyagent.go | 13 +++++++++++++ .../jobexecutions/method_listbyagent.go | 15 ++++++++++++++- .../jobexecutions/method_listbyjob.go | 15 ++++++++++++++- .../2023-02-01-preview/jobs/method_listbyagent.go | 13 +++++++++++++ .../method_listbyjobexecution.go | 15 ++++++++++++++- .../jobsteps/method_listbyjob.go | 13 +++++++++++++ .../jobsteps/method_listbyversion.go | 13 +++++++++++++ .../method_listbyjobexecution.go | 15 ++++++++++++++- .../jobtargetexecutions/method_listbystep.go | 15 ++++++++++++++- .../jobtargetgroups/method_listbyagent.go | 13 +++++++++++++ .../jobversions/method_listbyjob.go | 13 +++++++++++++ .../ledgerdigestuploads/method_listbydatabase.go | 13 +++++++++++++ .../method_capabilitieslistbylocation.go | 2 +- .../method_listbydatabase.go | 15 ++++++++++++++- .../method_listbylocation.go | 15 ++++++++++++++- .../method_listbyresourcegroupdatabase.go | 15 ++++++++++++++- .../method_listbyresourcegrouplocation.go | 15 ++++++++++++++- .../method_listbyresourcegroupserver.go | 15 ++++++++++++++- .../method_listbyserver.go | 15 ++++++++++++++- .../method_listbydatabase.go | 15 ++++++++++++++- .../method_listbyinstance.go | 15 ++++++++++++++- .../method_listbylocation.go | 15 ++++++++++++++- .../method_listbyresourcegroupdatabase.go | 15 ++++++++++++++- .../method_listbyresourcegroupinstance.go | 15 ++++++++++++++- .../method_listbyresourcegrouplocation.go | 15 ++++++++++++++- .../method_listbydatabase.go | 13 +++++++++++++ .../maintenancewindowoptions/method_get.go | 2 +- .../maintenancewindows/method_createorupdate.go | 2 +- .../maintenancewindows/method_get.go | 2 +- .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 15 ++++++++++++++- .../manageddatabasecolumns/method_listbytable.go | 15 ++++++++++++++- .../method_listbylocation.go | 15 ++++++++++++++- .../manageddatabasequeries/method_listbyquery.go | 15 ++++++++++++++- .../manageddatabases/method_listbyinstance.go | 13 +++++++++++++ .../method_listinaccessiblebyinstance.go | 13 +++++++++++++ .../method_listbydatabase.go | 15 ++++++++++++++- .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 15 ++++++++++++++- .../method_listbydatabase.go | 15 ++++++++++++++- .../method_listcurrentbydatabase.go | 15 ++++++++++++++- .../method_listrecommendedbydatabase.go | 15 ++++++++++++++- .../manageddatabasetables/method_listbyschema.go | 15 ++++++++++++++- .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../method_listbymanagedinstance.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../managedinstancekeys/method_listbyinstance.go | 15 ++++++++++++++- .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbymanagedinstance.go | 13 +++++++++++++ .../method_listbymanagedinstance.go | 13 +++++++++++++ .../method_listbymanagedinstance.go | 13 +++++++++++++ .../managedinstances/method_failover.go | 2 +- .../managedinstances/method_get.go | 2 +- .../managedinstances/method_list.go | 15 ++++++++++++++- .../managedinstances/method_listbyinstancepool.go | 15 ++++++++++++++- .../method_listbymanagedinstance.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 15 ++++++++++++++- ...utboundnetworkdependenciesbymanagedinstance.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbyrestorabledroppeddatabase.go | 13 +++++++++++++ .../method_listbymanagedinstance.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../method_listbyserver.go | 13 +++++++++++++ .../outboundfirewallrules/method_listbyserver.go | 13 +++++++++++++ .../method_listbyserver.go | 13 +++++++++++++ .../privatelinkresources/method_listbyserver.go | 13 +++++++++++++ .../recoverabledatabases/method_get.go | 2 +- .../recoverabledatabases/method_listbyserver.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../replicationlinks/method_listbydatabase.go | 13 +++++++++++++ .../replicationlinks/method_listbyserver.go | 13 +++++++++++++ .../restorabledroppeddatabases/method_get.go | 2 +- .../method_listbyserver.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../restorepoints/method_listbydatabase.go | 13 +++++++++++++ .../sensitivitylabels/method_listbydatabase.go | 15 ++++++++++++++- .../method_listcurrentbydatabase.go | 15 ++++++++++++++- .../method_listrecommendedbydatabase.go | 15 ++++++++++++++- .../method_listbyserver.go | 13 +++++++++++++ .../serveradvisors/method_listbyserver.go | 2 +- .../method_listbyserver.go | 13 +++++++++++++ .../method_listbyserver.go | 13 +++++++++++++ .../method_listbymanagedinstance.go | 13 +++++++++++++ .../method_listbyserver.go | 13 +++++++++++++ .../method_settingslistbyserver.go | 13 +++++++++++++ .../serverdnsaliases/method_listbyserver.go | 13 +++++++++++++ .../serverkeys/method_listbyserver.go | 13 +++++++++++++ .../serveroperations/method_listbyserver.go | 13 +++++++++++++ .../sql/2023-02-01-preview/servers/method_get.go | 2 +- .../sql/2023-02-01-preview/servers/method_list.go | 15 ++++++++++++++- .../servers/method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbyserver.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../servertrustgroups/method_listbyinstance.go | 13 +++++++++++++ .../servertrustgroups/method_listbylocation.go | 13 +++++++++++++ .../serverusages/method_listbyserver.go | 13 +++++++++++++ .../method_listbyserver.go | 13 +++++++++++++ .../method_createorupdate.go | 2 +- .../method_get.go | 2 +- .../method_listbysqlvulnerabilityassessment.go | 15 ++++++++++++++- .../method_execute.go | 2 +- .../method_createorupdate.go | 2 +- .../method_delete.go | 2 +- .../method_get.go | 2 +- .../method_listbybaseline.go | 15 ++++++++++++++- .../method_get.go | 2 +- .../method_listbyscan.go | 15 ++++++++++++++- .../sqlvulnerabilityassessmentscans/method_get.go | 2 +- .../method_listbysqlvulnerabilityassessments.go | 15 ++++++++++++++- .../method_listbyserver.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../subscriptionusages/method_listbylocation.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../syncagents/method_listbyserver.go | 13 +++++++++++++ .../syncagents/method_listlinkeddatabases.go | 13 +++++++++++++ .../syncgroups/method_listbydatabase.go | 13 +++++++++++++ .../syncgroups/method_listhubschemas.go | 13 +++++++++++++ .../syncgroups/method_listlogs.go | 15 ++++++++++++++- .../syncgroups/method_listsyncdatabaseids.go | 13 +++++++++++++ .../syncmembers/method_listbysyncgroup.go | 13 +++++++++++++ .../syncmembers/method_listmemberschemas.go | 13 +++++++++++++ .../timezones/method_listbylocation.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../usages/method_listbyinstancepool.go | 15 ++++++++++++++- .../virtualclusters/method_list.go | 13 +++++++++++++ .../virtualclusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../virtualnetworkrules/method_listbyserver.go | 13 +++++++++++++ .../method_listbyworkloadgroup.go | 13 +++++++++++++ .../workloadgroups/method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ ..._databaseblobauditingpolicieslistbydatabase.go | 13 +++++++++++++ ...ddatabaseblobauditingpolicieslistbydatabase.go | 13 +++++++++++++ ...endedserverblobauditingpolicieslistbyserver.go | 13 +++++++++++++ ...thod_serverblobauditingpolicieslistbyserver.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../databaseadvisors/method_listbydatabase.go | 2 +- .../databasecolumns/method_listbydatabase.go | 15 ++++++++++++++- .../databasecolumns/method_listbytable.go | 15 ++++++++++++++- .../databaseextensions/method_listbydatabase.go | 13 +++++++++++++ .../databaseoperations/method_listbydatabase.go | 13 +++++++++++++ .../databases/method_failover.go | 2 +- .../2023-05-01-preview/databases/method_get.go | 2 +- .../databases/method_listbyelasticpool.go | 13 +++++++++++++ .../databases/method_listbyserver.go | 13 +++++++++++++ .../databases/method_listinaccessiblebyserver.go | 13 +++++++++++++ .../databaseschemas/method_listbydatabase.go | 15 ++++++++++++++- .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbysqlvulnerabilityassessment.go | 13 +++++++++++++ .../method_listbybaseline.go | 13 +++++++++++++ .../method_listbyscan.go | 13 +++++++++++++ .../method_listbysqlvulnerabilityassessments.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../databasetables/method_listbyschema.go | 15 ++++++++++++++- .../databaseusages/method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../datamaskingrules/method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../deletedservers/method_list.go | 13 +++++++++++++ .../deletedservers/method_listbylocation.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../method_listbyelasticpool.go | 13 +++++++++++++ .../elasticpools/method_listbyserver.go | 15 ++++++++++++++- .../encryptionprotectors/method_listbyserver.go | 13 +++++++++++++ .../endpointcertificates/method_listbyinstance.go | 13 +++++++++++++ .../failovergroups/method_listbyserver.go | 13 +++++++++++++ .../firewallrules/method_listbyserver.go | 13 +++++++++++++ .../geobackuppolicies/method_list.go | 13 +++++++++++++ .../method_listbylocation.go | 13 +++++++++++++ .../instancepools/method_list.go | 13 +++++++++++++ .../instancepools/method_listbyresourcegroup.go | 13 +++++++++++++ .../ipv6firewallrules/method_listbyserver.go | 13 +++++++++++++ .../jobagents/method_listbyserver.go | 13 +++++++++++++ .../jobcredentials/method_listbyagent.go | 13 +++++++++++++ .../jobexecutions/method_listbyagent.go | 15 ++++++++++++++- .../jobexecutions/method_listbyjob.go | 15 ++++++++++++++- .../jobprivateendpoints/method_listbyagent.go | 13 +++++++++++++ .../2023-05-01-preview/jobs/method_listbyagent.go | 13 +++++++++++++ .../method_listbyjobexecution.go | 15 ++++++++++++++- .../jobsteps/method_listbyjob.go | 13 +++++++++++++ .../jobsteps/method_listbyversion.go | 13 +++++++++++++ .../method_listbyjobexecution.go | 15 ++++++++++++++- .../jobtargetexecutions/method_listbystep.go | 15 ++++++++++++++- .../jobtargetgroups/method_listbyagent.go | 13 +++++++++++++ .../jobversions/method_listbyjob.go | 13 +++++++++++++ .../ledgerdigestuploads/method_listbydatabase.go | 13 +++++++++++++ .../method_capabilitieslistbylocation.go | 2 +- .../method_listbydatabase.go | 15 ++++++++++++++- .../method_listbylocation.go | 15 ++++++++++++++- .../method_listbyresourcegroupdatabase.go | 15 ++++++++++++++- .../method_listbyresourcegrouplocation.go | 15 ++++++++++++++- .../method_listbyresourcegroupserver.go | 15 ++++++++++++++- .../method_listbyserver.go | 15 ++++++++++++++- .../method_listbydatabase.go | 15 ++++++++++++++- .../method_listbyinstance.go | 15 ++++++++++++++- .../method_listbylocation.go | 15 ++++++++++++++- .../method_listbyresourcegroupdatabase.go | 15 ++++++++++++++- .../method_listbyresourcegroupinstance.go | 15 ++++++++++++++- .../method_listbyresourcegrouplocation.go | 15 ++++++++++++++- .../method_listbydatabase.go | 13 +++++++++++++ .../maintenancewindowoptions/method_get.go | 2 +- .../maintenancewindows/method_createorupdate.go | 2 +- .../maintenancewindows/method_get.go | 2 +- .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 15 ++++++++++++++- .../manageddatabasecolumns/method_listbytable.go | 15 ++++++++++++++- .../method_listbylocation.go | 15 ++++++++++++++- .../manageddatabasequeries/method_listbyquery.go | 15 ++++++++++++++- .../manageddatabases/method_listbyinstance.go | 13 +++++++++++++ .../method_listinaccessiblebyinstance.go | 13 +++++++++++++ .../method_listbydatabase.go | 15 ++++++++++++++- .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 15 ++++++++++++++- .../method_listbydatabase.go | 15 ++++++++++++++- .../method_listcurrentbydatabase.go | 15 ++++++++++++++- .../method_listrecommendedbydatabase.go | 15 ++++++++++++++- .../manageddatabasetables/method_listbyschema.go | 15 ++++++++++++++- .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../method_listbymanagedinstance.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../managedinstancekeys/method_listbyinstance.go | 15 ++++++++++++++- .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbymanagedinstance.go | 13 +++++++++++++ .../method_listbymanagedinstance.go | 13 +++++++++++++ .../method_listbymanagedinstance.go | 13 +++++++++++++ .../managedinstances/method_failover.go | 2 +- .../managedinstances/method_get.go | 2 +- .../managedinstances/method_list.go | 15 ++++++++++++++- .../managedinstances/method_listbyinstancepool.go | 15 ++++++++++++++- .../method_listbymanagedinstance.go | 15 ++++++++++++++- .../method_listbyresourcegroup.go | 15 ++++++++++++++- ...utboundnetworkdependenciesbymanagedinstance.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../method_listbyrestorabledroppeddatabase.go | 13 +++++++++++++ .../method_listbymanagedinstance.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../method_listbyserver.go | 13 +++++++++++++ .../outboundfirewallrules/method_listbyserver.go | 13 +++++++++++++ .../method_listbyserver.go | 13 +++++++++++++ .../privatelinkresources/method_listbyserver.go | 13 +++++++++++++ .../recoverabledatabases/method_get.go | 2 +- .../recoverabledatabases/method_listbyserver.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../replicationlinks/method_listbydatabase.go | 13 +++++++++++++ .../replicationlinks/method_listbyserver.go | 13 +++++++++++++ .../restorabledroppeddatabases/method_get.go | 2 +- .../method_listbyserver.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../restorepoints/method_listbydatabase.go | 13 +++++++++++++ .../sensitivitylabels/method_listbydatabase.go | 15 ++++++++++++++- .../method_listcurrentbydatabase.go | 15 ++++++++++++++- .../method_listrecommendedbydatabase.go | 15 ++++++++++++++- .../method_listbyserver.go | 13 +++++++++++++ .../serveradvisors/method_listbyserver.go | 2 +- .../method_listbyserver.go | 13 +++++++++++++ .../method_listbyserver.go | 13 +++++++++++++ .../method_listbymanagedinstance.go | 13 +++++++++++++ .../method_listbyserver.go | 13 +++++++++++++ .../method_settingslistbyserver.go | 13 +++++++++++++ .../serverdnsaliases/method_listbyserver.go | 13 +++++++++++++ .../serverkeys/method_listbyserver.go | 13 +++++++++++++ .../serveroperations/method_listbyserver.go | 13 +++++++++++++ .../sql/2023-05-01-preview/servers/method_get.go | 2 +- .../sql/2023-05-01-preview/servers/method_list.go | 15 ++++++++++++++- .../servers/method_listbyresourcegroup.go | 15 ++++++++++++++- .../method_listbyserver.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../servertrustgroups/method_listbyinstance.go | 13 +++++++++++++ .../servertrustgroups/method_listbylocation.go | 13 +++++++++++++ .../serverusages/method_listbyserver.go | 13 +++++++++++++ .../method_listbyserver.go | 13 +++++++++++++ .../method_createorupdate.go | 2 +- .../method_get.go | 2 +- .../method_listbysqlvulnerabilityassessment.go | 15 ++++++++++++++- .../method_execute.go | 2 +- .../method_createorupdate.go | 2 +- .../method_delete.go | 2 +- .../method_get.go | 2 +- .../method_listbybaseline.go | 15 ++++++++++++++- .../method_get.go | 2 +- .../method_listbyscan.go | 15 ++++++++++++++- .../sqlvulnerabilityassessmentscans/method_get.go | 2 +- .../method_listbysqlvulnerabilityassessments.go | 15 ++++++++++++++- .../method_listbyserver.go | 13 +++++++++++++ .../method_listbyinstance.go | 13 +++++++++++++ .../subscriptionusages/method_listbylocation.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../syncagents/method_listbyserver.go | 13 +++++++++++++ .../syncagents/method_listlinkeddatabases.go | 13 +++++++++++++ .../syncgroups/method_listbydatabase.go | 13 +++++++++++++ .../syncgroups/method_listhubschemas.go | 13 +++++++++++++ .../syncgroups/method_listlogs.go | 15 ++++++++++++++- .../syncgroups/method_listsyncdatabaseids.go | 13 +++++++++++++ .../syncmembers/method_listbysyncgroup.go | 13 +++++++++++++ .../syncmembers/method_listmemberschemas.go | 13 +++++++++++++ .../timezones/method_listbylocation.go | 13 +++++++++++++ .../method_listbydatabase.go | 13 +++++++++++++ .../usages/method_listbyinstancepool.go | 15 ++++++++++++++- .../virtualclusters/method_list.go | 13 +++++++++++++ .../virtualclusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../virtualnetworkrules/method_listbyserver.go | 13 +++++++++++++ .../method_listbyworkloadgroup.go | 13 +++++++++++++ .../workloadgroups/method_listbydatabase.go | 13 +++++++++++++ .../availabilitygrouplisteners/method_get.go | 2 +- .../method_listbygroup.go | 13 +++++++++++++ .../sqlvirtualmachinegroups/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2022-02-01/sqlvirtualmachines/method_get.go | 2 +- .../2022-02-01/sqlvirtualmachines/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../sqlvirtualmachines/method_listbysqlvmgroup.go | 13 +++++++++++++ .../availabilitygrouplisteners/method_get.go | 2 +- .../method_listbygroup.go | 13 +++++++++++++ .../sqlvirtualmachinegroups/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-10-01/sqlvirtualmachines/method_get.go | 2 +- .../2023-10-01/sqlvirtualmachines/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../sqlvirtualmachines/method_listbysqlvmgroup.go | 13 +++++++++++++ .../method_createorupdateimmutabilitypolicy.go | 2 +- .../method_deleteimmutabilitypolicy.go | 2 +- .../method_extendimmutabilitypolicy.go | 2 +- .../method_getimmutabilitypolicy.go | 2 +- .../2023-01-01/blobcontainers/method_list.go | 15 ++++++++++++++- .../method_lockimmutabilitypolicy.go | 2 +- .../2023-01-01/deletedaccounts/method_list.go | 13 +++++++++++++ .../2023-01-01/encryptionscopes/method_list.go | 15 ++++++++++++++- .../2023-01-01/fileshares/method_create.go | 2 +- .../2023-01-01/fileshares/method_delete.go | 2 +- .../storage/2023-01-01/fileshares/method_get.go | 2 +- .../storage/2023-01-01/fileshares/method_lease.go | 2 +- .../storage/2023-01-01/fileshares/method_list.go | 15 ++++++++++++++- .../2023-01-01/queueservice/method_queuelist.go | 15 ++++++++++++++- .../2023-01-01/storageaccounts/method_failover.go | 2 +- .../storageaccounts/method_getproperties.go | 2 +- .../method_hierarchicalnamespacemigration.go | 2 +- .../2023-01-01/storageaccounts/method_list.go | 13 +++++++++++++ .../storageaccounts/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-01-01/storageaccounts/method_listkeys.go | 2 +- .../2023-01-01/tableservice/method_tablelist.go | 13 +++++++++++++ .../method_createorupdateimmutabilitypolicy.go | 2 +- .../method_deleteimmutabilitypolicy.go | 2 +- .../method_extendimmutabilitypolicy.go | 2 +- .../method_getimmutabilitypolicy.go | 2 +- .../2023-05-01/blobcontainers/method_list.go | 15 ++++++++++++++- .../method_lockimmutabilitypolicy.go | 2 +- .../2023-05-01/deletedaccounts/method_list.go | 13 +++++++++++++ .../2023-05-01/encryptionscopes/method_list.go | 15 ++++++++++++++- .../2023-05-01/fileshares/method_create.go | 2 +- .../2023-05-01/fileshares/method_delete.go | 2 +- .../storage/2023-05-01/fileshares/method_get.go | 2 +- .../storage/2023-05-01/fileshares/method_lease.go | 2 +- .../storage/2023-05-01/fileshares/method_list.go | 15 ++++++++++++++- .../storage/2023-05-01/localusers/method_list.go | 15 ++++++++++++++- .../2023-05-01/queueservice/method_queuelist.go | 15 ++++++++++++++- .../2023-05-01/storageaccounts/method_failover.go | 2 +- .../storageaccounts/method_getproperties.go | 2 +- .../method_hierarchicalnamespacemigration.go | 2 +- .../2023-05-01/storageaccounts/method_list.go | 13 +++++++++++++ .../storageaccounts/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-05-01/storageaccounts/method_listkeys.go | 2 +- ..._networksecurityperimeterconfigurationslist.go | 13 +++++++++++++ .../method_instancesreportlist.go | 15 ++++++++++++++- .../storagetaskassignments/method_list.go | 15 ++++++++++++++- ...od_storagetaskassignmentinstancesreportlist.go | 15 ++++++++++++++- .../2023-05-01/tableservice/method_tablelist.go | 13 +++++++++++++ .../2023-05-01/amlfilesystems/method_list.go | 13 +++++++++++++ .../amlfilesystems/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-05-01/ascusages/method_list.go | 13 +++++++++++++ .../storagecache/2023-05-01/caches/method_list.go | 13 +++++++++++++ .../caches/method_listbyresourcegroup.go | 13 +++++++++++++ .../storagecache/2023-05-01/skus/method_list.go | 13 +++++++++++++ .../2023-05-01/storagetargets/method_delete.go | 2 +- .../storagetargets/method_listbycache.go | 13 +++++++++++++ .../2023-05-01/usagemodels/method_list.go | 13 +++++++++++++ .../2024-03-01/amlfilesystems/method_list.go | 13 +++++++++++++ .../amlfilesystems/method_listbyresourcegroup.go | 13 +++++++++++++ .../2024-03-01/ascusages/method_list.go | 13 +++++++++++++ .../storagecache/2024-03-01/caches/method_list.go | 13 +++++++++++++ .../caches/method_listbyresourcegroup.go | 13 +++++++++++++ .../importjobs/method_listbyamlfilesystem.go | 13 +++++++++++++ .../storagecache/2024-03-01/skus/method_list.go | 13 +++++++++++++ .../2024-03-01/storagetargets/method_delete.go | 2 +- .../storagetargets/method_listbycache.go | 13 +++++++++++++ .../2024-03-01/usagemodels/method_list.go | 13 +++++++++++++ .../storagemover/2023-03-01/agents/method_list.go | 13 +++++++++++++ .../2023-03-01/endpoints/method_list.go | 13 +++++++++++++ .../2023-03-01/jobdefinitions/method_list.go | 13 +++++++++++++ .../2023-03-01/jobruns/method_list.go | 13 +++++++++++++ .../2023-03-01/projects/method_list.go | 13 +++++++++++++ .../2023-03-01/storagemovers/method_list.go | 13 +++++++++++++ .../storagemovers/method_listbysubscription.go | 13 +++++++++++++ .../storagemover/2023-10-01/agents/method_list.go | 13 +++++++++++++ .../2023-10-01/endpoints/method_list.go | 13 +++++++++++++ .../2023-10-01/jobdefinitions/method_list.go | 13 +++++++++++++ .../2023-10-01/jobruns/method_list.go | 13 +++++++++++++ .../2023-10-01/projects/method_list.go | 13 +++++++++++++ .../2023-10-01/storagemovers/method_list.go | 13 +++++++++++++ .../storagemovers/method_listbysubscription.go | 13 +++++++++++++ .../storagemover/2024-07-01/agents/method_list.go | 13 +++++++++++++ .../2024-07-01/endpoints/method_list.go | 13 +++++++++++++ .../2024-07-01/jobdefinitions/method_list.go | 13 +++++++++++++ .../2024-07-01/jobruns/method_list.go | 13 +++++++++++++ .../2024-07-01/projects/method_list.go | 13 +++++++++++++ .../2024-07-01/storagemovers/method_list.go | 13 +++++++++++++ .../storagemovers/method_listbysubscription.go | 13 +++++++++++++ .../diskpools/method_listbyresourcegroup.go | 13 +++++++++++++ .../diskpools/method_listbysubscription.go | 13 +++++++++++++ ...od_listoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../2021-08-01/diskpoolzones/method_list.go | 13 +++++++++++++ .../iscsitargets/method_listbydiskpool.go | 13 +++++++++++++ .../2021-08-01/resourceskus/method_list.go | 13 +++++++++++++ .../2020-03-01/clusters/method_createorupdate.go | 2 +- .../clusters/method_listbyresourcegroup.go | 13 +++++++++++++ .../clusters/method_listbysubscription.go | 13 +++++++++++++ .../clusters/method_liststreamingjobs.go | 13 +++++++++++++ .../2020-03-01/clusters/method_update.go | 2 +- .../functions/method_createorreplace.go | 2 +- .../functions/method_listbystreamingjob.go | 15 ++++++++++++++- .../2020-03-01/functions/method_update.go | 2 +- .../2020-03-01/inputs/method_createorreplace.go | 2 +- .../inputs/method_listbystreamingjob.go | 15 ++++++++++++++- .../2020-03-01/inputs/method_update.go | 2 +- .../2020-03-01/outputs/method_createorreplace.go | 2 +- .../outputs/method_listbystreamingjob.go | 15 ++++++++++++++- .../2020-03-01/outputs/method_update.go | 2 +- .../privateendpoints/method_createorupdate.go | 2 +- .../privateendpoints/method_listbycluster.go | 13 +++++++++++++ .../streamingjobs/method_createorreplace.go | 2 +- .../2020-03-01/streamingjobs/method_get.go | 2 +- .../2020-03-01/streamingjobs/method_list.go | 15 ++++++++++++++- .../streamingjobs/method_listbyresourcegroup.go | 15 ++++++++++++++- .../2020-03-01/streamingjobs/method_update.go | 2 +- .../transformations/method_createorreplace.go | 2 +- .../2020-03-01/transformations/method_update.go | 2 +- .../functions/method_createorreplace.go | 2 +- .../functions/method_listbystreamingjob.go | 15 ++++++++++++++- .../2021-10-01-preview/functions/method_update.go | 2 +- .../inputs/method_createorreplace.go | 2 +- .../inputs/method_listbystreamingjob.go | 15 ++++++++++++++- .../2021-10-01-preview/inputs/method_update.go | 2 +- .../outputs/method_createorreplace.go | 2 +- .../outputs/method_listbystreamingjob.go | 15 ++++++++++++++- .../2021-10-01-preview/outputs/method_update.go | 2 +- .../streamingjobs/method_createorreplace.go | 2 +- .../streamingjobs/method_get.go | 2 +- .../streamingjobs/method_list.go | 15 ++++++++++++++- .../streamingjobs/method_listbyresourcegroup.go | 15 ++++++++++++++- .../streamingjobs/method_skulist.go | 13 +++++++++++++ .../streamingjobs/method_update.go | 2 +- .../transformations/method_createorreplace.go | 2 +- .../transformations/method_update.go | 2 +- .../bigdatapools/method_createorupdate.go | 2 +- .../bigdatapools/method_listbyworkspace.go | 13 +++++++++++++ .../integrationruntime/method_create.go | 2 +- .../2021-06-01/integrationruntime/method_get.go | 2 +- .../integrationruntime/method_listbyworkspace.go | 13 +++++++++++++ .../method_objectmetadatalist.go | 13 +++++++++++++ .../ipfirewallrules/method_listbyworkspace.go | 13 +++++++++++++ .../2021-06-01/keys/method_listbyworkspace.go | 13 +++++++++++++ .../libraries/method_listbyworkspace.go | 13 +++++++++++++ .../privateendpointconnections/method_list.go | 13 +++++++++++++ .../method_privatelinkhublist.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ .../2021-06-01/privatelinkhubs/method_list.go | 13 +++++++++++++ .../privatelinkhubs/method_listbyresourcegroup.go | 13 +++++++++++++ ...rivateendpointconnectionsprivatelinkhublist.go | 13 +++++++++++++ .../privatelinkresources/method_list.go | 13 +++++++++++++ ...pacemanagedsqlserverrecoverablesqlpoolslist.go | 13 +++++++++++++ .../2021-06-01/sqlpools/method_listbyworkspace.go | 13 +++++++++++++ .../method_sqlpoolrestorepointslist.go | 13 +++++++++++++ ...dedsqlpoolblobauditingpolicieslistbysqlpool.go | 13 +++++++++++++ .../method_sqlpoolmaintenancewindowoptionsget.go | 2 +- ...hod_sqlpoolmaintenancewindowscreateorupdate.go | 2 +- .../method_sqlpoolmaintenancewindowsget.go | 2 +- .../method_sqlpooloperationslist.go | 13 +++++++++++++ .../method_sqlpoolreplicationlinkslist.go | 13 +++++++++++++ .../sqlpoolsschemas/method_sqlpoolschemaslist.go | 15 ++++++++++++++- ...hod_sqlpoolvulnerabilityassessmentscanslist.go | 13 +++++++++++++ .../method_sqlpoolvulnerabilityassessmentslist.go | 13 +++++++++++++ .../method_sqlpoolsecurityalertpolicieslist.go | 13 +++++++++++++ .../method_sqlpoolsensitivitylabelslistcurrent.go | 15 ++++++++++++++- ...hod_sqlpoolsensitivitylabelslistrecommended.go | 15 ++++++++++++++- .../method_sqlpooltablecolumnslistbytablename.go | 15 ++++++++++++++- .../method_sqlpooltableslistbyschema.go | 15 ++++++++++++++- ...ethod_sqlpooltransparentdataencryptionslist.go | 13 +++++++++++++ .../sqlpoolsusages/method_sqlpoolusageslist.go | 13 +++++++++++++ .../method_sqlpoolworkloadclassifierlist.go | 13 +++++++++++++ .../method_sqlpoolworkloadgrouplist.go | 13 +++++++++++++ .../method_azureadonlyauthenticationslist.go | 13 +++++++++++++ .../method_recoverablesqlpoolslist.go | 13 +++++++++++++ ...qlserverblobauditingpolicieslistbyworkspace.go | 13 +++++++++++++ ...extendedblobauditingpolicieslistbyworkspace.go | 13 +++++++++++++ .../method_list.go | 13 +++++++++++++ ...pacemanagedsqlserversecurityalertpolicylist.go | 13 +++++++++++++ ...pacemanagedsqlserverencryptionprotectorlist.go | 13 +++++++++++++ ...anagedsqlservervulnerabilityassessmentslist.go | 13 +++++++++++++ .../method_workspacemanagedsqlserverusageslist.go | 13 +++++++++++++ .../synapse/2021-06-01/workspaces/method_list.go | 13 +++++++++++++ .../workspaces/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-10-07/availabilitysets/method_delete.go | 2 +- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../availabilitysets/method_listbysubscription.go | 13 +++++++++++++ .../2023-10-07/clouds/method_delete.go | 2 +- .../clouds/method_listbyresourcegroup.go | 13 +++++++++++++ .../clouds/method_listbysubscription.go | 13 +++++++++++++ .../method_listbyvirtualmachineinstance.go | 13 +++++++++++++ .../inventoryitems/method_listbyvmmserver.go | 13 +++++++++++++ .../virtualmachineinstances/method_delete.go | 2 +- .../virtualmachineinstances/method_list.go | 13 +++++++++++++ .../virtualmachinetemplates/method_delete.go | 2 +- .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../2023-10-07/virtualnetworks/method_delete.go | 2 +- .../virtualnetworks/method_listbyresourcegroup.go | 13 +++++++++++++ .../virtualnetworks/method_listbysubscription.go | 13 +++++++++++++ .../method_listbyvirtualmachineinstance.go | 13 +++++++++++++ .../2023-10-07/vmmservers/method_delete.go | 2 +- .../vmmservers/method_listbyresourcegroup.go | 13 +++++++++++++ .../vmmservers/method_listbysubscription.go | 13 +++++++++++++ .../2020-05-15/environments/method_get.go | 2 +- .../2018-08-01/heatmaps/method_heatmapget.go | 2 +- .../2022-04-01/heatmaps/method_heatmapget.go | 2 +- .../2021-05-01-preview/edgemodules/method_list.go | 15 ++++++++++++++- .../videos/method_accesspolicieslist.go | 15 ++++++++++++++- .../videos/method_videoslist.go | 15 ++++++++++++++- .../vmware/2022-05-01/addons/method_list.go | 13 +++++++++++++ .../2022-05-01/authorizations/method_list.go | 13 +++++++++++++ .../vmware/2022-05-01/cloudlinks/method_list.go | 13 +++++++++++++ .../vmware/2022-05-01/clusters/method_list.go | 13 +++++++++++++ .../vmware/2022-05-01/datastores/method_list.go | 13 +++++++++++++ .../globalreachconnections/method_list.go | 13 +++++++++++++ .../2022-05-01/hcxenterprisesites/method_list.go | 13 +++++++++++++ .../2022-05-01/placementpolicies/method_list.go | 13 +++++++++++++ .../2022-05-01/privateclouds/method_list.go | 13 +++++++++++++ .../privateclouds/method_listinsubscription.go | 13 +++++++++++++ .../scripts/method_scriptcmdletslist.go | 13 +++++++++++++ .../scripts/method_scriptexecutionslist.go | 13 +++++++++++++ .../scripts/method_scriptpackageslist.go | 13 +++++++++++++ .../2022-05-01/virtualmachines/method_list.go | 13 +++++++++++++ .../2022-05-01/workloadnetworks/method_list.go | 13 +++++++++++++ .../workloadnetworks/method_listdhcp.go | 13 +++++++++++++ .../workloadnetworks/method_listdnsservices.go | 13 +++++++++++++ .../workloadnetworks/method_listdnszones.go | 13 +++++++++++++ .../workloadnetworks/method_listgateways.go | 13 +++++++++++++ .../workloadnetworks/method_listportmirroring.go | 13 +++++++++++++ .../workloadnetworks/method_listpublicips.go | 13 +++++++++++++ .../workloadnetworks/method_listsegments.go | 13 +++++++++++++ .../method_listvirtualmachines.go | 13 +++++++++++++ .../workloadnetworks/method_listvmgroups.go | 13 +++++++++++++ .../vmware/2023-03-01/addons/method_list.go | 13 +++++++++++++ .../2023-03-01/authorizations/method_list.go | 13 +++++++++++++ .../vmware/2023-03-01/cloudlinks/method_list.go | 13 +++++++++++++ .../vmware/2023-03-01/clusters/method_list.go | 13 +++++++++++++ .../vmware/2023-03-01/datastores/method_list.go | 13 +++++++++++++ .../globalreachconnections/method_list.go | 13 +++++++++++++ .../2023-03-01/hcxenterprisesites/method_list.go | 13 +++++++++++++ .../2023-03-01/placementpolicies/method_list.go | 13 +++++++++++++ .../2023-03-01/privateclouds/method_list.go | 13 +++++++++++++ .../privateclouds/method_listinsubscription.go | 13 +++++++++++++ .../scripts/method_scriptcmdletslist.go | 13 +++++++++++++ .../scripts/method_scriptexecutionslist.go | 13 +++++++++++++ .../scripts/method_scriptpackageslist.go | 13 +++++++++++++ .../2023-03-01/virtualmachines/method_list.go | 13 +++++++++++++ .../2023-03-01/workloadnetworks/method_list.go | 13 +++++++++++++ .../workloadnetworks/method_listdhcp.go | 13 +++++++++++++ .../workloadnetworks/method_listdnsservices.go | 13 +++++++++++++ .../workloadnetworks/method_listdnszones.go | 13 +++++++++++++ .../workloadnetworks/method_listgateways.go | 13 +++++++++++++ .../workloadnetworks/method_listportmirroring.go | 13 +++++++++++++ .../workloadnetworks/method_listpublicips.go | 13 +++++++++++++ .../workloadnetworks/method_listsegments.go | 13 +++++++++++++ .../method_listvirtualmachines.go | 13 +++++++++++++ .../workloadnetworks/method_listvmgroups.go | 13 +++++++++++++ .../vmware/2023-09-01/addons/method_list.go | 13 +++++++++++++ .../2023-09-01/authorizations/method_list.go | 13 +++++++++++++ .../vmware/2023-09-01/cloudlinks/method_list.go | 13 +++++++++++++ .../vmware/2023-09-01/clusters/method_list.go | 13 +++++++++++++ .../vmware/2023-09-01/datastores/method_list.go | 13 +++++++++++++ .../globalreachconnections/method_list.go | 13 +++++++++++++ .../2023-09-01/hcxenterprisesites/method_list.go | 13 +++++++++++++ .../iscsipaths/method_listbyprivatecloud.go | 13 +++++++++++++ .../2023-09-01/placementpolicies/method_list.go | 13 +++++++++++++ .../2023-09-01/privateclouds/method_list.go | 13 +++++++++++++ .../privateclouds/method_listinsubscription.go | 13 +++++++++++++ .../2023-09-01/scriptcmdlets/method_list.go | 13 +++++++++++++ .../2023-09-01/scriptexecutions/method_list.go | 13 +++++++++++++ .../2023-09-01/scriptpackages/method_list.go | 13 +++++++++++++ .../2023-09-01/virtualmachines/method_list.go | 13 +++++++++++++ .../vmwares/method_workloadnetworkslistdhcp.go | 13 +++++++++++++ .../method_workloadnetworkslistdnsservices.go | 13 +++++++++++++ .../method_workloadnetworkslistdnszones.go | 13 +++++++++++++ .../method_workloadnetworkslistportmirroring.go | 13 +++++++++++++ .../method_workloadnetworkslistpublicips.go | 13 +++++++++++++ .../method_workloadnetworkslistvmgroups.go | 13 +++++++++++++ .../method_workloadnetworkslistgateways.go | 13 +++++++++++++ .../2023-09-01/workloadnetworks/method_list.go | 13 +++++++++++++ .../method_workloadnetworkslistsegments.go | 13 +++++++++++++ .../method_workloadnetworkslistvirtualmachines.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listbycommunicationsgateway.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ .../method_listbycommunicationsgateway.go | 13 +++++++++++++ .../web/2016-06-01/connections/method_list.go | 2 +- .../web/2016-06-01/customapis/method_list.go | 2 +- .../customapis/method_listbyresourcegroup.go | 2 +- .../appservicecertificateorders/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listcertificates.go | 13 +++++++++++++ .../appserviceenvironments/method_changevnet.go | 13 +++++++++++++ .../appserviceenvironments/method_delete.go | 2 +- ...thod_getinboundnetworkdependenciesendpoints.go | 13 +++++++++++++ ...hod_getoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../method_getprivateendpointconnectionlist.go | 13 +++++++++++++ .../appserviceenvironments/method_list.go | 13 +++++++++++++ .../method_listappserviceplans.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listcapacities.go | 13 +++++++++++++ .../method_listmultirolemetricdefinitions.go | 13 +++++++++++++ ..._listmultirolepoolinstancemetricdefinitions.go | 13 +++++++++++++ .../method_listmultirolepools.go | 13 +++++++++++++ .../method_listmultirolepoolskus.go | 13 +++++++++++++ .../method_listmultiroleusages.go | 13 +++++++++++++ .../appserviceenvironments/method_listusages.go | 15 ++++++++++++++- .../appserviceenvironments/method_listwebapps.go | 15 ++++++++++++++- .../method_listwebworkermetricdefinitions.go | 13 +++++++++++++ .../method_listwebworkerusages.go | 13 +++++++++++++ ...hod_listworkerpoolinstancemetricdefinitions.go | 13 +++++++++++++ .../method_listworkerpools.go | 13 +++++++++++++ .../method_listworkerpoolskus.go | 13 +++++++++++++ .../appserviceenvironments/method_resume.go | 13 +++++++++++++ .../appserviceenvironments/method_suspend.go | 13 +++++++++++++ .../web/2022-09-01/appserviceplans/method_list.go | 15 ++++++++++++++- .../appserviceplans/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listhybridconnections.go | 13 +++++++++++++ .../appserviceplans/method_listusages.go | 15 ++++++++++++++- .../appserviceplans/method_listwebapps.go | 15 ++++++++++++++- .../method_listwebappsbyhybridconnection.go | 13 +++++++++++++ .../appserviceplans/method_restartwebapps.go | 2 +- ...tappservicecertificateorderdetectorresponse.go | 2 +- ...tappservicecertificateorderdetectorresponse.go | 13 +++++++++++++ .../web/2022-09-01/certificates/method_list.go | 15 ++++++++++++++- .../certificates/method_listbyresourcegroup.go | 13 +++++++++++++ .../containerapps/method_listbyresourcegroup.go | 13 +++++++++++++ .../containerapps/method_listbysubscription.go | 13 +++++++++++++ .../method_listrevisions.go | 13 +++++++++++++ .../web/2022-09-01/deletedwebapps/method_list.go | 13 +++++++++++++ .../deletedwebapps/method_listbylocation.go | 13 +++++++++++++ .../diagnostics/method_executesiteanalysis.go | 2 +- .../diagnostics/method_executesiteanalysisslot.go | 2 +- .../diagnostics/method_executesitedetector.go | 2 +- .../diagnostics/method_executesitedetectorslot.go | 2 +- ...ethod_gethostingenvironmentdetectorresponse.go | 2 +- .../diagnostics/method_getsitedetectorresponse.go | 2 +- .../method_getsitedetectorresponseslot.go | 2 +- ...hod_listhostingenvironmentdetectorresponses.go | 13 +++++++++++++ .../diagnostics/method_listsiteanalyses.go | 13 +++++++++++++ .../diagnostics/method_listsiteanalysesslot.go | 13 +++++++++++++ .../method_listsitedetectorresponses.go | 13 +++++++++++++ .../method_listsitedetectorresponsesslot.go | 13 +++++++++++++ .../diagnostics/method_listsitedetectors.go | 13 +++++++++++++ .../diagnostics/method_listsitedetectorsslot.go | 13 +++++++++++++ .../method_listsitediagnosticcategories.go | 13 +++++++++++++ .../method_listsitediagnosticcategoriesslot.go | 13 +++++++++++++ .../web/2022-09-01/domains/method_delete.go | 2 +- .../web/2022-09-01/domains/method_list.go | 13 +++++++++++++ .../domains/method_listbyresourcegroup.go | 13 +++++++++++++ .../domains/method_listownershipidentifiers.go | 13 +++++++++++++ .../domains/method_listrecommendations.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../kubeenvironments/method_listbysubscription.go | 13 +++++++++++++ .../provider/method_getavailablestacks.go | 15 ++++++++++++++- .../provider/method_getavailablestacksonprem.go | 15 ++++++++++++++- .../provider/method_getfunctionappstacks.go | 15 ++++++++++++++- .../method_getfunctionappstacksforlocation.go | 15 ++++++++++++++- .../2022-09-01/provider/method_getwebappstacks.go | 15 ++++++++++++++- .../provider/method_getwebappstacksforlocation.go | 15 ++++++++++++++- .../method_disableallforhostingenvironment.go | 2 +- ..._disablerecommendationforhostingenvironment.go | 2 +- .../method_getruledetailsbyhostingenvironment.go | 2 +- .../method_getruledetailsbywebapp.go | 2 +- .../web/2022-09-01/recommendations/method_list.go | 15 ++++++++++++++- .../method_listhistoryforhostingenvironment.go | 15 ++++++++++++++- .../method_listhistoryforwebapp.go | 15 ++++++++++++++- ...d_listrecommendedrulesforhostingenvironment.go | 15 ++++++++++++++- .../method_listrecommendedrulesforwebapp.go | 15 ++++++++++++++- ...method_resetallfiltersforhostingenvironment.go | 2 +- .../resourcehealthmetadata/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../resourcehealthmetadata/method_listbysite.go | 13 +++++++++++++ .../method_listbysiteslot.go | 13 +++++++++++++ .../resourceproviders/method_listbillingmeters.go | 15 ++++++++++++++- .../method_listcustomhostnamesites.go | 15 ++++++++++++++- .../resourceproviders/method_listgeoregions.go | 15 ++++++++++++++- .../method_listpremieraddonoffers.go | 13 +++++++++++++ ...ethod_listsiteidentifiersassignedtohostname.go | 13 +++++++++++++ .../method_listsourcecontrols.go | 13 +++++++++++++ .../method_getbuilddatabaseconnections.go | 13 +++++++++++++ ...thod_getbuilddatabaseconnectionswithdetails.go | 13 +++++++++++++ .../staticsites/method_getdatabaseconnections.go | 13 +++++++++++++ .../method_getdatabaseconnectionswithdetails.go | 13 +++++++++++++ .../staticsites/method_getlinkedbackends.go | 13 +++++++++++++ .../method_getlinkedbackendsforbuild.go | 13 +++++++++++++ .../method_getprivateendpointconnectionlist.go | 13 +++++++++++++ .../staticsites/method_getstaticsitebuilds.go | 13 +++++++++++++ .../method_getstaticsitesbyresourcegroup.go | 13 +++++++++++++ ...od_getuserprovidedfunctionappsforstaticsite.go | 13 +++++++++++++ ...tuserprovidedfunctionappsforstaticsitebuild.go | 13 +++++++++++++ .../web/2022-09-01/staticsites/method_list.go | 13 +++++++++++++ .../staticsites/method_listbasicauth.go | 13 +++++++++++++ .../method_liststaticsitebuildfunctions.go | 13 +++++++++++++ .../method_liststaticsitecustomdomains.go | 13 +++++++++++++ .../staticsites/method_liststaticsitefunctions.go | 13 +++++++++++++ .../staticsites/method_liststaticsiteusers.go | 13 +++++++++++++ ...gisteruserprovidedfunctionappwithstaticsite.go | 2 +- ...ruserprovidedfunctionappwithstaticsitebuild.go | 2 +- .../staticsites/method_unlinkbackend.go | 2 +- .../staticsites/method_unlinkbackendfrombuild.go | 2 +- .../web/2022-09-01/topleveldomains/method_list.go | 13 +++++++++++++ .../topleveldomains/method_listagreements.go | 13 +++++++++++++ .../webapps/method_analyzecustomhostname.go | 2 +- .../webapps/method_analyzecustomhostnameslot.go | 2 +- .../web/2022-09-01/webapps/method_delete.go | 2 +- .../web/2022-09-01/webapps/method_deleteslot.go | 2 +- .../webapps/method_deletesourcecontrol.go | 2 +- .../webapps/method_deletesourcecontrolslot.go | 2 +- .../method_getappsettingskeyvaultreferences.go | 13 +++++++++++++ ...method_getappsettingskeyvaultreferencesslot.go | 13 +++++++++++++ .../method_getprivateendpointconnectionlist.go | 13 +++++++++++++ ...method_getprivateendpointconnectionlistslot.go | 13 +++++++++++++ ...d_getsiteconnectionstringkeyvaultreferences.go | 13 +++++++++++++ ...tsiteconnectionstringkeyvaultreferencesslot.go | 13 +++++++++++++ .../web/2022-09-01/webapps/method_list.go | 13 +++++++++++++ .../web/2022-09-01/webapps/method_listbackups.go | 13 +++++++++++++ .../2022-09-01/webapps/method_listbackupsslot.go | 13 +++++++++++++ ...thod_listbasicpublishingcredentialspolicies.go | 13 +++++++++++++ ..._listbasicpublishingcredentialspoliciesslot.go | 13 +++++++++++++ .../webapps/method_listbyresourcegroup.go | 15 ++++++++++++++- .../webapps/method_listconfigurations.go | 13 +++++++++++++ .../method_listconfigurationsnapshotinfo.go | 13 +++++++++++++ .../method_listconfigurationsnapshotinfoslot.go | 13 +++++++++++++ .../webapps/method_listconfigurationsslot.go | 13 +++++++++++++ .../webapps/method_listcontinuouswebjobs.go | 13 +++++++++++++ .../webapps/method_listcontinuouswebjobsslot.go | 13 +++++++++++++ .../2022-09-01/webapps/method_listdeployments.go | 13 +++++++++++++ .../webapps/method_listdeploymentsslot.go | 13 +++++++++++++ .../method_listdomainownershipidentifiers.go | 13 +++++++++++++ .../method_listdomainownershipidentifiersslot.go | 13 +++++++++++++ .../2022-09-01/webapps/method_listfunctions.go | 13 +++++++++++++ .../webapps/method_listhostnamebindings.go | 13 +++++++++++++ .../webapps/method_listhostnamebindingsslot.go | 13 +++++++++++++ .../webapps/method_listinstancefunctionsslot.go | 13 +++++++++++++ .../webapps/method_listinstanceidentifiers.go | 13 +++++++++++++ .../webapps/method_listinstanceidentifiersslot.go | 13 +++++++++++++ .../webapps/method_listinstanceprocesses.go | 13 +++++++++++++ .../webapps/method_listinstanceprocessesslot.go | 13 +++++++++++++ .../webapps/method_listinstanceprocessmodules.go | 13 +++++++++++++ .../method_listinstanceprocessmodulesslot.go | 13 +++++++++++++ .../webapps/method_listinstanceprocessthreads.go | 13 +++++++++++++ .../method_listinstanceprocessthreadsslot.go | 13 +++++++++++++ .../webapps/method_listinstanceworkflowsslot.go | 13 +++++++++++++ .../webapps/method_listperfmoncounters.go | 15 ++++++++++++++- .../webapps/method_listperfmoncountersslot.go | 15 ++++++++++++++- .../2022-09-01/webapps/method_listprocesses.go | 13 +++++++++++++ .../webapps/method_listprocessesslot.go | 13 +++++++++++++ .../webapps/method_listprocessmodules.go | 13 +++++++++++++ .../webapps/method_listprocessmodulesslot.go | 13 +++++++++++++ .../webapps/method_listprocessthreads.go | 13 +++++++++++++ .../webapps/method_listprocessthreadsslot.go | 13 +++++++++++++ ...method_listproductionsitedeploymentstatuses.go | 13 +++++++++++++ .../webapps/method_listpubliccertificates.go | 13 +++++++++++++ .../webapps/method_listpubliccertificatesslot.go | 13 +++++++++++++ .../2022-09-01/webapps/method_listsitebackups.go | 13 +++++++++++++ .../webapps/method_listsitebackupsslot.go | 13 +++++++++++++ .../webapps/method_listsiteextensions.go | 13 +++++++++++++ .../webapps/method_listsiteextensionsslot.go | 13 +++++++++++++ .../method_listslotdifferencesfromproduction.go | 13 +++++++++++++ .../webapps/method_listslotdifferencesslot.go | 13 +++++++++++++ .../web/2022-09-01/webapps/method_listslots.go | 13 +++++++++++++ .../method_listslotsitedeploymentstatusesslot.go | 13 +++++++++++++ .../2022-09-01/webapps/method_listsnapshots.go | 13 +++++++++++++ .../method_listsnapshotsfromdrsecondary.go | 13 +++++++++++++ .../method_listsnapshotsfromdrsecondaryslot.go | 13 +++++++++++++ .../webapps/method_listsnapshotsslot.go | 13 +++++++++++++ .../webapps/method_listtriggeredwebjobhistory.go | 13 +++++++++++++ .../method_listtriggeredwebjobhistoryslot.go | 13 +++++++++++++ .../webapps/method_listtriggeredwebjobs.go | 13 +++++++++++++ .../webapps/method_listtriggeredwebjobsslot.go | 13 +++++++++++++ .../web/2022-09-01/webapps/method_listusages.go | 15 ++++++++++++++- .../2022-09-01/webapps/method_listusagesslot.go | 15 ++++++++++++++- .../web/2022-09-01/webapps/method_listwebjobs.go | 13 +++++++++++++ .../2022-09-01/webapps/method_listwebjobsslot.go | 13 +++++++++++++ .../2022-09-01/webapps/method_listworkflows.go | 13 +++++++++++++ .../2022-09-01/webapps/method_migratestorage.go | 2 +- .../web/2022-09-01/webapps/method_restart.go | 2 +- .../web/2022-09-01/webapps/method_restartslot.go | 2 +- .../webapps/method_startnetworktrace.go | 2 +- .../webapps/method_startnetworktraceslot.go | 2 +- .../webapps/method_startwebsitenetworktrace.go | 2 +- .../method_startwebsitenetworktraceoperation.go | 2 +- ...ethod_startwebsitenetworktraceoperationslot.go | 2 +- .../method_startwebsitenetworktraceslot.go | 2 +- .../method_coperepetitionslist.go | 13 +++++++++++++ .../2022-09-01/workflowrunactions/method_list.go | 15 ++++++++++++++- .../method_listexpressiontraces.go | 13 +++++++++++++ .../method_workflowrunactionrepetitionslist.go | 13 +++++++++++++ ...lowrunactionrepetitionslistexpressiontraces.go | 13 +++++++++++++ ...lowrunactionrepetitionsrequesthistorieslist.go | 13 +++++++++++++ .../web/2022-09-01/workflowruns/method_list.go | 15 ++++++++++++++- .../workflowtriggerhistories/method_list.go | 15 ++++++++++++++- .../2022-09-01/workflowtriggers/method_list.go | 15 ++++++++++++++- .../2022-09-01/workflowversions/method_list.go | 15 ++++++++++++++- .../appservicecertificateorders/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listcertificates.go | 13 +++++++++++++ .../appserviceenvironments/method_changevnet.go | 13 +++++++++++++ .../appserviceenvironments/method_delete.go | 2 +- ...thod_getinboundnetworkdependenciesendpoints.go | 13 +++++++++++++ ...hod_getoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../method_getprivateendpointconnectionlist.go | 13 +++++++++++++ .../appserviceenvironments/method_list.go | 13 +++++++++++++ .../method_listappserviceplans.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listcapacities.go | 13 +++++++++++++ .../method_listmultirolemetricdefinitions.go | 13 +++++++++++++ ..._listmultirolepoolinstancemetricdefinitions.go | 13 +++++++++++++ .../method_listmultirolepools.go | 13 +++++++++++++ .../method_listmultirolepoolskus.go | 13 +++++++++++++ .../method_listmultiroleusages.go | 13 +++++++++++++ .../appserviceenvironments/method_listusages.go | 15 ++++++++++++++- .../appserviceenvironments/method_listwebapps.go | 15 ++++++++++++++- .../method_listwebworkermetricdefinitions.go | 13 +++++++++++++ .../method_listwebworkerusages.go | 13 +++++++++++++ ...hod_listworkerpoolinstancemetricdefinitions.go | 13 +++++++++++++ .../method_listworkerpools.go | 13 +++++++++++++ .../method_listworkerpoolskus.go | 13 +++++++++++++ .../appserviceenvironments/method_resume.go | 13 +++++++++++++ .../appserviceenvironments/method_suspend.go | 13 +++++++++++++ .../web/2023-01-01/appserviceplans/method_list.go | 15 ++++++++++++++- .../appserviceplans/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listhybridconnections.go | 13 +++++++++++++ .../appserviceplans/method_listusages.go | 15 ++++++++++++++- .../appserviceplans/method_listwebapps.go | 15 ++++++++++++++- .../method_listwebappsbyhybridconnection.go | 13 +++++++++++++ .../appserviceplans/method_restartwebapps.go | 2 +- ...tappservicecertificateorderdetectorresponse.go | 2 +- ...tappservicecertificateorderdetectorresponse.go | 13 +++++++++++++ .../web/2023-01-01/certificates/method_list.go | 15 ++++++++++++++- .../certificates/method_listbyresourcegroup.go | 13 +++++++++++++ .../containerapps/method_listbyresourcegroup.go | 13 +++++++++++++ .../containerapps/method_listbysubscription.go | 13 +++++++++++++ .../method_listrevisions.go | 13 +++++++++++++ .../web/2023-01-01/deletedwebapps/method_list.go | 13 +++++++++++++ .../deletedwebapps/method_listbylocation.go | 13 +++++++++++++ .../diagnostics/method_executesiteanalysis.go | 2 +- .../diagnostics/method_executesiteanalysisslot.go | 2 +- .../diagnostics/method_executesitedetector.go | 2 +- .../diagnostics/method_executesitedetectorslot.go | 2 +- ...ethod_gethostingenvironmentdetectorresponse.go | 2 +- .../diagnostics/method_getsitedetectorresponse.go | 2 +- .../method_getsitedetectorresponseslot.go | 2 +- ...hod_listhostingenvironmentdetectorresponses.go | 13 +++++++++++++ .../diagnostics/method_listsiteanalyses.go | 13 +++++++++++++ .../diagnostics/method_listsiteanalysesslot.go | 13 +++++++++++++ .../method_listsitedetectorresponses.go | 13 +++++++++++++ .../method_listsitedetectorresponsesslot.go | 13 +++++++++++++ .../diagnostics/method_listsitedetectors.go | 13 +++++++++++++ .../diagnostics/method_listsitedetectorsslot.go | 13 +++++++++++++ .../method_listsitediagnosticcategories.go | 13 +++++++++++++ .../method_listsitediagnosticcategoriesslot.go | 13 +++++++++++++ .../web/2023-01-01/domains/method_delete.go | 2 +- .../web/2023-01-01/domains/method_list.go | 13 +++++++++++++ .../domains/method_listbyresourcegroup.go | 13 +++++++++++++ .../domains/method_listownershipidentifiers.go | 13 +++++++++++++ .../domains/method_listrecommendations.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../kubeenvironments/method_listbysubscription.go | 13 +++++++++++++ .../provider/method_getavailablestacks.go | 15 ++++++++++++++- .../provider/method_getavailablestacksonprem.go | 15 ++++++++++++++- .../provider/method_getfunctionappstacks.go | 15 ++++++++++++++- .../method_getfunctionappstacksforlocation.go | 15 ++++++++++++++- .../2023-01-01/provider/method_getwebappstacks.go | 15 ++++++++++++++- .../provider/method_getwebappstacksforlocation.go | 15 ++++++++++++++- .../method_disableallforhostingenvironment.go | 2 +- ..._disablerecommendationforhostingenvironment.go | 2 +- .../method_getruledetailsbyhostingenvironment.go | 2 +- .../method_getruledetailsbywebapp.go | 2 +- .../web/2023-01-01/recommendations/method_list.go | 15 ++++++++++++++- .../method_listhistoryforhostingenvironment.go | 15 ++++++++++++++- .../method_listhistoryforwebapp.go | 15 ++++++++++++++- ...d_listrecommendedrulesforhostingenvironment.go | 15 ++++++++++++++- .../method_listrecommendedrulesforwebapp.go | 15 ++++++++++++++- ...method_resetallfiltersforhostingenvironment.go | 2 +- .../resourcehealthmetadata/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../resourcehealthmetadata/method_listbysite.go | 13 +++++++++++++ .../method_listbysiteslot.go | 13 +++++++++++++ .../method_getusagesinlocationlist.go | 13 +++++++++++++ .../resourceproviders/method_listaseregions.go | 13 +++++++++++++ .../resourceproviders/method_listbillingmeters.go | 15 ++++++++++++++- .../method_listcustomhostnamesites.go | 15 ++++++++++++++- .../resourceproviders/method_listgeoregions.go | 15 ++++++++++++++- .../method_listpremieraddonoffers.go | 13 +++++++++++++ ...ethod_listsiteidentifiersassignedtohostname.go | 13 +++++++++++++ .../method_listsourcecontrols.go | 13 +++++++++++++ .../method_getbuilddatabaseconnections.go | 13 +++++++++++++ ...thod_getbuilddatabaseconnectionswithdetails.go | 13 +++++++++++++ .../staticsites/method_getdatabaseconnections.go | 13 +++++++++++++ .../method_getdatabaseconnectionswithdetails.go | 13 +++++++++++++ .../staticsites/method_getlinkedbackends.go | 13 +++++++++++++ .../method_getlinkedbackendsforbuild.go | 13 +++++++++++++ .../method_getprivateendpointconnectionlist.go | 13 +++++++++++++ .../staticsites/method_getstaticsitebuilds.go | 13 +++++++++++++ .../method_getstaticsitesbyresourcegroup.go | 13 +++++++++++++ ...od_getuserprovidedfunctionappsforstaticsite.go | 13 +++++++++++++ ...tuserprovidedfunctionappsforstaticsitebuild.go | 13 +++++++++++++ .../web/2023-01-01/staticsites/method_list.go | 13 +++++++++++++ .../staticsites/method_listbasicauth.go | 13 +++++++++++++ .../method_liststaticsitebuildfunctions.go | 13 +++++++++++++ .../method_liststaticsitecustomdomains.go | 13 +++++++++++++ .../staticsites/method_liststaticsitefunctions.go | 13 +++++++++++++ .../staticsites/method_liststaticsiteusers.go | 13 +++++++++++++ ...gisteruserprovidedfunctionappwithstaticsite.go | 2 +- ...ruserprovidedfunctionappwithstaticsitebuild.go | 2 +- .../staticsites/method_unlinkbackend.go | 2 +- .../staticsites/method_unlinkbackendfrombuild.go | 2 +- .../web/2023-01-01/topleveldomains/method_list.go | 13 +++++++++++++ .../topleveldomains/method_listagreements.go | 13 +++++++++++++ .../webapps/method_analyzecustomhostname.go | 2 +- .../webapps/method_analyzecustomhostnameslot.go | 2 +- .../web/2023-01-01/webapps/method_delete.go | 2 +- .../web/2023-01-01/webapps/method_deleteslot.go | 2 +- .../webapps/method_deletesourcecontrol.go | 2 +- .../webapps/method_deletesourcecontrolslot.go | 2 +- .../method_getappsettingskeyvaultreferences.go | 13 +++++++++++++ ...method_getappsettingskeyvaultreferencesslot.go | 13 +++++++++++++ .../method_getprivateendpointconnectionlist.go | 13 +++++++++++++ ...method_getprivateendpointconnectionlistslot.go | 13 +++++++++++++ ...d_getsiteconnectionstringkeyvaultreferences.go | 13 +++++++++++++ ...tsiteconnectionstringkeyvaultreferencesslot.go | 13 +++++++++++++ .../web/2023-01-01/webapps/method_list.go | 13 +++++++++++++ .../web/2023-01-01/webapps/method_listbackups.go | 13 +++++++++++++ .../2023-01-01/webapps/method_listbackupsslot.go | 13 +++++++++++++ ...thod_listbasicpublishingcredentialspolicies.go | 13 +++++++++++++ ..._listbasicpublishingcredentialspoliciesslot.go | 13 +++++++++++++ .../webapps/method_listbyresourcegroup.go | 15 ++++++++++++++- .../webapps/method_listconfigurations.go | 13 +++++++++++++ .../method_listconfigurationsnapshotinfo.go | 13 +++++++++++++ .../method_listconfigurationsnapshotinfoslot.go | 13 +++++++++++++ .../webapps/method_listconfigurationsslot.go | 13 +++++++++++++ .../webapps/method_listcontinuouswebjobs.go | 13 +++++++++++++ .../webapps/method_listcontinuouswebjobsslot.go | 13 +++++++++++++ .../2023-01-01/webapps/method_listdeployments.go | 13 +++++++++++++ .../webapps/method_listdeploymentsslot.go | 13 +++++++++++++ .../method_listdomainownershipidentifiers.go | 13 +++++++++++++ .../method_listdomainownershipidentifiersslot.go | 13 +++++++++++++ .../2023-01-01/webapps/method_listfunctions.go | 13 +++++++++++++ .../webapps/method_listhostnamebindings.go | 13 +++++++++++++ .../webapps/method_listhostnamebindingsslot.go | 13 +++++++++++++ .../webapps/method_listinstancefunctionsslot.go | 13 +++++++++++++ .../webapps/method_listinstanceidentifiers.go | 13 +++++++++++++ .../webapps/method_listinstanceidentifiersslot.go | 13 +++++++++++++ .../webapps/method_listinstanceprocesses.go | 13 +++++++++++++ .../webapps/method_listinstanceprocessesslot.go | 13 +++++++++++++ .../webapps/method_listinstanceprocessmodules.go | 13 +++++++++++++ .../method_listinstanceprocessmodulesslot.go | 13 +++++++++++++ .../webapps/method_listinstanceprocessthreads.go | 13 +++++++++++++ .../method_listinstanceprocessthreadsslot.go | 13 +++++++++++++ .../webapps/method_listinstanceworkflowsslot.go | 13 +++++++++++++ .../webapps/method_listperfmoncounters.go | 15 ++++++++++++++- .../webapps/method_listperfmoncountersslot.go | 15 ++++++++++++++- .../2023-01-01/webapps/method_listprocesses.go | 13 +++++++++++++ .../webapps/method_listprocessesslot.go | 13 +++++++++++++ .../webapps/method_listprocessmodules.go | 13 +++++++++++++ .../webapps/method_listprocessmodulesslot.go | 13 +++++++++++++ .../webapps/method_listprocessthreads.go | 13 +++++++++++++ .../webapps/method_listprocessthreadsslot.go | 13 +++++++++++++ ...method_listproductionsitedeploymentstatuses.go | 13 +++++++++++++ .../webapps/method_listpubliccertificates.go | 13 +++++++++++++ .../webapps/method_listpubliccertificatesslot.go | 13 +++++++++++++ .../2023-01-01/webapps/method_listsitebackups.go | 13 +++++++++++++ .../webapps/method_listsitebackupsslot.go | 13 +++++++++++++ .../webapps/method_listsiteextensions.go | 13 +++++++++++++ .../webapps/method_listsiteextensionsslot.go | 13 +++++++++++++ .../method_listslotdifferencesfromproduction.go | 13 +++++++++++++ .../webapps/method_listslotdifferencesslot.go | 13 +++++++++++++ .../web/2023-01-01/webapps/method_listslots.go | 13 +++++++++++++ .../method_listslotsitedeploymentstatusesslot.go | 13 +++++++++++++ .../2023-01-01/webapps/method_listsnapshots.go | 13 +++++++++++++ .../method_listsnapshotsfromdrsecondary.go | 13 +++++++++++++ .../method_listsnapshotsfromdrsecondaryslot.go | 13 +++++++++++++ .../webapps/method_listsnapshotsslot.go | 13 +++++++++++++ .../webapps/method_listtriggeredwebjobhistory.go | 13 +++++++++++++ .../method_listtriggeredwebjobhistoryslot.go | 13 +++++++++++++ .../webapps/method_listtriggeredwebjobs.go | 13 +++++++++++++ .../webapps/method_listtriggeredwebjobsslot.go | 13 +++++++++++++ .../web/2023-01-01/webapps/method_listusages.go | 15 ++++++++++++++- .../2023-01-01/webapps/method_listusagesslot.go | 15 ++++++++++++++- .../web/2023-01-01/webapps/method_listwebjobs.go | 13 +++++++++++++ .../2023-01-01/webapps/method_listwebjobsslot.go | 13 +++++++++++++ .../2023-01-01/webapps/method_listworkflows.go | 13 +++++++++++++ .../2023-01-01/webapps/method_migratestorage.go | 2 +- .../web/2023-01-01/webapps/method_restart.go | 2 +- .../web/2023-01-01/webapps/method_restartslot.go | 2 +- .../webapps/method_startnetworktrace.go | 2 +- .../webapps/method_startnetworktraceslot.go | 2 +- .../webapps/method_startwebsitenetworktrace.go | 2 +- .../method_startwebsitenetworktraceoperation.go | 2 +- ...ethod_startwebsitenetworktraceoperationslot.go | 2 +- .../method_startwebsitenetworktraceslot.go | 2 +- .../method_coperepetitionslist.go | 13 +++++++++++++ .../2023-01-01/workflowrunactions/method_list.go | 15 ++++++++++++++- .../method_listexpressiontraces.go | 13 +++++++++++++ .../method_workflowrunactionrepetitionslist.go | 13 +++++++++++++ ...lowrunactionrepetitionslistexpressiontraces.go | 13 +++++++++++++ ...lowrunactionrepetitionsrequesthistorieslist.go | 13 +++++++++++++ .../web/2023-01-01/workflowruns/method_list.go | 15 ++++++++++++++- .../workflowtriggerhistories/method_list.go | 15 ++++++++++++++- .../2023-01-01/workflowtriggers/method_list.go | 15 ++++++++++++++- .../2023-01-01/workflowversions/method_list.go | 15 ++++++++++++++- .../appservicecertificateorders/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listcertificates.go | 13 +++++++++++++ .../appserviceenvironments/method_changevnet.go | 13 +++++++++++++ .../appserviceenvironments/method_delete.go | 2 +- ...thod_getinboundnetworkdependenciesendpoints.go | 13 +++++++++++++ ...hod_getoutboundnetworkdependenciesendpoints.go | 13 +++++++++++++ .../method_getprivateendpointconnectionlist.go | 13 +++++++++++++ .../appserviceenvironments/method_list.go | 13 +++++++++++++ .../method_listappserviceplans.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listcapacities.go | 13 +++++++++++++ .../method_listmultirolemetricdefinitions.go | 13 +++++++++++++ ..._listmultirolepoolinstancemetricdefinitions.go | 13 +++++++++++++ .../method_listmultirolepools.go | 13 +++++++++++++ .../method_listmultirolepoolskus.go | 13 +++++++++++++ .../method_listmultiroleusages.go | 13 +++++++++++++ .../appserviceenvironments/method_listusages.go | 15 ++++++++++++++- .../appserviceenvironments/method_listwebapps.go | 15 ++++++++++++++- .../method_listwebworkermetricdefinitions.go | 13 +++++++++++++ .../method_listwebworkerusages.go | 13 +++++++++++++ ...hod_listworkerpoolinstancemetricdefinitions.go | 13 +++++++++++++ .../method_listworkerpools.go | 13 +++++++++++++ .../method_listworkerpoolskus.go | 13 +++++++++++++ .../appserviceenvironments/method_resume.go | 13 +++++++++++++ .../appserviceenvironments/method_suspend.go | 13 +++++++++++++ .../web/2023-12-01/appserviceplans/method_list.go | 15 ++++++++++++++- .../appserviceplans/method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listhybridconnections.go | 13 +++++++++++++ .../appserviceplans/method_listusages.go | 15 ++++++++++++++- .../appserviceplans/method_listwebapps.go | 15 ++++++++++++++- .../method_listwebappsbyhybridconnection.go | 13 +++++++++++++ .../appserviceplans/method_restartwebapps.go | 2 +- ...tappservicecertificateorderdetectorresponse.go | 2 +- ...tappservicecertificateorderdetectorresponse.go | 13 +++++++++++++ .../web/2023-12-01/certificates/method_list.go | 15 ++++++++++++++- .../certificates/method_listbyresourcegroup.go | 13 +++++++++++++ .../containerapps/method_listbyresourcegroup.go | 13 +++++++++++++ .../containerapps/method_listbysubscription.go | 13 +++++++++++++ .../method_listrevisions.go | 13 +++++++++++++ .../web/2023-12-01/deletedwebapps/method_list.go | 13 +++++++++++++ .../deletedwebapps/method_listbylocation.go | 13 +++++++++++++ .../diagnostics/method_executesiteanalysis.go | 2 +- .../diagnostics/method_executesiteanalysisslot.go | 2 +- .../diagnostics/method_executesitedetector.go | 2 +- .../diagnostics/method_executesitedetectorslot.go | 2 +- ...ethod_gethostingenvironmentdetectorresponse.go | 2 +- .../diagnostics/method_getsitedetectorresponse.go | 2 +- .../method_getsitedetectorresponseslot.go | 2 +- ...hod_listhostingenvironmentdetectorresponses.go | 13 +++++++++++++ .../diagnostics/method_listsiteanalyses.go | 13 +++++++++++++ .../diagnostics/method_listsiteanalysesslot.go | 13 +++++++++++++ .../method_listsitedetectorresponses.go | 13 +++++++++++++ .../method_listsitedetectorresponsesslot.go | 13 +++++++++++++ .../diagnostics/method_listsitedetectors.go | 13 +++++++++++++ .../diagnostics/method_listsitedetectorsslot.go | 13 +++++++++++++ .../method_listsitediagnosticcategories.go | 13 +++++++++++++ .../method_listsitediagnosticcategoriesslot.go | 13 +++++++++++++ .../web/2023-12-01/domains/method_delete.go | 2 +- .../web/2023-12-01/domains/method_list.go | 13 +++++++++++++ .../domains/method_listbyresourcegroup.go | 13 +++++++++++++ .../domains/method_listownershipidentifiers.go | 13 +++++++++++++ .../domains/method_listrecommendations.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../kubeenvironments/method_listbysubscription.go | 13 +++++++++++++ .../provider/method_getavailablestacks.go | 15 ++++++++++++++- .../provider/method_getavailablestacksonprem.go | 15 ++++++++++++++- .../provider/method_getfunctionappstacks.go | 15 ++++++++++++++- .../method_getfunctionappstacksforlocation.go | 15 ++++++++++++++- .../2023-12-01/provider/method_getwebappstacks.go | 15 ++++++++++++++- .../provider/method_getwebappstacksforlocation.go | 15 ++++++++++++++- .../method_disableallforhostingenvironment.go | 2 +- ..._disablerecommendationforhostingenvironment.go | 2 +- .../method_getruledetailsbyhostingenvironment.go | 2 +- .../method_getruledetailsbywebapp.go | 2 +- .../web/2023-12-01/recommendations/method_list.go | 15 ++++++++++++++- .../method_listhistoryforhostingenvironment.go | 15 ++++++++++++++- .../method_listhistoryforwebapp.go | 15 ++++++++++++++- ...d_listrecommendedrulesforhostingenvironment.go | 15 ++++++++++++++- .../method_listrecommendedrulesforwebapp.go | 15 ++++++++++++++- ...method_resetallfiltersforhostingenvironment.go | 2 +- .../resourcehealthmetadata/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../resourcehealthmetadata/method_listbysite.go | 13 +++++++++++++ .../method_listbysiteslot.go | 13 +++++++++++++ .../method_getusagesinlocationlist.go | 13 +++++++++++++ .../resourceproviders/method_listaseregions.go | 13 +++++++++++++ .../resourceproviders/method_listbillingmeters.go | 15 ++++++++++++++- .../method_listcustomhostnamesites.go | 15 ++++++++++++++- .../resourceproviders/method_listgeoregions.go | 15 ++++++++++++++- .../method_listpremieraddonoffers.go | 13 +++++++++++++ ...ethod_listsiteidentifiersassignedtohostname.go | 13 +++++++++++++ .../method_listsourcecontrols.go | 13 +++++++++++++ .../method_getbuilddatabaseconnections.go | 13 +++++++++++++ ...thod_getbuilddatabaseconnectionswithdetails.go | 13 +++++++++++++ .../staticsites/method_getdatabaseconnections.go | 13 +++++++++++++ .../method_getdatabaseconnectionswithdetails.go | 13 +++++++++++++ .../staticsites/method_getlinkedbackends.go | 13 +++++++++++++ .../method_getlinkedbackendsforbuild.go | 13 +++++++++++++ .../method_getprivateendpointconnectionlist.go | 13 +++++++++++++ .../staticsites/method_getstaticsitebuilds.go | 13 +++++++++++++ .../method_getstaticsitesbyresourcegroup.go | 13 +++++++++++++ ...od_getuserprovidedfunctionappsforstaticsite.go | 13 +++++++++++++ ...tuserprovidedfunctionappsforstaticsitebuild.go | 13 +++++++++++++ .../web/2023-12-01/staticsites/method_list.go | 13 +++++++++++++ .../staticsites/method_listbasicauth.go | 13 +++++++++++++ .../method_liststaticsitebuildfunctions.go | 13 +++++++++++++ .../method_liststaticsitecustomdomains.go | 13 +++++++++++++ .../staticsites/method_liststaticsitefunctions.go | 13 +++++++++++++ .../staticsites/method_liststaticsiteusers.go | 13 +++++++++++++ ...gisteruserprovidedfunctionappwithstaticsite.go | 2 +- ...ruserprovidedfunctionappwithstaticsitebuild.go | 2 +- .../staticsites/method_unlinkbackend.go | 2 +- .../staticsites/method_unlinkbackendfrombuild.go | 2 +- .../web/2023-12-01/topleveldomains/method_list.go | 13 +++++++++++++ .../topleveldomains/method_listagreements.go | 13 +++++++++++++ .../webapps/method_analyzecustomhostname.go | 2 +- .../webapps/method_analyzecustomhostnameslot.go | 2 +- .../web/2023-12-01/webapps/method_delete.go | 2 +- .../web/2023-12-01/webapps/method_deleteslot.go | 2 +- .../webapps/method_deletesourcecontrol.go | 2 +- .../webapps/method_deletesourcecontrolslot.go | 2 +- .../method_getappsettingskeyvaultreferences.go | 13 +++++++++++++ ...method_getappsettingskeyvaultreferencesslot.go | 13 +++++++++++++ .../method_getprivateendpointconnectionlist.go | 13 +++++++++++++ ...method_getprivateendpointconnectionlistslot.go | 13 +++++++++++++ ...d_getsiteconnectionstringkeyvaultreferences.go | 13 +++++++++++++ ...tsiteconnectionstringkeyvaultreferencesslot.go | 13 +++++++++++++ .../web/2023-12-01/webapps/method_list.go | 13 +++++++++++++ .../web/2023-12-01/webapps/method_listbackups.go | 13 +++++++++++++ .../2023-12-01/webapps/method_listbackupsslot.go | 13 +++++++++++++ ...thod_listbasicpublishingcredentialspolicies.go | 13 +++++++++++++ ..._listbasicpublishingcredentialspoliciesslot.go | 13 +++++++++++++ .../webapps/method_listbyresourcegroup.go | 15 ++++++++++++++- .../webapps/method_listconfigurations.go | 13 +++++++++++++ .../method_listconfigurationsnapshotinfo.go | 13 +++++++++++++ .../method_listconfigurationsnapshotinfoslot.go | 13 +++++++++++++ .../webapps/method_listconfigurationsslot.go | 13 +++++++++++++ .../webapps/method_listcontinuouswebjobs.go | 13 +++++++++++++ .../webapps/method_listcontinuouswebjobsslot.go | 13 +++++++++++++ .../2023-12-01/webapps/method_listdeployments.go | 13 +++++++++++++ .../webapps/method_listdeploymentsslot.go | 13 +++++++++++++ .../method_listdomainownershipidentifiers.go | 13 +++++++++++++ .../method_listdomainownershipidentifiersslot.go | 13 +++++++++++++ .../2023-12-01/webapps/method_listfunctions.go | 13 +++++++++++++ .../webapps/method_listhostnamebindings.go | 13 +++++++++++++ .../webapps/method_listhostnamebindingsslot.go | 13 +++++++++++++ .../webapps/method_listinstancefunctionsslot.go | 13 +++++++++++++ .../webapps/method_listinstanceidentifiers.go | 13 +++++++++++++ .../webapps/method_listinstanceidentifiersslot.go | 13 +++++++++++++ .../webapps/method_listinstanceprocesses.go | 13 +++++++++++++ .../webapps/method_listinstanceprocessesslot.go | 13 +++++++++++++ .../webapps/method_listinstanceprocessmodules.go | 13 +++++++++++++ .../method_listinstanceprocessmodulesslot.go | 13 +++++++++++++ .../webapps/method_listinstanceprocessthreads.go | 13 +++++++++++++ .../method_listinstanceprocessthreadsslot.go | 13 +++++++++++++ .../webapps/method_listinstanceworkflowsslot.go | 13 +++++++++++++ .../webapps/method_listperfmoncounters.go | 15 ++++++++++++++- .../webapps/method_listperfmoncountersslot.go | 15 ++++++++++++++- .../2023-12-01/webapps/method_listprocesses.go | 13 +++++++++++++ .../webapps/method_listprocessesslot.go | 13 +++++++++++++ .../webapps/method_listprocessmodules.go | 13 +++++++++++++ .../webapps/method_listprocessmodulesslot.go | 13 +++++++++++++ .../webapps/method_listprocessthreads.go | 13 +++++++++++++ .../webapps/method_listprocessthreadsslot.go | 13 +++++++++++++ ...method_listproductionsitedeploymentstatuses.go | 13 +++++++++++++ .../webapps/method_listpubliccertificates.go | 13 +++++++++++++ .../webapps/method_listpubliccertificatesslot.go | 13 +++++++++++++ .../2023-12-01/webapps/method_listsitebackups.go | 13 +++++++++++++ .../webapps/method_listsitebackupsslot.go | 13 +++++++++++++ .../webapps/method_listsitecontainers.go | 13 +++++++++++++ .../webapps/method_listsitecontainersslot.go | 13 +++++++++++++ .../webapps/method_listsiteextensions.go | 13 +++++++++++++ .../webapps/method_listsiteextensionsslot.go | 13 +++++++++++++ .../method_listslotdifferencesfromproduction.go | 13 +++++++++++++ .../webapps/method_listslotdifferencesslot.go | 13 +++++++++++++ .../web/2023-12-01/webapps/method_listslots.go | 13 +++++++++++++ .../method_listslotsitedeploymentstatusesslot.go | 13 +++++++++++++ .../2023-12-01/webapps/method_listsnapshots.go | 13 +++++++++++++ .../method_listsnapshotsfromdrsecondary.go | 13 +++++++++++++ .../method_listsnapshotsfromdrsecondaryslot.go | 13 +++++++++++++ .../webapps/method_listsnapshotsslot.go | 13 +++++++++++++ .../webapps/method_listtriggeredwebjobhistory.go | 13 +++++++++++++ .../method_listtriggeredwebjobhistoryslot.go | 13 +++++++++++++ .../webapps/method_listtriggeredwebjobs.go | 13 +++++++++++++ .../webapps/method_listtriggeredwebjobsslot.go | 13 +++++++++++++ .../web/2023-12-01/webapps/method_listusages.go | 15 ++++++++++++++- .../2023-12-01/webapps/method_listusagesslot.go | 15 ++++++++++++++- .../web/2023-12-01/webapps/method_listwebjobs.go | 13 +++++++++++++ .../2023-12-01/webapps/method_listwebjobsslot.go | 13 +++++++++++++ .../2023-12-01/webapps/method_listworkflows.go | 13 +++++++++++++ .../2023-12-01/webapps/method_migratestorage.go | 2 +- .../web/2023-12-01/webapps/method_restart.go | 2 +- .../web/2023-12-01/webapps/method_restartslot.go | 2 +- .../webapps/method_startnetworktrace.go | 2 +- .../webapps/method_startnetworktraceslot.go | 2 +- .../webapps/method_startwebsitenetworktrace.go | 2 +- .../method_startwebsitenetworktraceoperation.go | 2 +- ...ethod_startwebsitenetworktraceoperationslot.go | 2 +- .../method_startwebsitenetworktraceslot.go | 2 +- .../method_coperepetitionslist.go | 13 +++++++++++++ .../2023-12-01/workflowrunactions/method_list.go | 15 ++++++++++++++- .../method_listexpressiontraces.go | 13 +++++++++++++ .../method_workflowrunactionrepetitionslist.go | 13 +++++++++++++ ...lowrunactionrepetitionslistexpressiontraces.go | 13 +++++++++++++ ...lowrunactionrepetitionsrequesthistorieslist.go | 13 +++++++++++++ .../web/2023-12-01/workflowruns/method_list.go | 15 ++++++++++++++- .../workflowtriggerhistories/method_list.go | 15 ++++++++++++++- .../2023-12-01/workflowtriggers/method_list.go | 15 ++++++++++++++- .../2023-12-01/workflowversions/method_list.go | 15 ++++++++++++++- .../webpubsub/method_customcertificateslist.go | 13 +++++++++++++ .../webpubsub/method_customdomainslist.go | 13 +++++++++++++ .../2023-02-01/webpubsub/method_hubslist.go | 13 +++++++++++++ .../webpubsub/method_listbyresourcegroup.go | 13 +++++++++++++ .../webpubsub/method_listbysubscription.go | 13 +++++++++++++ .../2023-02-01/webpubsub/method_listskus.go | 13 +++++++++++++ .../method_privateendpointconnectionslist.go | 13 +++++++++++++ .../webpubsub/method_privatelinkresourceslist.go | 13 +++++++++++++ .../method_sharedprivatelinkresourceslist.go | 13 +++++++++++++ .../2023-02-01/webpubsub/method_usageslist.go | 13 +++++++++++++ .../webpubsub/method_customcertificateslist.go | 13 +++++++++++++ .../webpubsub/method_customdomainslist.go | 13 +++++++++++++ .../2024-03-01/webpubsub/method_hubslist.go | 13 +++++++++++++ .../webpubsub/method_listbyresourcegroup.go | 13 +++++++++++++ .../webpubsub/method_listbysubscription.go | 13 +++++++++++++ .../webpubsub/method_listreplicaskus.go | 13 +++++++++++++ .../2024-03-01/webpubsub/method_listskus.go | 13 +++++++++++++ .../method_privateendpointconnectionslist.go | 13 +++++++++++++ .../webpubsub/method_privatelinkresourceslist.go | 13 +++++++++++++ ...ethod_replicasharedprivatelinkresourceslist.go | 13 +++++++++++++ .../2024-03-01/webpubsub/method_replicaslist.go | 13 +++++++++++++ .../method_sharedprivatelinkresourceslist.go | 13 +++++++++++++ .../2024-03-01/webpubsub/method_usageslist.go | 13 +++++++++++++ .../workloads/2023-04-01/monitors/method_list.go | 13 +++++++++++++ .../monitors/method_listbyresourcegroup.go | 13 +++++++++++++ .../2023-04-01/providerinstances/method_list.go | 13 +++++++++++++ .../sapapplicationserverinstances/method_list.go | 13 +++++++++++++ .../2023-04-01/sapcentralinstances/method_list.go | 13 +++++++++++++ .../sapdatabaseinstances/method_list.go | 13 +++++++++++++ .../2023-04-01/saplandscapemonitor/method_list.go | 13 +++++++++++++ .../method_listbyresourcegroup.go | 13 +++++++++++++ .../method_listbysubscription.go | 13 +++++++++++++ 7506 files changed, 77447 insertions(+), 3425 deletions(-) diff --git a/resource-manager/aad/2021-05-01/domainservices/method_list.go b/resource-manager/aad/2021-05-01/domainservices/method_list.go index 574c11ca8e6..e2bd9a9bd03 100644 --- a/resource-manager/aad/2021-05-01/domainservices/method_list.go +++ b/resource-manager/aad/2021-05-01/domainservices/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DomainService } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DomainServicesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DomainServicesClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AAD/domainServices", id.ID()), } diff --git a/resource-manager/aad/2021-05-01/domainservices/method_listbyresourcegroup.go b/resource-manager/aad/2021-05-01/domainservices/method_listbyresourcegroup.go index ab162c585f5..8c7c604d480 100644 --- a/resource-manager/aad/2021-05-01/domainservices/method_listbyresourcegroup.go +++ b/resource-manager/aad/2021-05-01/domainservices/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DomainService } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DomainServicesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DomainServicesClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AAD/domainServices", id.ID()), } diff --git a/resource-manager/aad/2021-05-01/oucontainer/method_list.go b/resource-manager/aad/2021-05-01/oucontainer/method_list.go index c076084e1fb..9e260a84657 100644 --- a/resource-manager/aad/2021-05-01/oucontainer/method_list.go +++ b/resource-manager/aad/2021-05-01/oucontainer/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []OuContainer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OuContainerClient) List(ctx context.Context, id DomainServiceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c OuContainerClient) List(ctx context.Context, id DomainServiceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/ouContainer", id.ID()), } diff --git a/resource-manager/aadb2c/2021-04-01-preview/tenants/method_listbyresourcegroup.go b/resource-manager/aadb2c/2021-04-01-preview/tenants/method_listbyresourcegroup.go index efdeb820a44..c1717bc696a 100644 --- a/resource-manager/aadb2c/2021-04-01-preview/tenants/method_listbyresourcegroup.go +++ b/resource-manager/aadb2c/2021-04-01-preview/tenants/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Tenant } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c TenantsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TenantsClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureActiveDirectory/b2cDirectories", id.ID()), } diff --git a/resource-manager/aadb2c/2021-04-01-preview/tenants/method_listbysubscription.go b/resource-manager/aadb2c/2021-04-01-preview/tenants/method_listbysubscription.go index cd300ed3d7c..d50e47bc168 100644 --- a/resource-manager/aadb2c/2021-04-01-preview/tenants/method_listbysubscription.go +++ b/resource-manager/aadb2c/2021-04-01-preview/tenants/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Tenant } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c TenantsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TenantsClient) ListBySubscription(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureActiveDirectory/b2cDirectories", id.ID()), } diff --git a/resource-manager/advisor/2020-01-01/configurations/method_listbyresourcegroup.go b/resource-manager/advisor/2020-01-01/configurations/method_listbyresourcegroup.go index dda548782d2..16198a62599 100644 --- a/resource-manager/advisor/2020-01-01/configurations/method_listbyresourcegroup.go +++ b/resource-manager/advisor/2020-01-01/configurations/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ConfigData } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ConfigurationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConfigurationsClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/configurations", id.ID()), } diff --git a/resource-manager/advisor/2020-01-01/configurations/method_listbysubscription.go b/resource-manager/advisor/2020-01-01/configurations/method_listbysubscription.go index 5a7870f40d8..d1861ed0179 100644 --- a/resource-manager/advisor/2020-01-01/configurations/method_listbysubscription.go +++ b/resource-manager/advisor/2020-01-01/configurations/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ConfigData } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ConfigurationsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConfigurationsClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/configurations", id.ID()), } diff --git a/resource-manager/advisor/2020-01-01/getrecommendations/method_recommendationslist.go b/resource-manager/advisor/2020-01-01/getrecommendations/method_recommendationslist.go index 47d4a3729ef..ef2ef976227 100644 --- a/resource-manager/advisor/2020-01-01/getrecommendations/method_recommendationslist.go +++ b/resource-manager/advisor/2020-01-01/getrecommendations/method_recommendationslist.go @@ -55,6 +55,18 @@ func (o RecommendationsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type RecommendationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RecommendationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RecommendationsList ... func (c GetRecommendationsClient) RecommendationsList(ctx context.Context, id commonids.SubscriptionId, options RecommendationsListOperationOptions) (result RecommendationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c GetRecommendationsClient) RecommendationsList(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/recommendations", id.ID()), OptionsObject: options, + Pager: &RecommendationsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/recommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/advisor/2020-01-01/metadata/method_recommendationmetadatalist.go b/resource-manager/advisor/2020-01-01/metadata/method_recommendationmetadatalist.go index 7e01ce6fbb0..fb07d22e443 100644 --- a/resource-manager/advisor/2020-01-01/metadata/method_recommendationmetadatalist.go +++ b/resource-manager/advisor/2020-01-01/metadata/method_recommendationmetadatalist.go @@ -23,6 +23,18 @@ type RecommendationMetadataListCompleteResult struct { Items []MetadataEntity } +type RecommendationMetadataListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RecommendationMetadataListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RecommendationMetadataList ... func (c MetadataClient) RecommendationMetadataList(ctx context.Context) (result RecommendationMetadataListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MetadataClient) RecommendationMetadataList(ctx context.Context) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RecommendationMetadataListCustomPager{}, Path: "/providers/Microsoft.Advisor/metadata", } diff --git a/resource-manager/advisor/2020-01-01/suppressions/method_list.go b/resource-manager/advisor/2020-01-01/suppressions/method_list.go index 7b9fd146666..91e057e4ba8 100644 --- a/resource-manager/advisor/2020-01-01/suppressions/method_list.go +++ b/resource-manager/advisor/2020-01-01/suppressions/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SuppressionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SuppressionsClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/suppressions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/suppressions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/advisor/2022-10-01/configurations/method_listbyresourcegroup.go b/resource-manager/advisor/2022-10-01/configurations/method_listbyresourcegroup.go index dda548782d2..16198a62599 100644 --- a/resource-manager/advisor/2022-10-01/configurations/method_listbyresourcegroup.go +++ b/resource-manager/advisor/2022-10-01/configurations/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ConfigData } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ConfigurationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConfigurationsClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/configurations", id.ID()), } diff --git a/resource-manager/advisor/2022-10-01/configurations/method_listbysubscription.go b/resource-manager/advisor/2022-10-01/configurations/method_listbysubscription.go index 5a7870f40d8..d1861ed0179 100644 --- a/resource-manager/advisor/2022-10-01/configurations/method_listbysubscription.go +++ b/resource-manager/advisor/2022-10-01/configurations/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ConfigData } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ConfigurationsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConfigurationsClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/configurations", id.ID()), } diff --git a/resource-manager/advisor/2022-10-01/getrecommendations/method_recommendationslist.go b/resource-manager/advisor/2022-10-01/getrecommendations/method_recommendationslist.go index 47d4a3729ef..ef2ef976227 100644 --- a/resource-manager/advisor/2022-10-01/getrecommendations/method_recommendationslist.go +++ b/resource-manager/advisor/2022-10-01/getrecommendations/method_recommendationslist.go @@ -55,6 +55,18 @@ func (o RecommendationsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type RecommendationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RecommendationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RecommendationsList ... func (c GetRecommendationsClient) RecommendationsList(ctx context.Context, id commonids.SubscriptionId, options RecommendationsListOperationOptions) (result RecommendationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c GetRecommendationsClient) RecommendationsList(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/recommendations", id.ID()), OptionsObject: options, + Pager: &RecommendationsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/recommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/advisor/2022-10-01/metadata/method_recommendationmetadatalist.go b/resource-manager/advisor/2022-10-01/metadata/method_recommendationmetadatalist.go index 7e01ce6fbb0..fb07d22e443 100644 --- a/resource-manager/advisor/2022-10-01/metadata/method_recommendationmetadatalist.go +++ b/resource-manager/advisor/2022-10-01/metadata/method_recommendationmetadatalist.go @@ -23,6 +23,18 @@ type RecommendationMetadataListCompleteResult struct { Items []MetadataEntity } +type RecommendationMetadataListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RecommendationMetadataListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RecommendationMetadataList ... func (c MetadataClient) RecommendationMetadataList(ctx context.Context) (result RecommendationMetadataListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MetadataClient) RecommendationMetadataList(ctx context.Context) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RecommendationMetadataListCustomPager{}, Path: "/providers/Microsoft.Advisor/metadata", } diff --git a/resource-manager/advisor/2022-10-01/suppressions/method_list.go b/resource-manager/advisor/2022-10-01/suppressions/method_list.go index 7b9fd146666..91e057e4ba8 100644 --- a/resource-manager/advisor/2022-10-01/suppressions/method_list.go +++ b/resource-manager/advisor/2022-10-01/suppressions/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SuppressionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SuppressionsClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/suppressions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/suppressions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/advisor/2023-01-01/configurations/method_listbyresourcegroup.go b/resource-manager/advisor/2023-01-01/configurations/method_listbyresourcegroup.go index dda548782d2..16198a62599 100644 --- a/resource-manager/advisor/2023-01-01/configurations/method_listbyresourcegroup.go +++ b/resource-manager/advisor/2023-01-01/configurations/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ConfigData } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ConfigurationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConfigurationsClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/configurations", id.ID()), } diff --git a/resource-manager/advisor/2023-01-01/configurations/method_listbysubscription.go b/resource-manager/advisor/2023-01-01/configurations/method_listbysubscription.go index 5a7870f40d8..d1861ed0179 100644 --- a/resource-manager/advisor/2023-01-01/configurations/method_listbysubscription.go +++ b/resource-manager/advisor/2023-01-01/configurations/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ConfigData } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ConfigurationsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConfigurationsClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/configurations", id.ID()), } diff --git a/resource-manager/advisor/2023-01-01/getrecommendations/method_recommendationslist.go b/resource-manager/advisor/2023-01-01/getrecommendations/method_recommendationslist.go index 47d4a3729ef..ef2ef976227 100644 --- a/resource-manager/advisor/2023-01-01/getrecommendations/method_recommendationslist.go +++ b/resource-manager/advisor/2023-01-01/getrecommendations/method_recommendationslist.go @@ -55,6 +55,18 @@ func (o RecommendationsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type RecommendationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RecommendationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RecommendationsList ... func (c GetRecommendationsClient) RecommendationsList(ctx context.Context, id commonids.SubscriptionId, options RecommendationsListOperationOptions) (result RecommendationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c GetRecommendationsClient) RecommendationsList(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/recommendations", id.ID()), OptionsObject: options, + Pager: &RecommendationsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/recommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/advisor/2023-01-01/metadata/method_recommendationmetadatalist.go b/resource-manager/advisor/2023-01-01/metadata/method_recommendationmetadatalist.go index 7e01ce6fbb0..fb07d22e443 100644 --- a/resource-manager/advisor/2023-01-01/metadata/method_recommendationmetadatalist.go +++ b/resource-manager/advisor/2023-01-01/metadata/method_recommendationmetadatalist.go @@ -23,6 +23,18 @@ type RecommendationMetadataListCompleteResult struct { Items []MetadataEntity } +type RecommendationMetadataListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RecommendationMetadataListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RecommendationMetadataList ... func (c MetadataClient) RecommendationMetadataList(ctx context.Context) (result RecommendationMetadataListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MetadataClient) RecommendationMetadataList(ctx context.Context) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RecommendationMetadataListCustomPager{}, Path: "/providers/Microsoft.Advisor/metadata", } diff --git a/resource-manager/advisor/2023-01-01/suppressions/method_list.go b/resource-manager/advisor/2023-01-01/suppressions/method_list.go index 7b9fd146666..91e057e4ba8 100644 --- a/resource-manager/advisor/2023-01-01/suppressions/method_list.go +++ b/resource-manager/advisor/2023-01-01/suppressions/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SuppressionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SuppressionsClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/suppressions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Advisor/suppressions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/alertsmanagement/2019-05-05-preview/actionrules/method_listbyresourcegroup.go b/resource-manager/alertsmanagement/2019-05-05-preview/actionrules/method_listbyresourcegroup.go index 721f2b005db..b37cd3247f1 100644 --- a/resource-manager/alertsmanagement/2019-05-05-preview/actionrules/method_listbyresourcegroup.go +++ b/resource-manager/alertsmanagement/2019-05-05-preview/actionrules/method_listbyresourcegroup.go @@ -87,6 +87,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ActionRulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -95,8 +107,9 @@ func (c ActionRulesClient) ListByResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/actionRules", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/actionRules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/alertsmanagement/2019-05-05-preview/actionrules/method_listbysubscription.go b/resource-manager/alertsmanagement/2019-05-05-preview/actionrules/method_listbysubscription.go index 08764ec6e8f..b8a90fa4807 100644 --- a/resource-manager/alertsmanagement/2019-05-05-preview/actionrules/method_listbysubscription.go +++ b/resource-manager/alertsmanagement/2019-05-05-preview/actionrules/method_listbysubscription.go @@ -87,6 +87,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ActionRulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -95,8 +107,9 @@ func (c ActionRulesClient) ListBySubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/actionRules", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/actionRules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertschangestate.go b/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertschangestate.go index c208176cd92..408fb21eba0 100644 --- a/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertschangestate.go +++ b/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertschangestate.go @@ -53,8 +53,8 @@ func (c AlertsManagementsClient) AlertsChangeState(ctx context.Context, id Alert http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/changestate", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/changestate", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertsgetall.go b/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertsgetall.go index 08f171c8cac..69af7a04b40 100644 --- a/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertsgetall.go +++ b/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertsgetall.go @@ -115,6 +115,18 @@ func (o AlertsGetAllOperationOptions) ToQuery() *client.QueryParams { return &out } +type AlertsGetAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AlertsGetAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AlertsGetAll ... func (c AlertsManagementsClient) AlertsGetAll(ctx context.Context, id commonids.SubscriptionId, options AlertsGetAllOperationOptions) (result AlertsGetAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -123,8 +135,9 @@ func (c AlertsManagementsClient) AlertsGetAll(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/alerts", id.ID()), OptionsObject: options, + Pager: &AlertsGetAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/alerts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertsgetsummary.go b/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertsgetsummary.go index f9acdb81059..e142ea30b13 100644 --- a/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertsgetsummary.go +++ b/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertsgetsummary.go @@ -98,8 +98,8 @@ func (c AlertsManagementsClient) AlertsGetSummary(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/alertsSummary", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/alertsSummary", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertsmetadata.go b/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertsmetadata.go index 6abc2a7995c..9d84a06232b 100644 --- a/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertsmetadata.go +++ b/resource-manager/alertsmanagement/2019-05-05-preview/alertsmanagements/method_alertsmetadata.go @@ -53,8 +53,8 @@ func (c AlertsManagementsClient) AlertsMetaData(ctx context.Context, options Ale http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.AlertsManagement/alertsMetaData", OptionsObject: options, + Path: "/providers/Microsoft.AlertsManagement/alertsMetaData", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/alertsmanagement/2019-05-05-preview/smartgroups/method_changestate.go b/resource-manager/alertsmanagement/2019-05-05-preview/smartgroups/method_changestate.go index ae09475abe6..562a5159a5f 100644 --- a/resource-manager/alertsmanagement/2019-05-05-preview/smartgroups/method_changestate.go +++ b/resource-manager/alertsmanagement/2019-05-05-preview/smartgroups/method_changestate.go @@ -53,8 +53,8 @@ func (c SmartGroupsClient) ChangeState(ctx context.Context, id SmartGroupId, opt http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/changeState", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/changeState", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/alertsmanagement/2019-05-05-preview/smartgroups/method_getall.go b/resource-manager/alertsmanagement/2019-05-05-preview/smartgroups/method_getall.go index 25a3dcfe1c1..c1a769874de 100644 --- a/resource-manager/alertsmanagement/2019-05-05-preview/smartgroups/method_getall.go +++ b/resource-manager/alertsmanagement/2019-05-05-preview/smartgroups/method_getall.go @@ -91,6 +91,18 @@ func (o GetAllOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAll ... func (c SmartGroupsClient) GetAll(ctx context.Context, id commonids.SubscriptionId, options GetAllOperationOptions) (result GetAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -99,8 +111,9 @@ func (c SmartGroupsClient) GetAll(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/smartGroups", id.ID()), OptionsObject: options, + Pager: &GetAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/smartGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_get.go b/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_get.go index 10be06decdc..ff395fa0f1b 100644 --- a/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_get.go +++ b/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_get.go @@ -53,8 +53,8 @@ func (c SmartDetectorAlertRulesClient) Get(ctx context.Context, id SmartDetector http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_list.go b/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_list.go index a2ee2ca470d..027aa56cbc2 100644 --- a/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_list.go +++ b/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SmartDetectorAlertRulesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SmartDetectorAlertRulesClient) List(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/smartDetectorAlertRules", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/smartDetectorAlertRules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_listbyresourcegroup.go b/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_listbyresourcegroup.go index 264463e85c6..5d228dbdd70 100644 --- a/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_listbyresourcegroup.go +++ b/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SmartDetectorAlertRulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SmartDetectorAlertRulesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/smartDetectorAlertRules", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/smartDetectorAlertRules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_listbyresourcegroup.go b/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_listbyresourcegroup.go index fdfebd6b800..f36d709bc97 100644 --- a/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_listbyresourcegroup.go +++ b/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AlertProcessingRule } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AlertProcessingRulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertProcessingRulesClient) ListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/actionRules", id.ID()), } diff --git a/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_listbysubscription.go b/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_listbysubscription.go index 7e39635bf6d..9d293b97000 100644 --- a/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_listbysubscription.go +++ b/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []AlertProcessingRule } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AlertProcessingRulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertProcessingRulesClient) ListBySubscription(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AlertsManagement/actionRules", id.ID()), } diff --git a/resource-manager/apicenter/2024-03-01/apidefinitions/method_list.go b/resource-manager/apicenter/2024-03-01/apidefinitions/method_list.go index 55d8d22c1b1..bcea1d75f90 100644 --- a/resource-manager/apicenter/2024-03-01/apidefinitions/method_list.go +++ b/resource-manager/apicenter/2024-03-01/apidefinitions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApiDefinitionsClient) List(ctx context.Context, id VersionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ApiDefinitionsClient) List(ctx context.Context, id VersionId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/definitions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/definitions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apicenter/2024-03-01/apis/method_list.go b/resource-manager/apicenter/2024-03-01/apis/method_list.go index 5aa9d2867d5..bade561b38a 100644 --- a/resource-manager/apicenter/2024-03-01/apis/method_list.go +++ b/resource-manager/apicenter/2024-03-01/apis/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApisClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ApisClient) List(ctx context.Context, id WorkspaceId, options ListOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apis", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/apis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apicenter/2024-03-01/apiversions/method_list.go b/resource-manager/apicenter/2024-03-01/apiversions/method_list.go index e1ac601c9fc..84ba661d4f0 100644 --- a/resource-manager/apicenter/2024-03-01/apiversions/method_list.go +++ b/resource-manager/apicenter/2024-03-01/apiversions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApiVersionsClient) List(ctx context.Context, id ApiId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ApiVersionsClient) List(ctx context.Context, id ApiId, options ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apicenter/2024-03-01/deployments/method_list.go b/resource-manager/apicenter/2024-03-01/deployments/method_list.go index 17b21e89c3b..0132a88edaf 100644 --- a/resource-manager/apicenter/2024-03-01/deployments/method_list.go +++ b/resource-manager/apicenter/2024-03-01/deployments/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeploymentsClient) List(ctx context.Context, id ApiId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentsClient) List(ctx context.Context, id ApiId, options ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/deployments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apicenter/2024-03-01/environments/method_list.go b/resource-manager/apicenter/2024-03-01/environments/method_list.go index ee228a2eb76..3e4f0d42d16 100644 --- a/resource-manager/apicenter/2024-03-01/environments/method_list.go +++ b/resource-manager/apicenter/2024-03-01/environments/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EnvironmentsClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c EnvironmentsClient) List(ctx context.Context, id WorkspaceId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/environments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/environments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apicenter/2024-03-01/metadataschemas/method_list.go b/resource-manager/apicenter/2024-03-01/metadataschemas/method_list.go index 49eacf336a1..1b1d8123589 100644 --- a/resource-manager/apicenter/2024-03-01/metadataschemas/method_list.go +++ b/resource-manager/apicenter/2024-03-01/metadataschemas/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MetadataSchemasClient) List(ctx context.Context, id ServiceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c MetadataSchemasClient) List(ctx context.Context, id ServiceId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metadataSchemas", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/metadataSchemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apicenter/2024-03-01/services/method_listbyresourcegroup.go b/resource-manager/apicenter/2024-03-01/services/method_listbyresourcegroup.go index 0ee6d44cf33..4a0a36065c8 100644 --- a/resource-manager/apicenter/2024-03-01/services/method_listbyresourcegroup.go +++ b/resource-manager/apicenter/2024-03-01/services/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Service } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServicesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServicesClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiCenter/services", id.ID()), } diff --git a/resource-manager/apicenter/2024-03-01/services/method_listbysubscription.go b/resource-manager/apicenter/2024-03-01/services/method_listbysubscription.go index 427425e492d..4a623995108 100644 --- a/resource-manager/apicenter/2024-03-01/services/method_listbysubscription.go +++ b/resource-manager/apicenter/2024-03-01/services/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Service } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServicesClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiCenter/services", id.ID()), } diff --git a/resource-manager/apicenter/2024-03-01/workspaces/method_list.go b/resource-manager/apicenter/2024-03-01/workspaces/method_list.go index 91a1f5ce747..a4ecc417bb3 100644 --- a/resource-manager/apicenter/2024-03-01/workspaces/method_list.go +++ b/resource-manager/apicenter/2024-03-01/workspaces/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkspacesClient) List(ctx context.Context, id ServiceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WorkspacesClient) List(ctx context.Context, id ServiceId, options ListOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/workspaces", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/workspaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apicenter/2024-03-15-preview/apidefinitions/method_list.go b/resource-manager/apicenter/2024-03-15-preview/apidefinitions/method_list.go index 55d8d22c1b1..bcea1d75f90 100644 --- a/resource-manager/apicenter/2024-03-15-preview/apidefinitions/method_list.go +++ b/resource-manager/apicenter/2024-03-15-preview/apidefinitions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApiDefinitionsClient) List(ctx context.Context, id VersionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ApiDefinitionsClient) List(ctx context.Context, id VersionId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/definitions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/definitions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apicenter/2024-03-15-preview/apis/method_list.go b/resource-manager/apicenter/2024-03-15-preview/apis/method_list.go index 5aa9d2867d5..bade561b38a 100644 --- a/resource-manager/apicenter/2024-03-15-preview/apis/method_list.go +++ b/resource-manager/apicenter/2024-03-15-preview/apis/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApisClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ApisClient) List(ctx context.Context, id WorkspaceId, options ListOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apis", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/apis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apicenter/2024-03-15-preview/apiversions/method_list.go b/resource-manager/apicenter/2024-03-15-preview/apiversions/method_list.go index e1ac601c9fc..84ba661d4f0 100644 --- a/resource-manager/apicenter/2024-03-15-preview/apiversions/method_list.go +++ b/resource-manager/apicenter/2024-03-15-preview/apiversions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApiVersionsClient) List(ctx context.Context, id ApiId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ApiVersionsClient) List(ctx context.Context, id ApiId, options ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apicenter/2024-03-15-preview/deletedservices/method_list.go b/resource-manager/apicenter/2024-03-15-preview/deletedservices/method_list.go index e1218d3a937..4b5a0e1c37b 100644 --- a/resource-manager/apicenter/2024-03-15-preview/deletedservices/method_list.go +++ b/resource-manager/apicenter/2024-03-15-preview/deletedservices/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeletedServicesClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DeletedServicesClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.ApiCenter/deletedServices", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.ApiCenter/deletedServices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apicenter/2024-03-15-preview/deletedservices/method_listbysubscription.go b/resource-manager/apicenter/2024-03-15-preview/deletedservices/method_listbysubscription.go index c137972ff7c..9cee2b16721 100644 --- a/resource-manager/apicenter/2024-03-15-preview/deletedservices/method_listbysubscription.go +++ b/resource-manager/apicenter/2024-03-15-preview/deletedservices/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DeletedService } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DeletedServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeletedServicesClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiCenter/deletedServices", id.ID()), } diff --git a/resource-manager/apicenter/2024-03-15-preview/deployments/method_list.go b/resource-manager/apicenter/2024-03-15-preview/deployments/method_list.go index 17b21e89c3b..0132a88edaf 100644 --- a/resource-manager/apicenter/2024-03-15-preview/deployments/method_list.go +++ b/resource-manager/apicenter/2024-03-15-preview/deployments/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeploymentsClient) List(ctx context.Context, id ApiId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentsClient) List(ctx context.Context, id ApiId, options ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/deployments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apicenter/2024-03-15-preview/environments/method_list.go b/resource-manager/apicenter/2024-03-15-preview/environments/method_list.go index ee228a2eb76..3e4f0d42d16 100644 --- a/resource-manager/apicenter/2024-03-15-preview/environments/method_list.go +++ b/resource-manager/apicenter/2024-03-15-preview/environments/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EnvironmentsClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c EnvironmentsClient) List(ctx context.Context, id WorkspaceId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/environments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/environments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apicenter/2024-03-15-preview/metadataschemas/method_list.go b/resource-manager/apicenter/2024-03-15-preview/metadataschemas/method_list.go index 49eacf336a1..1b1d8123589 100644 --- a/resource-manager/apicenter/2024-03-15-preview/metadataschemas/method_list.go +++ b/resource-manager/apicenter/2024-03-15-preview/metadataschemas/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MetadataSchemasClient) List(ctx context.Context, id ServiceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c MetadataSchemasClient) List(ctx context.Context, id ServiceId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metadataSchemas", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/metadataSchemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apicenter/2024-03-15-preview/services/method_listbyresourcegroup.go b/resource-manager/apicenter/2024-03-15-preview/services/method_listbyresourcegroup.go index 0ee6d44cf33..4a0a36065c8 100644 --- a/resource-manager/apicenter/2024-03-15-preview/services/method_listbyresourcegroup.go +++ b/resource-manager/apicenter/2024-03-15-preview/services/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Service } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServicesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServicesClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiCenter/services", id.ID()), } diff --git a/resource-manager/apicenter/2024-03-15-preview/services/method_listbysubscription.go b/resource-manager/apicenter/2024-03-15-preview/services/method_listbysubscription.go index 427425e492d..4a623995108 100644 --- a/resource-manager/apicenter/2024-03-15-preview/services/method_listbysubscription.go +++ b/resource-manager/apicenter/2024-03-15-preview/services/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Service } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServicesClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiCenter/services", id.ID()), } diff --git a/resource-manager/apicenter/2024-03-15-preview/workspaces/method_list.go b/resource-manager/apicenter/2024-03-15-preview/workspaces/method_list.go index 91a1f5ce747..a4ecc417bb3 100644 --- a/resource-manager/apicenter/2024-03-15-preview/workspaces/method_list.go +++ b/resource-manager/apicenter/2024-03-15-preview/workspaces/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkspacesClient) List(ctx context.Context, id ServiceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WorkspacesClient) List(ctx context.Context, id ServiceId, options ListOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/workspaces", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/workspaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/api/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/api/method_createorupdate.go index 0dca0a4315c..af3e5430ecf 100644 --- a/resource-manager/apimanagement/2022-08-01/api/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/api/method_createorupdate.go @@ -58,8 +58,8 @@ func (c ApiClient) CreateOrUpdate(ctx context.Context, id ApiId, input ApiCreate http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/api/method_delete.go b/resource-manager/apimanagement/2022-08-01/api/method_delete.go index 19f24f35d16..fbc43278f3b 100644 --- a/resource-manager/apimanagement/2022-08-01/api/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/api/method_delete.go @@ -56,8 +56,8 @@ func (c ApiClient) Delete(ctx context.Context, id ApiId, options DeleteOperation http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/api/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/api/method_listbyservice.go index 6822b5ac5da..6b9bc61fa02 100644 --- a/resource-manager/apimanagement/2022-08-01/api/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/api/method_listbyservice.go @@ -66,6 +66,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c ApiClient) ListByService(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apis", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/api/method_update.go b/resource-manager/apimanagement/2022-08-01/api/method_update.go index a64dc55c7e1..491fbbeb5c8 100644 --- a/resource-manager/apimanagement/2022-08-01/api/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/api/method_update.go @@ -53,8 +53,8 @@ func (c ApiClient) Update(ctx context.Context, id ApiId, input ApiUpdateContract http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_createorupdate.go index bb4060490e3..2551a5d1445 100644 --- a/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiDiagnosticClient) CreateOrUpdate(ctx context.Context, id ApiDiagnosti http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_delete.go b/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_delete.go index 0fb3223f00f..a781c7b154b 100644 --- a/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_delete.go @@ -53,8 +53,8 @@ func (c ApiDiagnosticClient) Delete(ctx context.Context, id ApiDiagnosticId, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_listbyservice.go index a3983e44ff5..96b6f06f674 100644 --- a/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiDiagnosticClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiDiagnosticClient) ListByService(ctx context.Context, id ApiId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/diagnostics", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/diagnostics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_update.go b/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_update.go index 06f2e2eadbd..00ef4533a35 100644 --- a/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_update.go @@ -53,8 +53,8 @@ func (c ApiDiagnosticClient) Update(ctx context.Context, id ApiDiagnosticId, inp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiissue/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/apiissue/method_createorupdate.go index c02a0c0ee70..2c843315ed6 100644 --- a/resource-manager/apimanagement/2022-08-01/apiissue/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/apiissue/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiIssueClient) CreateOrUpdate(ctx context.Context, id ApiIssueId, input http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiissue/method_delete.go b/resource-manager/apimanagement/2022-08-01/apiissue/method_delete.go index 822eaefefe3..c51a70bf93d 100644 --- a/resource-manager/apimanagement/2022-08-01/apiissue/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/apiissue/method_delete.go @@ -53,8 +53,8 @@ func (c ApiIssueClient) Delete(ctx context.Context, id ApiIssueId, options Delet http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiissue/method_get.go b/resource-manager/apimanagement/2022-08-01/apiissue/method_get.go index c3bd01ed939..a4f0ff0be8a 100644 --- a/resource-manager/apimanagement/2022-08-01/apiissue/method_get.go +++ b/resource-manager/apimanagement/2022-08-01/apiissue/method_get.go @@ -53,8 +53,8 @@ func (c ApiIssueClient) Get(ctx context.Context, id ApiIssueId, options GetOpera http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiissue/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/apiissue/method_listbyservice.go index 0746aecd4ae..314d87e9b6e 100644 --- a/resource-manager/apimanagement/2022-08-01/apiissue/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/apiissue/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiIssueClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ApiIssueClient) ListByService(ctx context.Context, id ApiId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/issues", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/issues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiissue/method_update.go b/resource-manager/apimanagement/2022-08-01/apiissue/method_update.go index 023124b29a5..5db5804bbb2 100644 --- a/resource-manager/apimanagement/2022-08-01/apiissue/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/apiissue/method_update.go @@ -53,8 +53,8 @@ func (c ApiIssueClient) Update(ctx context.Context, id ApiIssueId, input IssueUp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiissueattachment/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/apiissueattachment/method_createorupdate.go index 9aba1c06a14..a44575c4ae0 100644 --- a/resource-manager/apimanagement/2022-08-01/apiissueattachment/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/apiissueattachment/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiIssueAttachmentClient) CreateOrUpdate(ctx context.Context, id Attachm http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiissueattachment/method_delete.go b/resource-manager/apimanagement/2022-08-01/apiissueattachment/method_delete.go index e2c80a156a2..867e45b1ffc 100644 --- a/resource-manager/apimanagement/2022-08-01/apiissueattachment/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/apiissueattachment/method_delete.go @@ -53,8 +53,8 @@ func (c ApiIssueAttachmentClient) Delete(ctx context.Context, id AttachmentId, o http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiissueattachment/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/apiissueattachment/method_listbyservice.go index b1b9137df9d..7e2162ab2a9 100644 --- a/resource-manager/apimanagement/2022-08-01/apiissueattachment/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/apiissueattachment/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiIssueAttachmentClient) ListByService(ctx context.Context, id ApiIssueId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiIssueAttachmentClient) ListByService(ctx context.Context, id ApiIssue http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/attachments", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/attachments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiissuecomment/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/apiissuecomment/method_createorupdate.go index c7abf1e30fe..82f8efd70c7 100644 --- a/resource-manager/apimanagement/2022-08-01/apiissuecomment/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/apiissuecomment/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiIssueCommentClient) CreateOrUpdate(ctx context.Context, id CommentId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiissuecomment/method_delete.go b/resource-manager/apimanagement/2022-08-01/apiissuecomment/method_delete.go index b6cb1c7f69b..725bbb2f2a8 100644 --- a/resource-manager/apimanagement/2022-08-01/apiissuecomment/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/apiissuecomment/method_delete.go @@ -53,8 +53,8 @@ func (c ApiIssueCommentClient) Delete(ctx context.Context, id CommentId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiissuecomment/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/apiissuecomment/method_listbyservice.go index b0a547fa482..a1f56a2f9d7 100644 --- a/resource-manager/apimanagement/2022-08-01/apiissuecomment/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/apiissuecomment/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiIssueCommentClient) ListByService(ctx context.Context, id ApiIssueId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiIssueCommentClient) ListByService(ctx context.Context, id ApiIssueId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/comments", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/comments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_list.go b/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_list.go index e674b42bee8..a543ab50604 100644 --- a/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_list.go +++ b/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ApiManagementServiceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApiManagementServiceClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApiManagementServiceClient) List(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiManagement/service", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_listbyresourcegroup.go b/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_listbyresourcegroup.go index 373a3113b59..f7ecb77436b 100644 --- a/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_listbyresourcegroup.go +++ b/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ApiManagementServiceResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ApiManagementServiceClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApiManagementServiceClient) ListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiManagement/service", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/apimanagementserviceskus/method_listavailableserviceskus.go b/resource-manager/apimanagement/2022-08-01/apimanagementserviceskus/method_listavailableserviceskus.go index ac040cc0edf..07d00e828ca 100644 --- a/resource-manager/apimanagement/2022-08-01/apimanagementserviceskus/method_listavailableserviceskus.go +++ b/resource-manager/apimanagement/2022-08-01/apimanagementserviceskus/method_listavailableserviceskus.go @@ -23,6 +23,18 @@ type ListAvailableServiceSkusCompleteResult struct { Items []ResourceSkuResult } +type ListAvailableServiceSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAvailableServiceSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAvailableServiceSkus ... func (c ApiManagementServiceSkusClient) ListAvailableServiceSkus(ctx context.Context, id ServiceId) (result ListAvailableServiceSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiManagementServiceSkusClient) ListAvailableServiceSkus(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAvailableServiceSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/apioperation/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/apioperation/method_createorupdate.go index c33a095dfbb..ee86a38b0bc 100644 --- a/resource-manager/apimanagement/2022-08-01/apioperation/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/apioperation/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiOperationClient) CreateOrUpdate(ctx context.Context, id OperationId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apioperation/method_delete.go b/resource-manager/apimanagement/2022-08-01/apioperation/method_delete.go index 0693a0a284f..ee390d245b3 100644 --- a/resource-manager/apimanagement/2022-08-01/apioperation/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/apioperation/method_delete.go @@ -53,8 +53,8 @@ func (c ApiOperationClient) Delete(ctx context.Context, id OperationId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apioperation/method_listbyapi.go b/resource-manager/apimanagement/2022-08-01/apioperation/method_listbyapi.go index 0cd13f2e8c0..df8d3b45502 100644 --- a/resource-manager/apimanagement/2022-08-01/apioperation/method_listbyapi.go +++ b/resource-manager/apimanagement/2022-08-01/apioperation/method_listbyapi.go @@ -62,6 +62,18 @@ func (o ListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c ApiOperationClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ApiOperationClient) ListByApi(ctx context.Context, id ApiId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListByApiCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apioperation/method_update.go b/resource-manager/apimanagement/2022-08-01/apioperation/method_update.go index 80320a2c06f..005fc98f21a 100644 --- a/resource-manager/apimanagement/2022-08-01/apioperation/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/apioperation/method_update.go @@ -53,8 +53,8 @@ func (c ApiOperationClient) Update(ctx context.Context, id OperationId, input Op http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_createorupdate.go index 777278c8367..3437b481d77 100644 --- a/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiOperationPolicyClient) CreateOrUpdate(ctx context.Context, id Operati http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_delete.go b/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_delete.go index f30d7d3e932..1b77d06ed20 100644 --- a/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_delete.go @@ -53,8 +53,8 @@ func (c ApiOperationPolicyClient) Delete(ctx context.Context, id OperationId, op http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_get.go b/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_get.go index 5694a2d93ac..53ce4e80d68 100644 --- a/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_get.go +++ b/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_get.go @@ -53,8 +53,8 @@ func (c ApiOperationPolicyClient) Get(ctx context.Context, id OperationId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_listbyoperation.go b/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_listbyoperation.go index 9a9fc988094..6368c593060 100644 --- a/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_listbyoperation.go +++ b/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_listbyoperation.go @@ -23,6 +23,18 @@ type ListByOperationCompleteResult struct { Items []PolicyContract } +type ListByOperationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByOperationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByOperation ... func (c ApiOperationPolicyClient) ListByOperation(ctx context.Context, id OperationId) (result ListByOperationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiOperationPolicyClient) ListByOperation(ctx context.Context, id Operat http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByOperationCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/apioperationsbytag/method_operationlistbytags.go b/resource-manager/apimanagement/2022-08-01/apioperationsbytag/method_operationlistbytags.go index 7947f83e444..2a37906b22f 100644 --- a/resource-manager/apimanagement/2022-08-01/apioperationsbytag/method_operationlistbytags.go +++ b/resource-manager/apimanagement/2022-08-01/apioperationsbytag/method_operationlistbytags.go @@ -62,6 +62,18 @@ func (o OperationListByTagsOperationOptions) ToQuery() *client.QueryParams { return &out } +type OperationListByTagsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *OperationListByTagsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // OperationListByTags ... func (c ApiOperationsByTagClient) OperationListByTags(ctx context.Context, id ApiId, options OperationListByTagsOperationOptions) (result OperationListByTagsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ApiOperationsByTagClient) OperationListByTags(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operationsByTags", id.ID()), OptionsObject: options, + Pager: &OperationListByTagsCustomPager{}, + Path: fmt.Sprintf("%s/operationsByTags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taglistbyoperation.go b/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taglistbyoperation.go index cdd813b8748..f68870a2587 100644 --- a/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taglistbyoperation.go +++ b/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taglistbyoperation.go @@ -58,6 +58,18 @@ func (o TagListByOperationOperationOptions) ToQuery() *client.QueryParams { return &out } +type TagListByOperationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TagListByOperationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TagListByOperation ... func (c ApiOperationTagClient) TagListByOperation(ctx context.Context, id OperationId, options TagListByOperationOperationOptions) (result TagListByOperationOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiOperationTagClient) TagListByOperation(ctx context.Context, id Operat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tags", id.ID()), OptionsObject: options, + Pager: &TagListByOperationCustomPager{}, + Path: fmt.Sprintf("%s/tags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apipolicy/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/apipolicy/method_createorupdate.go index cc234b22396..eeaf614e85b 100644 --- a/resource-manager/apimanagement/2022-08-01/apipolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/apipolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiPolicyClient) CreateOrUpdate(ctx context.Context, id ApiId, input Pol http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apipolicy/method_delete.go b/resource-manager/apimanagement/2022-08-01/apipolicy/method_delete.go index 10b8c3c63c0..ee63586a23e 100644 --- a/resource-manager/apimanagement/2022-08-01/apipolicy/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/apipolicy/method_delete.go @@ -53,8 +53,8 @@ func (c ApiPolicyClient) Delete(ctx context.Context, id ApiId, options DeleteOpe http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apipolicy/method_get.go b/resource-manager/apimanagement/2022-08-01/apipolicy/method_get.go index 4f320580028..c62f27cb331 100644 --- a/resource-manager/apimanagement/2022-08-01/apipolicy/method_get.go +++ b/resource-manager/apimanagement/2022-08-01/apipolicy/method_get.go @@ -53,8 +53,8 @@ func (c ApiPolicyClient) Get(ctx context.Context, id ApiId, options GetOperation http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apipolicy/method_listbyapi.go b/resource-manager/apimanagement/2022-08-01/apipolicy/method_listbyapi.go index 0731412ca80..bbe7b58565b 100644 --- a/resource-manager/apimanagement/2022-08-01/apipolicy/method_listbyapi.go +++ b/resource-manager/apimanagement/2022-08-01/apipolicy/method_listbyapi.go @@ -23,6 +23,18 @@ type ListByApiCompleteResult struct { Items []PolicyContract } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c ApiPolicyClient) ListByApi(ctx context.Context, id ApiId) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiPolicyClient) ListByApi(ctx context.Context, id ApiId) (result ListBy http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByApiCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/apiproduct/method_listbyapis.go b/resource-manager/apimanagement/2022-08-01/apiproduct/method_listbyapis.go index dbff82da3ac..9a4501fc786 100644 --- a/resource-manager/apimanagement/2022-08-01/apiproduct/method_listbyapis.go +++ b/resource-manager/apimanagement/2022-08-01/apiproduct/method_listbyapis.go @@ -58,6 +58,18 @@ func (o ListByApisOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApisCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApisCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApis ... func (c ApiProductClient) ListByApis(ctx context.Context, id ApiId, options ListByApisOperationOptions) (result ListByApisOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiProductClient) ListByApis(ctx context.Context, id ApiId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByApisCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apirelease/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/apirelease/method_createorupdate.go index e8c7f9514c9..2b23b8d16a6 100644 --- a/resource-manager/apimanagement/2022-08-01/apirelease/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/apirelease/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiReleaseClient) CreateOrUpdate(ctx context.Context, id ReleaseId, inpu http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apirelease/method_delete.go b/resource-manager/apimanagement/2022-08-01/apirelease/method_delete.go index cdfaf120b2b..d7f28534465 100644 --- a/resource-manager/apimanagement/2022-08-01/apirelease/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/apirelease/method_delete.go @@ -53,8 +53,8 @@ func (c ApiReleaseClient) Delete(ctx context.Context, id ReleaseId, options Dele http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apirelease/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/apirelease/method_listbyservice.go index f93f33c686b..509f7241d4f 100644 --- a/resource-manager/apimanagement/2022-08-01/apirelease/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/apirelease/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiReleaseClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiReleaseClient) ListByService(ctx context.Context, id ApiId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/releases", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/releases", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apirelease/method_update.go b/resource-manager/apimanagement/2022-08-01/apirelease/method_update.go index 93cb75dc4bb..1e51ca66c45 100644 --- a/resource-manager/apimanagement/2022-08-01/apirelease/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/apirelease/method_update.go @@ -53,8 +53,8 @@ func (c ApiReleaseClient) Update(ctx context.Context, id ReleaseId, input ApiRel http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apirevision/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/apirevision/method_listbyservice.go index e36c5d7f3da..1f1a5af6d1d 100644 --- a/resource-manager/apimanagement/2022-08-01/apirevision/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/apirevision/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiRevisionClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiRevisionClient) ListByService(ctx context.Context, id ApiId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/revisions", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/revisions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apisbytag/method_apilistbytags.go b/resource-manager/apimanagement/2022-08-01/apisbytag/method_apilistbytags.go index b2b72879a6c..913e89cf621 100644 --- a/resource-manager/apimanagement/2022-08-01/apisbytag/method_apilistbytags.go +++ b/resource-manager/apimanagement/2022-08-01/apisbytag/method_apilistbytags.go @@ -62,6 +62,18 @@ func (o ApiListByTagsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ApiListByTagsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiListByTagsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApiListByTags ... func (c ApisByTagClient) ApiListByTags(ctx context.Context, id ServiceId, options ApiListByTagsOperationOptions) (result ApiListByTagsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ApisByTagClient) ApiListByTags(ctx context.Context, id ServiceId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apisByTags", id.ID()), OptionsObject: options, + Pager: &ApiListByTagsCustomPager{}, + Path: fmt.Sprintf("%s/apisByTags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apischema/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/apischema/method_createorupdate.go index 6a065878b48..e9339741550 100644 --- a/resource-manager/apimanagement/2022-08-01/apischema/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/apischema/method_createorupdate.go @@ -58,8 +58,8 @@ func (c ApiSchemaClient) CreateOrUpdate(ctx context.Context, id ApiSchemaId, inp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apischema/method_delete.go b/resource-manager/apimanagement/2022-08-01/apischema/method_delete.go index 6fab6914573..1e1272fa389 100644 --- a/resource-manager/apimanagement/2022-08-01/apischema/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/apischema/method_delete.go @@ -56,8 +56,8 @@ func (c ApiSchemaClient) Delete(ctx context.Context, id ApiSchemaId, options Del http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apischema/method_listbyapi.go b/resource-manager/apimanagement/2022-08-01/apischema/method_listbyapi.go index dae4582b2c1..c3cb801dfce 100644 --- a/resource-manager/apimanagement/2022-08-01/apischema/method_listbyapi.go +++ b/resource-manager/apimanagement/2022-08-01/apischema/method_listbyapi.go @@ -58,6 +58,18 @@ func (o ListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c ApiSchemaClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiSchemaClient) ListByApi(ctx context.Context, id ApiId, options ListBy http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &ListByApiCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apitag/method_taglistbyapi.go b/resource-manager/apimanagement/2022-08-01/apitag/method_taglistbyapi.go index 664514169cd..5c2639c91e3 100644 --- a/resource-manager/apimanagement/2022-08-01/apitag/method_taglistbyapi.go +++ b/resource-manager/apimanagement/2022-08-01/apitag/method_taglistbyapi.go @@ -58,6 +58,18 @@ func (o TagListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type TagListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TagListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TagListByApi ... func (c ApiTagClient) TagListByApi(ctx context.Context, id ApiId, options TagListByApiOperationOptions) (result TagListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiTagClient) TagListByApi(ctx context.Context, id ApiId, options TagLis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tags", id.ID()), OptionsObject: options, + Pager: &TagListByApiCustomPager{}, + Path: fmt.Sprintf("%s/tags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apitagdescription/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/apitagdescription/method_createorupdate.go index c21169c7fd4..11d74115f05 100644 --- a/resource-manager/apimanagement/2022-08-01/apitagdescription/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/apitagdescription/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiTagDescriptionClient) CreateOrUpdate(ctx context.Context, id TagDescr http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apitagdescription/method_delete.go b/resource-manager/apimanagement/2022-08-01/apitagdescription/method_delete.go index bc50e1495af..2ac6057d339 100644 --- a/resource-manager/apimanagement/2022-08-01/apitagdescription/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/apitagdescription/method_delete.go @@ -53,8 +53,8 @@ func (c ApiTagDescriptionClient) Delete(ctx context.Context, id TagDescriptionId http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apitagdescription/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/apitagdescription/method_listbyservice.go index c24723ee521..6a36cd97456 100644 --- a/resource-manager/apimanagement/2022-08-01/apitagdescription/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/apitagdescription/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiTagDescriptionClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiTagDescriptionClient) ListByService(ctx context.Context, id ApiId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tagDescriptions", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tagDescriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiversionset/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/apiversionset/method_createorupdate.go index 71c4d4bcfe7..2d070fcbf91 100644 --- a/resource-manager/apimanagement/2022-08-01/apiversionset/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/apiversionset/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiVersionSetClient) CreateOrUpdate(ctx context.Context, id ApiVersionSe http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiversionset/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/apiversionset/method_listbyservice.go index 82cc15a6911..0f44e4d938d 100644 --- a/resource-manager/apimanagement/2022-08-01/apiversionset/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/apiversionset/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiVersionSetClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiVersionSetClient) ListByService(ctx context.Context, id ServiceId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apiVersionSets", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apiVersionSets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiversionset/method_update.go b/resource-manager/apimanagement/2022-08-01/apiversionset/method_update.go index 00692270d0e..97fce9046f6 100644 --- a/resource-manager/apimanagement/2022-08-01/apiversionset/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/apiversionset/method_update.go @@ -53,8 +53,8 @@ func (c ApiVersionSetClient) Update(ctx context.Context, id ApiVersionSetId, inp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiversionsets/method_apiversionsetdelete.go b/resource-manager/apimanagement/2022-08-01/apiversionsets/method_apiversionsetdelete.go index f50800347d8..1d2948225c9 100644 --- a/resource-manager/apimanagement/2022-08-01/apiversionsets/method_apiversionsetdelete.go +++ b/resource-manager/apimanagement/2022-08-01/apiversionsets/method_apiversionsetdelete.go @@ -53,8 +53,8 @@ func (c ApiVersionSetsClient) ApiVersionSetDelete(ctx context.Context, id ApiVer http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiwiki/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/apiwiki/method_createorupdate.go index 0b50ec66eba..4004fddb029 100644 --- a/resource-manager/apimanagement/2022-08-01/apiwiki/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/apiwiki/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiWikiClient) CreateOrUpdate(ctx context.Context, id ApiId, input WikiC http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiwiki/method_delete.go b/resource-manager/apimanagement/2022-08-01/apiwiki/method_delete.go index 74d9f29868e..62f6f711cde 100644 --- a/resource-manager/apimanagement/2022-08-01/apiwiki/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/apiwiki/method_delete.go @@ -53,8 +53,8 @@ func (c ApiWikiClient) Delete(ctx context.Context, id ApiId, options DeleteOpera http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiwiki/method_list.go b/resource-manager/apimanagement/2022-08-01/apiwiki/method_list.go index 99a8edfd4f1..aee5fc272ef 100644 --- a/resource-manager/apimanagement/2022-08-01/apiwiki/method_list.go +++ b/resource-manager/apimanagement/2022-08-01/apiwiki/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApiWikiClient) List(ctx context.Context, id ApiId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiWikiClient) List(ctx context.Context, id ApiId, options ListOperation http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/wikis", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/wikis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/apiwiki/method_update.go b/resource-manager/apimanagement/2022-08-01/apiwiki/method_update.go index 9aa1b019473..d3c1ff6bdaf 100644 --- a/resource-manager/apimanagement/2022-08-01/apiwiki/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/apiwiki/method_update.go @@ -53,8 +53,8 @@ func (c ApiWikiClient) Update(ctx context.Context, id ApiId, input WikiUpdateCon http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/authorization/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/authorization/method_createorupdate.go index 6df164a6dc0..de6586fe052 100644 --- a/resource-manager/apimanagement/2022-08-01/authorization/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/authorization/method_createorupdate.go @@ -54,8 +54,8 @@ func (c AuthorizationClient) CreateOrUpdate(ctx context.Context, id Authorizatio http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/authorization/method_delete.go b/resource-manager/apimanagement/2022-08-01/authorization/method_delete.go index 4e593e93d69..9595882688b 100644 --- a/resource-manager/apimanagement/2022-08-01/authorization/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/authorization/method_delete.go @@ -53,8 +53,8 @@ func (c AuthorizationClient) Delete(ctx context.Context, id AuthorizationId, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/authorizationaccesspolicy/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/authorizationaccesspolicy/method_createorupdate.go index 922837e981a..346e394cab1 100644 --- a/resource-manager/apimanagement/2022-08-01/authorizationaccesspolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/authorizationaccesspolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c AuthorizationAccessPolicyClient) CreateOrUpdate(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/authorizationaccesspolicy/method_delete.go b/resource-manager/apimanagement/2022-08-01/authorizationaccesspolicy/method_delete.go index 59c5782e01d..3d067c9cc2b 100644 --- a/resource-manager/apimanagement/2022-08-01/authorizationaccesspolicy/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/authorizationaccesspolicy/method_delete.go @@ -53,8 +53,8 @@ func (c AuthorizationAccessPolicyClient) Delete(ctx context.Context, id AccessPo http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/authorizationaccesspolicy/method_listbyauthorization.go b/resource-manager/apimanagement/2022-08-01/authorizationaccesspolicy/method_listbyauthorization.go index e58a6d8047a..3a1d919d552 100644 --- a/resource-manager/apimanagement/2022-08-01/authorizationaccesspolicy/method_listbyauthorization.go +++ b/resource-manager/apimanagement/2022-08-01/authorizationaccesspolicy/method_listbyauthorization.go @@ -58,6 +58,18 @@ func (o ListByAuthorizationOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAuthorizationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAuthorizationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAuthorization ... func (c AuthorizationAccessPolicyClient) ListByAuthorization(ctx context.Context, id AuthorizationId, options ListByAuthorizationOperationOptions) (result ListByAuthorizationOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c AuthorizationAccessPolicyClient) ListByAuthorization(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/accessPolicies", id.ID()), OptionsObject: options, + Pager: &ListByAuthorizationCustomPager{}, + Path: fmt.Sprintf("%s/accessPolicies", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/authorizationprovider/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/authorizationprovider/method_createorupdate.go index 6cbc899e40f..f516f5c677f 100644 --- a/resource-manager/apimanagement/2022-08-01/authorizationprovider/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/authorizationprovider/method_createorupdate.go @@ -54,8 +54,8 @@ func (c AuthorizationProviderClient) CreateOrUpdate(ctx context.Context, id Auth http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/authorizationprovider/method_delete.go b/resource-manager/apimanagement/2022-08-01/authorizationprovider/method_delete.go index 29ff97189f8..0c0c82a4e01 100644 --- a/resource-manager/apimanagement/2022-08-01/authorizationprovider/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/authorizationprovider/method_delete.go @@ -53,8 +53,8 @@ func (c AuthorizationProviderClient) Delete(ctx context.Context, id Authorizatio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/authorizationprovider/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/authorizationprovider/method_listbyservice.go index aaf6185de74..8e28a4d589e 100644 --- a/resource-manager/apimanagement/2022-08-01/authorizationprovider/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/authorizationprovider/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c AuthorizationProviderClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c AuthorizationProviderClient) ListByService(ctx context.Context, id Servi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/authorizationProviders", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/authorizationProviders", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/authorizations/method_authorizationlistbyauthorizationprovider.go b/resource-manager/apimanagement/2022-08-01/authorizations/method_authorizationlistbyauthorizationprovider.go index 069ef73ac73..61659c7182f 100644 --- a/resource-manager/apimanagement/2022-08-01/authorizations/method_authorizationlistbyauthorizationprovider.go +++ b/resource-manager/apimanagement/2022-08-01/authorizations/method_authorizationlistbyauthorizationprovider.go @@ -58,6 +58,18 @@ func (o AuthorizationListByAuthorizationProviderOperationOptions) ToQuery() *cli return &out } +type AuthorizationListByAuthorizationProviderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AuthorizationListByAuthorizationProviderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AuthorizationListByAuthorizationProvider ... func (c AuthorizationsClient) AuthorizationListByAuthorizationProvider(ctx context.Context, id AuthorizationProviderId, options AuthorizationListByAuthorizationProviderOperationOptions) (result AuthorizationListByAuthorizationProviderOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c AuthorizationsClient) AuthorizationListByAuthorizationProvider(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/authorizations", id.ID()), OptionsObject: options, + Pager: &AuthorizationListByAuthorizationProviderCustomPager{}, + Path: fmt.Sprintf("%s/authorizations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/authorizationserver/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/authorizationserver/method_createorupdate.go index 829a1d5fea6..ef58fe9a05f 100644 --- a/resource-manager/apimanagement/2022-08-01/authorizationserver/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/authorizationserver/method_createorupdate.go @@ -54,8 +54,8 @@ func (c AuthorizationServerClient) CreateOrUpdate(ctx context.Context, id Author http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/authorizationserver/method_delete.go b/resource-manager/apimanagement/2022-08-01/authorizationserver/method_delete.go index ad1674315f1..a307aa17d3f 100644 --- a/resource-manager/apimanagement/2022-08-01/authorizationserver/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/authorizationserver/method_delete.go @@ -53,8 +53,8 @@ func (c AuthorizationServerClient) Delete(ctx context.Context, id AuthorizationS http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listbyservice.go index 57a60560fcb..ae4ad390656 100644 --- a/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c AuthorizationServerClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c AuthorizationServerClient) ListByService(ctx context.Context, id Service http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/authorizationServers", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/authorizationServers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/authorizationserver/method_update.go b/resource-manager/apimanagement/2022-08-01/authorizationserver/method_update.go index 7d4ff9e27e5..686f7550e4d 100644 --- a/resource-manager/apimanagement/2022-08-01/authorizationserver/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/authorizationserver/method_update.go @@ -53,8 +53,8 @@ func (c AuthorizationServerClient) Update(ctx context.Context, id AuthorizationS http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/backend/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/backend/method_createorupdate.go index 4e71e305e80..876a39e1fb9 100644 --- a/resource-manager/apimanagement/2022-08-01/backend/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/backend/method_createorupdate.go @@ -54,8 +54,8 @@ func (c BackendClient) CreateOrUpdate(ctx context.Context, id BackendId, input B http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/backend/method_delete.go b/resource-manager/apimanagement/2022-08-01/backend/method_delete.go index a8e6a5ab37b..f71fa94d865 100644 --- a/resource-manager/apimanagement/2022-08-01/backend/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/backend/method_delete.go @@ -53,8 +53,8 @@ func (c BackendClient) Delete(ctx context.Context, id BackendId, options DeleteO http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/backend/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/backend/method_listbyservice.go index b548349e214..f8c5b6daf2a 100644 --- a/resource-manager/apimanagement/2022-08-01/backend/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/backend/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c BackendClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c BackendClient) ListByService(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/backends", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/backends", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/backend/method_update.go b/resource-manager/apimanagement/2022-08-01/backend/method_update.go index 97185a514fe..3c102cf0e80 100644 --- a/resource-manager/apimanagement/2022-08-01/backend/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/backend/method_update.go @@ -53,8 +53,8 @@ func (c BackendClient) Update(ctx context.Context, id BackendId, input BackendUp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/cache/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/cache/method_createorupdate.go index b4db4020b21..26ef5edfcc7 100644 --- a/resource-manager/apimanagement/2022-08-01/cache/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/cache/method_createorupdate.go @@ -54,8 +54,8 @@ func (c CacheClient) CreateOrUpdate(ctx context.Context, id CacheId, input Cache http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/cache/method_delete.go b/resource-manager/apimanagement/2022-08-01/cache/method_delete.go index 4409902bb76..511791374c6 100644 --- a/resource-manager/apimanagement/2022-08-01/cache/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/cache/method_delete.go @@ -53,8 +53,8 @@ func (c CacheClient) Delete(ctx context.Context, id CacheId, options DeleteOpera http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/cache/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/cache/method_listbyservice.go index 39f7805d8e3..29189620638 100644 --- a/resource-manager/apimanagement/2022-08-01/cache/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/cache/method_listbyservice.go @@ -54,6 +54,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c CacheClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c CacheClient) ListByService(ctx context.Context, id ServiceId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/caches", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/caches", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/cache/method_update.go b/resource-manager/apimanagement/2022-08-01/cache/method_update.go index 6296cdf9b2c..9388cab550d 100644 --- a/resource-manager/apimanagement/2022-08-01/cache/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/cache/method_update.go @@ -53,8 +53,8 @@ func (c CacheClient) Update(ctx context.Context, id CacheId, input CacheUpdatePa http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/certificate/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/certificate/method_createorupdate.go index 0476a329804..823d71d3e64 100644 --- a/resource-manager/apimanagement/2022-08-01/certificate/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/certificate/method_createorupdate.go @@ -54,8 +54,8 @@ func (c CertificateClient) CreateOrUpdate(ctx context.Context, id CertificateId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/certificate/method_delete.go b/resource-manager/apimanagement/2022-08-01/certificate/method_delete.go index 18be0e732de..6c0ded0942d 100644 --- a/resource-manager/apimanagement/2022-08-01/certificate/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/certificate/method_delete.go @@ -53,8 +53,8 @@ func (c CertificateClient) Delete(ctx context.Context, id CertificateId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/certificate/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/certificate/method_listbyservice.go index 7b01403347d..9f45a52fd7c 100644 --- a/resource-manager/apimanagement/2022-08-01/certificate/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/certificate/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c CertificateClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c CertificateClient) ListByService(ctx context.Context, id ServiceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/certificates", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/certificates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/contenttype/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/contenttype/method_createorupdate.go index 71ddbe34c69..d1a48e0857c 100644 --- a/resource-manager/apimanagement/2022-08-01/contenttype/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/contenttype/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ContentTypeClient) CreateOrUpdate(ctx context.Context, id ContentTypeId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/contenttype/method_delete.go b/resource-manager/apimanagement/2022-08-01/contenttype/method_delete.go index 5a87b291973..d3dc044bf5c 100644 --- a/resource-manager/apimanagement/2022-08-01/contenttype/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/contenttype/method_delete.go @@ -53,8 +53,8 @@ func (c ContentTypeClient) Delete(ctx context.Context, id ContentTypeId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/contenttype/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/contenttype/method_listbyservice.go index a24decc6d1b..e8b77a15ea7 100644 --- a/resource-manager/apimanagement/2022-08-01/contenttype/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/contenttype/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []ContentTypeContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ContentTypeClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContentTypeClient) ListByService(ctx context.Context, id ServiceId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/contentTypes", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/contenttypecontentitem/method_contentitemcreateorupdate.go b/resource-manager/apimanagement/2022-08-01/contenttypecontentitem/method_contentitemcreateorupdate.go index 664712ae813..c23ccc2fcb2 100644 --- a/resource-manager/apimanagement/2022-08-01/contenttypecontentitem/method_contentitemcreateorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/contenttypecontentitem/method_contentitemcreateorupdate.go @@ -54,8 +54,8 @@ func (c ContentTypeContentItemClient) ContentItemCreateOrUpdate(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/contenttypecontentitem/method_contentitemdelete.go b/resource-manager/apimanagement/2022-08-01/contenttypecontentitem/method_contentitemdelete.go index 5b8b348a02c..ae0888ce9e8 100644 --- a/resource-manager/apimanagement/2022-08-01/contenttypecontentitem/method_contentitemdelete.go +++ b/resource-manager/apimanagement/2022-08-01/contenttypecontentitem/method_contentitemdelete.go @@ -53,8 +53,8 @@ func (c ContentTypeContentItemClient) ContentItemDelete(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/contenttypecontentitem/method_contentitemlistbyservice.go b/resource-manager/apimanagement/2022-08-01/contenttypecontentitem/method_contentitemlistbyservice.go index c0e0f950a07..c9e59da0d4b 100644 --- a/resource-manager/apimanagement/2022-08-01/contenttypecontentitem/method_contentitemlistbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/contenttypecontentitem/method_contentitemlistbyservice.go @@ -23,6 +23,18 @@ type ContentItemListByServiceCompleteResult struct { Items []ContentItemContract } +type ContentItemListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ContentItemListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ContentItemListByService ... func (c ContentTypeContentItemClient) ContentItemListByService(ctx context.Context, id ContentTypeId) (result ContentItemListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContentTypeContentItemClient) ContentItemListByService(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ContentItemListByServiceCustomPager{}, Path: fmt.Sprintf("%s/contentItems", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/delegationsettings/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/delegationsettings/method_createorupdate.go index c574f42d95e..194af96a592 100644 --- a/resource-manager/apimanagement/2022-08-01/delegationsettings/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/delegationsettings/method_createorupdate.go @@ -53,8 +53,8 @@ func (c DelegationSettingsClient) CreateOrUpdate(ctx context.Context, id Service http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/portalsettings/delegation", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/delegation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/delegationsettings/method_update.go b/resource-manager/apimanagement/2022-08-01/delegationsettings/method_update.go index 924b296b5fa..c010e8ee865 100644 --- a/resource-manager/apimanagement/2022-08-01/delegationsettings/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/delegationsettings/method_update.go @@ -52,8 +52,8 @@ func (c DelegationSettingsClient) Update(ctx context.Context, id ServiceId, inpu http.StatusNoContent, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/portalsettings/delegation", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/delegation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/deletedservice/method_listbysubscription.go b/resource-manager/apimanagement/2022-08-01/deletedservice/method_listbysubscription.go index 6c0132f0445..5eed8b3bffd 100644 --- a/resource-manager/apimanagement/2022-08-01/deletedservice/method_listbysubscription.go +++ b/resource-manager/apimanagement/2022-08-01/deletedservice/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DeletedServiceContract } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DeletedServiceClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeletedServiceClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiManagement/deletedServices", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/diagnostic/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/diagnostic/method_createorupdate.go index d420d7f7f4a..63709e2900a 100644 --- a/resource-manager/apimanagement/2022-08-01/diagnostic/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/diagnostic/method_createorupdate.go @@ -54,8 +54,8 @@ func (c DiagnosticClient) CreateOrUpdate(ctx context.Context, id DiagnosticId, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/diagnostic/method_delete.go b/resource-manager/apimanagement/2022-08-01/diagnostic/method_delete.go index 3cd08df2cd9..4f5b2bc7d55 100644 --- a/resource-manager/apimanagement/2022-08-01/diagnostic/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/diagnostic/method_delete.go @@ -53,8 +53,8 @@ func (c DiagnosticClient) Delete(ctx context.Context, id DiagnosticId, options D http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/diagnostic/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/diagnostic/method_listbyservice.go index 193f2227e7d..8f84fb8b874 100644 --- a/resource-manager/apimanagement/2022-08-01/diagnostic/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/diagnostic/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c DiagnosticClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c DiagnosticClient) ListByService(ctx context.Context, id ServiceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/diagnostics", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/diagnostics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/diagnostic/method_update.go b/resource-manager/apimanagement/2022-08-01/diagnostic/method_update.go index 1b400423529..a98dfa6617c 100644 --- a/resource-manager/apimanagement/2022-08-01/diagnostic/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/diagnostic/method_update.go @@ -53,8 +53,8 @@ func (c DiagnosticClient) Update(ctx context.Context, id DiagnosticId, input Dia http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/documentationresource/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/documentationresource/method_createorupdate.go index 3f5323e3fa2..dba91b12734 100644 --- a/resource-manager/apimanagement/2022-08-01/documentationresource/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/documentationresource/method_createorupdate.go @@ -54,8 +54,8 @@ func (c DocumentationResourceClient) CreateOrUpdate(ctx context.Context, id Docu http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/documentationresource/method_delete.go b/resource-manager/apimanagement/2022-08-01/documentationresource/method_delete.go index 317039d8290..dc215c80397 100644 --- a/resource-manager/apimanagement/2022-08-01/documentationresource/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/documentationresource/method_delete.go @@ -53,8 +53,8 @@ func (c DocumentationResourceClient) Delete(ctx context.Context, id Documentatio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/documentationresource/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/documentationresource/method_listbyservice.go index d10bdea6a20..fd2023ee4d1 100644 --- a/resource-manager/apimanagement/2022-08-01/documentationresource/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/documentationresource/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c DocumentationResourceClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c DocumentationResourceClient) ListByService(ctx context.Context, id Servi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/documentations", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/documentations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/documentationresource/method_update.go b/resource-manager/apimanagement/2022-08-01/documentationresource/method_update.go index b86a8378a3e..74fdf96af9a 100644 --- a/resource-manager/apimanagement/2022-08-01/documentationresource/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/documentationresource/method_update.go @@ -53,8 +53,8 @@ func (c DocumentationResourceClient) Update(ctx context.Context, id Documentatio http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/emailtemplate/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/emailtemplate/method_listbyservice.go index ae511a8e1a3..c18ee603b17 100644 --- a/resource-manager/apimanagement/2022-08-01/emailtemplate/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/emailtemplate/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c EmailTemplateClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c EmailTemplateClient) ListByService(ctx context.Context, id ServiceId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/templates", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/templates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatecreateorupdate.go b/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatecreateorupdate.go index 5db20c4d21b..8f48b83acfd 100644 --- a/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatecreateorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatecreateorupdate.go @@ -54,8 +54,8 @@ func (c EmailTemplatesClient) EmailTemplateCreateOrUpdate(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatedelete.go b/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatedelete.go index 0edd892ed23..3bea1260006 100644 --- a/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatedelete.go +++ b/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatedelete.go @@ -53,8 +53,8 @@ func (c EmailTemplatesClient) EmailTemplateDelete(ctx context.Context, id Templa http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateupdate.go b/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateupdate.go index 6eea241be4a..6870b6a5cc8 100644 --- a/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateupdate.go +++ b/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateupdate.go @@ -53,8 +53,8 @@ func (c EmailTemplatesClient) EmailTemplateUpdate(ctx context.Context, id Templa http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/gateway/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/gateway/method_createorupdate.go index 59ae1f743ca..d73cce62328 100644 --- a/resource-manager/apimanagement/2022-08-01/gateway/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/gateway/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GatewayClient) CreateOrUpdate(ctx context.Context, id GatewayId, input G http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/gateway/method_delete.go b/resource-manager/apimanagement/2022-08-01/gateway/method_delete.go index 34c8698ad34..a3e76d4da96 100644 --- a/resource-manager/apimanagement/2022-08-01/gateway/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/gateway/method_delete.go @@ -53,8 +53,8 @@ func (c GatewayClient) Delete(ctx context.Context, id GatewayId, options DeleteO http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/gateway/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/gateway/method_listbyservice.go index 4bfdcb926cf..182f1a1be3b 100644 --- a/resource-manager/apimanagement/2022-08-01/gateway/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/gateway/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GatewayClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GatewayClient) ListByService(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/gateways", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/gateways", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/gateway/method_update.go b/resource-manager/apimanagement/2022-08-01/gateway/method_update.go index e627b60c153..2113086018c 100644 --- a/resource-manager/apimanagement/2022-08-01/gateway/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/gateway/method_update.go @@ -53,8 +53,8 @@ func (c GatewayClient) Update(ctx context.Context, id GatewayId, input GatewayCo http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/gatewayapi/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/gatewayapi/method_listbyservice.go index 7c280966f74..0babf1b2093 100644 --- a/resource-manager/apimanagement/2022-08-01/gatewayapi/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/gatewayapi/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GatewayApiClient) ListByService(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GatewayApiClient) ListByService(ctx context.Context, id GatewayId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apis", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_createorupdate.go index b90a741574b..421099fff39 100644 --- a/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GatewayCertificateAuthorityClient) CreateOrUpdate(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_delete.go b/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_delete.go index ee1deb63010..a6b9d901d6b 100644 --- a/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_delete.go @@ -53,8 +53,8 @@ func (c GatewayCertificateAuthorityClient) Delete(ctx context.Context, id Certif http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_listbyservice.go index a52949d34f2..c1b242e9166 100644 --- a/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GatewayCertificateAuthorityClient) ListByService(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GatewayCertificateAuthorityClient) ListByService(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/certificateAuthorities", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/certificateAuthorities", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_createorupdate.go index 479612244ec..81fc99af124 100644 --- a/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GatewayHostnameConfigurationClient) CreateOrUpdate(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_delete.go b/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_delete.go index d36e0d55e20..0964c8fdc78 100644 --- a/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_delete.go @@ -53,8 +53,8 @@ func (c GatewayHostnameConfigurationClient) Delete(ctx context.Context, id Hostn http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_listbyservice.go index 2015a5312d8..619bbf3fcd1 100644 --- a/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GatewayHostnameConfigurationClient) ListByService(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GatewayHostnameConfigurationClient) ListByService(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/hostnameConfigurations", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/hostnameConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_createorupdate.go index f7d8ee0c5db..7860204fd3c 100644 --- a/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GraphQLApiResolverClient) CreateOrUpdate(ctx context.Context, id Resolve http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_delete.go b/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_delete.go index 8cc0fdc47a5..914915dc4d6 100644 --- a/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_delete.go @@ -53,8 +53,8 @@ func (c GraphQLApiResolverClient) Delete(ctx context.Context, id ResolverId, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_listbyapi.go b/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_listbyapi.go index a96fdfdc56a..5ce194fb6df 100644 --- a/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_listbyapi.go +++ b/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_listbyapi.go @@ -58,6 +58,18 @@ func (o ListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c GraphQLApiResolverClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GraphQLApiResolverClient) ListByApi(ctx context.Context, id ApiId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resolvers", id.ID()), OptionsObject: options, + Pager: &ListByApiCustomPager{}, + Path: fmt.Sprintf("%s/resolvers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_update.go b/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_update.go index ca10767f59d..3fa45e6fa93 100644 --- a/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/graphqlapiresolver/method_update.go @@ -53,8 +53,8 @@ func (c GraphQLApiResolverClient) Update(ctx context.Context, id ResolverId, inp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_createorupdate.go index eb30df860b1..c349e81087a 100644 --- a/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GraphQLApiResolverPolicyClient) CreateOrUpdate(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_delete.go b/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_delete.go index 5e547dd0eb1..619ea1f6171 100644 --- a/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_delete.go @@ -53,8 +53,8 @@ func (c GraphQLApiResolverPolicyClient) Delete(ctx context.Context, id ResolverI http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_get.go b/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_get.go index fab40154579..4e49bd17793 100644 --- a/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_get.go +++ b/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_get.go @@ -53,8 +53,8 @@ func (c GraphQLApiResolverPolicyClient) Get(ctx context.Context, id ResolverId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_listbyresolver.go b/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_listbyresolver.go index 633a6789fc7..afed3381e23 100644 --- a/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_listbyresolver.go +++ b/resource-manager/apimanagement/2022-08-01/graphqlapiresolverpolicy/method_listbyresolver.go @@ -23,6 +23,18 @@ type ListByResolverCompleteResult struct { Items []PolicyContract } +type ListByResolverCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResolverCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResolver ... func (c GraphQLApiResolverPolicyClient) ListByResolver(ctx context.Context, id ResolverId) (result ListByResolverOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GraphQLApiResolverPolicyClient) ListByResolver(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResolverCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/group/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/group/method_createorupdate.go index 3767fd421bc..e8b639dbe8b 100644 --- a/resource-manager/apimanagement/2022-08-01/group/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/group/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GroupClient) CreateOrUpdate(ctx context.Context, id GroupId, input Group http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/group/method_delete.go b/resource-manager/apimanagement/2022-08-01/group/method_delete.go index 8bd332e45a2..b7358fde533 100644 --- a/resource-manager/apimanagement/2022-08-01/group/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/group/method_delete.go @@ -53,8 +53,8 @@ func (c GroupClient) Delete(ctx context.Context, id GroupId, options DeleteOpera http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/group/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/group/method_listbyservice.go index e653a1e0587..4f8da96ef4a 100644 --- a/resource-manager/apimanagement/2022-08-01/group/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/group/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GroupClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GroupClient) ListByService(ctx context.Context, id ServiceId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groups", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/groups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/group/method_update.go b/resource-manager/apimanagement/2022-08-01/group/method_update.go index 5c45092a61d..70066730bb1 100644 --- a/resource-manager/apimanagement/2022-08-01/group/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/group/method_update.go @@ -53,8 +53,8 @@ func (c GroupClient) Update(ctx context.Context, id GroupId, input GroupUpdatePa http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/groupuser/method_list.go b/resource-manager/apimanagement/2022-08-01/groupuser/method_list.go index 7078af429f4..b2f4d682063 100644 --- a/resource-manager/apimanagement/2022-08-01/groupuser/method_list.go +++ b/resource-manager/apimanagement/2022-08-01/groupuser/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GroupUserClient) List(ctx context.Context, id GroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GroupUserClient) List(ctx context.Context, id GroupId, options ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/users", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/users", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/identityprovider/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/identityprovider/method_createorupdate.go index c18cdcc3186..834adf0fae9 100644 --- a/resource-manager/apimanagement/2022-08-01/identityprovider/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/identityprovider/method_createorupdate.go @@ -54,8 +54,8 @@ func (c IdentityProviderClient) CreateOrUpdate(ctx context.Context, id IdentityP http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/identityprovider/method_delete.go b/resource-manager/apimanagement/2022-08-01/identityprovider/method_delete.go index ff4f9cee7c4..825d432de2b 100644 --- a/resource-manager/apimanagement/2022-08-01/identityprovider/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/identityprovider/method_delete.go @@ -53,8 +53,8 @@ func (c IdentityProviderClient) Delete(ctx context.Context, id IdentityProviderI http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/identityprovider/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/identityprovider/method_listbyservice.go index badc7b19f13..25e8a873460 100644 --- a/resource-manager/apimanagement/2022-08-01/identityprovider/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/identityprovider/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []IdentityProviderContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c IdentityProviderClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IdentityProviderClient) ListByService(ctx context.Context, id ServiceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/identityProviders", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/identityprovider/method_update.go b/resource-manager/apimanagement/2022-08-01/identityprovider/method_update.go index 05c072adbd7..ac8db539b33 100644 --- a/resource-manager/apimanagement/2022-08-01/identityprovider/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/identityprovider/method_update.go @@ -53,8 +53,8 @@ func (c IdentityProviderClient) Update(ctx context.Context, id IdentityProviderI http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/issue/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/issue/method_listbyservice.go index f9602411ca6..bdf1aa92398 100644 --- a/resource-manager/apimanagement/2022-08-01/issue/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/issue/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c IssueClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IssueClient) ListByService(ctx context.Context, id ServiceId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/issues", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/issues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/logger/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/logger/method_createorupdate.go index da6916ba08a..b1a476b3cf9 100644 --- a/resource-manager/apimanagement/2022-08-01/logger/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/logger/method_createorupdate.go @@ -54,8 +54,8 @@ func (c LoggerClient) CreateOrUpdate(ctx context.Context, id LoggerId, input Log http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/logger/method_delete.go b/resource-manager/apimanagement/2022-08-01/logger/method_delete.go index 9a3b1b42ad9..d1edc7304d6 100644 --- a/resource-manager/apimanagement/2022-08-01/logger/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/logger/method_delete.go @@ -53,8 +53,8 @@ func (c LoggerClient) Delete(ctx context.Context, id LoggerId, options DeleteOpe http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/logger/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/logger/method_listbyservice.go index 7ecf48a848a..3765ffa1f12 100644 --- a/resource-manager/apimanagement/2022-08-01/logger/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/logger/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c LoggerClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c LoggerClient) ListByService(ctx context.Context, id ServiceId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/loggers", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/loggers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/logger/method_update.go b/resource-manager/apimanagement/2022-08-01/logger/method_update.go index ae89fc7a148..e7491dd03c2 100644 --- a/resource-manager/apimanagement/2022-08-01/logger/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/logger/method_update.go @@ -53,8 +53,8 @@ func (c LoggerClient) Update(ctx context.Context, id LoggerId, input LoggerUpdat http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/namedvalue/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/namedvalue/method_createorupdate.go index 52b8a8da4f1..85ad5426efe 100644 --- a/resource-manager/apimanagement/2022-08-01/namedvalue/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/namedvalue/method_createorupdate.go @@ -58,8 +58,8 @@ func (c NamedValueClient) CreateOrUpdate(ctx context.Context, id NamedValueId, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/namedvalue/method_delete.go b/resource-manager/apimanagement/2022-08-01/namedvalue/method_delete.go index 82bbf62ac51..f47f9ad5955 100644 --- a/resource-manager/apimanagement/2022-08-01/namedvalue/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/namedvalue/method_delete.go @@ -53,8 +53,8 @@ func (c NamedValueClient) Delete(ctx context.Context, id NamedValueId, options D http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/namedvalue/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/namedvalue/method_listbyservice.go index fd10b0b4a15..c484c236266 100644 --- a/resource-manager/apimanagement/2022-08-01/namedvalue/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/namedvalue/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c NamedValueClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c NamedValueClient) ListByService(ctx context.Context, id ServiceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/namedValues", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/namedValues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/namedvalue/method_update.go b/resource-manager/apimanagement/2022-08-01/namedvalue/method_update.go index 2ca7cac78e1..0bb9dff4811 100644 --- a/resource-manager/apimanagement/2022-08-01/namedvalue/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/namedvalue/method_update.go @@ -57,8 +57,8 @@ func (c NamedValueClient) Update(ctx context.Context, id NamedValueId, input Nam http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/notification/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/notification/method_createorupdate.go index 3f574185235..f66ed7aa163 100644 --- a/resource-manager/apimanagement/2022-08-01/notification/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/notification/method_createorupdate.go @@ -53,8 +53,8 @@ func (c NotificationClient) CreateOrUpdate(ctx context.Context, id NotificationI http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/notification/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/notification/method_listbyservice.go index 974405063c3..b8f071f58f8 100644 --- a/resource-manager/apimanagement/2022-08-01/notification/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/notification/method_listbyservice.go @@ -54,6 +54,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c NotificationClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c NotificationClient) ListByService(ctx context.Context, id ServiceId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/notifications", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/notifications", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_listbynotification.go b/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_listbynotification.go index 14e42e1fd39..8b4a8334e42 100644 --- a/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_listbynotification.go +++ b/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_listbynotification.go @@ -23,6 +23,18 @@ type ListByNotificationCompleteResult struct { Items []RecipientEmailContract } +type ListByNotificationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNotificationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNotification ... func (c NotificationRecipientEmailClient) ListByNotification(ctx context.Context, id NotificationId) (result ListByNotificationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NotificationRecipientEmailClient) ListByNotification(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByNotificationCustomPager{}, Path: fmt.Sprintf("%s/recipientEmails", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_listbynotification.go b/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_listbynotification.go index 847eb047a9e..c5c24a45310 100644 --- a/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_listbynotification.go +++ b/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_listbynotification.go @@ -23,6 +23,18 @@ type ListByNotificationCompleteResult struct { Items []RecipientUserContract } +type ListByNotificationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNotificationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNotification ... func (c NotificationRecipientUserClient) ListByNotification(ctx context.Context, id NotificationId) (result ListByNotificationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NotificationRecipientUserClient) ListByNotification(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByNotificationCustomPager{}, Path: fmt.Sprintf("%s/recipientUsers", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_createorupdate.go index ff2b6f9a1da..ab5c53bdaa6 100644 --- a/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_createorupdate.go @@ -54,8 +54,8 @@ func (c OpenidConnectProviderClient) CreateOrUpdate(ctx context.Context, id Open http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_delete.go b/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_delete.go index dd6f6bbf9c4..d434f5eff61 100644 --- a/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_delete.go @@ -53,8 +53,8 @@ func (c OpenidConnectProviderClient) Delete(ctx context.Context, id OpenidConnec http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listbyservice.go index 77de74db966..a4b2de8c3dc 100644 --- a/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c OpenidConnectProviderClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c OpenidConnectProviderClient) ListByService(ctx context.Context, id Servi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/openidConnectProviders", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/openidConnectProviders", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_update.go b/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_update.go index 92e492d4a4b..fc095d745c7 100644 --- a/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_update.go @@ -53,8 +53,8 @@ func (c OpenidConnectProviderClient) Update(ctx context.Context, id OpenidConnec http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/outboundnetworkdependenciesendpoints/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/outboundnetworkdependenciesendpoints/method_listbyservice.go index e1d09a514e4..5857b50c144 100644 --- a/resource-manager/apimanagement/2022-08-01/outboundnetworkdependenciesendpoints/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/outboundnetworkdependenciesendpoints/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c OutboundNetworkDependenciesEndpointsClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c OutboundNetworkDependenciesEndpointsClient) ListByService(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/policy/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/policy/method_createorupdate.go index 369dcde43da..3bfe1519731 100644 --- a/resource-manager/apimanagement/2022-08-01/policy/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/policy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c PolicyClient) CreateOrUpdate(ctx context.Context, id ServiceId, input Po http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/policy/method_delete.go b/resource-manager/apimanagement/2022-08-01/policy/method_delete.go index 4ddd78e13cb..4b39d1a4a2d 100644 --- a/resource-manager/apimanagement/2022-08-01/policy/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/policy/method_delete.go @@ -53,8 +53,8 @@ func (c PolicyClient) Delete(ctx context.Context, id ServiceId, options DeleteOp http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/policy/method_get.go b/resource-manager/apimanagement/2022-08-01/policy/method_get.go index 9041e2d613d..5a9a428f5ec 100644 --- a/resource-manager/apimanagement/2022-08-01/policy/method_get.go +++ b/resource-manager/apimanagement/2022-08-01/policy/method_get.go @@ -53,8 +53,8 @@ func (c PolicyClient) Get(ctx context.Context, id ServiceId, options GetOperatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/policy/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/policy/method_listbyservice.go index 204ece0d797..9a51b88a353 100644 --- a/resource-manager/apimanagement/2022-08-01/policy/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/policy/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []PolicyContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c PolicyClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PolicyClient) ListByService(ctx context.Context, id ServiceId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/policydescription/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/policydescription/method_listbyservice.go index e6df482c4e6..cb12120f377 100644 --- a/resource-manager/apimanagement/2022-08-01/policydescription/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/policydescription/method_listbyservice.go @@ -53,8 +53,8 @@ func (c PolicyDescriptionClient) ListByService(ctx context.Context, id ServiceId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policyDescriptions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policyDescriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/policyfragment/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/policyfragment/method_createorupdate.go index ce208c343bf..03cb7db852a 100644 --- a/resource-manager/apimanagement/2022-08-01/policyfragment/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/policyfragment/method_createorupdate.go @@ -58,8 +58,8 @@ func (c PolicyFragmentClient) CreateOrUpdate(ctx context.Context, id PolicyFragm http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/policyfragment/method_delete.go b/resource-manager/apimanagement/2022-08-01/policyfragment/method_delete.go index c64764861f9..8a0d95204ce 100644 --- a/resource-manager/apimanagement/2022-08-01/policyfragment/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/policyfragment/method_delete.go @@ -53,8 +53,8 @@ func (c PolicyFragmentClient) Delete(ctx context.Context, id PolicyFragmentId, o http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/policyfragment/method_get.go b/resource-manager/apimanagement/2022-08-01/policyfragment/method_get.go index 78657ce5b45..3aa646fafdd 100644 --- a/resource-manager/apimanagement/2022-08-01/policyfragment/method_get.go +++ b/resource-manager/apimanagement/2022-08-01/policyfragment/method_get.go @@ -53,8 +53,8 @@ func (c PolicyFragmentClient) Get(ctx context.Context, id PolicyFragmentId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/policyfragment/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/policyfragment/method_listbyservice.go index 9bbcbeb4f39..e9fcb07b896 100644 --- a/resource-manager/apimanagement/2022-08-01/policyfragment/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/policyfragment/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c PolicyFragmentClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c PolicyFragmentClient) ListByService(ctx context.Context, id ServiceId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policyFragments", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/policyFragments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/policyfragment/method_listreferences.go b/resource-manager/apimanagement/2022-08-01/policyfragment/method_listreferences.go index d29481ce57a..37993c71c0d 100644 --- a/resource-manager/apimanagement/2022-08-01/policyfragment/method_listreferences.go +++ b/resource-manager/apimanagement/2022-08-01/policyfragment/method_listreferences.go @@ -54,6 +54,18 @@ func (o ListReferencesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListReferencesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListReferencesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListReferences ... func (c PolicyFragmentClient) ListReferences(ctx context.Context, id PolicyFragmentId, options ListReferencesOperationOptions) (result ListReferencesOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c PolicyFragmentClient) ListReferences(ctx context.Context, id PolicyFragm http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listReferences", id.ID()), OptionsObject: options, + Pager: &ListReferencesCustomPager{}, + Path: fmt.Sprintf("%s/listReferences", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/portalconfig/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/portalconfig/method_createorupdate.go index 3e01073d885..94bdf726259 100644 --- a/resource-manager/apimanagement/2022-08-01/portalconfig/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/portalconfig/method_createorupdate.go @@ -53,8 +53,8 @@ func (c PortalConfigClient) CreateOrUpdate(ctx context.Context, id PortalConfigI http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/portalconfig/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/portalconfig/method_listbyservice.go index bdd5b87a042..0a0e1705d39 100644 --- a/resource-manager/apimanagement/2022-08-01/portalconfig/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/portalconfig/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []PortalConfigContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c PortalConfigClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PortalConfigClient) ListByService(ctx context.Context, id ServiceId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/portalConfigs", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/portalconfig/method_update.go b/resource-manager/apimanagement/2022-08-01/portalconfig/method_update.go index 80ecf21cd10..fce54b73ff3 100644 --- a/resource-manager/apimanagement/2022-08-01/portalconfig/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/portalconfig/method_update.go @@ -53,8 +53,8 @@ func (c PortalConfigClient) Update(ctx context.Context, id PortalConfigId, input http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/portalrevision/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/portalrevision/method_listbyservice.go index 35dca6c67c4..57df46678e2 100644 --- a/resource-manager/apimanagement/2022-08-01/portalrevision/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/portalrevision/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c PortalRevisionClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c PortalRevisionClient) ListByService(ctx context.Context, id ServiceId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/portalRevisions", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/portalRevisions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/portalrevision/method_update.go b/resource-manager/apimanagement/2022-08-01/portalrevision/method_update.go index ae5b10080b9..e3568960b04 100644 --- a/resource-manager/apimanagement/2022-08-01/portalrevision/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/portalrevision/method_update.go @@ -57,8 +57,8 @@ func (c PortalRevisionClient) Update(ctx context.Context, id PortalRevisionId, i http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/product/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/product/method_createorupdate.go index 7c22993b73c..2baf83fb505 100644 --- a/resource-manager/apimanagement/2022-08-01/product/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/product/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ProductClient) CreateOrUpdate(ctx context.Context, id ProductId, input P http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/product/method_delete.go b/resource-manager/apimanagement/2022-08-01/product/method_delete.go index a2aebab1182..afc7d184b70 100644 --- a/resource-manager/apimanagement/2022-08-01/product/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/product/method_delete.go @@ -56,8 +56,8 @@ func (c ProductClient) Delete(ctx context.Context, id ProductId, options DeleteO http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/product/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/product/method_listbyservice.go index 0bb14d6d7a9..b1f50c8e42d 100644 --- a/resource-manager/apimanagement/2022-08-01/product/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/product/method_listbyservice.go @@ -66,6 +66,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ProductClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c ProductClient) ListByService(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/product/method_update.go b/resource-manager/apimanagement/2022-08-01/product/method_update.go index e0b361db676..fc36ecd5353 100644 --- a/resource-manager/apimanagement/2022-08-01/product/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/product/method_update.go @@ -53,8 +53,8 @@ func (c ProductClient) Update(ctx context.Context, id ProductId, input ProductUp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/productapi/method_listbyproduct.go b/resource-manager/apimanagement/2022-08-01/productapi/method_listbyproduct.go index b9f3331e327..c06016675dd 100644 --- a/resource-manager/apimanagement/2022-08-01/productapi/method_listbyproduct.go +++ b/resource-manager/apimanagement/2022-08-01/productapi/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ProductApiClient) ListByProduct(ctx context.Context, id ProductId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductApiClient) ListByProduct(ctx context.Context, id ProductId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apis", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/apis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/productgroup/method_listbyproduct.go b/resource-manager/apimanagement/2022-08-01/productgroup/method_listbyproduct.go index aa9ed4b52ff..902f45c4f73 100644 --- a/resource-manager/apimanagement/2022-08-01/productgroup/method_listbyproduct.go +++ b/resource-manager/apimanagement/2022-08-01/productgroup/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ProductGroupClient) ListByProduct(ctx context.Context, id ProductId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductGroupClient) ListByProduct(ctx context.Context, id ProductId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groups", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/groups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/productpolicy/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/productpolicy/method_createorupdate.go index aae2081db15..923d04859e1 100644 --- a/resource-manager/apimanagement/2022-08-01/productpolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/productpolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ProductPolicyClient) CreateOrUpdate(ctx context.Context, id ProductId, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/productpolicy/method_delete.go b/resource-manager/apimanagement/2022-08-01/productpolicy/method_delete.go index 09bc23bd22e..36e74215a96 100644 --- a/resource-manager/apimanagement/2022-08-01/productpolicy/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/productpolicy/method_delete.go @@ -53,8 +53,8 @@ func (c ProductPolicyClient) Delete(ctx context.Context, id ProductId, options D http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/productpolicy/method_get.go b/resource-manager/apimanagement/2022-08-01/productpolicy/method_get.go index a2d2298abf0..b96d87150c2 100644 --- a/resource-manager/apimanagement/2022-08-01/productpolicy/method_get.go +++ b/resource-manager/apimanagement/2022-08-01/productpolicy/method_get.go @@ -53,8 +53,8 @@ func (c ProductPolicyClient) Get(ctx context.Context, id ProductId, options GetO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/productpolicy/method_listbyproduct.go b/resource-manager/apimanagement/2022-08-01/productpolicy/method_listbyproduct.go index 4ce880151f5..ebb09de40c2 100644 --- a/resource-manager/apimanagement/2022-08-01/productpolicy/method_listbyproduct.go +++ b/resource-manager/apimanagement/2022-08-01/productpolicy/method_listbyproduct.go @@ -23,6 +23,18 @@ type ListByProductCompleteResult struct { Items []PolicyContract } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ProductPolicyClient) ListByProduct(ctx context.Context, id ProductId) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProductPolicyClient) ListByProduct(ctx context.Context, id ProductId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByProductCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/productsbytag/method_productlistbytags.go b/resource-manager/apimanagement/2022-08-01/productsbytag/method_productlistbytags.go index a09abcae5db..8cffb9f2edb 100644 --- a/resource-manager/apimanagement/2022-08-01/productsbytag/method_productlistbytags.go +++ b/resource-manager/apimanagement/2022-08-01/productsbytag/method_productlistbytags.go @@ -62,6 +62,18 @@ func (o ProductListByTagsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ProductListByTagsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProductListByTagsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProductListByTags ... func (c ProductsByTagClient) ProductListByTags(ctx context.Context, id ServiceId, options ProductListByTagsOperationOptions) (result ProductListByTagsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ProductsByTagClient) ProductListByTags(ctx context.Context, id ServiceId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/productsByTags", id.ID()), OptionsObject: options, + Pager: &ProductListByTagsCustomPager{}, + Path: fmt.Sprintf("%s/productsByTags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/productsubscription/method_list.go b/resource-manager/apimanagement/2022-08-01/productsubscription/method_list.go index b26024edaac..c71c7ba8260 100644 --- a/resource-manager/apimanagement/2022-08-01/productsubscription/method_list.go +++ b/resource-manager/apimanagement/2022-08-01/productsubscription/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProductSubscriptionClient) List(ctx context.Context, id ProductId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductSubscriptionClient) List(ctx context.Context, id ProductId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/producttag/method_taglistbyproduct.go b/resource-manager/apimanagement/2022-08-01/producttag/method_taglistbyproduct.go index a1f8fe9be8a..4e0721b94fc 100644 --- a/resource-manager/apimanagement/2022-08-01/producttag/method_taglistbyproduct.go +++ b/resource-manager/apimanagement/2022-08-01/producttag/method_taglistbyproduct.go @@ -58,6 +58,18 @@ func (o TagListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type TagListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TagListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TagListByProduct ... func (c ProductTagClient) TagListByProduct(ctx context.Context, id ProductId, options TagListByProductOperationOptions) (result TagListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductTagClient) TagListByProduct(ctx context.Context, id ProductId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tags", id.ID()), OptionsObject: options, + Pager: &TagListByProductCustomPager{}, + Path: fmt.Sprintf("%s/tags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/productwiki/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/productwiki/method_createorupdate.go index 109d86803ef..f794fc61c8a 100644 --- a/resource-manager/apimanagement/2022-08-01/productwiki/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/productwiki/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ProductWikiClient) CreateOrUpdate(ctx context.Context, id ProductId, inp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/productwiki/method_delete.go b/resource-manager/apimanagement/2022-08-01/productwiki/method_delete.go index f2b6e116ed7..0ccc22248a0 100644 --- a/resource-manager/apimanagement/2022-08-01/productwiki/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/productwiki/method_delete.go @@ -53,8 +53,8 @@ func (c ProductWikiClient) Delete(ctx context.Context, id ProductId, options Del http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/productwiki/method_list.go b/resource-manager/apimanagement/2022-08-01/productwiki/method_list.go index 8ec9ce8ab8c..db26ef5879d 100644 --- a/resource-manager/apimanagement/2022-08-01/productwiki/method_list.go +++ b/resource-manager/apimanagement/2022-08-01/productwiki/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProductWikiClient) List(ctx context.Context, id ProductId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductWikiClient) List(ctx context.Context, id ProductId, options ListO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/wikis", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/wikis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/productwiki/method_update.go b/resource-manager/apimanagement/2022-08-01/productwiki/method_update.go index 88bf6c7d30a..551aa6aab7a 100644 --- a/resource-manager/apimanagement/2022-08-01/productwiki/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/productwiki/method_update.go @@ -53,8 +53,8 @@ func (c ProductWikiClient) Update(ctx context.Context, id ProductId, input WikiU http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/quotabycounterkeys/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/quotabycounterkeys/method_listbyservice.go index 9baf2281113..bcc302ce38e 100644 --- a/resource-manager/apimanagement/2022-08-01/quotabycounterkeys/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/quotabycounterkeys/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []QuotaCounterContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c QuotaByCounterKeysClient) ListByService(ctx context.Context, id QuotaId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c QuotaByCounterKeysClient) ListByService(ctx context.Context, id QuotaId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/apimanagement/2022-08-01/region/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/region/method_listbyservice.go index 57a1607f18f..5574a620a92 100644 --- a/resource-manager/apimanagement/2022-08-01/region/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/region/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []RegionContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c RegionClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RegionClient) ListByService(ctx context.Context, id ServiceId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/regions", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/reports/method_listbyapi.go b/resource-manager/apimanagement/2022-08-01/reports/method_listbyapi.go index b7ef8b0e3ab..e99479d8413 100644 --- a/resource-manager/apimanagement/2022-08-01/reports/method_listbyapi.go +++ b/resource-manager/apimanagement/2022-08-01/reports/method_listbyapi.go @@ -62,6 +62,18 @@ func (o ListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c ReportsClient) ListByApi(ctx context.Context, id ServiceId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListByApi(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byApi", id.ID()), OptionsObject: options, + Pager: &ListByApiCustomPager{}, + Path: fmt.Sprintf("%s/reports/byApi", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/reports/method_listbygeo.go b/resource-manager/apimanagement/2022-08-01/reports/method_listbygeo.go index 3983d75106f..1e69c1fb509 100644 --- a/resource-manager/apimanagement/2022-08-01/reports/method_listbygeo.go +++ b/resource-manager/apimanagement/2022-08-01/reports/method_listbygeo.go @@ -58,6 +58,18 @@ func (o ListByGeoOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByGeoCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGeoCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGeo ... func (c ReportsClient) ListByGeo(ctx context.Context, id ServiceId, options ListByGeoOperationOptions) (result ListByGeoOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReportsClient) ListByGeo(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byGeo", id.ID()), OptionsObject: options, + Pager: &ListByGeoCustomPager{}, + Path: fmt.Sprintf("%s/reports/byGeo", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/reports/method_listbyoperation.go b/resource-manager/apimanagement/2022-08-01/reports/method_listbyoperation.go index 19d88620d53..bb4465b0ce3 100644 --- a/resource-manager/apimanagement/2022-08-01/reports/method_listbyoperation.go +++ b/resource-manager/apimanagement/2022-08-01/reports/method_listbyoperation.go @@ -62,6 +62,18 @@ func (o ListByOperationOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByOperationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByOperationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByOperation ... func (c ReportsClient) ListByOperation(ctx context.Context, id ServiceId, options ListByOperationOperationOptions) (result ListByOperationOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListByOperation(ctx context.Context, id ServiceId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byOperation", id.ID()), OptionsObject: options, + Pager: &ListByOperationCustomPager{}, + Path: fmt.Sprintf("%s/reports/byOperation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/reports/method_listbyproduct.go b/resource-manager/apimanagement/2022-08-01/reports/method_listbyproduct.go index 9ed3b624aa1..3a6df43c7b4 100644 --- a/resource-manager/apimanagement/2022-08-01/reports/method_listbyproduct.go +++ b/resource-manager/apimanagement/2022-08-01/reports/method_listbyproduct.go @@ -62,6 +62,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ReportsClient) ListByProduct(ctx context.Context, id ServiceId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListByProduct(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byProduct", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/reports/byProduct", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/reports/method_listbyrequest.go b/resource-manager/apimanagement/2022-08-01/reports/method_listbyrequest.go index 425a6eefc2d..265c2670114 100644 --- a/resource-manager/apimanagement/2022-08-01/reports/method_listbyrequest.go +++ b/resource-manager/apimanagement/2022-08-01/reports/method_listbyrequest.go @@ -61,8 +61,8 @@ func (c ReportsClient) ListByRequest(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byRequest", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/reports/byRequest", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/reports/method_listbysubscription.go b/resource-manager/apimanagement/2022-08-01/reports/method_listbysubscription.go index 7c89c06c99c..1e7ffadeafd 100644 --- a/resource-manager/apimanagement/2022-08-01/reports/method_listbysubscription.go +++ b/resource-manager/apimanagement/2022-08-01/reports/method_listbysubscription.go @@ -62,6 +62,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ReportsClient) ListBySubscription(ctx context.Context, id ServiceId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListBySubscription(ctx context.Context, id ServiceId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/bySubscription", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/reports/bySubscription", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/reports/method_listbytime.go b/resource-manager/apimanagement/2022-08-01/reports/method_listbytime.go index 6d6ffe5402d..629527e4e8b 100644 --- a/resource-manager/apimanagement/2022-08-01/reports/method_listbytime.go +++ b/resource-manager/apimanagement/2022-08-01/reports/method_listbytime.go @@ -66,6 +66,18 @@ func (o ListByTimeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTimeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTimeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTime ... func (c ReportsClient) ListByTime(ctx context.Context, id ServiceId, options ListByTimeOperationOptions) (result ListByTimeOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c ReportsClient) ListByTime(ctx context.Context, id ServiceId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byTime", id.ID()), OptionsObject: options, + Pager: &ListByTimeCustomPager{}, + Path: fmt.Sprintf("%s/reports/byTime", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/reports/method_listbyuser.go b/resource-manager/apimanagement/2022-08-01/reports/method_listbyuser.go index b2c758e720f..0751d4a40cb 100644 --- a/resource-manager/apimanagement/2022-08-01/reports/method_listbyuser.go +++ b/resource-manager/apimanagement/2022-08-01/reports/method_listbyuser.go @@ -62,6 +62,18 @@ func (o ListByUserOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByUserCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByUserCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByUser ... func (c ReportsClient) ListByUser(ctx context.Context, id ServiceId, options ListByUserOperationOptions) (result ListByUserOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListByUser(ctx context.Context, id ServiceId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byUser", id.ID()), OptionsObject: options, + Pager: &ListByUserCustomPager{}, + Path: fmt.Sprintf("%s/reports/byUser", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/schema/method_globalschemacreateorupdate.go b/resource-manager/apimanagement/2022-08-01/schema/method_globalschemacreateorupdate.go index 06eae53751c..4f0f7c321a1 100644 --- a/resource-manager/apimanagement/2022-08-01/schema/method_globalschemacreateorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/schema/method_globalschemacreateorupdate.go @@ -58,8 +58,8 @@ func (c SchemaClient) GlobalSchemaCreateOrUpdate(ctx context.Context, id SchemaI http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/schema/method_globalschemadelete.go b/resource-manager/apimanagement/2022-08-01/schema/method_globalschemadelete.go index f7169489c2b..234fcfcb78f 100644 --- a/resource-manager/apimanagement/2022-08-01/schema/method_globalschemadelete.go +++ b/resource-manager/apimanagement/2022-08-01/schema/method_globalschemadelete.go @@ -53,8 +53,8 @@ func (c SchemaClient) GlobalSchemaDelete(ctx context.Context, id SchemaId, optio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/schema/method_globalschemalistbyservice.go b/resource-manager/apimanagement/2022-08-01/schema/method_globalschemalistbyservice.go index 63af31ce4a0..7797c6a6b8f 100644 --- a/resource-manager/apimanagement/2022-08-01/schema/method_globalschemalistbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/schema/method_globalschemalistbyservice.go @@ -58,6 +58,18 @@ func (o GlobalSchemaListByServiceOperationOptions) ToQuery() *client.QueryParams return &out } +type GlobalSchemaListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GlobalSchemaListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GlobalSchemaListByService ... func (c SchemaClient) GlobalSchemaListByService(ctx context.Context, id ServiceId, options GlobalSchemaListByServiceOperationOptions) (result GlobalSchemaListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c SchemaClient) GlobalSchemaListByService(ctx context.Context, id ServiceI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &GlobalSchemaListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/signinsettings/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/signinsettings/method_createorupdate.go index 189a6236516..7354010fc89 100644 --- a/resource-manager/apimanagement/2022-08-01/signinsettings/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/signinsettings/method_createorupdate.go @@ -53,8 +53,8 @@ func (c SignInSettingsClient) CreateOrUpdate(ctx context.Context, id ServiceId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/portalsettings/signin", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/signin", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/signinsettings/method_update.go b/resource-manager/apimanagement/2022-08-01/signinsettings/method_update.go index cdef3702ed0..1c0af5a3508 100644 --- a/resource-manager/apimanagement/2022-08-01/signinsettings/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/signinsettings/method_update.go @@ -52,8 +52,8 @@ func (c SignInSettingsClient) Update(ctx context.Context, id ServiceId, input Po http.StatusNoContent, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/portalsettings/signin", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/signin", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/signupsettings/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/signupsettings/method_createorupdate.go index 7e867b508f6..8d57367d2f5 100644 --- a/resource-manager/apimanagement/2022-08-01/signupsettings/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/signupsettings/method_createorupdate.go @@ -53,8 +53,8 @@ func (c SignUpSettingsClient) CreateOrUpdate(ctx context.Context, id ServiceId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/portalsettings/signup", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/signup", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/signupsettings/method_update.go b/resource-manager/apimanagement/2022-08-01/signupsettings/method_update.go index fd56de21870..8d8918d3324 100644 --- a/resource-manager/apimanagement/2022-08-01/signupsettings/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/signupsettings/method_update.go @@ -52,8 +52,8 @@ func (c SignUpSettingsClient) Update(ctx context.Context, id ServiceId, input Po http.StatusNoContent, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/portalsettings/signup", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/signup", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/skus/method_apimanagementskuslist.go b/resource-manager/apimanagement/2022-08-01/skus/method_apimanagementskuslist.go index 30e24e4a4ee..9c429654469 100644 --- a/resource-manager/apimanagement/2022-08-01/skus/method_apimanagementskuslist.go +++ b/resource-manager/apimanagement/2022-08-01/skus/method_apimanagementskuslist.go @@ -24,6 +24,18 @@ type ApiManagementSkusListCompleteResult struct { Items []ApiManagementSku } +type ApiManagementSkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiManagementSkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApiManagementSkusList ... func (c SkusClient) ApiManagementSkusList(ctx context.Context, id commonids.SubscriptionId) (result ApiManagementSkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SkusClient) ApiManagementSkusList(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApiManagementSkusListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiManagement/skus", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/subscription/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/subscription/method_createorupdate.go index b6f8b008bb9..84f04d880d0 100644 --- a/resource-manager/apimanagement/2022-08-01/subscription/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/subscription/method_createorupdate.go @@ -61,8 +61,8 @@ func (c SubscriptionClient) CreateOrUpdate(ctx context.Context, id Subscriptions http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/subscription/method_delete.go b/resource-manager/apimanagement/2022-08-01/subscription/method_delete.go index a14c0ad04e1..e3c31885a75 100644 --- a/resource-manager/apimanagement/2022-08-01/subscription/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/subscription/method_delete.go @@ -53,8 +53,8 @@ func (c SubscriptionClient) Delete(ctx context.Context, id Subscriptions2Id, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/subscription/method_list.go b/resource-manager/apimanagement/2022-08-01/subscription/method_list.go index 44c90482077..2e9d96e0473 100644 --- a/resource-manager/apimanagement/2022-08-01/subscription/method_list.go +++ b/resource-manager/apimanagement/2022-08-01/subscription/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SubscriptionClient) List(ctx context.Context, id ServiceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c SubscriptionClient) List(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/subscription/method_update.go b/resource-manager/apimanagement/2022-08-01/subscription/method_update.go index 298fd59a60f..635071e41ca 100644 --- a/resource-manager/apimanagement/2022-08-01/subscription/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/subscription/method_update.go @@ -60,8 +60,8 @@ func (c SubscriptionClient) Update(ctx context.Context, id Subscriptions2Id, inp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/tag/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/tag/method_createorupdate.go index 129583f77c6..9494659a794 100644 --- a/resource-manager/apimanagement/2022-08-01/tag/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/tag/method_createorupdate.go @@ -54,8 +54,8 @@ func (c TagClient) CreateOrUpdate(ctx context.Context, id TagId, input TagCreate http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/tag/method_delete.go b/resource-manager/apimanagement/2022-08-01/tag/method_delete.go index 01b72128471..83335d794bd 100644 --- a/resource-manager/apimanagement/2022-08-01/tag/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/tag/method_delete.go @@ -53,8 +53,8 @@ func (c TagClient) Delete(ctx context.Context, id TagId, options DeleteOperation http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/tag/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/tag/method_listbyservice.go index 56949eaba50..efb001aaa9c 100644 --- a/resource-manager/apimanagement/2022-08-01/tag/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/tag/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c TagClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c TagClient) ListByService(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tags", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/tag/method_update.go b/resource-manager/apimanagement/2022-08-01/tag/method_update.go index e7ab6b0458d..8ee0391b4d4 100644 --- a/resource-manager/apimanagement/2022-08-01/tag/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/tag/method_update.go @@ -53,8 +53,8 @@ func (c TagClient) Update(ctx context.Context, id TagId, input TagCreateUpdatePa http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/tagresource/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/tagresource/method_listbyservice.go index 68ff8fbf3fc..0d880dc6dad 100644 --- a/resource-manager/apimanagement/2022-08-01/tagresource/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/tagresource/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c TagResourceClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagResourceClient) ListByService(ctx context.Context, id ServiceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tagResources", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tagResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/tenantaccess/method_create.go b/resource-manager/apimanagement/2022-08-01/tenantaccess/method_create.go index 1615e42b28b..73ced417651 100644 --- a/resource-manager/apimanagement/2022-08-01/tenantaccess/method_create.go +++ b/resource-manager/apimanagement/2022-08-01/tenantaccess/method_create.go @@ -53,8 +53,8 @@ func (c TenantAccessClient) Create(ctx context.Context, id AccessId, input Acces http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listbyservice.go index cd5f6f85c79..541de46f891 100644 --- a/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listbyservice.go @@ -50,6 +50,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c TenantAccessClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c TenantAccessClient) ListByService(ctx context.Context, id ServiceId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tenant", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tenant", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/tenantaccess/method_update.go b/resource-manager/apimanagement/2022-08-01/tenantaccess/method_update.go index ad921165696..73793de2965 100644 --- a/resource-manager/apimanagement/2022-08-01/tenantaccess/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/tenantaccess/method_update.go @@ -53,8 +53,8 @@ func (c TenantAccessClient) Update(ctx context.Context, id AccessId, input Acces http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/tenantsettings/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/tenantsettings/method_listbyservice.go index 05666d1dd38..12487f36224 100644 --- a/resource-manager/apimanagement/2022-08-01/tenantsettings/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/tenantsettings/method_listbyservice.go @@ -50,6 +50,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c TenantSettingsClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c TenantSettingsClient) ListByService(ctx context.Context, id ServiceId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/settings", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/settings", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/user/method_createorupdate.go b/resource-manager/apimanagement/2022-08-01/user/method_createorupdate.go index 6fbf588a080..b1cf998602d 100644 --- a/resource-manager/apimanagement/2022-08-01/user/method_createorupdate.go +++ b/resource-manager/apimanagement/2022-08-01/user/method_createorupdate.go @@ -57,8 +57,8 @@ func (c UserClient) CreateOrUpdate(ctx context.Context, id UserId, input UserCre http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/user/method_delete.go b/resource-manager/apimanagement/2022-08-01/user/method_delete.go index fd6b3518902..b5b2112ac40 100644 --- a/resource-manager/apimanagement/2022-08-01/user/method_delete.go +++ b/resource-manager/apimanagement/2022-08-01/user/method_delete.go @@ -64,8 +64,8 @@ func (c UserClient) Delete(ctx context.Context, id UserId, options DeleteOperati http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/user/method_listbyservice.go b/resource-manager/apimanagement/2022-08-01/user/method_listbyservice.go index 0663b1e6c1c..e098057b246 100644 --- a/resource-manager/apimanagement/2022-08-01/user/method_listbyservice.go +++ b/resource-manager/apimanagement/2022-08-01/user/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c UserClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c UserClient) ListByService(ctx context.Context, id ServiceId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/users", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/users", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/user/method_update.go b/resource-manager/apimanagement/2022-08-01/user/method_update.go index bf1fda6cbfd..11353f91240 100644 --- a/resource-manager/apimanagement/2022-08-01/user/method_update.go +++ b/resource-manager/apimanagement/2022-08-01/user/method_update.go @@ -53,8 +53,8 @@ func (c UserClient) Update(ctx context.Context, id UserId, input UserUpdateParam http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/userconfirmationpasswordsend/method_userconfirmationpasswordsend.go b/resource-manager/apimanagement/2022-08-01/userconfirmationpasswordsend/method_userconfirmationpasswordsend.go index 883292fd0c2..b1915a44d82 100644 --- a/resource-manager/apimanagement/2022-08-01/userconfirmationpasswordsend/method_userconfirmationpasswordsend.go +++ b/resource-manager/apimanagement/2022-08-01/userconfirmationpasswordsend/method_userconfirmationpasswordsend.go @@ -52,8 +52,8 @@ func (c UserConfirmationPasswordSendClient) UserConfirmationPasswordSend(ctx con http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/confirmations/password/send", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/confirmations/password/send", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/usergroup/method_list.go b/resource-manager/apimanagement/2022-08-01/usergroup/method_list.go index 4a9e2950a71..cfe2c191701 100644 --- a/resource-manager/apimanagement/2022-08-01/usergroup/method_list.go +++ b/resource-manager/apimanagement/2022-08-01/usergroup/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UserGroupClient) List(ctx context.Context, id UserId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c UserGroupClient) List(ctx context.Context, id UserId, options ListOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groups", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/groups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2022-08-01/useridentity/method_useridentitieslist.go b/resource-manager/apimanagement/2022-08-01/useridentity/method_useridentitieslist.go index ebb7f0f9931..43e22220140 100644 --- a/resource-manager/apimanagement/2022-08-01/useridentity/method_useridentitieslist.go +++ b/resource-manager/apimanagement/2022-08-01/useridentity/method_useridentitieslist.go @@ -23,6 +23,18 @@ type UserIdentitiesListCompleteResult struct { Items []UserIdentityContract } +type UserIdentitiesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UserIdentitiesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UserIdentitiesList ... func (c UserIdentityClient) UserIdentitiesList(ctx context.Context, id UserId) (result UserIdentitiesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UserIdentityClient) UserIdentitiesList(ctx context.Context, id UserId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UserIdentitiesListCustomPager{}, Path: fmt.Sprintf("%s/identities", id.ID()), } diff --git a/resource-manager/apimanagement/2022-08-01/usersubscription/method_list.go b/resource-manager/apimanagement/2022-08-01/usersubscription/method_list.go index 683c969fac0..9acd966ed75 100644 --- a/resource-manager/apimanagement/2022-08-01/usersubscription/method_list.go +++ b/resource-manager/apimanagement/2022-08-01/usersubscription/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UserSubscriptionClient) List(ctx context.Context, id UserId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c UserSubscriptionClient) List(ctx context.Context, id UserId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/api/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/api/method_createorupdate.go index 0dca0a4315c..af3e5430ecf 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/api/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/api/method_createorupdate.go @@ -58,8 +58,8 @@ func (c ApiClient) CreateOrUpdate(ctx context.Context, id ApiId, input ApiCreate http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/api/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/api/method_delete.go index 19f24f35d16..fbc43278f3b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/api/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/api/method_delete.go @@ -56,8 +56,8 @@ func (c ApiClient) Delete(ctx context.Context, id ApiId, options DeleteOperation http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/api/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/api/method_listbyservice.go index 6822b5ac5da..6b9bc61fa02 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/api/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/api/method_listbyservice.go @@ -66,6 +66,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c ApiClient) ListByService(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apis", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/api/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/api/method_update.go index a64dc55c7e1..491fbbeb5c8 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/api/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/api/method_update.go @@ -53,8 +53,8 @@ func (c ApiClient) Update(ctx context.Context, id ApiId, input ApiUpdateContract http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapicreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapicreateorupdate.go index f459a865ecd..32df598457a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapicreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapicreateorupdate.go @@ -58,8 +58,8 @@ func (c ApiClient) WorkspaceApiCreateOrUpdate(ctx context.Context, id WorkspaceA http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapidelete.go b/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapidelete.go index 793e070625f..44393545209 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapidelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapidelete.go @@ -56,8 +56,8 @@ func (c ApiClient) WorkspaceApiDelete(ctx context.Context, id WorkspaceApiId, op http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapilistbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapilistbyservice.go index c2d905cf10e..aeed0e70077 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapilistbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapilistbyservice.go @@ -66,6 +66,18 @@ func (o WorkspaceApiListByServiceOperationOptions) ToQuery() *client.QueryParams return &out } +type WorkspaceApiListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiListByService ... func (c ApiClient) WorkspaceApiListByService(ctx context.Context, id WorkspaceId, options WorkspaceApiListByServiceOperationOptions) (result WorkspaceApiListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c ApiClient) WorkspaceApiListByService(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apis", id.ID()), OptionsObject: options, + Pager: &WorkspaceApiListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapiupdate.go b/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapiupdate.go index 7e8e77205a4..25f72466ee3 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapiupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/api/method_workspaceapiupdate.go @@ -53,8 +53,8 @@ func (c ApiClient) WorkspaceApiUpdate(ctx context.Context, id WorkspaceApiId, in http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_createorupdate.go index bb4060490e3..2551a5d1445 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiDiagnosticClient) CreateOrUpdate(ctx context.Context, id ApiDiagnosti http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_delete.go index 0fb3223f00f..a781c7b154b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_delete.go @@ -53,8 +53,8 @@ func (c ApiDiagnosticClient) Delete(ctx context.Context, id ApiDiagnosticId, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_listbyservice.go index a3983e44ff5..96b6f06f674 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiDiagnosticClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiDiagnosticClient) ListByService(ctx context.Context, id ApiId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/diagnostics", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/diagnostics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_update.go index 06f2e2eadbd..00ef4533a35 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apidiagnostic/method_update.go @@ -53,8 +53,8 @@ func (c ApiDiagnosticClient) Update(ctx context.Context, id ApiDiagnosticId, inp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_createorupdate.go index c02a0c0ee70..2c843315ed6 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiIssueClient) CreateOrUpdate(ctx context.Context, id ApiIssueId, input http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_delete.go index 822eaefefe3..c51a70bf93d 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_delete.go @@ -53,8 +53,8 @@ func (c ApiIssueClient) Delete(ctx context.Context, id ApiIssueId, options Delet http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_get.go b/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_get.go index c3bd01ed939..a4f0ff0be8a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_get.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_get.go @@ -53,8 +53,8 @@ func (c ApiIssueClient) Get(ctx context.Context, id ApiIssueId, options GetOpera http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_listbyservice.go index 0746aecd4ae..314d87e9b6e 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiIssueClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ApiIssueClient) ListByService(ctx context.Context, id ApiId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/issues", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/issues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_update.go index 023124b29a5..5db5804bbb2 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiissue/method_update.go @@ -53,8 +53,8 @@ func (c ApiIssueClient) Update(ctx context.Context, id ApiIssueId, input IssueUp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiissueattachment/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apiissueattachment/method_createorupdate.go index 9aba1c06a14..a44575c4ae0 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiissueattachment/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiissueattachment/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiIssueAttachmentClient) CreateOrUpdate(ctx context.Context, id Attachm http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiissueattachment/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/apiissueattachment/method_delete.go index e2c80a156a2..867e45b1ffc 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiissueattachment/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiissueattachment/method_delete.go @@ -53,8 +53,8 @@ func (c ApiIssueAttachmentClient) Delete(ctx context.Context, id AttachmentId, o http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiissueattachment/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/apiissueattachment/method_listbyservice.go index b1b9137df9d..7e2162ab2a9 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiissueattachment/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiissueattachment/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiIssueAttachmentClient) ListByService(ctx context.Context, id ApiIssueId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiIssueAttachmentClient) ListByService(ctx context.Context, id ApiIssue http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/attachments", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/attachments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiissuecomment/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apiissuecomment/method_createorupdate.go index c7abf1e30fe..82f8efd70c7 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiissuecomment/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiissuecomment/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiIssueCommentClient) CreateOrUpdate(ctx context.Context, id CommentId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiissuecomment/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/apiissuecomment/method_delete.go index b6cb1c7f69b..725bbb2f2a8 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiissuecomment/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiissuecomment/method_delete.go @@ -53,8 +53,8 @@ func (c ApiIssueCommentClient) Delete(ctx context.Context, id CommentId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiissuecomment/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/apiissuecomment/method_listbyservice.go index b0a547fa482..a1f56a2f9d7 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiissuecomment/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiissuecomment/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiIssueCommentClient) ListByService(ctx context.Context, id ApiIssueId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiIssueCommentClient) ListByService(ctx context.Context, id ApiIssueId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/comments", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/comments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apimanagementservice/method_list.go b/resource-manager/apimanagement/2023-03-01-preview/apimanagementservice/method_list.go index e674b42bee8..a543ab50604 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apimanagementservice/method_list.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apimanagementservice/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ApiManagementServiceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApiManagementServiceClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApiManagementServiceClient) List(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiManagement/service", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/apimanagementservice/method_listbyresourcegroup.go b/resource-manager/apimanagement/2023-03-01-preview/apimanagementservice/method_listbyresourcegroup.go index 373a3113b59..f7ecb77436b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apimanagementservice/method_listbyresourcegroup.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apimanagementservice/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ApiManagementServiceResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ApiManagementServiceClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApiManagementServiceClient) ListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiManagement/service", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/apimanagementserviceskus/method_listavailableserviceskus.go b/resource-manager/apimanagement/2023-03-01-preview/apimanagementserviceskus/method_listavailableserviceskus.go index ac040cc0edf..07d00e828ca 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apimanagementserviceskus/method_listavailableserviceskus.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apimanagementserviceskus/method_listavailableserviceskus.go @@ -23,6 +23,18 @@ type ListAvailableServiceSkusCompleteResult struct { Items []ResourceSkuResult } +type ListAvailableServiceSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAvailableServiceSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAvailableServiceSkus ... func (c ApiManagementServiceSkusClient) ListAvailableServiceSkus(ctx context.Context, id ServiceId) (result ListAvailableServiceSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiManagementServiceSkusClient) ListAvailableServiceSkus(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAvailableServiceSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_createorupdate.go index c33a095dfbb..ee86a38b0bc 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiOperationClient) CreateOrUpdate(ctx context.Context, id OperationId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_delete.go index 0693a0a284f..ee390d245b3 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_delete.go @@ -53,8 +53,8 @@ func (c ApiOperationClient) Delete(ctx context.Context, id OperationId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_listbyapi.go b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_listbyapi.go index 0cd13f2e8c0..df8d3b45502 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_listbyapi.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_listbyapi.go @@ -62,6 +62,18 @@ func (o ListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c ApiOperationClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ApiOperationClient) ListByApi(ctx context.Context, id ApiId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListByApiCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_update.go index 80320a2c06f..005fc98f21a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_update.go @@ -53,8 +53,8 @@ func (c ApiOperationClient) Update(ctx context.Context, id OperationId, input Op http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go index b55c2c92e6e..31e0a6ea5fe 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go @@ -54,8 +54,8 @@ func (c ApiOperationClient) WorkspaceApiOperationCreateOrUpdate(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationdelete.go b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationdelete.go index d695ff45464..803c543da5b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationdelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationdelete.go @@ -53,8 +53,8 @@ func (c ApiOperationClient) WorkspaceApiOperationDelete(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationlistbyapi.go b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationlistbyapi.go index 3d274bef560..dfa7091cdf8 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationlistbyapi.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationlistbyapi.go @@ -62,6 +62,18 @@ func (o WorkspaceApiOperationListByApiOperationOptions) ToQuery() *client.QueryP return &out } +type WorkspaceApiOperationListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiOperationListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiOperationListByApi ... func (c ApiOperationClient) WorkspaceApiOperationListByApi(ctx context.Context, id WorkspaceApiId, options WorkspaceApiOperationListByApiOperationOptions) (result WorkspaceApiOperationListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ApiOperationClient) WorkspaceApiOperationListByApi(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &WorkspaceApiOperationListByApiCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationupdate.go index 45368046c28..b485b35b34a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperation/method_workspaceapioperationupdate.go @@ -53,8 +53,8 @@ func (c ApiOperationClient) WorkspaceApiOperationUpdate(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_createorupdate.go index 777278c8367..3437b481d77 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiOperationPolicyClient) CreateOrUpdate(ctx context.Context, id Operati http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_delete.go index f30d7d3e932..1b77d06ed20 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_delete.go @@ -53,8 +53,8 @@ func (c ApiOperationPolicyClient) Delete(ctx context.Context, id OperationId, op http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_get.go b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_get.go index 5694a2d93ac..53ce4e80d68 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_get.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_get.go @@ -53,8 +53,8 @@ func (c ApiOperationPolicyClient) Get(ctx context.Context, id OperationId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_listbyoperation.go b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_listbyoperation.go index 9a9fc988094..6368c593060 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_listbyoperation.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_listbyoperation.go @@ -23,6 +23,18 @@ type ListByOperationCompleteResult struct { Items []PolicyContract } +type ListByOperationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByOperationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByOperation ... func (c ApiOperationPolicyClient) ListByOperation(ctx context.Context, id OperationId) (result ListByOperationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiOperationPolicyClient) ListByOperation(ctx context.Context, id Operat http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByOperationCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go index 0043951ebe5..749273ac587 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go @@ -54,8 +54,8 @@ func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyCreateOrUpdate(ctx http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go index f7f0e3ba174..47c3dded764 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go @@ -53,8 +53,8 @@ func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyDelete(ctx context. http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go index fe304933688..9395af3465a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go @@ -53,8 +53,8 @@ func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyGet(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go index a7e0ddffe53..f09ff195389 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go @@ -23,6 +23,18 @@ type WorkspaceApiOperationPolicyListByOperationCompleteResult struct { Items []PolicyContract } +type WorkspaceApiOperationPolicyListByOperationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiOperationPolicyListByOperationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiOperationPolicyListByOperation ... func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyListByOperation(ctx context.Context, id ApiOperationId) (result WorkspaceApiOperationPolicyListByOperationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyListByOperation(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceApiOperationPolicyListByOperationCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperationsbytag/method_operationlistbytags.go b/resource-manager/apimanagement/2023-03-01-preview/apioperationsbytag/method_operationlistbytags.go index 7947f83e444..2a37906b22f 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperationsbytag/method_operationlistbytags.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperationsbytag/method_operationlistbytags.go @@ -62,6 +62,18 @@ func (o OperationListByTagsOperationOptions) ToQuery() *client.QueryParams { return &out } +type OperationListByTagsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *OperationListByTagsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // OperationListByTags ... func (c ApiOperationsByTagClient) OperationListByTags(ctx context.Context, id ApiId, options OperationListByTagsOperationOptions) (result OperationListByTagsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ApiOperationsByTagClient) OperationListByTags(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operationsByTags", id.ID()), OptionsObject: options, + Pager: &OperationListByTagsCustomPager{}, + Path: fmt.Sprintf("%s/operationsByTags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apioperationtag/method_taglistbyoperation.go b/resource-manager/apimanagement/2023-03-01-preview/apioperationtag/method_taglistbyoperation.go index cdd813b8748..f68870a2587 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apioperationtag/method_taglistbyoperation.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apioperationtag/method_taglistbyoperation.go @@ -58,6 +58,18 @@ func (o TagListByOperationOperationOptions) ToQuery() *client.QueryParams { return &out } +type TagListByOperationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TagListByOperationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TagListByOperation ... func (c ApiOperationTagClient) TagListByOperation(ctx context.Context, id OperationId, options TagListByOperationOperationOptions) (result TagListByOperationOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiOperationTagClient) TagListByOperation(ctx context.Context, id Operat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tags", id.ID()), OptionsObject: options, + Pager: &TagListByOperationCustomPager{}, + Path: fmt.Sprintf("%s/tags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_createorupdate.go index cc234b22396..eeaf614e85b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiPolicyClient) CreateOrUpdate(ctx context.Context, id ApiId, input Pol http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_delete.go index 10b8c3c63c0..ee63586a23e 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_delete.go @@ -53,8 +53,8 @@ func (c ApiPolicyClient) Delete(ctx context.Context, id ApiId, options DeleteOpe http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_get.go b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_get.go index 4f320580028..c62f27cb331 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_get.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_get.go @@ -53,8 +53,8 @@ func (c ApiPolicyClient) Get(ctx context.Context, id ApiId, options GetOperation http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_listbyapi.go b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_listbyapi.go index 0731412ca80..bbe7b58565b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_listbyapi.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_listbyapi.go @@ -23,6 +23,18 @@ type ListByApiCompleteResult struct { Items []PolicyContract } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c ApiPolicyClient) ListByApi(ctx context.Context, id ApiId) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiPolicyClient) ListByApi(ctx context.Context, id ApiId) (result ListBy http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByApiCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go index 75eca16dbfa..003cadb79ce 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go @@ -54,8 +54,8 @@ func (c ApiPolicyClient) WorkspaceApiPolicyCreateOrUpdate(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicydelete.go b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicydelete.go index de7889df51c..f2ceb3f9e4d 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicydelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicydelete.go @@ -53,8 +53,8 @@ func (c ApiPolicyClient) WorkspaceApiPolicyDelete(ctx context.Context, id Worksp http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicyget.go b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicyget.go index e7af7907f02..364bd7248f2 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicyget.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicyget.go @@ -53,8 +53,8 @@ func (c ApiPolicyClient) WorkspaceApiPolicyGet(ctx context.Context, id Workspace http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicylistbyapi.go b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicylistbyapi.go index 765a46cf285..39a1a6de1a1 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicylistbyapi.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apipolicy/method_workspaceapipolicylistbyapi.go @@ -23,6 +23,18 @@ type WorkspaceApiPolicyListByApiCompleteResult struct { Items []PolicyContract } +type WorkspaceApiPolicyListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiPolicyListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiPolicyListByApi ... func (c ApiPolicyClient) WorkspaceApiPolicyListByApi(ctx context.Context, id WorkspaceApiId) (result WorkspaceApiPolicyListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiPolicyClient) WorkspaceApiPolicyListByApi(ctx context.Context, id Wor http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceApiPolicyListByApiCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiproduct/method_listbyapis.go b/resource-manager/apimanagement/2023-03-01-preview/apiproduct/method_listbyapis.go index dbff82da3ac..9a4501fc786 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiproduct/method_listbyapis.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiproduct/method_listbyapis.go @@ -58,6 +58,18 @@ func (o ListByApisOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApisCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApisCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApis ... func (c ApiProductClient) ListByApis(ctx context.Context, id ApiId, options ListByApisOperationOptions) (result ListByApisOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiProductClient) ListByApis(ctx context.Context, id ApiId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByApisCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_createorupdate.go index e8c7f9514c9..2b23b8d16a6 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiReleaseClient) CreateOrUpdate(ctx context.Context, id ReleaseId, inpu http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_delete.go index cdfaf120b2b..d7f28534465 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_delete.go @@ -53,8 +53,8 @@ func (c ApiReleaseClient) Delete(ctx context.Context, id ReleaseId, options Dele http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_listbyservice.go index f93f33c686b..509f7241d4f 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiReleaseClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiReleaseClient) ListByService(ctx context.Context, id ApiId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/releases", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/releases", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_update.go index 93cb75dc4bb..1e51ca66c45 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_update.go @@ -53,8 +53,8 @@ func (c ApiReleaseClient) Update(ctx context.Context, id ReleaseId, input ApiRel http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go index 4fd8a062377..3dcd9fce3ab 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go @@ -54,8 +54,8 @@ func (c ApiReleaseClient) WorkspaceApiReleaseCreateOrUpdate(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleasedelete.go b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleasedelete.go index 0078c166349..0fd63c74e77 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleasedelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleasedelete.go @@ -53,8 +53,8 @@ func (c ApiReleaseClient) WorkspaceApiReleaseDelete(ctx context.Context, id ApiR http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleaselistbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleaselistbyservice.go index 06dca7b4b99..578ad231c48 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleaselistbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleaselistbyservice.go @@ -58,6 +58,18 @@ func (o WorkspaceApiReleaseListByServiceOperationOptions) ToQuery() *client.Quer return &out } +type WorkspaceApiReleaseListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiReleaseListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiReleaseListByService ... func (c ApiReleaseClient) WorkspaceApiReleaseListByService(ctx context.Context, id WorkspaceApiId, options WorkspaceApiReleaseListByServiceOperationOptions) (result WorkspaceApiReleaseListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiReleaseClient) WorkspaceApiReleaseListByService(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/releases", id.ID()), OptionsObject: options, + Pager: &WorkspaceApiReleaseListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/releases", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleaseupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleaseupdate.go index 1d030889db5..d301c6d2adc 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleaseupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apirelease/method_workspaceapireleaseupdate.go @@ -53,8 +53,8 @@ func (c ApiReleaseClient) WorkspaceApiReleaseUpdate(ctx context.Context, id ApiR http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apirevision/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/apirevision/method_listbyservice.go index e36c5d7f3da..1f1a5af6d1d 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apirevision/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apirevision/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiRevisionClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiRevisionClient) ListByService(ctx context.Context, id ApiId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/revisions", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/revisions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apirevision/method_workspaceapirevisionlistbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/apirevision/method_workspaceapirevisionlistbyservice.go index 3a62da3498d..acc1134979b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apirevision/method_workspaceapirevisionlistbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apirevision/method_workspaceapirevisionlistbyservice.go @@ -58,6 +58,18 @@ func (o WorkspaceApiRevisionListByServiceOperationOptions) ToQuery() *client.Que return &out } +type WorkspaceApiRevisionListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiRevisionListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiRevisionListByService ... func (c ApiRevisionClient) WorkspaceApiRevisionListByService(ctx context.Context, id WorkspaceApiId, options WorkspaceApiRevisionListByServiceOperationOptions) (result WorkspaceApiRevisionListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiRevisionClient) WorkspaceApiRevisionListByService(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/revisions", id.ID()), OptionsObject: options, + Pager: &WorkspaceApiRevisionListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/revisions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apisbytag/method_apilistbytags.go b/resource-manager/apimanagement/2023-03-01-preview/apisbytag/method_apilistbytags.go index b2b72879a6c..913e89cf621 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apisbytag/method_apilistbytags.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apisbytag/method_apilistbytags.go @@ -62,6 +62,18 @@ func (o ApiListByTagsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ApiListByTagsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiListByTagsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApiListByTags ... func (c ApisByTagClient) ApiListByTags(ctx context.Context, id ServiceId, options ApiListByTagsOperationOptions) (result ApiListByTagsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ApisByTagClient) ApiListByTags(ctx context.Context, id ServiceId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apisByTags", id.ID()), OptionsObject: options, + Pager: &ApiListByTagsCustomPager{}, + Path: fmt.Sprintf("%s/apisByTags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apischema/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apischema/method_createorupdate.go index 6a065878b48..e9339741550 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apischema/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apischema/method_createorupdate.go @@ -58,8 +58,8 @@ func (c ApiSchemaClient) CreateOrUpdate(ctx context.Context, id ApiSchemaId, inp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apischema/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/apischema/method_delete.go index 6fab6914573..1e1272fa389 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apischema/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apischema/method_delete.go @@ -56,8 +56,8 @@ func (c ApiSchemaClient) Delete(ctx context.Context, id ApiSchemaId, options Del http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apischema/method_listbyapi.go b/resource-manager/apimanagement/2023-03-01-preview/apischema/method_listbyapi.go index dae4582b2c1..c3cb801dfce 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apischema/method_listbyapi.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apischema/method_listbyapi.go @@ -58,6 +58,18 @@ func (o ListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c ApiSchemaClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiSchemaClient) ListByApi(ctx context.Context, id ApiId, options ListBy http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &ListByApiCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apischema/method_workspaceapischemacreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apischema/method_workspaceapischemacreateorupdate.go index e7cf2f93895..5074609389e 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apischema/method_workspaceapischemacreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apischema/method_workspaceapischemacreateorupdate.go @@ -58,8 +58,8 @@ func (c ApiSchemaClient) WorkspaceApiSchemaCreateOrUpdate(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apischema/method_workspaceapischemadelete.go b/resource-manager/apimanagement/2023-03-01-preview/apischema/method_workspaceapischemadelete.go index fb701fe8ab0..f5c12caff48 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apischema/method_workspaceapischemadelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apischema/method_workspaceapischemadelete.go @@ -56,8 +56,8 @@ func (c ApiSchemaClient) WorkspaceApiSchemaDelete(ctx context.Context, id Worksp http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apischema/method_workspaceapischemalistbyapi.go b/resource-manager/apimanagement/2023-03-01-preview/apischema/method_workspaceapischemalistbyapi.go index 64a31aa7465..df9c59dfaf8 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apischema/method_workspaceapischemalistbyapi.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apischema/method_workspaceapischemalistbyapi.go @@ -58,6 +58,18 @@ func (o WorkspaceApiSchemaListByApiOperationOptions) ToQuery() *client.QueryPara return &out } +type WorkspaceApiSchemaListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiSchemaListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiSchemaListByApi ... func (c ApiSchemaClient) WorkspaceApiSchemaListByApi(ctx context.Context, id WorkspaceApiId, options WorkspaceApiSchemaListByApiOperationOptions) (result WorkspaceApiSchemaListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiSchemaClient) WorkspaceApiSchemaListByApi(ctx context.Context, id Wor http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &WorkspaceApiSchemaListByApiCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apitag/method_taglistbyapi.go b/resource-manager/apimanagement/2023-03-01-preview/apitag/method_taglistbyapi.go index 664514169cd..5c2639c91e3 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apitag/method_taglistbyapi.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apitag/method_taglistbyapi.go @@ -58,6 +58,18 @@ func (o TagListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type TagListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TagListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TagListByApi ... func (c ApiTagClient) TagListByApi(ctx context.Context, id ApiId, options TagListByApiOperationOptions) (result TagListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiTagClient) TagListByApi(ctx context.Context, id ApiId, options TagLis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tags", id.ID()), OptionsObject: options, + Pager: &TagListByApiCustomPager{}, + Path: fmt.Sprintf("%s/tags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apitagdescription/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apitagdescription/method_createorupdate.go index c21169c7fd4..11d74115f05 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apitagdescription/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apitagdescription/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiTagDescriptionClient) CreateOrUpdate(ctx context.Context, id TagDescr http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apitagdescription/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/apitagdescription/method_delete.go index bc50e1495af..2ac6057d339 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apitagdescription/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apitagdescription/method_delete.go @@ -53,8 +53,8 @@ func (c ApiTagDescriptionClient) Delete(ctx context.Context, id TagDescriptionId http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apitagdescription/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/apitagdescription/method_listbyservice.go index c24723ee521..6a36cd97456 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apitagdescription/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apitagdescription/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiTagDescriptionClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiTagDescriptionClient) ListByService(ctx context.Context, id ApiId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tagDescriptions", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tagDescriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_createorupdate.go index 71c4d4bcfe7..2d070fcbf91 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiVersionSetClient) CreateOrUpdate(ctx context.Context, id ApiVersionSe http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_listbyservice.go index 82cc15a6911..0f44e4d938d 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiVersionSetClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiVersionSetClient) ListByService(ctx context.Context, id ServiceId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apiVersionSets", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apiVersionSets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_update.go index 00692270d0e..97fce9046f6 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_update.go @@ -53,8 +53,8 @@ func (c ApiVersionSetClient) Update(ctx context.Context, id ApiVersionSetId, inp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go index 98d1b903ea6..0fde6db7b9f 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go @@ -54,8 +54,8 @@ func (c ApiVersionSetClient) WorkspaceApiVersionSetCreateOrUpdate(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go index b9d771dbab8..e65dc1b5956 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go @@ -58,6 +58,18 @@ func (o WorkspaceApiVersionSetListByServiceOperationOptions) ToQuery() *client.Q return &out } +type WorkspaceApiVersionSetListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiVersionSetListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiVersionSetListByService ... func (c ApiVersionSetClient) WorkspaceApiVersionSetListByService(ctx context.Context, id WorkspaceId, options WorkspaceApiVersionSetListByServiceOperationOptions) (result WorkspaceApiVersionSetListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiVersionSetClient) WorkspaceApiVersionSetListByService(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apiVersionSets", id.ID()), OptionsObject: options, + Pager: &WorkspaceApiVersionSetListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apiVersionSets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_workspaceapiversionsetupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_workspaceapiversionsetupdate.go index 603ba78f5f3..dda3ecdb80b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_workspaceapiversionsetupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiversionset/method_workspaceapiversionsetupdate.go @@ -53,8 +53,8 @@ func (c ApiVersionSetClient) WorkspaceApiVersionSetUpdate(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiversionsets/method_apiversionsetdelete.go b/resource-manager/apimanagement/2023-03-01-preview/apiversionsets/method_apiversionsetdelete.go index f50800347d8..1d2948225c9 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiversionsets/method_apiversionsetdelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiversionsets/method_apiversionsetdelete.go @@ -53,8 +53,8 @@ func (c ApiVersionSetsClient) ApiVersionSetDelete(ctx context.Context, id ApiVer http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go b/resource-manager/apimanagement/2023-03-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go index bdf9b33a712..bef988a2083 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go @@ -53,8 +53,8 @@ func (c ApiVersionSetsClient) WorkspaceApiVersionSetDelete(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_createorupdate.go index 0b50ec66eba..4004fddb029 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiWikiClient) CreateOrUpdate(ctx context.Context, id ApiId, input WikiC http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_delete.go index 74d9f29868e..62f6f711cde 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_delete.go @@ -53,8 +53,8 @@ func (c ApiWikiClient) Delete(ctx context.Context, id ApiId, options DeleteOpera http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_list.go b/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_list.go index 99a8edfd4f1..aee5fc272ef 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_list.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApiWikiClient) List(ctx context.Context, id ApiId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiWikiClient) List(ctx context.Context, id ApiId, options ListOperation http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/wikis", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/wikis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_update.go index 9aa1b019473..d3c1ff6bdaf 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/apiwiki/method_update.go @@ -53,8 +53,8 @@ func (c ApiWikiClient) Update(ctx context.Context, id ApiId, input WikiUpdateCon http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/authorization/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/authorization/method_createorupdate.go index 6df164a6dc0..de6586fe052 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/authorization/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/authorization/method_createorupdate.go @@ -54,8 +54,8 @@ func (c AuthorizationClient) CreateOrUpdate(ctx context.Context, id Authorizatio http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/authorization/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/authorization/method_delete.go index 4e593e93d69..9595882688b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/authorization/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/authorization/method_delete.go @@ -53,8 +53,8 @@ func (c AuthorizationClient) Delete(ctx context.Context, id AuthorizationId, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/authorizationaccesspolicy/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/authorizationaccesspolicy/method_createorupdate.go index 922837e981a..346e394cab1 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/authorizationaccesspolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/authorizationaccesspolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c AuthorizationAccessPolicyClient) CreateOrUpdate(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/authorizationaccesspolicy/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/authorizationaccesspolicy/method_delete.go index 59c5782e01d..3d067c9cc2b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/authorizationaccesspolicy/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/authorizationaccesspolicy/method_delete.go @@ -53,8 +53,8 @@ func (c AuthorizationAccessPolicyClient) Delete(ctx context.Context, id AccessPo http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/authorizationaccesspolicy/method_listbyauthorization.go b/resource-manager/apimanagement/2023-03-01-preview/authorizationaccesspolicy/method_listbyauthorization.go index e58a6d8047a..3a1d919d552 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/authorizationaccesspolicy/method_listbyauthorization.go +++ b/resource-manager/apimanagement/2023-03-01-preview/authorizationaccesspolicy/method_listbyauthorization.go @@ -58,6 +58,18 @@ func (o ListByAuthorizationOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAuthorizationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAuthorizationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAuthorization ... func (c AuthorizationAccessPolicyClient) ListByAuthorization(ctx context.Context, id AuthorizationId, options ListByAuthorizationOperationOptions) (result ListByAuthorizationOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c AuthorizationAccessPolicyClient) ListByAuthorization(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/accessPolicies", id.ID()), OptionsObject: options, + Pager: &ListByAuthorizationCustomPager{}, + Path: fmt.Sprintf("%s/accessPolicies", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/authorizationprovider/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/authorizationprovider/method_createorupdate.go index 6cbc899e40f..f516f5c677f 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/authorizationprovider/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/authorizationprovider/method_createorupdate.go @@ -54,8 +54,8 @@ func (c AuthorizationProviderClient) CreateOrUpdate(ctx context.Context, id Auth http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/authorizationprovider/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/authorizationprovider/method_delete.go index 29ff97189f8..0c0c82a4e01 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/authorizationprovider/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/authorizationprovider/method_delete.go @@ -53,8 +53,8 @@ func (c AuthorizationProviderClient) Delete(ctx context.Context, id Authorizatio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/authorizationprovider/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/authorizationprovider/method_listbyservice.go index aaf6185de74..8e28a4d589e 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/authorizationprovider/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/authorizationprovider/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c AuthorizationProviderClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c AuthorizationProviderClient) ListByService(ctx context.Context, id Servi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/authorizationProviders", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/authorizationProviders", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/authorizations/method_authorizationlistbyauthorizationprovider.go b/resource-manager/apimanagement/2023-03-01-preview/authorizations/method_authorizationlistbyauthorizationprovider.go index 069ef73ac73..61659c7182f 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/authorizations/method_authorizationlistbyauthorizationprovider.go +++ b/resource-manager/apimanagement/2023-03-01-preview/authorizations/method_authorizationlistbyauthorizationprovider.go @@ -58,6 +58,18 @@ func (o AuthorizationListByAuthorizationProviderOperationOptions) ToQuery() *cli return &out } +type AuthorizationListByAuthorizationProviderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AuthorizationListByAuthorizationProviderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AuthorizationListByAuthorizationProvider ... func (c AuthorizationsClient) AuthorizationListByAuthorizationProvider(ctx context.Context, id AuthorizationProviderId, options AuthorizationListByAuthorizationProviderOperationOptions) (result AuthorizationListByAuthorizationProviderOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c AuthorizationsClient) AuthorizationListByAuthorizationProvider(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/authorizations", id.ID()), OptionsObject: options, + Pager: &AuthorizationListByAuthorizationProviderCustomPager{}, + Path: fmt.Sprintf("%s/authorizations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_createorupdate.go index 829a1d5fea6..ef58fe9a05f 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_createorupdate.go @@ -54,8 +54,8 @@ func (c AuthorizationServerClient) CreateOrUpdate(ctx context.Context, id Author http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_delete.go index ad1674315f1..a307aa17d3f 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_delete.go @@ -53,8 +53,8 @@ func (c AuthorizationServerClient) Delete(ctx context.Context, id AuthorizationS http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_listbyservice.go index 57a60560fcb..ae4ad390656 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c AuthorizationServerClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c AuthorizationServerClient) ListByService(ctx context.Context, id Service http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/authorizationServers", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/authorizationServers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_update.go index 7d4ff9e27e5..686f7550e4d 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/authorizationserver/method_update.go @@ -53,8 +53,8 @@ func (c AuthorizationServerClient) Update(ctx context.Context, id AuthorizationS http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/backend/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/backend/method_createorupdate.go index 4e71e305e80..876a39e1fb9 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/backend/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/backend/method_createorupdate.go @@ -54,8 +54,8 @@ func (c BackendClient) CreateOrUpdate(ctx context.Context, id BackendId, input B http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/backend/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/backend/method_delete.go index a8e6a5ab37b..f71fa94d865 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/backend/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/backend/method_delete.go @@ -53,8 +53,8 @@ func (c BackendClient) Delete(ctx context.Context, id BackendId, options DeleteO http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/backend/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/backend/method_listbyservice.go index b548349e214..f8c5b6daf2a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/backend/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/backend/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c BackendClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c BackendClient) ListByService(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/backends", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/backends", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/backend/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/backend/method_update.go index 97185a514fe..3c102cf0e80 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/backend/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/backend/method_update.go @@ -53,8 +53,8 @@ func (c BackendClient) Update(ctx context.Context, id BackendId, input BackendUp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/cache/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/cache/method_createorupdate.go index b4db4020b21..26ef5edfcc7 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/cache/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/cache/method_createorupdate.go @@ -54,8 +54,8 @@ func (c CacheClient) CreateOrUpdate(ctx context.Context, id CacheId, input Cache http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/cache/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/cache/method_delete.go index 4409902bb76..511791374c6 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/cache/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/cache/method_delete.go @@ -53,8 +53,8 @@ func (c CacheClient) Delete(ctx context.Context, id CacheId, options DeleteOpera http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/cache/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/cache/method_listbyservice.go index 39f7805d8e3..29189620638 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/cache/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/cache/method_listbyservice.go @@ -54,6 +54,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c CacheClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c CacheClient) ListByService(ctx context.Context, id ServiceId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/caches", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/caches", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/cache/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/cache/method_update.go index 6296cdf9b2c..9388cab550d 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/cache/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/cache/method_update.go @@ -53,8 +53,8 @@ func (c CacheClient) Update(ctx context.Context, id CacheId, input CacheUpdatePa http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/certificate/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/certificate/method_createorupdate.go index 0476a329804..823d71d3e64 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/certificate/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/certificate/method_createorupdate.go @@ -54,8 +54,8 @@ func (c CertificateClient) CreateOrUpdate(ctx context.Context, id CertificateId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/certificate/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/certificate/method_delete.go index 18be0e732de..6c0ded0942d 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/certificate/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/certificate/method_delete.go @@ -53,8 +53,8 @@ func (c CertificateClient) Delete(ctx context.Context, id CertificateId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/certificate/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/certificate/method_listbyservice.go index 7b01403347d..9f45a52fd7c 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/certificate/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/certificate/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c CertificateClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c CertificateClient) ListByService(ctx context.Context, id ServiceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/certificates", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/certificates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/contenttype/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/contenttype/method_createorupdate.go index 71ddbe34c69..d1a48e0857c 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/contenttype/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/contenttype/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ContentTypeClient) CreateOrUpdate(ctx context.Context, id ContentTypeId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/contenttype/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/contenttype/method_delete.go index 5a87b291973..d3dc044bf5c 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/contenttype/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/contenttype/method_delete.go @@ -53,8 +53,8 @@ func (c ContentTypeClient) Delete(ctx context.Context, id ContentTypeId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/contenttype/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/contenttype/method_listbyservice.go index a24decc6d1b..e8b77a15ea7 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/contenttype/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/contenttype/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []ContentTypeContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ContentTypeClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContentTypeClient) ListByService(ctx context.Context, id ServiceId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/contentTypes", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/contenttypecontentitem/method_contentitemcreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/contenttypecontentitem/method_contentitemcreateorupdate.go index 664712ae813..c23ccc2fcb2 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/contenttypecontentitem/method_contentitemcreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/contenttypecontentitem/method_contentitemcreateorupdate.go @@ -54,8 +54,8 @@ func (c ContentTypeContentItemClient) ContentItemCreateOrUpdate(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/contenttypecontentitem/method_contentitemdelete.go b/resource-manager/apimanagement/2023-03-01-preview/contenttypecontentitem/method_contentitemdelete.go index 5b8b348a02c..ae0888ce9e8 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/contenttypecontentitem/method_contentitemdelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/contenttypecontentitem/method_contentitemdelete.go @@ -53,8 +53,8 @@ func (c ContentTypeContentItemClient) ContentItemDelete(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/contenttypecontentitem/method_contentitemlistbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/contenttypecontentitem/method_contentitemlistbyservice.go index c0e0f950a07..c9e59da0d4b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/contenttypecontentitem/method_contentitemlistbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/contenttypecontentitem/method_contentitemlistbyservice.go @@ -23,6 +23,18 @@ type ContentItemListByServiceCompleteResult struct { Items []ContentItemContract } +type ContentItemListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ContentItemListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ContentItemListByService ... func (c ContentTypeContentItemClient) ContentItemListByService(ctx context.Context, id ContentTypeId) (result ContentItemListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContentTypeContentItemClient) ContentItemListByService(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ContentItemListByServiceCustomPager{}, Path: fmt.Sprintf("%s/contentItems", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/delegationsettings/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/delegationsettings/method_createorupdate.go index c574f42d95e..194af96a592 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/delegationsettings/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/delegationsettings/method_createorupdate.go @@ -53,8 +53,8 @@ func (c DelegationSettingsClient) CreateOrUpdate(ctx context.Context, id Service http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/portalsettings/delegation", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/delegation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/delegationsettings/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/delegationsettings/method_update.go index 924b296b5fa..c010e8ee865 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/delegationsettings/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/delegationsettings/method_update.go @@ -52,8 +52,8 @@ func (c DelegationSettingsClient) Update(ctx context.Context, id ServiceId, inpu http.StatusNoContent, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/portalsettings/delegation", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/delegation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/deletedservice/method_listbysubscription.go b/resource-manager/apimanagement/2023-03-01-preview/deletedservice/method_listbysubscription.go index 6c0132f0445..5eed8b3bffd 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/deletedservice/method_listbysubscription.go +++ b/resource-manager/apimanagement/2023-03-01-preview/deletedservice/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DeletedServiceContract } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DeletedServiceClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeletedServiceClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiManagement/deletedServices", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_createorupdate.go index d420d7f7f4a..63709e2900a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_createorupdate.go @@ -54,8 +54,8 @@ func (c DiagnosticClient) CreateOrUpdate(ctx context.Context, id DiagnosticId, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_delete.go index 3cd08df2cd9..4f5b2bc7d55 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_delete.go @@ -53,8 +53,8 @@ func (c DiagnosticClient) Delete(ctx context.Context, id DiagnosticId, options D http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_listbyservice.go index 193f2227e7d..8f84fb8b874 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c DiagnosticClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c DiagnosticClient) ListByService(ctx context.Context, id ServiceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/diagnostics", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/diagnostics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_update.go index 1b400423529..a98dfa6617c 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/diagnostic/method_update.go @@ -53,8 +53,8 @@ func (c DiagnosticClient) Update(ctx context.Context, id DiagnosticId, input Dia http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_createorupdate.go index 3f5323e3fa2..dba91b12734 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_createorupdate.go @@ -54,8 +54,8 @@ func (c DocumentationResourceClient) CreateOrUpdate(ctx context.Context, id Docu http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_delete.go index 317039d8290..dc215c80397 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_delete.go @@ -53,8 +53,8 @@ func (c DocumentationResourceClient) Delete(ctx context.Context, id Documentatio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_listbyservice.go index d10bdea6a20..fd2023ee4d1 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c DocumentationResourceClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c DocumentationResourceClient) ListByService(ctx context.Context, id Servi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/documentations", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/documentations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_update.go index b86a8378a3e..74fdf96af9a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/documentationresource/method_update.go @@ -53,8 +53,8 @@ func (c DocumentationResourceClient) Update(ctx context.Context, id Documentatio http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/emailtemplate/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/emailtemplate/method_listbyservice.go index ae511a8e1a3..c18ee603b17 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/emailtemplate/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/emailtemplate/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c EmailTemplateClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c EmailTemplateClient) ListByService(ctx context.Context, id ServiceId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/templates", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/templates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/emailtemplates/method_emailtemplatecreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/emailtemplates/method_emailtemplatecreateorupdate.go index 5db20c4d21b..8f48b83acfd 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/emailtemplates/method_emailtemplatecreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/emailtemplates/method_emailtemplatecreateorupdate.go @@ -54,8 +54,8 @@ func (c EmailTemplatesClient) EmailTemplateCreateOrUpdate(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/emailtemplates/method_emailtemplatedelete.go b/resource-manager/apimanagement/2023-03-01-preview/emailtemplates/method_emailtemplatedelete.go index 0edd892ed23..3bea1260006 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/emailtemplates/method_emailtemplatedelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/emailtemplates/method_emailtemplatedelete.go @@ -53,8 +53,8 @@ func (c EmailTemplatesClient) EmailTemplateDelete(ctx context.Context, id Templa http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/emailtemplates/method_emailtemplateupdate.go b/resource-manager/apimanagement/2023-03-01-preview/emailtemplates/method_emailtemplateupdate.go index 6eea241be4a..6870b6a5cc8 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/emailtemplates/method_emailtemplateupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/emailtemplates/method_emailtemplateupdate.go @@ -53,8 +53,8 @@ func (c EmailTemplatesClient) EmailTemplateUpdate(ctx context.Context, id Templa http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/gateway/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/gateway/method_createorupdate.go index 59ae1f743ca..d73cce62328 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/gateway/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/gateway/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GatewayClient) CreateOrUpdate(ctx context.Context, id GatewayId, input G http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/gateway/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/gateway/method_delete.go index 34c8698ad34..a3e76d4da96 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/gateway/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/gateway/method_delete.go @@ -53,8 +53,8 @@ func (c GatewayClient) Delete(ctx context.Context, id GatewayId, options DeleteO http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/gateway/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/gateway/method_listbyservice.go index 4bfdcb926cf..182f1a1be3b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/gateway/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/gateway/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GatewayClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GatewayClient) ListByService(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/gateways", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/gateways", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/gateway/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/gateway/method_update.go index e627b60c153..2113086018c 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/gateway/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/gateway/method_update.go @@ -53,8 +53,8 @@ func (c GatewayClient) Update(ctx context.Context, id GatewayId, input GatewayCo http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/gatewayapi/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/gatewayapi/method_listbyservice.go index 7c280966f74..0babf1b2093 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/gatewayapi/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/gatewayapi/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GatewayApiClient) ListByService(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GatewayApiClient) ListByService(ctx context.Context, id GatewayId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apis", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/gatewaycertificateauthority/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/gatewaycertificateauthority/method_createorupdate.go index b90a741574b..421099fff39 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/gatewaycertificateauthority/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/gatewaycertificateauthority/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GatewayCertificateAuthorityClient) CreateOrUpdate(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/gatewaycertificateauthority/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/gatewaycertificateauthority/method_delete.go index ee1deb63010..a6b9d901d6b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/gatewaycertificateauthority/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/gatewaycertificateauthority/method_delete.go @@ -53,8 +53,8 @@ func (c GatewayCertificateAuthorityClient) Delete(ctx context.Context, id Certif http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/gatewaycertificateauthority/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/gatewaycertificateauthority/method_listbyservice.go index a52949d34f2..c1b242e9166 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/gatewaycertificateauthority/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/gatewaycertificateauthority/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GatewayCertificateAuthorityClient) ListByService(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GatewayCertificateAuthorityClient) ListByService(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/certificateAuthorities", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/certificateAuthorities", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/gatewayhostnameconfiguration/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/gatewayhostnameconfiguration/method_createorupdate.go index 479612244ec..81fc99af124 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/gatewayhostnameconfiguration/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/gatewayhostnameconfiguration/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GatewayHostnameConfigurationClient) CreateOrUpdate(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/gatewayhostnameconfiguration/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/gatewayhostnameconfiguration/method_delete.go index d36e0d55e20..0964c8fdc78 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/gatewayhostnameconfiguration/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/gatewayhostnameconfiguration/method_delete.go @@ -53,8 +53,8 @@ func (c GatewayHostnameConfigurationClient) Delete(ctx context.Context, id Hostn http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/gatewayhostnameconfiguration/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/gatewayhostnameconfiguration/method_listbyservice.go index 2015a5312d8..619bbf3fcd1 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/gatewayhostnameconfiguration/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/gatewayhostnameconfiguration/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GatewayHostnameConfigurationClient) ListByService(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GatewayHostnameConfigurationClient) ListByService(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/hostnameConfigurations", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/hostnameConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_createorupdate.go index f7d8ee0c5db..7860204fd3c 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GraphQLApiResolverClient) CreateOrUpdate(ctx context.Context, id Resolve http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_delete.go index 8cc0fdc47a5..914915dc4d6 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_delete.go @@ -53,8 +53,8 @@ func (c GraphQLApiResolverClient) Delete(ctx context.Context, id ResolverId, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_listbyapi.go b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_listbyapi.go index a96fdfdc56a..5ce194fb6df 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_listbyapi.go +++ b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_listbyapi.go @@ -58,6 +58,18 @@ func (o ListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c GraphQLApiResolverClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GraphQLApiResolverClient) ListByApi(ctx context.Context, id ApiId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resolvers", id.ID()), OptionsObject: options, + Pager: &ListByApiCustomPager{}, + Path: fmt.Sprintf("%s/resolvers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_update.go index ca10767f59d..3fa45e6fa93 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolver/method_update.go @@ -53,8 +53,8 @@ func (c GraphQLApiResolverClient) Update(ctx context.Context, id ResolverId, inp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_createorupdate.go index eb30df860b1..c349e81087a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GraphQLApiResolverPolicyClient) CreateOrUpdate(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_delete.go index 5e547dd0eb1..619ea1f6171 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_delete.go @@ -53,8 +53,8 @@ func (c GraphQLApiResolverPolicyClient) Delete(ctx context.Context, id ResolverI http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_get.go b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_get.go index fab40154579..4e49bd17793 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_get.go +++ b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_get.go @@ -53,8 +53,8 @@ func (c GraphQLApiResolverPolicyClient) Get(ctx context.Context, id ResolverId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_listbyresolver.go b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_listbyresolver.go index 633a6789fc7..afed3381e23 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_listbyresolver.go +++ b/resource-manager/apimanagement/2023-03-01-preview/graphqlapiresolverpolicy/method_listbyresolver.go @@ -23,6 +23,18 @@ type ListByResolverCompleteResult struct { Items []PolicyContract } +type ListByResolverCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResolverCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResolver ... func (c GraphQLApiResolverPolicyClient) ListByResolver(ctx context.Context, id ResolverId) (result ListByResolverOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GraphQLApiResolverPolicyClient) ListByResolver(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResolverCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/group/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/group/method_createorupdate.go index 3767fd421bc..e8b639dbe8b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/group/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/group/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GroupClient) CreateOrUpdate(ctx context.Context, id GroupId, input Group http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/group/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/group/method_delete.go index 8bd332e45a2..b7358fde533 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/group/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/group/method_delete.go @@ -53,8 +53,8 @@ func (c GroupClient) Delete(ctx context.Context, id GroupId, options DeleteOpera http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/group/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/group/method_listbyservice.go index e653a1e0587..4f8da96ef4a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/group/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/group/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GroupClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GroupClient) ListByService(ctx context.Context, id ServiceId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groups", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/groups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/group/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/group/method_update.go index 5c45092a61d..70066730bb1 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/group/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/group/method_update.go @@ -53,8 +53,8 @@ func (c GroupClient) Update(ctx context.Context, id GroupId, input GroupUpdatePa http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegroupcreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegroupcreateorupdate.go index b93dcb01655..5ad40a08c47 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegroupcreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegroupcreateorupdate.go @@ -54,8 +54,8 @@ func (c GroupClient) WorkspaceGroupCreateOrUpdate(ctx context.Context, id Worksp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegroupdelete.go b/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegroupdelete.go index 2033591d7a3..949a8cb1846 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegroupdelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegroupdelete.go @@ -53,8 +53,8 @@ func (c GroupClient) WorkspaceGroupDelete(ctx context.Context, id WorkspaceGroup http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegrouplistbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegrouplistbyservice.go index f1af44c3dc8..2aa11bf1959 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegrouplistbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegrouplistbyservice.go @@ -58,6 +58,18 @@ func (o WorkspaceGroupListByServiceOperationOptions) ToQuery() *client.QueryPara return &out } +type WorkspaceGroupListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceGroupListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceGroupListByService ... func (c GroupClient) WorkspaceGroupListByService(ctx context.Context, id WorkspaceId, options WorkspaceGroupListByServiceOperationOptions) (result WorkspaceGroupListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GroupClient) WorkspaceGroupListByService(ctx context.Context, id Workspa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groups", id.ID()), OptionsObject: options, + Pager: &WorkspaceGroupListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/groups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegroupupdate.go b/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegroupupdate.go index a0e5be34664..6e246635560 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegroupupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/group/method_workspacegroupupdate.go @@ -53,8 +53,8 @@ func (c GroupClient) WorkspaceGroupUpdate(ctx context.Context, id WorkspaceGroup http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/groupuser/method_list.go b/resource-manager/apimanagement/2023-03-01-preview/groupuser/method_list.go index 7078af429f4..b2f4d682063 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/groupuser/method_list.go +++ b/resource-manager/apimanagement/2023-03-01-preview/groupuser/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GroupUserClient) List(ctx context.Context, id GroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GroupUserClient) List(ctx context.Context, id GroupId, options ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/users", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/users", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/groupuser/method_workspacegroupuserlist.go b/resource-manager/apimanagement/2023-03-01-preview/groupuser/method_workspacegroupuserlist.go index 11da3345479..c4e2a527039 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/groupuser/method_workspacegroupuserlist.go +++ b/resource-manager/apimanagement/2023-03-01-preview/groupuser/method_workspacegroupuserlist.go @@ -58,6 +58,18 @@ func (o WorkspaceGroupUserListOperationOptions) ToQuery() *client.QueryParams { return &out } +type WorkspaceGroupUserListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceGroupUserListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceGroupUserList ... func (c GroupUserClient) WorkspaceGroupUserList(ctx context.Context, id WorkspaceGroupId, options WorkspaceGroupUserListOperationOptions) (result WorkspaceGroupUserListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GroupUserClient) WorkspaceGroupUserList(ctx context.Context, id Workspac http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/users", id.ID()), OptionsObject: options, + Pager: &WorkspaceGroupUserListCustomPager{}, + Path: fmt.Sprintf("%s/users", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_createorupdate.go index c18cdcc3186..834adf0fae9 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_createorupdate.go @@ -54,8 +54,8 @@ func (c IdentityProviderClient) CreateOrUpdate(ctx context.Context, id IdentityP http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_delete.go index ff4f9cee7c4..825d432de2b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_delete.go @@ -53,8 +53,8 @@ func (c IdentityProviderClient) Delete(ctx context.Context, id IdentityProviderI http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_listbyservice.go index badc7b19f13..25e8a873460 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []IdentityProviderContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c IdentityProviderClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IdentityProviderClient) ListByService(ctx context.Context, id ServiceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/identityProviders", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_update.go index 05c072adbd7..ac8db539b33 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/identityprovider/method_update.go @@ -53,8 +53,8 @@ func (c IdentityProviderClient) Update(ctx context.Context, id IdentityProviderI http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/issue/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/issue/method_listbyservice.go index f9602411ca6..bdf1aa92398 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/issue/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/issue/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c IssueClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IssueClient) ListByService(ctx context.Context, id ServiceId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/issues", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/issues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/logger/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/logger/method_createorupdate.go index da6916ba08a..b1a476b3cf9 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/logger/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/logger/method_createorupdate.go @@ -54,8 +54,8 @@ func (c LoggerClient) CreateOrUpdate(ctx context.Context, id LoggerId, input Log http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/logger/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/logger/method_delete.go index 9a3b1b42ad9..d1edc7304d6 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/logger/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/logger/method_delete.go @@ -53,8 +53,8 @@ func (c LoggerClient) Delete(ctx context.Context, id LoggerId, options DeleteOpe http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/logger/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/logger/method_listbyservice.go index 7ecf48a848a..3765ffa1f12 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/logger/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/logger/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c LoggerClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c LoggerClient) ListByService(ctx context.Context, id ServiceId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/loggers", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/loggers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/logger/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/logger/method_update.go index ae89fc7a148..e7491dd03c2 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/logger/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/logger/method_update.go @@ -53,8 +53,8 @@ func (c LoggerClient) Update(ctx context.Context, id LoggerId, input LoggerUpdat http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_createorupdate.go index 52b8a8da4f1..85ad5426efe 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_createorupdate.go @@ -58,8 +58,8 @@ func (c NamedValueClient) CreateOrUpdate(ctx context.Context, id NamedValueId, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_delete.go index 82bbf62ac51..f47f9ad5955 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_delete.go @@ -53,8 +53,8 @@ func (c NamedValueClient) Delete(ctx context.Context, id NamedValueId, options D http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_listbyservice.go index fd10b0b4a15..c484c236266 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c NamedValueClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c NamedValueClient) ListByService(ctx context.Context, id ServiceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/namedValues", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/namedValues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_update.go index 2ca7cac78e1..0bb9dff4811 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_update.go @@ -57,8 +57,8 @@ func (c NamedValueClient) Update(ctx context.Context, id NamedValueId, input Nam http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go index 376ae854f06..52eaa05d759 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go @@ -58,8 +58,8 @@ func (c NamedValueClient) WorkspaceNamedValueCreateOrUpdate(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvaluedelete.go b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvaluedelete.go index 2484ce43aa1..7d05e234c48 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvaluedelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvaluedelete.go @@ -53,8 +53,8 @@ func (c NamedValueClient) WorkspaceNamedValueDelete(ctx context.Context, id Work http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go index 9da210e6130..87a17e3f92f 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go @@ -62,6 +62,18 @@ func (o WorkspaceNamedValueListByServiceOperationOptions) ToQuery() *client.Quer return &out } +type WorkspaceNamedValueListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceNamedValueListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceNamedValueListByService ... func (c NamedValueClient) WorkspaceNamedValueListByService(ctx context.Context, id WorkspaceId, options WorkspaceNamedValueListByServiceOperationOptions) (result WorkspaceNamedValueListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c NamedValueClient) WorkspaceNamedValueListByService(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/namedValues", id.ID()), OptionsObject: options, + Pager: &WorkspaceNamedValueListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/namedValues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvalueupdate.go b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvalueupdate.go index 472ac0b96e7..2767761302a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvalueupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/namedvalue/method_workspacenamedvalueupdate.go @@ -57,8 +57,8 @@ func (c NamedValueClient) WorkspaceNamedValueUpdate(ctx context.Context, id Work http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/notification/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/notification/method_createorupdate.go index 3f574185235..f66ed7aa163 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/notification/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/notification/method_createorupdate.go @@ -53,8 +53,8 @@ func (c NotificationClient) CreateOrUpdate(ctx context.Context, id NotificationI http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/notification/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/notification/method_listbyservice.go index 974405063c3..b8f071f58f8 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/notification/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/notification/method_listbyservice.go @@ -54,6 +54,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c NotificationClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c NotificationClient) ListByService(ctx context.Context, id ServiceId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/notifications", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/notifications", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/notification/method_workspacenotificationcreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/notification/method_workspacenotificationcreateorupdate.go index a5e04dfec9d..f9129556c8d 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/notification/method_workspacenotificationcreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/notification/method_workspacenotificationcreateorupdate.go @@ -53,8 +53,8 @@ func (c NotificationClient) WorkspaceNotificationCreateOrUpdate(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/notification/method_workspacenotificationlistbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/notification/method_workspacenotificationlistbyservice.go index 0e7ef686ede..9c9bdd761b7 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/notification/method_workspacenotificationlistbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/notification/method_workspacenotificationlistbyservice.go @@ -54,6 +54,18 @@ func (o WorkspaceNotificationListByServiceOperationOptions) ToQuery() *client.Qu return &out } +type WorkspaceNotificationListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceNotificationListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceNotificationListByService ... func (c NotificationClient) WorkspaceNotificationListByService(ctx context.Context, id WorkspaceId, options WorkspaceNotificationListByServiceOperationOptions) (result WorkspaceNotificationListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c NotificationClient) WorkspaceNotificationListByService(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/notifications", id.ID()), OptionsObject: options, + Pager: &WorkspaceNotificationListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/notifications", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientemail/method_listbynotification.go b/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientemail/method_listbynotification.go index 14e42e1fd39..8b4a8334e42 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientemail/method_listbynotification.go +++ b/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientemail/method_listbynotification.go @@ -23,6 +23,18 @@ type ListByNotificationCompleteResult struct { Items []RecipientEmailContract } +type ListByNotificationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNotificationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNotification ... func (c NotificationRecipientEmailClient) ListByNotification(ctx context.Context, id NotificationId) (result ListByNotificationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NotificationRecipientEmailClient) ListByNotification(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByNotificationCustomPager{}, Path: fmt.Sprintf("%s/recipientEmails", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go b/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go index b051b461b2f..42575e8657e 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go +++ b/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go @@ -23,6 +23,18 @@ type WorkspaceNotificationRecipientEmailListByNotificationCompleteResult struct Items []RecipientEmailContract } +type WorkspaceNotificationRecipientEmailListByNotificationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceNotificationRecipientEmailListByNotificationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceNotificationRecipientEmailListByNotification ... func (c NotificationRecipientEmailClient) WorkspaceNotificationRecipientEmailListByNotification(ctx context.Context, id NotificationNotificationId) (result WorkspaceNotificationRecipientEmailListByNotificationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NotificationRecipientEmailClient) WorkspaceNotificationRecipientEmailLis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceNotificationRecipientEmailListByNotificationCustomPager{}, Path: fmt.Sprintf("%s/recipientEmails", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientuser/method_listbynotification.go b/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientuser/method_listbynotification.go index 847eb047a9e..c5c24a45310 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientuser/method_listbynotification.go +++ b/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientuser/method_listbynotification.go @@ -23,6 +23,18 @@ type ListByNotificationCompleteResult struct { Items []RecipientUserContract } +type ListByNotificationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNotificationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNotification ... func (c NotificationRecipientUserClient) ListByNotification(ctx context.Context, id NotificationId) (result ListByNotificationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NotificationRecipientUserClient) ListByNotification(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByNotificationCustomPager{}, Path: fmt.Sprintf("%s/recipientUsers", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go b/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go index 31b6b1d3cf2..0665d50ca9c 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go +++ b/resource-manager/apimanagement/2023-03-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go @@ -23,6 +23,18 @@ type WorkspaceNotificationRecipientUserListByNotificationCompleteResult struct { Items []RecipientUserContract } +type WorkspaceNotificationRecipientUserListByNotificationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceNotificationRecipientUserListByNotificationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceNotificationRecipientUserListByNotification ... func (c NotificationRecipientUserClient) WorkspaceNotificationRecipientUserListByNotification(ctx context.Context, id NotificationNotificationId) (result WorkspaceNotificationRecipientUserListByNotificationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NotificationRecipientUserClient) WorkspaceNotificationRecipientUserListB http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceNotificationRecipientUserListByNotificationCustomPager{}, Path: fmt.Sprintf("%s/recipientUsers", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_createorupdate.go index ff2b6f9a1da..ab5c53bdaa6 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_createorupdate.go @@ -54,8 +54,8 @@ func (c OpenidConnectProviderClient) CreateOrUpdate(ctx context.Context, id Open http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_delete.go index dd6f6bbf9c4..d434f5eff61 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_delete.go @@ -53,8 +53,8 @@ func (c OpenidConnectProviderClient) Delete(ctx context.Context, id OpenidConnec http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_listbyservice.go index 77de74db966..a4b2de8c3dc 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c OpenidConnectProviderClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c OpenidConnectProviderClient) ListByService(ctx context.Context, id Servi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/openidConnectProviders", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/openidConnectProviders", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_update.go index 92e492d4a4b..fc095d745c7 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/openidconnectprovider/method_update.go @@ -53,8 +53,8 @@ func (c OpenidConnectProviderClient) Update(ctx context.Context, id OpenidConnec http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/outboundnetworkdependenciesendpoints/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/outboundnetworkdependenciesendpoints/method_listbyservice.go index e1d09a514e4..5857b50c144 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/outboundnetworkdependenciesendpoints/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/outboundnetworkdependenciesendpoints/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c OutboundNetworkDependenciesEndpointsClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c OutboundNetworkDependenciesEndpointsClient) ListByService(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/policy/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/policy/method_createorupdate.go index 369dcde43da..3bfe1519731 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policy/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c PolicyClient) CreateOrUpdate(ctx context.Context, id ServiceId, input Po http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/policy/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/policy/method_delete.go index 4ddd78e13cb..4b39d1a4a2d 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policy/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policy/method_delete.go @@ -53,8 +53,8 @@ func (c PolicyClient) Delete(ctx context.Context, id ServiceId, options DeleteOp http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/policy/method_get.go b/resource-manager/apimanagement/2023-03-01-preview/policy/method_get.go index 9041e2d613d..5a9a428f5ec 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policy/method_get.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policy/method_get.go @@ -53,8 +53,8 @@ func (c PolicyClient) Get(ctx context.Context, id ServiceId, options GetOperatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/policy/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/policy/method_listbyservice.go index 204ece0d797..9a51b88a353 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policy/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policy/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []PolicyContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c PolicyClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PolicyClient) ListByService(ctx context.Context, id ServiceId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/policydescription/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/policydescription/method_listbyservice.go index e6df482c4e6..cb12120f377 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policydescription/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policydescription/method_listbyservice.go @@ -53,8 +53,8 @@ func (c PolicyDescriptionClient) ListByService(ctx context.Context, id ServiceId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policyDescriptions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policyDescriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_createorupdate.go index ce208c343bf..03cb7db852a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_createorupdate.go @@ -58,8 +58,8 @@ func (c PolicyFragmentClient) CreateOrUpdate(ctx context.Context, id PolicyFragm http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_delete.go index c64764861f9..8a0d95204ce 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_delete.go @@ -53,8 +53,8 @@ func (c PolicyFragmentClient) Delete(ctx context.Context, id PolicyFragmentId, o http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_get.go b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_get.go index 78657ce5b45..3aa646fafdd 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_get.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_get.go @@ -53,8 +53,8 @@ func (c PolicyFragmentClient) Get(ctx context.Context, id PolicyFragmentId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_listbyservice.go index 9bbcbeb4f39..e9fcb07b896 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c PolicyFragmentClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c PolicyFragmentClient) ListByService(ctx context.Context, id ServiceId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policyFragments", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/policyFragments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_listreferences.go b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_listreferences.go index d29481ce57a..37993c71c0d 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_listreferences.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_listreferences.go @@ -54,6 +54,18 @@ func (o ListReferencesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListReferencesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListReferencesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListReferences ... func (c PolicyFragmentClient) ListReferences(ctx context.Context, id PolicyFragmentId, options ListReferencesOperationOptions) (result ListReferencesOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c PolicyFragmentClient) ListReferences(ctx context.Context, id PolicyFragm http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listReferences", id.ID()), OptionsObject: options, + Pager: &ListReferencesCustomPager{}, + Path: fmt.Sprintf("%s/listReferences", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go index 06f63e725d6..1e5eb987d77 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go @@ -58,8 +58,8 @@ func (c PolicyFragmentClient) WorkspacePolicyFragmentCreateOrUpdate(ctx context. http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go index 581f75fe310..3c175e499a5 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go @@ -53,8 +53,8 @@ func (c PolicyFragmentClient) WorkspacePolicyFragmentDelete(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentget.go b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentget.go index 2eca6683374..24b3402ea1f 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentget.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentget.go @@ -53,8 +53,8 @@ func (c PolicyFragmentClient) WorkspacePolicyFragmentGet(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go index 8418f75a21d..601c1855d17 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go @@ -62,6 +62,18 @@ func (o WorkspacePolicyFragmentListByServiceOperationOptions) ToQuery() *client. return &out } +type WorkspacePolicyFragmentListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspacePolicyFragmentListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspacePolicyFragmentListByService ... func (c PolicyFragmentClient) WorkspacePolicyFragmentListByService(ctx context.Context, id WorkspaceId, options WorkspacePolicyFragmentListByServiceOperationOptions) (result WorkspacePolicyFragmentListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c PolicyFragmentClient) WorkspacePolicyFragmentListByService(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policyFragments", id.ID()), OptionsObject: options, + Pager: &WorkspacePolicyFragmentListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/policyFragments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go index 788d43dcd17..fca10ec83a6 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go +++ b/resource-manager/apimanagement/2023-03-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go @@ -54,6 +54,18 @@ func (o WorkspacePolicyFragmentListReferencesOperationOptions) ToQuery() *client return &out } +type WorkspacePolicyFragmentListReferencesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspacePolicyFragmentListReferencesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspacePolicyFragmentListReferences ... func (c PolicyFragmentClient) WorkspacePolicyFragmentListReferences(ctx context.Context, id WorkspacePolicyFragmentId, options WorkspacePolicyFragmentListReferencesOperationOptions) (result WorkspacePolicyFragmentListReferencesOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c PolicyFragmentClient) WorkspacePolicyFragmentListReferences(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listReferences", id.ID()), OptionsObject: options, + Pager: &WorkspacePolicyFragmentListReferencesCustomPager{}, + Path: fmt.Sprintf("%s/listReferences", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/portalconfig/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/portalconfig/method_createorupdate.go index 3e01073d885..94bdf726259 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/portalconfig/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/portalconfig/method_createorupdate.go @@ -53,8 +53,8 @@ func (c PortalConfigClient) CreateOrUpdate(ctx context.Context, id PortalConfigI http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/portalconfig/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/portalconfig/method_listbyservice.go index bdd5b87a042..0a0e1705d39 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/portalconfig/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/portalconfig/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []PortalConfigContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c PortalConfigClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PortalConfigClient) ListByService(ctx context.Context, id ServiceId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/portalConfigs", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/portalconfig/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/portalconfig/method_update.go index 80ecf21cd10..fce54b73ff3 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/portalconfig/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/portalconfig/method_update.go @@ -53,8 +53,8 @@ func (c PortalConfigClient) Update(ctx context.Context, id PortalConfigId, input http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/portalrevision/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/portalrevision/method_listbyservice.go index 35dca6c67c4..57df46678e2 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/portalrevision/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/portalrevision/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c PortalRevisionClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c PortalRevisionClient) ListByService(ctx context.Context, id ServiceId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/portalRevisions", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/portalRevisions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/portalrevision/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/portalrevision/method_update.go index ae5b10080b9..e3568960b04 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/portalrevision/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/portalrevision/method_update.go @@ -57,8 +57,8 @@ func (c PortalRevisionClient) Update(ctx context.Context, id PortalRevisionId, i http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/product/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/product/method_createorupdate.go index 7c22993b73c..2baf83fb505 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/product/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/product/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ProductClient) CreateOrUpdate(ctx context.Context, id ProductId, input P http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/product/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/product/method_delete.go index a2aebab1182..afc7d184b70 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/product/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/product/method_delete.go @@ -56,8 +56,8 @@ func (c ProductClient) Delete(ctx context.Context, id ProductId, options DeleteO http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/product/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/product/method_listbyservice.go index 0bb14d6d7a9..b1f50c8e42d 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/product/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/product/method_listbyservice.go @@ -66,6 +66,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ProductClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c ProductClient) ListByService(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/product/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/product/method_update.go index e0b361db676..fc36ecd5353 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/product/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/product/method_update.go @@ -53,8 +53,8 @@ func (c ProductClient) Update(ctx context.Context, id ProductId, input ProductUp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductcreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductcreateorupdate.go index 6bccd960e2d..af10ed64d9c 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductcreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductcreateorupdate.go @@ -54,8 +54,8 @@ func (c ProductClient) WorkspaceProductCreateOrUpdate(ctx context.Context, id Wo http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductdelete.go b/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductdelete.go index c4cb1b7678a..3bf8f536240 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductdelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductdelete.go @@ -56,8 +56,8 @@ func (c ProductClient) WorkspaceProductDelete(ctx context.Context, id WorkspaceP http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductlistbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductlistbyservice.go index 5efc91a5e83..457b9a161c9 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductlistbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductlistbyservice.go @@ -66,6 +66,18 @@ func (o WorkspaceProductListByServiceOperationOptions) ToQuery() *client.QueryPa return &out } +type WorkspaceProductListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceProductListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceProductListByService ... func (c ProductClient) WorkspaceProductListByService(ctx context.Context, id WorkspaceId, options WorkspaceProductListByServiceOperationOptions) (result WorkspaceProductListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c ProductClient) WorkspaceProductListByService(ctx context.Context, id Wor http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &WorkspaceProductListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductupdate.go b/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductupdate.go index 66164d213a4..e1305ecd777 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/product/method_workspaceproductupdate.go @@ -53,8 +53,8 @@ func (c ProductClient) WorkspaceProductUpdate(ctx context.Context, id WorkspaceP http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productapi/method_listbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/productapi/method_listbyproduct.go index b9f3331e327..c06016675dd 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productapi/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productapi/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ProductApiClient) ListByProduct(ctx context.Context, id ProductId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductApiClient) ListByProduct(ctx context.Context, id ProductId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apis", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/apis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productapilink/method_listbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/productapilink/method_listbyproduct.go index 2df2925b4c8..5992341c96a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productapilink/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productapilink/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ProductApiLinkClient) ListByProduct(ctx context.Context, id ProductId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductApiLinkClient) ListByProduct(ctx context.Context, id ProductId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apiLinks", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/apiLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productapilink/method_workspaceproductapilinklistbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/productapilink/method_workspaceproductapilinklistbyproduct.go index d16da97513e..ca1989e31ec 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productapilink/method_workspaceproductapilinklistbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productapilink/method_workspaceproductapilinklistbyproduct.go @@ -58,6 +58,18 @@ func (o WorkspaceProductApiLinkListByProductOperationOptions) ToQuery() *client. return &out } +type WorkspaceProductApiLinkListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceProductApiLinkListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceProductApiLinkListByProduct ... func (c ProductApiLinkClient) WorkspaceProductApiLinkListByProduct(ctx context.Context, id WorkspaceProductId, options WorkspaceProductApiLinkListByProductOperationOptions) (result WorkspaceProductApiLinkListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductApiLinkClient) WorkspaceProductApiLinkListByProduct(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apiLinks", id.ID()), OptionsObject: options, + Pager: &WorkspaceProductApiLinkListByProductCustomPager{}, + Path: fmt.Sprintf("%s/apiLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productgroup/method_listbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/productgroup/method_listbyproduct.go index aa9ed4b52ff..902f45c4f73 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productgroup/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productgroup/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ProductGroupClient) ListByProduct(ctx context.Context, id ProductId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductGroupClient) ListByProduct(ctx context.Context, id ProductId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groups", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/groups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productgrouplink/method_listbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/productgrouplink/method_listbyproduct.go index 74f5b35fae8..84edbb8b0f2 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productgrouplink/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productgrouplink/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ProductGroupLinkClient) ListByProduct(ctx context.Context, id ProductId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductGroupLinkClient) ListByProduct(ctx context.Context, id ProductId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groupLinks", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/groupLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productgrouplink/method_workspaceproductgrouplinklistbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/productgrouplink/method_workspaceproductgrouplinklistbyproduct.go index 69ffcb14f58..f337fc0d196 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productgrouplink/method_workspaceproductgrouplinklistbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productgrouplink/method_workspaceproductgrouplinklistbyproduct.go @@ -58,6 +58,18 @@ func (o WorkspaceProductGroupLinkListByProductOperationOptions) ToQuery() *clien return &out } +type WorkspaceProductGroupLinkListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceProductGroupLinkListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceProductGroupLinkListByProduct ... func (c ProductGroupLinkClient) WorkspaceProductGroupLinkListByProduct(ctx context.Context, id WorkspaceProductId, options WorkspaceProductGroupLinkListByProductOperationOptions) (result WorkspaceProductGroupLinkListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductGroupLinkClient) WorkspaceProductGroupLinkListByProduct(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groupLinks", id.ID()), OptionsObject: options, + Pager: &WorkspaceProductGroupLinkListByProductCustomPager{}, + Path: fmt.Sprintf("%s/groupLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_createorupdate.go index aae2081db15..923d04859e1 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ProductPolicyClient) CreateOrUpdate(ctx context.Context, id ProductId, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_delete.go index 09bc23bd22e..36e74215a96 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_delete.go @@ -53,8 +53,8 @@ func (c ProductPolicyClient) Delete(ctx context.Context, id ProductId, options D http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_get.go b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_get.go index a2d2298abf0..b96d87150c2 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_get.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_get.go @@ -53,8 +53,8 @@ func (c ProductPolicyClient) Get(ctx context.Context, id ProductId, options GetO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_listbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_listbyproduct.go index 4ce880151f5..ebb09de40c2 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_listbyproduct.go @@ -23,6 +23,18 @@ type ListByProductCompleteResult struct { Items []PolicyContract } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ProductPolicyClient) ListByProduct(ctx context.Context, id ProductId) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProductPolicyClient) ListByProduct(ctx context.Context, id ProductId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByProductCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go index f62639a8b62..9a55b9a739a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go @@ -54,8 +54,8 @@ func (c ProductPolicyClient) WorkspaceProductPolicyCreateOrUpdate(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicydelete.go b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicydelete.go index 37fc1543c89..a76872c52a7 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicydelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicydelete.go @@ -53,8 +53,8 @@ func (c ProductPolicyClient) WorkspaceProductPolicyDelete(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicyget.go b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicyget.go index 821d4c32228..cbd5809fb0e 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicyget.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicyget.go @@ -53,8 +53,8 @@ func (c ProductPolicyClient) WorkspaceProductPolicyGet(ctx context.Context, id W http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicylistbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicylistbyproduct.go index f21a4a427e0..e6db46320f2 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicylistbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productpolicy/method_workspaceproductpolicylistbyproduct.go @@ -23,6 +23,18 @@ type WorkspaceProductPolicyListByProductCompleteResult struct { Items []PolicyContract } +type WorkspaceProductPolicyListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceProductPolicyListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceProductPolicyListByProduct ... func (c ProductPolicyClient) WorkspaceProductPolicyListByProduct(ctx context.Context, id WorkspaceProductId) (result WorkspaceProductPolicyListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProductPolicyClient) WorkspaceProductPolicyListByProduct(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceProductPolicyListByProductCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/productsbytag/method_productlistbytags.go b/resource-manager/apimanagement/2023-03-01-preview/productsbytag/method_productlistbytags.go index a09abcae5db..8cffb9f2edb 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productsbytag/method_productlistbytags.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productsbytag/method_productlistbytags.go @@ -62,6 +62,18 @@ func (o ProductListByTagsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ProductListByTagsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProductListByTagsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProductListByTags ... func (c ProductsByTagClient) ProductListByTags(ctx context.Context, id ServiceId, options ProductListByTagsOperationOptions) (result ProductListByTagsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ProductsByTagClient) ProductListByTags(ctx context.Context, id ServiceId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/productsByTags", id.ID()), OptionsObject: options, + Pager: &ProductListByTagsCustomPager{}, + Path: fmt.Sprintf("%s/productsByTags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productsubscription/method_list.go b/resource-manager/apimanagement/2023-03-01-preview/productsubscription/method_list.go index b26024edaac..c71c7ba8260 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productsubscription/method_list.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productsubscription/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProductSubscriptionClient) List(ctx context.Context, id ProductId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductSubscriptionClient) List(ctx context.Context, id ProductId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/producttag/method_taglistbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/producttag/method_taglistbyproduct.go index a1f8fe9be8a..4e0721b94fc 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/producttag/method_taglistbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/producttag/method_taglistbyproduct.go @@ -58,6 +58,18 @@ func (o TagListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type TagListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TagListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TagListByProduct ... func (c ProductTagClient) TagListByProduct(ctx context.Context, id ProductId, options TagListByProductOperationOptions) (result TagListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductTagClient) TagListByProduct(ctx context.Context, id ProductId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tags", id.ID()), OptionsObject: options, + Pager: &TagListByProductCustomPager{}, + Path: fmt.Sprintf("%s/tags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_createorupdate.go index 109d86803ef..f794fc61c8a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ProductWikiClient) CreateOrUpdate(ctx context.Context, id ProductId, inp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_delete.go index f2b6e116ed7..0ccc22248a0 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_delete.go @@ -53,8 +53,8 @@ func (c ProductWikiClient) Delete(ctx context.Context, id ProductId, options Del http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_list.go b/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_list.go index 8ec9ce8ab8c..db26ef5879d 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_list.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProductWikiClient) List(ctx context.Context, id ProductId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductWikiClient) List(ctx context.Context, id ProductId, options ListO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/wikis", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/wikis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_update.go index 88bf6c7d30a..551aa6aab7a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/productwiki/method_update.go @@ -53,8 +53,8 @@ func (c ProductWikiClient) Update(ctx context.Context, id ProductId, input WikiU http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/quotabycounterkeys/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/quotabycounterkeys/method_listbyservice.go index 9baf2281113..bcc302ce38e 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/quotabycounterkeys/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/quotabycounterkeys/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []QuotaCounterContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c QuotaByCounterKeysClient) ListByService(ctx context.Context, id QuotaId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c QuotaByCounterKeysClient) ListByService(ctx context.Context, id QuotaId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/region/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/region/method_listbyservice.go index 57a1607f18f..5574a620a92 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/region/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/region/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []RegionContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c RegionClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RegionClient) ListByService(ctx context.Context, id ServiceId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/regions", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyapi.go b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyapi.go index b7ef8b0e3ab..e99479d8413 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyapi.go +++ b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyapi.go @@ -62,6 +62,18 @@ func (o ListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c ReportsClient) ListByApi(ctx context.Context, id ServiceId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListByApi(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byApi", id.ID()), OptionsObject: options, + Pager: &ListByApiCustomPager{}, + Path: fmt.Sprintf("%s/reports/byApi", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbygeo.go b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbygeo.go index 3983d75106f..1e69c1fb509 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbygeo.go +++ b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbygeo.go @@ -58,6 +58,18 @@ func (o ListByGeoOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByGeoCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGeoCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGeo ... func (c ReportsClient) ListByGeo(ctx context.Context, id ServiceId, options ListByGeoOperationOptions) (result ListByGeoOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReportsClient) ListByGeo(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byGeo", id.ID()), OptionsObject: options, + Pager: &ListByGeoCustomPager{}, + Path: fmt.Sprintf("%s/reports/byGeo", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyoperation.go b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyoperation.go index 19d88620d53..bb4465b0ce3 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyoperation.go +++ b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyoperation.go @@ -62,6 +62,18 @@ func (o ListByOperationOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByOperationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByOperationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByOperation ... func (c ReportsClient) ListByOperation(ctx context.Context, id ServiceId, options ListByOperationOperationOptions) (result ListByOperationOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListByOperation(ctx context.Context, id ServiceId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byOperation", id.ID()), OptionsObject: options, + Pager: &ListByOperationCustomPager{}, + Path: fmt.Sprintf("%s/reports/byOperation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyproduct.go index 9ed3b624aa1..3a6df43c7b4 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyproduct.go @@ -62,6 +62,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ReportsClient) ListByProduct(ctx context.Context, id ServiceId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListByProduct(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byProduct", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/reports/byProduct", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyrequest.go b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyrequest.go index 425a6eefc2d..265c2670114 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyrequest.go +++ b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyrequest.go @@ -61,8 +61,8 @@ func (c ReportsClient) ListByRequest(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byRequest", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/reports/byRequest", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbysubscription.go b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbysubscription.go index 7c89c06c99c..1e7ffadeafd 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbysubscription.go +++ b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbysubscription.go @@ -62,6 +62,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ReportsClient) ListBySubscription(ctx context.Context, id ServiceId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListBySubscription(ctx context.Context, id ServiceId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/bySubscription", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/reports/bySubscription", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbytime.go b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbytime.go index 6d6ffe5402d..629527e4e8b 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbytime.go +++ b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbytime.go @@ -66,6 +66,18 @@ func (o ListByTimeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTimeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTimeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTime ... func (c ReportsClient) ListByTime(ctx context.Context, id ServiceId, options ListByTimeOperationOptions) (result ListByTimeOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c ReportsClient) ListByTime(ctx context.Context, id ServiceId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byTime", id.ID()), OptionsObject: options, + Pager: &ListByTimeCustomPager{}, + Path: fmt.Sprintf("%s/reports/byTime", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyuser.go b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyuser.go index b2c758e720f..0751d4a40cb 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyuser.go +++ b/resource-manager/apimanagement/2023-03-01-preview/reports/method_listbyuser.go @@ -62,6 +62,18 @@ func (o ListByUserOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByUserCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByUserCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByUser ... func (c ReportsClient) ListByUser(ctx context.Context, id ServiceId, options ListByUserOperationOptions) (result ListByUserOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListByUser(ctx context.Context, id ServiceId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byUser", id.ID()), OptionsObject: options, + Pager: &ListByUserCustomPager{}, + Path: fmt.Sprintf("%s/reports/byUser", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/schema/method_globalschemacreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/schema/method_globalschemacreateorupdate.go index 06eae53751c..4f0f7c321a1 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/schema/method_globalschemacreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/schema/method_globalschemacreateorupdate.go @@ -58,8 +58,8 @@ func (c SchemaClient) GlobalSchemaCreateOrUpdate(ctx context.Context, id SchemaI http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/schema/method_globalschemadelete.go b/resource-manager/apimanagement/2023-03-01-preview/schema/method_globalschemadelete.go index f7169489c2b..234fcfcb78f 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/schema/method_globalschemadelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/schema/method_globalschemadelete.go @@ -53,8 +53,8 @@ func (c SchemaClient) GlobalSchemaDelete(ctx context.Context, id SchemaId, optio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/schema/method_globalschemalistbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/schema/method_globalschemalistbyservice.go index 63af31ce4a0..7797c6a6b8f 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/schema/method_globalschemalistbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/schema/method_globalschemalistbyservice.go @@ -58,6 +58,18 @@ func (o GlobalSchemaListByServiceOperationOptions) ToQuery() *client.QueryParams return &out } +type GlobalSchemaListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GlobalSchemaListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GlobalSchemaListByService ... func (c SchemaClient) GlobalSchemaListByService(ctx context.Context, id ServiceId, options GlobalSchemaListByServiceOperationOptions) (result GlobalSchemaListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c SchemaClient) GlobalSchemaListByService(ctx context.Context, id ServiceI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &GlobalSchemaListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/schema/method_workspaceglobalschemacreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/schema/method_workspaceglobalschemacreateorupdate.go index afc6a4f99b2..10d1aaff005 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/schema/method_workspaceglobalschemacreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/schema/method_workspaceglobalschemacreateorupdate.go @@ -58,8 +58,8 @@ func (c SchemaClient) WorkspaceGlobalSchemaCreateOrUpdate(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/schema/method_workspaceglobalschemadelete.go b/resource-manager/apimanagement/2023-03-01-preview/schema/method_workspaceglobalschemadelete.go index 4342d2c69d9..a8aab3185b1 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/schema/method_workspaceglobalschemadelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/schema/method_workspaceglobalschemadelete.go @@ -53,8 +53,8 @@ func (c SchemaClient) WorkspaceGlobalSchemaDelete(ctx context.Context, id Worksp http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/schema/method_workspaceglobalschemalistbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/schema/method_workspaceglobalschemalistbyservice.go index 41fdfdc93e8..aeae5549ab2 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/schema/method_workspaceglobalschemalistbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/schema/method_workspaceglobalschemalistbyservice.go @@ -58,6 +58,18 @@ func (o WorkspaceGlobalSchemaListByServiceOperationOptions) ToQuery() *client.Qu return &out } +type WorkspaceGlobalSchemaListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceGlobalSchemaListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceGlobalSchemaListByService ... func (c SchemaClient) WorkspaceGlobalSchemaListByService(ctx context.Context, id WorkspaceId, options WorkspaceGlobalSchemaListByServiceOperationOptions) (result WorkspaceGlobalSchemaListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c SchemaClient) WorkspaceGlobalSchemaListByService(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &WorkspaceGlobalSchemaListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/signinsettings/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/signinsettings/method_createorupdate.go index 189a6236516..7354010fc89 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/signinsettings/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/signinsettings/method_createorupdate.go @@ -53,8 +53,8 @@ func (c SignInSettingsClient) CreateOrUpdate(ctx context.Context, id ServiceId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/portalsettings/signin", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/signin", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/signinsettings/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/signinsettings/method_update.go index cdef3702ed0..1c0af5a3508 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/signinsettings/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/signinsettings/method_update.go @@ -52,8 +52,8 @@ func (c SignInSettingsClient) Update(ctx context.Context, id ServiceId, input Po http.StatusNoContent, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/portalsettings/signin", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/signin", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/signupsettings/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/signupsettings/method_createorupdate.go index 7e867b508f6..8d57367d2f5 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/signupsettings/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/signupsettings/method_createorupdate.go @@ -53,8 +53,8 @@ func (c SignUpSettingsClient) CreateOrUpdate(ctx context.Context, id ServiceId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/portalsettings/signup", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/signup", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/signupsettings/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/signupsettings/method_update.go index fd56de21870..8d8918d3324 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/signupsettings/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/signupsettings/method_update.go @@ -52,8 +52,8 @@ func (c SignUpSettingsClient) Update(ctx context.Context, id ServiceId, input Po http.StatusNoContent, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/portalsettings/signup", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/signup", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/skus/method_apimanagementskuslist.go b/resource-manager/apimanagement/2023-03-01-preview/skus/method_apimanagementskuslist.go index 30e24e4a4ee..9c429654469 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/skus/method_apimanagementskuslist.go +++ b/resource-manager/apimanagement/2023-03-01-preview/skus/method_apimanagementskuslist.go @@ -24,6 +24,18 @@ type ApiManagementSkusListCompleteResult struct { Items []ApiManagementSku } +type ApiManagementSkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiManagementSkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApiManagementSkusList ... func (c SkusClient) ApiManagementSkusList(ctx context.Context, id commonids.SubscriptionId) (result ApiManagementSkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SkusClient) ApiManagementSkusList(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApiManagementSkusListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiManagement/skus", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_createorupdate.go index b6f8b008bb9..84f04d880d0 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_createorupdate.go @@ -61,8 +61,8 @@ func (c SubscriptionClient) CreateOrUpdate(ctx context.Context, id Subscriptions http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_delete.go index a14c0ad04e1..e3c31885a75 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_delete.go @@ -53,8 +53,8 @@ func (c SubscriptionClient) Delete(ctx context.Context, id Subscriptions2Id, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_list.go b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_list.go index 44c90482077..2e9d96e0473 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_list.go +++ b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SubscriptionClient) List(ctx context.Context, id ServiceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c SubscriptionClient) List(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_update.go index 298fd59a60f..635071e41ca 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_update.go @@ -60,8 +60,8 @@ func (c SubscriptionClient) Update(ctx context.Context, id Subscriptions2Id, inp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go index 27aa66c3f92..9c4c3b06ccb 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go @@ -61,8 +61,8 @@ func (c SubscriptionClient) WorkspaceSubscriptionCreateOrUpdate(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptiondelete.go b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptiondelete.go index d428f4d0d29..ae93f99c979 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptiondelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptiondelete.go @@ -53,8 +53,8 @@ func (c SubscriptionClient) WorkspaceSubscriptionDelete(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptionlist.go b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptionlist.go index f80b26bdabb..ae68c703393 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptionlist.go +++ b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptionlist.go @@ -58,6 +58,18 @@ func (o WorkspaceSubscriptionListOperationOptions) ToQuery() *client.QueryParams return &out } +type WorkspaceSubscriptionListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceSubscriptionListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceSubscriptionList ... func (c SubscriptionClient) WorkspaceSubscriptionList(ctx context.Context, id WorkspaceId, options WorkspaceSubscriptionListOperationOptions) (result WorkspaceSubscriptionListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c SubscriptionClient) WorkspaceSubscriptionList(ctx context.Context, id Wo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &WorkspaceSubscriptionListCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptionupdate.go b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptionupdate.go index 5967520b630..e8866e97051 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptionupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/subscription/method_workspacesubscriptionupdate.go @@ -60,8 +60,8 @@ func (c SubscriptionClient) WorkspaceSubscriptionUpdate(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tag/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/tag/method_createorupdate.go index 129583f77c6..9494659a794 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tag/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tag/method_createorupdate.go @@ -54,8 +54,8 @@ func (c TagClient) CreateOrUpdate(ctx context.Context, id TagId, input TagCreate http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tag/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/tag/method_delete.go index 01b72128471..83335d794bd 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tag/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tag/method_delete.go @@ -53,8 +53,8 @@ func (c TagClient) Delete(ctx context.Context, id TagId, options DeleteOperation http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tag/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/tag/method_listbyservice.go index 56949eaba50..efb001aaa9c 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tag/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tag/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c TagClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c TagClient) ListByService(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tags", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tag/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/tag/method_update.go index e7ab6b0458d..8ee0391b4d4 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tag/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tag/method_update.go @@ -53,8 +53,8 @@ func (c TagClient) Update(ctx context.Context, id TagId, input TagCreateUpdatePa http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetagcreateorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetagcreateorupdate.go index 50b2d685c84..43dd91a0327 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetagcreateorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetagcreateorupdate.go @@ -54,8 +54,8 @@ func (c TagClient) WorkspaceTagCreateOrUpdate(ctx context.Context, id WorkspaceT http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetagdelete.go b/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetagdelete.go index d067e04b20e..c702a5f54dc 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetagdelete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetagdelete.go @@ -53,8 +53,8 @@ func (c TagClient) WorkspaceTagDelete(ctx context.Context, id WorkspaceTagId, op http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetaglistbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetaglistbyservice.go index 47a090b9b63..e41c7e2b252 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetaglistbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetaglistbyservice.go @@ -62,6 +62,18 @@ func (o WorkspaceTagListByServiceOperationOptions) ToQuery() *client.QueryParams return &out } +type WorkspaceTagListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceTagListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceTagListByService ... func (c TagClient) WorkspaceTagListByService(ctx context.Context, id WorkspaceId, options WorkspaceTagListByServiceOperationOptions) (result WorkspaceTagListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c TagClient) WorkspaceTagListByService(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tags", id.ID()), OptionsObject: options, + Pager: &WorkspaceTagListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetagupdate.go b/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetagupdate.go index 050ed226b21..0d23c5923a8 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetagupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tag/method_workspacetagupdate.go @@ -53,8 +53,8 @@ func (c TagClient) WorkspaceTagUpdate(ctx context.Context, id WorkspaceTagId, in http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tagapilink/method_listbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/tagapilink/method_listbyproduct.go index e0196305533..4c0cda2c870 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tagapilink/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tagapilink/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c TagApiLinkClient) ListByProduct(ctx context.Context, id TagId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagApiLinkClient) ListByProduct(ctx context.Context, id TagId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apiLinks", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/apiLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tagapilink/method_workspacetagapilinklistbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/tagapilink/method_workspacetagapilinklistbyproduct.go index 4bdd9170bea..b39a8283dfe 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tagapilink/method_workspacetagapilinklistbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tagapilink/method_workspacetagapilinklistbyproduct.go @@ -58,6 +58,18 @@ func (o WorkspaceTagApiLinkListByProductOperationOptions) ToQuery() *client.Quer return &out } +type WorkspaceTagApiLinkListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceTagApiLinkListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceTagApiLinkListByProduct ... func (c TagApiLinkClient) WorkspaceTagApiLinkListByProduct(ctx context.Context, id WorkspaceTagId, options WorkspaceTagApiLinkListByProductOperationOptions) (result WorkspaceTagApiLinkListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagApiLinkClient) WorkspaceTagApiLinkListByProduct(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apiLinks", id.ID()), OptionsObject: options, + Pager: &WorkspaceTagApiLinkListByProductCustomPager{}, + Path: fmt.Sprintf("%s/apiLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tagoperationlink/method_listbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/tagoperationlink/method_listbyproduct.go index 4234aeca588..cee618cdcb6 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tagoperationlink/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tagoperationlink/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c TagOperationLinkClient) ListByProduct(ctx context.Context, id TagId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagOperationLinkClient) ListByProduct(ctx context.Context, id TagId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operationLinks", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/operationLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tagoperationlink/method_workspacetagoperationlinklistbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/tagoperationlink/method_workspacetagoperationlinklistbyproduct.go index d5ee53e97ab..46445e555b0 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tagoperationlink/method_workspacetagoperationlinklistbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tagoperationlink/method_workspacetagoperationlinklistbyproduct.go @@ -58,6 +58,18 @@ func (o WorkspaceTagOperationLinkListByProductOperationOptions) ToQuery() *clien return &out } +type WorkspaceTagOperationLinkListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceTagOperationLinkListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceTagOperationLinkListByProduct ... func (c TagOperationLinkClient) WorkspaceTagOperationLinkListByProduct(ctx context.Context, id WorkspaceTagId, options WorkspaceTagOperationLinkListByProductOperationOptions) (result WorkspaceTagOperationLinkListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagOperationLinkClient) WorkspaceTagOperationLinkListByProduct(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operationLinks", id.ID()), OptionsObject: options, + Pager: &WorkspaceTagOperationLinkListByProductCustomPager{}, + Path: fmt.Sprintf("%s/operationLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tagproductlink/method_listbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/tagproductlink/method_listbyproduct.go index 8b71dbd26f4..c1d3225b9ab 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tagproductlink/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tagproductlink/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c TagProductLinkClient) ListByProduct(ctx context.Context, id TagId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagProductLinkClient) ListByProduct(ctx context.Context, id TagId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/productLinks", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/productLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tagproductlink/method_workspacetagproductlinklistbyproduct.go b/resource-manager/apimanagement/2023-03-01-preview/tagproductlink/method_workspacetagproductlinklistbyproduct.go index ac118827d3a..374d9806a47 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tagproductlink/method_workspacetagproductlinklistbyproduct.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tagproductlink/method_workspacetagproductlinklistbyproduct.go @@ -58,6 +58,18 @@ func (o WorkspaceTagProductLinkListByProductOperationOptions) ToQuery() *client. return &out } +type WorkspaceTagProductLinkListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceTagProductLinkListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceTagProductLinkListByProduct ... func (c TagProductLinkClient) WorkspaceTagProductLinkListByProduct(ctx context.Context, id WorkspaceTagId, options WorkspaceTagProductLinkListByProductOperationOptions) (result WorkspaceTagProductLinkListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagProductLinkClient) WorkspaceTagProductLinkListByProduct(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/productLinks", id.ID()), OptionsObject: options, + Pager: &WorkspaceTagProductLinkListByProductCustomPager{}, + Path: fmt.Sprintf("%s/productLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tagresource/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/tagresource/method_listbyservice.go index 68ff8fbf3fc..0d880dc6dad 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tagresource/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tagresource/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c TagResourceClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagResourceClient) ListByService(ctx context.Context, id ServiceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tagResources", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tagResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tenantaccess/method_create.go b/resource-manager/apimanagement/2023-03-01-preview/tenantaccess/method_create.go index 1615e42b28b..73ced417651 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tenantaccess/method_create.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tenantaccess/method_create.go @@ -53,8 +53,8 @@ func (c TenantAccessClient) Create(ctx context.Context, id AccessId, input Acces http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tenantaccess/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/tenantaccess/method_listbyservice.go index cd5f6f85c79..541de46f891 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tenantaccess/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tenantaccess/method_listbyservice.go @@ -50,6 +50,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c TenantAccessClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c TenantAccessClient) ListByService(ctx context.Context, id ServiceId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tenant", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tenant", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tenantaccess/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/tenantaccess/method_update.go index ad921165696..73793de2965 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tenantaccess/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tenantaccess/method_update.go @@ -53,8 +53,8 @@ func (c TenantAccessClient) Update(ctx context.Context, id AccessId, input Acces http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/tenantsettings/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/tenantsettings/method_listbyservice.go index 05666d1dd38..12487f36224 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/tenantsettings/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/tenantsettings/method_listbyservice.go @@ -50,6 +50,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c TenantSettingsClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c TenantSettingsClient) ListByService(ctx context.Context, id ServiceId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/settings", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/settings", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/user/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/user/method_createorupdate.go index 6fbf588a080..b1cf998602d 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/user/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/user/method_createorupdate.go @@ -57,8 +57,8 @@ func (c UserClient) CreateOrUpdate(ctx context.Context, id UserId, input UserCre http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/user/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/user/method_delete.go index fd6b3518902..b5b2112ac40 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/user/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/user/method_delete.go @@ -64,8 +64,8 @@ func (c UserClient) Delete(ctx context.Context, id UserId, options DeleteOperati http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/user/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/user/method_listbyservice.go index 0663b1e6c1c..e098057b246 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/user/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/user/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c UserClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c UserClient) ListByService(ctx context.Context, id ServiceId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/users", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/users", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/user/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/user/method_update.go index bf1fda6cbfd..11353f91240 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/user/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/user/method_update.go @@ -53,8 +53,8 @@ func (c UserClient) Update(ctx context.Context, id UserId, input UserUpdateParam http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/userconfirmationpasswordsend/method_userconfirmationpasswordsend.go b/resource-manager/apimanagement/2023-03-01-preview/userconfirmationpasswordsend/method_userconfirmationpasswordsend.go index 883292fd0c2..b1915a44d82 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/userconfirmationpasswordsend/method_userconfirmationpasswordsend.go +++ b/resource-manager/apimanagement/2023-03-01-preview/userconfirmationpasswordsend/method_userconfirmationpasswordsend.go @@ -52,8 +52,8 @@ func (c UserConfirmationPasswordSendClient) UserConfirmationPasswordSend(ctx con http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/confirmations/password/send", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/confirmations/password/send", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/usergroup/method_list.go b/resource-manager/apimanagement/2023-03-01-preview/usergroup/method_list.go index 4a9e2950a71..cfe2c191701 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/usergroup/method_list.go +++ b/resource-manager/apimanagement/2023-03-01-preview/usergroup/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UserGroupClient) List(ctx context.Context, id UserId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c UserGroupClient) List(ctx context.Context, id UserId, options ListOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groups", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/groups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/useridentity/method_useridentitieslist.go b/resource-manager/apimanagement/2023-03-01-preview/useridentity/method_useridentitieslist.go index ebb7f0f9931..43e22220140 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/useridentity/method_useridentitieslist.go +++ b/resource-manager/apimanagement/2023-03-01-preview/useridentity/method_useridentitieslist.go @@ -23,6 +23,18 @@ type UserIdentitiesListCompleteResult struct { Items []UserIdentityContract } +type UserIdentitiesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UserIdentitiesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UserIdentitiesList ... func (c UserIdentityClient) UserIdentitiesList(ctx context.Context, id UserId) (result UserIdentitiesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UserIdentityClient) UserIdentitiesList(ctx context.Context, id UserId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UserIdentitiesListCustomPager{}, Path: fmt.Sprintf("%s/identities", id.ID()), } diff --git a/resource-manager/apimanagement/2023-03-01-preview/usersubscription/method_list.go b/resource-manager/apimanagement/2023-03-01-preview/usersubscription/method_list.go index 683c969fac0..9acd966ed75 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/usersubscription/method_list.go +++ b/resource-manager/apimanagement/2023-03-01-preview/usersubscription/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UserSubscriptionClient) List(ctx context.Context, id UserId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c UserSubscriptionClient) List(ctx context.Context, id UserId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/workspace/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/workspace/method_createorupdate.go index 7027a31c0f5..dfbaee168e5 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/workspace/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/workspace/method_createorupdate.go @@ -54,8 +54,8 @@ func (c WorkspaceClient) CreateOrUpdate(ctx context.Context, id WorkspaceId, inp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/workspace/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/workspace/method_delete.go index ac900a561b9..41a2b818416 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/workspace/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/workspace/method_delete.go @@ -53,8 +53,8 @@ func (c WorkspaceClient) Delete(ctx context.Context, id WorkspaceId, options Del http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/workspace/method_listbyservice.go b/resource-manager/apimanagement/2023-03-01-preview/workspace/method_listbyservice.go index 17d1aa75828..d7edc0c9746 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/workspace/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-03-01-preview/workspace/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c WorkspaceClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c WorkspaceClient) ListByService(ctx context.Context, id ServiceId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/workspaces", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/workspaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/workspace/method_update.go b/resource-manager/apimanagement/2023-03-01-preview/workspace/method_update.go index 67056723b46..840713f4a4f 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/workspace/method_update.go +++ b/resource-manager/apimanagement/2023-03-01-preview/workspace/method_update.go @@ -53,8 +53,8 @@ func (c WorkspaceClient) Update(ctx context.Context, id WorkspaceId, input Works http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_createorupdate.go b/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_createorupdate.go index 1c73268ecbf..9385b41a924 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c WorkspacePolicyClient) CreateOrUpdate(ctx context.Context, id WorkspaceI http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_delete.go b/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_delete.go index 27f40cc6f91..ac1ad5e7365 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_delete.go +++ b/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_delete.go @@ -53,8 +53,8 @@ func (c WorkspacePolicyClient) Delete(ctx context.Context, id WorkspaceId, optio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_get.go b/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_get.go index e82f06c22e2..90e7b0877f6 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_get.go +++ b/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_get.go @@ -53,8 +53,8 @@ func (c WorkspacePolicyClient) Get(ctx context.Context, id WorkspaceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_listbyapi.go b/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_listbyapi.go index 1615219c2d7..c09f736cf9a 100644 --- a/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_listbyapi.go +++ b/resource-manager/apimanagement/2023-03-01-preview/workspacepolicy/method_listbyapi.go @@ -23,6 +23,18 @@ type ListByApiCompleteResult struct { Items []PolicyContract } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c WorkspacePolicyClient) ListByApi(ctx context.Context, id WorkspaceId) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkspacePolicyClient) ListByApi(ctx context.Context, id WorkspaceId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByApiCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/allpolicies/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/allpolicies/method_listbyservice.go index 4996442ab17..ccc173f14e7 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/allpolicies/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/allpolicies/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []AllPoliciesContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c AllPoliciesClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AllPoliciesClient) ListByService(ctx context.Context, id ServiceId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/allPolicies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/api/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/api/method_createorupdate.go index 4d6d4eed53c..b95d5839846 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/api/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/api/method_createorupdate.go @@ -57,8 +57,8 @@ func (c ApiClient) CreateOrUpdate(ctx context.Context, id ApiId, input ApiCreate http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/api/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/api/method_delete.go index d8864ca2c14..d4625ea7e66 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/api/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/api/method_delete.go @@ -59,8 +59,8 @@ func (c ApiClient) Delete(ctx context.Context, id ApiId, options DeleteOperation http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/api/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/api/method_listbyservice.go index 6822b5ac5da..6b9bc61fa02 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/api/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/api/method_listbyservice.go @@ -66,6 +66,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c ApiClient) ListByService(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apis", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/api/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/api/method_update.go index a64dc55c7e1..491fbbeb5c8 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/api/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/api/method_update.go @@ -53,8 +53,8 @@ func (c ApiClient) Update(ctx context.Context, id ApiId, input ApiUpdateContract http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapicreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapicreateorupdate.go index 9f58f5dad7d..c7a255c688a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapicreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapicreateorupdate.go @@ -57,8 +57,8 @@ func (c ApiClient) WorkspaceApiCreateOrUpdate(ctx context.Context, id WorkspaceA http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapidelete.go b/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapidelete.go index 793e070625f..44393545209 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapidelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapidelete.go @@ -56,8 +56,8 @@ func (c ApiClient) WorkspaceApiDelete(ctx context.Context, id WorkspaceApiId, op http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapilistbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapilistbyservice.go index c2d905cf10e..aeed0e70077 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapilistbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapilistbyservice.go @@ -66,6 +66,18 @@ func (o WorkspaceApiListByServiceOperationOptions) ToQuery() *client.QueryParams return &out } +type WorkspaceApiListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiListByService ... func (c ApiClient) WorkspaceApiListByService(ctx context.Context, id WorkspaceId, options WorkspaceApiListByServiceOperationOptions) (result WorkspaceApiListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c ApiClient) WorkspaceApiListByService(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apis", id.ID()), OptionsObject: options, + Pager: &WorkspaceApiListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiupdate.go b/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiupdate.go index 7e8e77205a4..25f72466ee3 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/api/method_workspaceapiupdate.go @@ -53,8 +53,8 @@ func (c ApiClient) WorkspaceApiUpdate(ctx context.Context, id WorkspaceApiId, in http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_createorupdate.go index bb4060490e3..2551a5d1445 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiDiagnosticClient) CreateOrUpdate(ctx context.Context, id ApiDiagnosti http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_delete.go index 0fb3223f00f..a781c7b154b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_delete.go @@ -53,8 +53,8 @@ func (c ApiDiagnosticClient) Delete(ctx context.Context, id ApiDiagnosticId, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_listbyservice.go index a3983e44ff5..96b6f06f674 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiDiagnosticClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiDiagnosticClient) ListByService(ctx context.Context, id ApiId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/diagnostics", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/diagnostics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_update.go index 06f2e2eadbd..00ef4533a35 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apidiagnostic/method_update.go @@ -53,8 +53,8 @@ func (c ApiDiagnosticClient) Update(ctx context.Context, id ApiDiagnosticId, inp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_createorupdate.go index c02a0c0ee70..2c843315ed6 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiIssueClient) CreateOrUpdate(ctx context.Context, id ApiIssueId, input http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_delete.go index 822eaefefe3..c51a70bf93d 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_delete.go @@ -53,8 +53,8 @@ func (c ApiIssueClient) Delete(ctx context.Context, id ApiIssueId, options Delet http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_get.go b/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_get.go index c3bd01ed939..a4f0ff0be8a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_get.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_get.go @@ -53,8 +53,8 @@ func (c ApiIssueClient) Get(ctx context.Context, id ApiIssueId, options GetOpera http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_listbyservice.go index 0746aecd4ae..314d87e9b6e 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiIssueClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ApiIssueClient) ListByService(ctx context.Context, id ApiId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/issues", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/issues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_update.go index 023124b29a5..5db5804bbb2 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiissue/method_update.go @@ -53,8 +53,8 @@ func (c ApiIssueClient) Update(ctx context.Context, id ApiIssueId, input IssueUp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiissueattachment/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apiissueattachment/method_createorupdate.go index 9aba1c06a14..a44575c4ae0 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiissueattachment/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiissueattachment/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiIssueAttachmentClient) CreateOrUpdate(ctx context.Context, id Attachm http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiissueattachment/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/apiissueattachment/method_delete.go index e2c80a156a2..867e45b1ffc 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiissueattachment/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiissueattachment/method_delete.go @@ -53,8 +53,8 @@ func (c ApiIssueAttachmentClient) Delete(ctx context.Context, id AttachmentId, o http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiissueattachment/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/apiissueattachment/method_listbyservice.go index b1b9137df9d..7e2162ab2a9 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiissueattachment/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiissueattachment/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiIssueAttachmentClient) ListByService(ctx context.Context, id ApiIssueId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiIssueAttachmentClient) ListByService(ctx context.Context, id ApiIssue http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/attachments", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/attachments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiissuecomment/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apiissuecomment/method_createorupdate.go index c7abf1e30fe..82f8efd70c7 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiissuecomment/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiissuecomment/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiIssueCommentClient) CreateOrUpdate(ctx context.Context, id CommentId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiissuecomment/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/apiissuecomment/method_delete.go index b6cb1c7f69b..725bbb2f2a8 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiissuecomment/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiissuecomment/method_delete.go @@ -53,8 +53,8 @@ func (c ApiIssueCommentClient) Delete(ctx context.Context, id CommentId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiissuecomment/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/apiissuecomment/method_listbyservice.go index b0a547fa482..a1f56a2f9d7 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiissuecomment/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiissuecomment/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiIssueCommentClient) ListByService(ctx context.Context, id ApiIssueId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiIssueCommentClient) ListByService(ctx context.Context, id ApiIssueId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/comments", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/comments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_list.go b/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_list.go index e674b42bee8..a543ab50604 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_list.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ApiManagementServiceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApiManagementServiceClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApiManagementServiceClient) List(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiManagement/service", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_listbyresourcegroup.go b/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_listbyresourcegroup.go index 373a3113b59..f7ecb77436b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_listbyresourcegroup.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apimanagementservice/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ApiManagementServiceResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ApiManagementServiceClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApiManagementServiceClient) ListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiManagement/service", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/apimanagementserviceskus/method_listavailableserviceskus.go b/resource-manager/apimanagement/2023-05-01-preview/apimanagementserviceskus/method_listavailableserviceskus.go index ac040cc0edf..07d00e828ca 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apimanagementserviceskus/method_listavailableserviceskus.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apimanagementserviceskus/method_listavailableserviceskus.go @@ -23,6 +23,18 @@ type ListAvailableServiceSkusCompleteResult struct { Items []ResourceSkuResult } +type ListAvailableServiceSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAvailableServiceSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAvailableServiceSkus ... func (c ApiManagementServiceSkusClient) ListAvailableServiceSkus(ctx context.Context, id ServiceId) (result ListAvailableServiceSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiManagementServiceSkusClient) ListAvailableServiceSkus(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAvailableServiceSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_createorupdate.go index c33a095dfbb..ee86a38b0bc 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiOperationClient) CreateOrUpdate(ctx context.Context, id OperationId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_delete.go index 0693a0a284f..ee390d245b3 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_delete.go @@ -53,8 +53,8 @@ func (c ApiOperationClient) Delete(ctx context.Context, id OperationId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_listbyapi.go b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_listbyapi.go index 0cd13f2e8c0..df8d3b45502 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_listbyapi.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_listbyapi.go @@ -62,6 +62,18 @@ func (o ListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c ApiOperationClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ApiOperationClient) ListByApi(ctx context.Context, id ApiId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListByApiCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_update.go index 80320a2c06f..005fc98f21a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_update.go @@ -53,8 +53,8 @@ func (c ApiOperationClient) Update(ctx context.Context, id OperationId, input Op http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go index b55c2c92e6e..31e0a6ea5fe 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationcreateorupdate.go @@ -54,8 +54,8 @@ func (c ApiOperationClient) WorkspaceApiOperationCreateOrUpdate(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationdelete.go b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationdelete.go index d695ff45464..803c543da5b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationdelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationdelete.go @@ -53,8 +53,8 @@ func (c ApiOperationClient) WorkspaceApiOperationDelete(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationlistbyapi.go b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationlistbyapi.go index 3d274bef560..dfa7091cdf8 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationlistbyapi.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationlistbyapi.go @@ -62,6 +62,18 @@ func (o WorkspaceApiOperationListByApiOperationOptions) ToQuery() *client.QueryP return &out } +type WorkspaceApiOperationListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiOperationListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiOperationListByApi ... func (c ApiOperationClient) WorkspaceApiOperationListByApi(ctx context.Context, id WorkspaceApiId, options WorkspaceApiOperationListByApiOperationOptions) (result WorkspaceApiOperationListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ApiOperationClient) WorkspaceApiOperationListByApi(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &WorkspaceApiOperationListByApiCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationupdate.go index 45368046c28..b485b35b34a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperation/method_workspaceapioperationupdate.go @@ -53,8 +53,8 @@ func (c ApiOperationClient) WorkspaceApiOperationUpdate(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_createorupdate.go index 777278c8367..3437b481d77 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiOperationPolicyClient) CreateOrUpdate(ctx context.Context, id Operati http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_delete.go index f30d7d3e932..1b77d06ed20 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_delete.go @@ -53,8 +53,8 @@ func (c ApiOperationPolicyClient) Delete(ctx context.Context, id OperationId, op http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_get.go b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_get.go index 5694a2d93ac..53ce4e80d68 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_get.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_get.go @@ -53,8 +53,8 @@ func (c ApiOperationPolicyClient) Get(ctx context.Context, id OperationId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_listbyoperation.go b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_listbyoperation.go index 9a9fc988094..6368c593060 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_listbyoperation.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_listbyoperation.go @@ -23,6 +23,18 @@ type ListByOperationCompleteResult struct { Items []PolicyContract } +type ListByOperationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByOperationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByOperation ... func (c ApiOperationPolicyClient) ListByOperation(ctx context.Context, id OperationId) (result ListByOperationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiOperationPolicyClient) ListByOperation(ctx context.Context, id Operat http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByOperationCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go index 0043951ebe5..749273ac587 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicycreateorupdate.go @@ -54,8 +54,8 @@ func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyCreateOrUpdate(ctx http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go index f7f0e3ba174..47c3dded764 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicydelete.go @@ -53,8 +53,8 @@ func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyDelete(ctx context. http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go index fe304933688..9395af3465a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicyget.go @@ -53,8 +53,8 @@ func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyGet(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go index a7e0ddffe53..f09ff195389 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperationpolicy/method_workspaceapioperationpolicylistbyoperation.go @@ -23,6 +23,18 @@ type WorkspaceApiOperationPolicyListByOperationCompleteResult struct { Items []PolicyContract } +type WorkspaceApiOperationPolicyListByOperationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiOperationPolicyListByOperationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiOperationPolicyListByOperation ... func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyListByOperation(ctx context.Context, id ApiOperationId) (result WorkspaceApiOperationPolicyListByOperationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiOperationPolicyClient) WorkspaceApiOperationPolicyListByOperation(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceApiOperationPolicyListByOperationCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperationsbytag/method_operationlistbytags.go b/resource-manager/apimanagement/2023-05-01-preview/apioperationsbytag/method_operationlistbytags.go index 7947f83e444..2a37906b22f 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperationsbytag/method_operationlistbytags.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperationsbytag/method_operationlistbytags.go @@ -62,6 +62,18 @@ func (o OperationListByTagsOperationOptions) ToQuery() *client.QueryParams { return &out } +type OperationListByTagsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *OperationListByTagsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // OperationListByTags ... func (c ApiOperationsByTagClient) OperationListByTags(ctx context.Context, id ApiId, options OperationListByTagsOperationOptions) (result OperationListByTagsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ApiOperationsByTagClient) OperationListByTags(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operationsByTags", id.ID()), OptionsObject: options, + Pager: &OperationListByTagsCustomPager{}, + Path: fmt.Sprintf("%s/operationsByTags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taglistbyoperation.go b/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taglistbyoperation.go index cdd813b8748..f68870a2587 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taglistbyoperation.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apioperationtag/method_taglistbyoperation.go @@ -58,6 +58,18 @@ func (o TagListByOperationOperationOptions) ToQuery() *client.QueryParams { return &out } +type TagListByOperationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TagListByOperationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TagListByOperation ... func (c ApiOperationTagClient) TagListByOperation(ctx context.Context, id OperationId, options TagListByOperationOperationOptions) (result TagListByOperationOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiOperationTagClient) TagListByOperation(ctx context.Context, id Operat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tags", id.ID()), OptionsObject: options, + Pager: &TagListByOperationCustomPager{}, + Path: fmt.Sprintf("%s/tags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_createorupdate.go index cc234b22396..eeaf614e85b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiPolicyClient) CreateOrUpdate(ctx context.Context, id ApiId, input Pol http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_delete.go index 10b8c3c63c0..ee63586a23e 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_delete.go @@ -53,8 +53,8 @@ func (c ApiPolicyClient) Delete(ctx context.Context, id ApiId, options DeleteOpe http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_get.go b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_get.go index 4f320580028..c62f27cb331 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_get.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_get.go @@ -53,8 +53,8 @@ func (c ApiPolicyClient) Get(ctx context.Context, id ApiId, options GetOperation http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_listbyapi.go b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_listbyapi.go index 0731412ca80..bbe7b58565b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_listbyapi.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_listbyapi.go @@ -23,6 +23,18 @@ type ListByApiCompleteResult struct { Items []PolicyContract } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c ApiPolicyClient) ListByApi(ctx context.Context, id ApiId) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiPolicyClient) ListByApi(ctx context.Context, id ApiId) (result ListBy http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByApiCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go index 75eca16dbfa..003cadb79ce 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicycreateorupdate.go @@ -54,8 +54,8 @@ func (c ApiPolicyClient) WorkspaceApiPolicyCreateOrUpdate(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicydelete.go b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicydelete.go index de7889df51c..f2ceb3f9e4d 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicydelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicydelete.go @@ -53,8 +53,8 @@ func (c ApiPolicyClient) WorkspaceApiPolicyDelete(ctx context.Context, id Worksp http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicyget.go b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicyget.go index e7af7907f02..364bd7248f2 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicyget.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicyget.go @@ -53,8 +53,8 @@ func (c ApiPolicyClient) WorkspaceApiPolicyGet(ctx context.Context, id Workspace http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicylistbyapi.go b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicylistbyapi.go index 765a46cf285..39a1a6de1a1 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicylistbyapi.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apipolicy/method_workspaceapipolicylistbyapi.go @@ -23,6 +23,18 @@ type WorkspaceApiPolicyListByApiCompleteResult struct { Items []PolicyContract } +type WorkspaceApiPolicyListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiPolicyListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiPolicyListByApi ... func (c ApiPolicyClient) WorkspaceApiPolicyListByApi(ctx context.Context, id WorkspaceApiId) (result WorkspaceApiPolicyListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiPolicyClient) WorkspaceApiPolicyListByApi(ctx context.Context, id Wor http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceApiPolicyListByApiCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiproduct/method_listbyapis.go b/resource-manager/apimanagement/2023-05-01-preview/apiproduct/method_listbyapis.go index dbff82da3ac..9a4501fc786 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiproduct/method_listbyapis.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiproduct/method_listbyapis.go @@ -58,6 +58,18 @@ func (o ListByApisOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApisCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApisCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApis ... func (c ApiProductClient) ListByApis(ctx context.Context, id ApiId, options ListByApisOperationOptions) (result ListByApisOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiProductClient) ListByApis(ctx context.Context, id ApiId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByApisCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_createorupdate.go index e8c7f9514c9..2b23b8d16a6 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiReleaseClient) CreateOrUpdate(ctx context.Context, id ReleaseId, inpu http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_delete.go index cdfaf120b2b..d7f28534465 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_delete.go @@ -53,8 +53,8 @@ func (c ApiReleaseClient) Delete(ctx context.Context, id ReleaseId, options Dele http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_listbyservice.go index f93f33c686b..509f7241d4f 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiReleaseClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiReleaseClient) ListByService(ctx context.Context, id ApiId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/releases", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/releases", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_update.go index 93cb75dc4bb..1e51ca66c45 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_update.go @@ -53,8 +53,8 @@ func (c ApiReleaseClient) Update(ctx context.Context, id ReleaseId, input ApiRel http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go index 4fd8a062377..3dcd9fce3ab 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasecreateorupdate.go @@ -54,8 +54,8 @@ func (c ApiReleaseClient) WorkspaceApiReleaseCreateOrUpdate(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasedelete.go b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasedelete.go index 0078c166349..0fd63c74e77 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasedelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleasedelete.go @@ -53,8 +53,8 @@ func (c ApiReleaseClient) WorkspaceApiReleaseDelete(ctx context.Context, id ApiR http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaselistbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaselistbyservice.go index 06dca7b4b99..578ad231c48 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaselistbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaselistbyservice.go @@ -58,6 +58,18 @@ func (o WorkspaceApiReleaseListByServiceOperationOptions) ToQuery() *client.Quer return &out } +type WorkspaceApiReleaseListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiReleaseListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiReleaseListByService ... func (c ApiReleaseClient) WorkspaceApiReleaseListByService(ctx context.Context, id WorkspaceApiId, options WorkspaceApiReleaseListByServiceOperationOptions) (result WorkspaceApiReleaseListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiReleaseClient) WorkspaceApiReleaseListByService(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/releases", id.ID()), OptionsObject: options, + Pager: &WorkspaceApiReleaseListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/releases", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseupdate.go index 1d030889db5..d301c6d2adc 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apirelease/method_workspaceapireleaseupdate.go @@ -53,8 +53,8 @@ func (c ApiReleaseClient) WorkspaceApiReleaseUpdate(ctx context.Context, id ApiR http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apirevision/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/apirevision/method_listbyservice.go index e36c5d7f3da..1f1a5af6d1d 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apirevision/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apirevision/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiRevisionClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiRevisionClient) ListByService(ctx context.Context, id ApiId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/revisions", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/revisions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apirevision/method_workspaceapirevisionlistbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/apirevision/method_workspaceapirevisionlistbyservice.go index 3a62da3498d..acc1134979b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apirevision/method_workspaceapirevisionlistbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apirevision/method_workspaceapirevisionlistbyservice.go @@ -58,6 +58,18 @@ func (o WorkspaceApiRevisionListByServiceOperationOptions) ToQuery() *client.Que return &out } +type WorkspaceApiRevisionListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiRevisionListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiRevisionListByService ... func (c ApiRevisionClient) WorkspaceApiRevisionListByService(ctx context.Context, id WorkspaceApiId, options WorkspaceApiRevisionListByServiceOperationOptions) (result WorkspaceApiRevisionListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiRevisionClient) WorkspaceApiRevisionListByService(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/revisions", id.ID()), OptionsObject: options, + Pager: &WorkspaceApiRevisionListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/revisions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apisbytag/method_apilistbytags.go b/resource-manager/apimanagement/2023-05-01-preview/apisbytag/method_apilistbytags.go index b2b72879a6c..913e89cf621 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apisbytag/method_apilistbytags.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apisbytag/method_apilistbytags.go @@ -62,6 +62,18 @@ func (o ApiListByTagsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ApiListByTagsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiListByTagsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApiListByTags ... func (c ApisByTagClient) ApiListByTags(ctx context.Context, id ServiceId, options ApiListByTagsOperationOptions) (result ApiListByTagsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ApisByTagClient) ApiListByTags(ctx context.Context, id ServiceId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apisByTags", id.ID()), OptionsObject: options, + Pager: &ApiListByTagsCustomPager{}, + Path: fmt.Sprintf("%s/apisByTags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apischema/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apischema/method_createorupdate.go index b74e40041e9..6d09c53ad77 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apischema/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apischema/method_createorupdate.go @@ -57,8 +57,8 @@ func (c ApiSchemaClient) CreateOrUpdate(ctx context.Context, id ApiSchemaId, inp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apischema/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/apischema/method_delete.go index 6fab6914573..1e1272fa389 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apischema/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apischema/method_delete.go @@ -56,8 +56,8 @@ func (c ApiSchemaClient) Delete(ctx context.Context, id ApiSchemaId, options Del http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apischema/method_listbyapi.go b/resource-manager/apimanagement/2023-05-01-preview/apischema/method_listbyapi.go index dae4582b2c1..c3cb801dfce 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apischema/method_listbyapi.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apischema/method_listbyapi.go @@ -58,6 +58,18 @@ func (o ListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c ApiSchemaClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiSchemaClient) ListByApi(ctx context.Context, id ApiId, options ListBy http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &ListByApiCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemacreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemacreateorupdate.go index c91b43b2ae6..86ee733c704 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemacreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemacreateorupdate.go @@ -57,8 +57,8 @@ func (c ApiSchemaClient) WorkspaceApiSchemaCreateOrUpdate(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemadelete.go b/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemadelete.go index fb701fe8ab0..f5c12caff48 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemadelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemadelete.go @@ -56,8 +56,8 @@ func (c ApiSchemaClient) WorkspaceApiSchemaDelete(ctx context.Context, id Worksp http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemalistbyapi.go b/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemalistbyapi.go index 64a31aa7465..df9c59dfaf8 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemalistbyapi.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apischema/method_workspaceapischemalistbyapi.go @@ -58,6 +58,18 @@ func (o WorkspaceApiSchemaListByApiOperationOptions) ToQuery() *client.QueryPara return &out } +type WorkspaceApiSchemaListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiSchemaListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiSchemaListByApi ... func (c ApiSchemaClient) WorkspaceApiSchemaListByApi(ctx context.Context, id WorkspaceApiId, options WorkspaceApiSchemaListByApiOperationOptions) (result WorkspaceApiSchemaListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiSchemaClient) WorkspaceApiSchemaListByApi(ctx context.Context, id Wor http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &WorkspaceApiSchemaListByApiCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taglistbyapi.go b/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taglistbyapi.go index 664514169cd..5c2639c91e3 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taglistbyapi.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apitag/method_taglistbyapi.go @@ -58,6 +58,18 @@ func (o TagListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type TagListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TagListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TagListByApi ... func (c ApiTagClient) TagListByApi(ctx context.Context, id ApiId, options TagListByApiOperationOptions) (result TagListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiTagClient) TagListByApi(ctx context.Context, id ApiId, options TagLis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tags", id.ID()), OptionsObject: options, + Pager: &TagListByApiCustomPager{}, + Path: fmt.Sprintf("%s/tags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_createorupdate.go index c21169c7fd4..11d74115f05 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiTagDescriptionClient) CreateOrUpdate(ctx context.Context, id TagDescr http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_delete.go index bc50e1495af..2ac6057d339 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_delete.go @@ -53,8 +53,8 @@ func (c ApiTagDescriptionClient) Delete(ctx context.Context, id TagDescriptionId http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_listbyservice.go index c24723ee521..6a36cd97456 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apitagdescription/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiTagDescriptionClient) ListByService(ctx context.Context, id ApiId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiTagDescriptionClient) ListByService(ctx context.Context, id ApiId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tagDescriptions", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tagDescriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_createorupdate.go index 71c4d4bcfe7..2d070fcbf91 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiVersionSetClient) CreateOrUpdate(ctx context.Context, id ApiVersionSe http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_listbyservice.go index 82cc15a6911..0f44e4d938d 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ApiVersionSetClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiVersionSetClient) ListByService(ctx context.Context, id ServiceId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apiVersionSets", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apiVersionSets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_update.go index 00692270d0e..97fce9046f6 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_update.go @@ -53,8 +53,8 @@ func (c ApiVersionSetClient) Update(ctx context.Context, id ApiVersionSetId, inp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go index 98d1b903ea6..0fde6db7b9f 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetcreateorupdate.go @@ -54,8 +54,8 @@ func (c ApiVersionSetClient) WorkspaceApiVersionSetCreateOrUpdate(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go index b9d771dbab8..e65dc1b5956 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetlistbyservice.go @@ -58,6 +58,18 @@ func (o WorkspaceApiVersionSetListByServiceOperationOptions) ToQuery() *client.Q return &out } +type WorkspaceApiVersionSetListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceApiVersionSetListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceApiVersionSetListByService ... func (c ApiVersionSetClient) WorkspaceApiVersionSetListByService(ctx context.Context, id WorkspaceId, options WorkspaceApiVersionSetListByServiceOperationOptions) (result WorkspaceApiVersionSetListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiVersionSetClient) WorkspaceApiVersionSetListByService(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apiVersionSets", id.ID()), OptionsObject: options, + Pager: &WorkspaceApiVersionSetListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apiVersionSets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetupdate.go index 603ba78f5f3..dda3ecdb80b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiversionset/method_workspaceapiversionsetupdate.go @@ -53,8 +53,8 @@ func (c ApiVersionSetClient) WorkspaceApiVersionSetUpdate(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_apiversionsetdelete.go b/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_apiversionsetdelete.go index f50800347d8..1d2948225c9 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_apiversionsetdelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_apiversionsetdelete.go @@ -53,8 +53,8 @@ func (c ApiVersionSetsClient) ApiVersionSetDelete(ctx context.Context, id ApiVer http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go b/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go index bdf9b33a712..bef988a2083 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiversionsets/method_workspaceapiversionsetdelete.go @@ -53,8 +53,8 @@ func (c ApiVersionSetsClient) WorkspaceApiVersionSetDelete(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_createorupdate.go index 0b50ec66eba..4004fddb029 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ApiWikiClient) CreateOrUpdate(ctx context.Context, id ApiId, input WikiC http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_delete.go index 74d9f29868e..62f6f711cde 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_delete.go @@ -53,8 +53,8 @@ func (c ApiWikiClient) Delete(ctx context.Context, id ApiId, options DeleteOpera http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_list.go b/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_list.go index 99a8edfd4f1..aee5fc272ef 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_list.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApiWikiClient) List(ctx context.Context, id ApiId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApiWikiClient) List(ctx context.Context, id ApiId, options ListOperation http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/wikis", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/wikis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_update.go index 9aa1b019473..d3c1ff6bdaf 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/apiwiki/method_update.go @@ -53,8 +53,8 @@ func (c ApiWikiClient) Update(ctx context.Context, id ApiId, input WikiUpdateCon http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/authorization/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/authorization/method_createorupdate.go index 6df164a6dc0..de6586fe052 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/authorization/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/authorization/method_createorupdate.go @@ -54,8 +54,8 @@ func (c AuthorizationClient) CreateOrUpdate(ctx context.Context, id Authorizatio http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/authorization/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/authorization/method_delete.go index 4e593e93d69..9595882688b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/authorization/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/authorization/method_delete.go @@ -53,8 +53,8 @@ func (c AuthorizationClient) Delete(ctx context.Context, id AuthorizationId, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/authorizationaccesspolicy/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/authorizationaccesspolicy/method_createorupdate.go index 922837e981a..346e394cab1 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/authorizationaccesspolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/authorizationaccesspolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c AuthorizationAccessPolicyClient) CreateOrUpdate(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/authorizationaccesspolicy/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/authorizationaccesspolicy/method_delete.go index 59c5782e01d..3d067c9cc2b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/authorizationaccesspolicy/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/authorizationaccesspolicy/method_delete.go @@ -53,8 +53,8 @@ func (c AuthorizationAccessPolicyClient) Delete(ctx context.Context, id AccessPo http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/authorizationaccesspolicy/method_listbyauthorization.go b/resource-manager/apimanagement/2023-05-01-preview/authorizationaccesspolicy/method_listbyauthorization.go index e58a6d8047a..3a1d919d552 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/authorizationaccesspolicy/method_listbyauthorization.go +++ b/resource-manager/apimanagement/2023-05-01-preview/authorizationaccesspolicy/method_listbyauthorization.go @@ -58,6 +58,18 @@ func (o ListByAuthorizationOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAuthorizationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAuthorizationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAuthorization ... func (c AuthorizationAccessPolicyClient) ListByAuthorization(ctx context.Context, id AuthorizationId, options ListByAuthorizationOperationOptions) (result ListByAuthorizationOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c AuthorizationAccessPolicyClient) ListByAuthorization(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/accessPolicies", id.ID()), OptionsObject: options, + Pager: &ListByAuthorizationCustomPager{}, + Path: fmt.Sprintf("%s/accessPolicies", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/authorizationprovider/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/authorizationprovider/method_createorupdate.go index 6cbc899e40f..f516f5c677f 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/authorizationprovider/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/authorizationprovider/method_createorupdate.go @@ -54,8 +54,8 @@ func (c AuthorizationProviderClient) CreateOrUpdate(ctx context.Context, id Auth http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/authorizationprovider/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/authorizationprovider/method_delete.go index 29ff97189f8..0c0c82a4e01 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/authorizationprovider/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/authorizationprovider/method_delete.go @@ -53,8 +53,8 @@ func (c AuthorizationProviderClient) Delete(ctx context.Context, id Authorizatio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/authorizationprovider/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/authorizationprovider/method_listbyservice.go index aaf6185de74..8e28a4d589e 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/authorizationprovider/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/authorizationprovider/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c AuthorizationProviderClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c AuthorizationProviderClient) ListByService(ctx context.Context, id Servi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/authorizationProviders", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/authorizationProviders", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/authorizations/method_authorizationlistbyauthorizationprovider.go b/resource-manager/apimanagement/2023-05-01-preview/authorizations/method_authorizationlistbyauthorizationprovider.go index 069ef73ac73..61659c7182f 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/authorizations/method_authorizationlistbyauthorizationprovider.go +++ b/resource-manager/apimanagement/2023-05-01-preview/authorizations/method_authorizationlistbyauthorizationprovider.go @@ -58,6 +58,18 @@ func (o AuthorizationListByAuthorizationProviderOperationOptions) ToQuery() *cli return &out } +type AuthorizationListByAuthorizationProviderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AuthorizationListByAuthorizationProviderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AuthorizationListByAuthorizationProvider ... func (c AuthorizationsClient) AuthorizationListByAuthorizationProvider(ctx context.Context, id AuthorizationProviderId, options AuthorizationListByAuthorizationProviderOperationOptions) (result AuthorizationListByAuthorizationProviderOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c AuthorizationsClient) AuthorizationListByAuthorizationProvider(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/authorizations", id.ID()), OptionsObject: options, + Pager: &AuthorizationListByAuthorizationProviderCustomPager{}, + Path: fmt.Sprintf("%s/authorizations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_createorupdate.go index 829a1d5fea6..ef58fe9a05f 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_createorupdate.go @@ -54,8 +54,8 @@ func (c AuthorizationServerClient) CreateOrUpdate(ctx context.Context, id Author http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_delete.go index ad1674315f1..a307aa17d3f 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_delete.go @@ -53,8 +53,8 @@ func (c AuthorizationServerClient) Delete(ctx context.Context, id AuthorizationS http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_listbyservice.go index 57a60560fcb..ae4ad390656 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c AuthorizationServerClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c AuthorizationServerClient) ListByService(ctx context.Context, id Service http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/authorizationServers", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/authorizationServers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_update.go index 7d4ff9e27e5..686f7550e4d 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/authorizationserver/method_update.go @@ -53,8 +53,8 @@ func (c AuthorizationServerClient) Update(ctx context.Context, id AuthorizationS http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/backend/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/backend/method_createorupdate.go index 4e71e305e80..876a39e1fb9 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/backend/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/backend/method_createorupdate.go @@ -54,8 +54,8 @@ func (c BackendClient) CreateOrUpdate(ctx context.Context, id BackendId, input B http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/backend/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/backend/method_delete.go index a8e6a5ab37b..f71fa94d865 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/backend/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/backend/method_delete.go @@ -53,8 +53,8 @@ func (c BackendClient) Delete(ctx context.Context, id BackendId, options DeleteO http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/backend/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/backend/method_listbyservice.go index b548349e214..f8c5b6daf2a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/backend/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/backend/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c BackendClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c BackendClient) ListByService(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/backends", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/backends", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/backend/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/backend/method_update.go index 97185a514fe..3c102cf0e80 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/backend/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/backend/method_update.go @@ -53,8 +53,8 @@ func (c BackendClient) Update(ctx context.Context, id BackendId, input BackendUp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/cache/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/cache/method_createorupdate.go index b4db4020b21..26ef5edfcc7 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/cache/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/cache/method_createorupdate.go @@ -54,8 +54,8 @@ func (c CacheClient) CreateOrUpdate(ctx context.Context, id CacheId, input Cache http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/cache/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/cache/method_delete.go index 4409902bb76..511791374c6 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/cache/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/cache/method_delete.go @@ -53,8 +53,8 @@ func (c CacheClient) Delete(ctx context.Context, id CacheId, options DeleteOpera http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/cache/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/cache/method_listbyservice.go index 39f7805d8e3..29189620638 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/cache/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/cache/method_listbyservice.go @@ -54,6 +54,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c CacheClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c CacheClient) ListByService(ctx context.Context, id ServiceId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/caches", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/caches", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/cache/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/cache/method_update.go index 6296cdf9b2c..9388cab550d 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/cache/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/cache/method_update.go @@ -53,8 +53,8 @@ func (c CacheClient) Update(ctx context.Context, id CacheId, input CacheUpdatePa http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/certificate/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/certificate/method_createorupdate.go index 0476a329804..823d71d3e64 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/certificate/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/certificate/method_createorupdate.go @@ -54,8 +54,8 @@ func (c CertificateClient) CreateOrUpdate(ctx context.Context, id CertificateId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/certificate/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/certificate/method_delete.go index 18be0e732de..6c0ded0942d 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/certificate/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/certificate/method_delete.go @@ -53,8 +53,8 @@ func (c CertificateClient) Delete(ctx context.Context, id CertificateId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/certificate/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/certificate/method_listbyservice.go index 7b01403347d..9f45a52fd7c 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/certificate/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/certificate/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c CertificateClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c CertificateClient) ListByService(ctx context.Context, id ServiceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/certificates", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/certificates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/contenttype/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/contenttype/method_createorupdate.go index 71ddbe34c69..d1a48e0857c 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/contenttype/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/contenttype/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ContentTypeClient) CreateOrUpdate(ctx context.Context, id ContentTypeId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/contenttype/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/contenttype/method_delete.go index 5a87b291973..d3dc044bf5c 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/contenttype/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/contenttype/method_delete.go @@ -53,8 +53,8 @@ func (c ContentTypeClient) Delete(ctx context.Context, id ContentTypeId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/contenttype/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/contenttype/method_listbyservice.go index a24decc6d1b..e8b77a15ea7 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/contenttype/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/contenttype/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []ContentTypeContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ContentTypeClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContentTypeClient) ListByService(ctx context.Context, id ServiceId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/contentTypes", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/contenttypecontentitem/method_contentitemcreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/contenttypecontentitem/method_contentitemcreateorupdate.go index 664712ae813..c23ccc2fcb2 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/contenttypecontentitem/method_contentitemcreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/contenttypecontentitem/method_contentitemcreateorupdate.go @@ -54,8 +54,8 @@ func (c ContentTypeContentItemClient) ContentItemCreateOrUpdate(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/contenttypecontentitem/method_contentitemdelete.go b/resource-manager/apimanagement/2023-05-01-preview/contenttypecontentitem/method_contentitemdelete.go index 5b8b348a02c..ae0888ce9e8 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/contenttypecontentitem/method_contentitemdelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/contenttypecontentitem/method_contentitemdelete.go @@ -53,8 +53,8 @@ func (c ContentTypeContentItemClient) ContentItemDelete(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/contenttypecontentitem/method_contentitemlistbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/contenttypecontentitem/method_contentitemlistbyservice.go index c0e0f950a07..c9e59da0d4b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/contenttypecontentitem/method_contentitemlistbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/contenttypecontentitem/method_contentitemlistbyservice.go @@ -23,6 +23,18 @@ type ContentItemListByServiceCompleteResult struct { Items []ContentItemContract } +type ContentItemListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ContentItemListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ContentItemListByService ... func (c ContentTypeContentItemClient) ContentItemListByService(ctx context.Context, id ContentTypeId) (result ContentItemListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContentTypeContentItemClient) ContentItemListByService(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ContentItemListByServiceCustomPager{}, Path: fmt.Sprintf("%s/contentItems", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_createorupdate.go index c574f42d95e..194af96a592 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_createorupdate.go @@ -53,8 +53,8 @@ func (c DelegationSettingsClient) CreateOrUpdate(ctx context.Context, id Service http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/portalsettings/delegation", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/delegation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_update.go index 924b296b5fa..c010e8ee865 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/delegationsettings/method_update.go @@ -52,8 +52,8 @@ func (c DelegationSettingsClient) Update(ctx context.Context, id ServiceId, inpu http.StatusNoContent, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/portalsettings/delegation", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/delegation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_listbysubscription.go b/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_listbysubscription.go index 6c0132f0445..5eed8b3bffd 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_listbysubscription.go +++ b/resource-manager/apimanagement/2023-05-01-preview/deletedservice/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DeletedServiceContract } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DeletedServiceClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeletedServiceClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiManagement/deletedServices", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_createorupdate.go index d420d7f7f4a..63709e2900a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_createorupdate.go @@ -54,8 +54,8 @@ func (c DiagnosticClient) CreateOrUpdate(ctx context.Context, id DiagnosticId, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_delete.go index 3cd08df2cd9..4f5b2bc7d55 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_delete.go @@ -53,8 +53,8 @@ func (c DiagnosticClient) Delete(ctx context.Context, id DiagnosticId, options D http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_listbyservice.go index 193f2227e7d..8f84fb8b874 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c DiagnosticClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c DiagnosticClient) ListByService(ctx context.Context, id ServiceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/diagnostics", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/diagnostics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_update.go index 1b400423529..a98dfa6617c 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/diagnostic/method_update.go @@ -53,8 +53,8 @@ func (c DiagnosticClient) Update(ctx context.Context, id DiagnosticId, input Dia http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_createorupdate.go index 3f5323e3fa2..dba91b12734 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_createorupdate.go @@ -54,8 +54,8 @@ func (c DocumentationResourceClient) CreateOrUpdate(ctx context.Context, id Docu http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_delete.go index 317039d8290..dc215c80397 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_delete.go @@ -53,8 +53,8 @@ func (c DocumentationResourceClient) Delete(ctx context.Context, id Documentatio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_listbyservice.go index d10bdea6a20..fd2023ee4d1 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c DocumentationResourceClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c DocumentationResourceClient) ListByService(ctx context.Context, id Servi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/documentations", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/documentations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_update.go index b86a8378a3e..74fdf96af9a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/documentationresource/method_update.go @@ -53,8 +53,8 @@ func (c DocumentationResourceClient) Update(ctx context.Context, id Documentatio http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/emailtemplate/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/emailtemplate/method_listbyservice.go index ae511a8e1a3..c18ee603b17 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/emailtemplate/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/emailtemplate/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c EmailTemplateClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c EmailTemplateClient) ListByService(ctx context.Context, id ServiceId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/templates", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/templates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatecreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatecreateorupdate.go index 5db20c4d21b..8f48b83acfd 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatecreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatecreateorupdate.go @@ -54,8 +54,8 @@ func (c EmailTemplatesClient) EmailTemplateCreateOrUpdate(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatedelete.go b/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatedelete.go index 0edd892ed23..3bea1260006 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatedelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplatedelete.go @@ -53,8 +53,8 @@ func (c EmailTemplatesClient) EmailTemplateDelete(ctx context.Context, id Templa http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplateupdate.go b/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplateupdate.go index 6eea241be4a..6870b6a5cc8 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplateupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/emailtemplates/method_emailtemplateupdate.go @@ -53,8 +53,8 @@ func (c EmailTemplatesClient) EmailTemplateUpdate(ctx context.Context, id Templa http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/gateway/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/gateway/method_createorupdate.go index 59ae1f743ca..d73cce62328 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/gateway/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/gateway/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GatewayClient) CreateOrUpdate(ctx context.Context, id GatewayId, input G http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/gateway/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/gateway/method_delete.go index 34c8698ad34..a3e76d4da96 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/gateway/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/gateway/method_delete.go @@ -53,8 +53,8 @@ func (c GatewayClient) Delete(ctx context.Context, id GatewayId, options DeleteO http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/gateway/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/gateway/method_listbyservice.go index 4bfdcb926cf..182f1a1be3b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/gateway/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/gateway/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GatewayClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GatewayClient) ListByService(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/gateways", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/gateways", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/gateway/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/gateway/method_update.go index e627b60c153..2113086018c 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/gateway/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/gateway/method_update.go @@ -53,8 +53,8 @@ func (c GatewayClient) Update(ctx context.Context, id GatewayId, input GatewayCo http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_listbyservice.go index 7c280966f74..0babf1b2093 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/gatewayapi/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GatewayApiClient) ListByService(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GatewayApiClient) ListByService(ctx context.Context, id GatewayId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apis", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/apis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_createorupdate.go index b90a741574b..421099fff39 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GatewayCertificateAuthorityClient) CreateOrUpdate(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_delete.go index ee1deb63010..a6b9d901d6b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_delete.go @@ -53,8 +53,8 @@ func (c GatewayCertificateAuthorityClient) Delete(ctx context.Context, id Certif http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_listbyservice.go index a52949d34f2..c1b242e9166 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/gatewaycertificateauthority/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GatewayCertificateAuthorityClient) ListByService(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GatewayCertificateAuthorityClient) ListByService(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/certificateAuthorities", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/certificateAuthorities", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_createorupdate.go index 479612244ec..81fc99af124 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GatewayHostnameConfigurationClient) CreateOrUpdate(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_delete.go index d36e0d55e20..0964c8fdc78 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_delete.go @@ -53,8 +53,8 @@ func (c GatewayHostnameConfigurationClient) Delete(ctx context.Context, id Hostn http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_listbyservice.go index 2015a5312d8..619bbf3fcd1 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/gatewayhostnameconfiguration/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GatewayHostnameConfigurationClient) ListByService(ctx context.Context, id GatewayId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GatewayHostnameConfigurationClient) ListByService(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/hostnameConfigurations", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/hostnameConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_createorupdate.go index f7d8ee0c5db..7860204fd3c 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GraphQLApiResolverClient) CreateOrUpdate(ctx context.Context, id Resolve http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_delete.go index 8cc0fdc47a5..914915dc4d6 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_delete.go @@ -53,8 +53,8 @@ func (c GraphQLApiResolverClient) Delete(ctx context.Context, id ResolverId, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_listbyapi.go b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_listbyapi.go index a96fdfdc56a..5ce194fb6df 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_listbyapi.go +++ b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_listbyapi.go @@ -58,6 +58,18 @@ func (o ListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c GraphQLApiResolverClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GraphQLApiResolverClient) ListByApi(ctx context.Context, id ApiId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resolvers", id.ID()), OptionsObject: options, + Pager: &ListByApiCustomPager{}, + Path: fmt.Sprintf("%s/resolvers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_update.go index ca10767f59d..3fa45e6fa93 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolver/method_update.go @@ -53,8 +53,8 @@ func (c GraphQLApiResolverClient) Update(ctx context.Context, id ResolverId, inp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_createorupdate.go index eb30df860b1..c349e81087a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GraphQLApiResolverPolicyClient) CreateOrUpdate(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_delete.go index 5e547dd0eb1..619ea1f6171 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_delete.go @@ -53,8 +53,8 @@ func (c GraphQLApiResolverPolicyClient) Delete(ctx context.Context, id ResolverI http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_get.go b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_get.go index fab40154579..4e49bd17793 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_get.go +++ b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_get.go @@ -53,8 +53,8 @@ func (c GraphQLApiResolverPolicyClient) Get(ctx context.Context, id ResolverId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_listbyresolver.go b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_listbyresolver.go index 633a6789fc7..afed3381e23 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_listbyresolver.go +++ b/resource-manager/apimanagement/2023-05-01-preview/graphqlapiresolverpolicy/method_listbyresolver.go @@ -23,6 +23,18 @@ type ListByResolverCompleteResult struct { Items []PolicyContract } +type ListByResolverCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResolverCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResolver ... func (c GraphQLApiResolverPolicyClient) ListByResolver(ctx context.Context, id ResolverId) (result ListByResolverOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GraphQLApiResolverPolicyClient) ListByResolver(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResolverCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/group/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/group/method_createorupdate.go index 3767fd421bc..e8b639dbe8b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/group/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/group/method_createorupdate.go @@ -54,8 +54,8 @@ func (c GroupClient) CreateOrUpdate(ctx context.Context, id GroupId, input Group http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/group/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/group/method_delete.go index 8bd332e45a2..b7358fde533 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/group/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/group/method_delete.go @@ -53,8 +53,8 @@ func (c GroupClient) Delete(ctx context.Context, id GroupId, options DeleteOpera http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/group/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/group/method_listbyservice.go index e653a1e0587..4f8da96ef4a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/group/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/group/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c GroupClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GroupClient) ListByService(ctx context.Context, id ServiceId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groups", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/groups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/group/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/group/method_update.go index 5c45092a61d..70066730bb1 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/group/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/group/method_update.go @@ -53,8 +53,8 @@ func (c GroupClient) Update(ctx context.Context, id GroupId, input GroupUpdatePa http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupcreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupcreateorupdate.go index b93dcb01655..5ad40a08c47 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupcreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupcreateorupdate.go @@ -54,8 +54,8 @@ func (c GroupClient) WorkspaceGroupCreateOrUpdate(ctx context.Context, id Worksp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupdelete.go b/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupdelete.go index 2033591d7a3..949a8cb1846 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupdelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupdelete.go @@ -53,8 +53,8 @@ func (c GroupClient) WorkspaceGroupDelete(ctx context.Context, id WorkspaceGroup http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegrouplistbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegrouplistbyservice.go index f1af44c3dc8..2aa11bf1959 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegrouplistbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegrouplistbyservice.go @@ -58,6 +58,18 @@ func (o WorkspaceGroupListByServiceOperationOptions) ToQuery() *client.QueryPara return &out } +type WorkspaceGroupListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceGroupListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceGroupListByService ... func (c GroupClient) WorkspaceGroupListByService(ctx context.Context, id WorkspaceId, options WorkspaceGroupListByServiceOperationOptions) (result WorkspaceGroupListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GroupClient) WorkspaceGroupListByService(ctx context.Context, id Workspa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groups", id.ID()), OptionsObject: options, + Pager: &WorkspaceGroupListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/groups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupupdate.go b/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupupdate.go index a0e5be34664..6e246635560 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/group/method_workspacegroupupdate.go @@ -53,8 +53,8 @@ func (c GroupClient) WorkspaceGroupUpdate(ctx context.Context, id WorkspaceGroup http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_list.go b/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_list.go index 7078af429f4..b2f4d682063 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_list.go +++ b/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GroupUserClient) List(ctx context.Context, id GroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GroupUserClient) List(ctx context.Context, id GroupId, options ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/users", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/users", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserlist.go b/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserlist.go index 11da3345479..c4e2a527039 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserlist.go +++ b/resource-manager/apimanagement/2023-05-01-preview/groupuser/method_workspacegroupuserlist.go @@ -58,6 +58,18 @@ func (o WorkspaceGroupUserListOperationOptions) ToQuery() *client.QueryParams { return &out } +type WorkspaceGroupUserListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceGroupUserListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceGroupUserList ... func (c GroupUserClient) WorkspaceGroupUserList(ctx context.Context, id WorkspaceGroupId, options WorkspaceGroupUserListOperationOptions) (result WorkspaceGroupUserListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GroupUserClient) WorkspaceGroupUserList(ctx context.Context, id Workspac http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/users", id.ID()), OptionsObject: options, + Pager: &WorkspaceGroupUserListCustomPager{}, + Path: fmt.Sprintf("%s/users", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_createorupdate.go index c18cdcc3186..834adf0fae9 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_createorupdate.go @@ -54,8 +54,8 @@ func (c IdentityProviderClient) CreateOrUpdate(ctx context.Context, id IdentityP http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_delete.go index ff4f9cee7c4..825d432de2b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_delete.go @@ -53,8 +53,8 @@ func (c IdentityProviderClient) Delete(ctx context.Context, id IdentityProviderI http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_listbyservice.go index badc7b19f13..25e8a873460 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []IdentityProviderContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c IdentityProviderClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IdentityProviderClient) ListByService(ctx context.Context, id ServiceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/identityProviders", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_update.go index 05c072adbd7..ac8db539b33 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/identityprovider/method_update.go @@ -53,8 +53,8 @@ func (c IdentityProviderClient) Update(ctx context.Context, id IdentityProviderI http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/issue/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/issue/method_listbyservice.go index f9602411ca6..bdf1aa92398 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/issue/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/issue/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c IssueClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IssueClient) ListByService(ctx context.Context, id ServiceId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/issues", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/issues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/logger/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/logger/method_createorupdate.go index da6916ba08a..b1a476b3cf9 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/logger/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/logger/method_createorupdate.go @@ -54,8 +54,8 @@ func (c LoggerClient) CreateOrUpdate(ctx context.Context, id LoggerId, input Log http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/logger/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/logger/method_delete.go index 9a3b1b42ad9..d1edc7304d6 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/logger/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/logger/method_delete.go @@ -53,8 +53,8 @@ func (c LoggerClient) Delete(ctx context.Context, id LoggerId, options DeleteOpe http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/logger/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/logger/method_listbyservice.go index 7ecf48a848a..3765ffa1f12 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/logger/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/logger/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c LoggerClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c LoggerClient) ListByService(ctx context.Context, id ServiceId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/loggers", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/loggers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/logger/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/logger/method_update.go index ae89fc7a148..e7491dd03c2 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/logger/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/logger/method_update.go @@ -53,8 +53,8 @@ func (c LoggerClient) Update(ctx context.Context, id LoggerId, input LoggerUpdat http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_createorupdate.go index 767fcf3375c..a12111f998e 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_createorupdate.go @@ -57,8 +57,8 @@ func (c NamedValueClient) CreateOrUpdate(ctx context.Context, id NamedValueId, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_delete.go index 82bbf62ac51..f47f9ad5955 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_delete.go @@ -53,8 +53,8 @@ func (c NamedValueClient) Delete(ctx context.Context, id NamedValueId, options D http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_listbyservice.go index fd10b0b4a15..c484c236266 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c NamedValueClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c NamedValueClient) ListByService(ctx context.Context, id ServiceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/namedValues", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/namedValues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_update.go index 2ca7cac78e1..0bb9dff4811 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_update.go @@ -57,8 +57,8 @@ func (c NamedValueClient) Update(ctx context.Context, id NamedValueId, input Nam http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go index 013cb74e3b0..84290f98fbb 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluecreateorupdate.go @@ -57,8 +57,8 @@ func (c NamedValueClient) WorkspaceNamedValueCreateOrUpdate(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluedelete.go b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluedelete.go index 2484ce43aa1..7d05e234c48 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluedelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluedelete.go @@ -53,8 +53,8 @@ func (c NamedValueClient) WorkspaceNamedValueDelete(ctx context.Context, id Work http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go index 9da210e6130..87a17e3f92f 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvaluelistbyservice.go @@ -62,6 +62,18 @@ func (o WorkspaceNamedValueListByServiceOperationOptions) ToQuery() *client.Quer return &out } +type WorkspaceNamedValueListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceNamedValueListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceNamedValueListByService ... func (c NamedValueClient) WorkspaceNamedValueListByService(ctx context.Context, id WorkspaceId, options WorkspaceNamedValueListByServiceOperationOptions) (result WorkspaceNamedValueListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c NamedValueClient) WorkspaceNamedValueListByService(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/namedValues", id.ID()), OptionsObject: options, + Pager: &WorkspaceNamedValueListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/namedValues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueupdate.go b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueupdate.go index 472ac0b96e7..2767761302a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/namedvalue/method_workspacenamedvalueupdate.go @@ -57,8 +57,8 @@ func (c NamedValueClient) WorkspaceNamedValueUpdate(ctx context.Context, id Work http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/notification/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/notification/method_createorupdate.go index 3f574185235..f66ed7aa163 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/notification/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/notification/method_createorupdate.go @@ -53,8 +53,8 @@ func (c NotificationClient) CreateOrUpdate(ctx context.Context, id NotificationI http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/notification/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/notification/method_listbyservice.go index 974405063c3..b8f071f58f8 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/notification/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/notification/method_listbyservice.go @@ -54,6 +54,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c NotificationClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c NotificationClient) ListByService(ctx context.Context, id ServiceId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/notifications", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/notifications", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/notification/method_workspacenotificationcreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/notification/method_workspacenotificationcreateorupdate.go index a5e04dfec9d..f9129556c8d 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/notification/method_workspacenotificationcreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/notification/method_workspacenotificationcreateorupdate.go @@ -53,8 +53,8 @@ func (c NotificationClient) WorkspaceNotificationCreateOrUpdate(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/notification/method_workspacenotificationlistbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/notification/method_workspacenotificationlistbyservice.go index 0e7ef686ede..9c9bdd761b7 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/notification/method_workspacenotificationlistbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/notification/method_workspacenotificationlistbyservice.go @@ -54,6 +54,18 @@ func (o WorkspaceNotificationListByServiceOperationOptions) ToQuery() *client.Qu return &out } +type WorkspaceNotificationListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceNotificationListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceNotificationListByService ... func (c NotificationClient) WorkspaceNotificationListByService(ctx context.Context, id WorkspaceId, options WorkspaceNotificationListByServiceOperationOptions) (result WorkspaceNotificationListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c NotificationClient) WorkspaceNotificationListByService(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/notifications", id.ID()), OptionsObject: options, + Pager: &WorkspaceNotificationListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/notifications", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_listbynotification.go b/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_listbynotification.go index 14e42e1fd39..8b4a8334e42 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_listbynotification.go +++ b/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_listbynotification.go @@ -23,6 +23,18 @@ type ListByNotificationCompleteResult struct { Items []RecipientEmailContract } +type ListByNotificationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNotificationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNotification ... func (c NotificationRecipientEmailClient) ListByNotification(ctx context.Context, id NotificationId) (result ListByNotificationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NotificationRecipientEmailClient) ListByNotification(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByNotificationCustomPager{}, Path: fmt.Sprintf("%s/recipientEmails", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go b/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go index b051b461b2f..42575e8657e 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go +++ b/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientemail/method_workspacenotificationrecipientemaillistbynotification.go @@ -23,6 +23,18 @@ type WorkspaceNotificationRecipientEmailListByNotificationCompleteResult struct Items []RecipientEmailContract } +type WorkspaceNotificationRecipientEmailListByNotificationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceNotificationRecipientEmailListByNotificationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceNotificationRecipientEmailListByNotification ... func (c NotificationRecipientEmailClient) WorkspaceNotificationRecipientEmailListByNotification(ctx context.Context, id NotificationNotificationId) (result WorkspaceNotificationRecipientEmailListByNotificationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NotificationRecipientEmailClient) WorkspaceNotificationRecipientEmailLis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceNotificationRecipientEmailListByNotificationCustomPager{}, Path: fmt.Sprintf("%s/recipientEmails", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_listbynotification.go b/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_listbynotification.go index 847eb047a9e..c5c24a45310 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_listbynotification.go +++ b/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_listbynotification.go @@ -23,6 +23,18 @@ type ListByNotificationCompleteResult struct { Items []RecipientUserContract } +type ListByNotificationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNotificationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNotification ... func (c NotificationRecipientUserClient) ListByNotification(ctx context.Context, id NotificationId) (result ListByNotificationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NotificationRecipientUserClient) ListByNotification(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByNotificationCustomPager{}, Path: fmt.Sprintf("%s/recipientUsers", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go b/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go index 31b6b1d3cf2..0665d50ca9c 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go +++ b/resource-manager/apimanagement/2023-05-01-preview/notificationrecipientuser/method_workspacenotificationrecipientuserlistbynotification.go @@ -23,6 +23,18 @@ type WorkspaceNotificationRecipientUserListByNotificationCompleteResult struct { Items []RecipientUserContract } +type WorkspaceNotificationRecipientUserListByNotificationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceNotificationRecipientUserListByNotificationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceNotificationRecipientUserListByNotification ... func (c NotificationRecipientUserClient) WorkspaceNotificationRecipientUserListByNotification(ctx context.Context, id NotificationNotificationId) (result WorkspaceNotificationRecipientUserListByNotificationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NotificationRecipientUserClient) WorkspaceNotificationRecipientUserListB http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceNotificationRecipientUserListByNotificationCustomPager{}, Path: fmt.Sprintf("%s/recipientUsers", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_createorupdate.go index ff2b6f9a1da..ab5c53bdaa6 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_createorupdate.go @@ -54,8 +54,8 @@ func (c OpenidConnectProviderClient) CreateOrUpdate(ctx context.Context, id Open http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_delete.go index dd6f6bbf9c4..d434f5eff61 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_delete.go @@ -53,8 +53,8 @@ func (c OpenidConnectProviderClient) Delete(ctx context.Context, id OpenidConnec http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_listbyservice.go index 77de74db966..a4b2de8c3dc 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c OpenidConnectProviderClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c OpenidConnectProviderClient) ListByService(ctx context.Context, id Servi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/openidConnectProviders", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/openidConnectProviders", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_update.go index 92e492d4a4b..fc095d745c7 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/openidconnectprovider/method_update.go @@ -53,8 +53,8 @@ func (c OpenidConnectProviderClient) Update(ctx context.Context, id OpenidConnec http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/outboundnetworkdependenciesendpoints/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/outboundnetworkdependenciesendpoints/method_listbyservice.go index e1d09a514e4..5857b50c144 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/outboundnetworkdependenciesendpoints/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/outboundnetworkdependenciesendpoints/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c OutboundNetworkDependenciesEndpointsClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c OutboundNetworkDependenciesEndpointsClient) ListByService(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/policy/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/policy/method_createorupdate.go index 369dcde43da..3bfe1519731 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policy/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c PolicyClient) CreateOrUpdate(ctx context.Context, id ServiceId, input Po http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policy/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/policy/method_delete.go index 4ddd78e13cb..4b39d1a4a2d 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policy/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policy/method_delete.go @@ -53,8 +53,8 @@ func (c PolicyClient) Delete(ctx context.Context, id ServiceId, options DeleteOp http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policy/method_get.go b/resource-manager/apimanagement/2023-05-01-preview/policy/method_get.go index 9041e2d613d..5a9a428f5ec 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policy/method_get.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policy/method_get.go @@ -53,8 +53,8 @@ func (c PolicyClient) Get(ctx context.Context, id ServiceId, options GetOperatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policy/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/policy/method_listbyservice.go index 204ece0d797..9a51b88a353 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policy/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policy/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []PolicyContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c PolicyClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PolicyClient) ListByService(ctx context.Context, id ServiceId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/policydescription/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/policydescription/method_listbyservice.go index e6df482c4e6..cb12120f377 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policydescription/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policydescription/method_listbyservice.go @@ -53,8 +53,8 @@ func (c PolicyDescriptionClient) ListByService(ctx context.Context, id ServiceId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policyDescriptions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policyDescriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_createorupdate.go index fce7307761c..926a279b604 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_createorupdate.go @@ -57,8 +57,8 @@ func (c PolicyFragmentClient) CreateOrUpdate(ctx context.Context, id PolicyFragm http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_delete.go index c64764861f9..8a0d95204ce 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_delete.go @@ -53,8 +53,8 @@ func (c PolicyFragmentClient) Delete(ctx context.Context, id PolicyFragmentId, o http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_get.go b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_get.go index 78657ce5b45..3aa646fafdd 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_get.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_get.go @@ -53,8 +53,8 @@ func (c PolicyFragmentClient) Get(ctx context.Context, id PolicyFragmentId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listbyservice.go index 9bbcbeb4f39..e9fcb07b896 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c PolicyFragmentClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c PolicyFragmentClient) ListByService(ctx context.Context, id ServiceId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policyFragments", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/policyFragments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listreferences.go b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listreferences.go index d29481ce57a..37993c71c0d 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listreferences.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_listreferences.go @@ -54,6 +54,18 @@ func (o ListReferencesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListReferencesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListReferencesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListReferences ... func (c PolicyFragmentClient) ListReferences(ctx context.Context, id PolicyFragmentId, options ListReferencesOperationOptions) (result ListReferencesOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c PolicyFragmentClient) ListReferences(ctx context.Context, id PolicyFragm http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listReferences", id.ID()), OptionsObject: options, + Pager: &ListReferencesCustomPager{}, + Path: fmt.Sprintf("%s/listReferences", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go index 53ec607c528..07c7352e49d 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentcreateorupdate.go @@ -57,8 +57,8 @@ func (c PolicyFragmentClient) WorkspacePolicyFragmentCreateOrUpdate(ctx context. http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go index 581f75fe310..3c175e499a5 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentdelete.go @@ -53,8 +53,8 @@ func (c PolicyFragmentClient) WorkspacePolicyFragmentDelete(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentget.go b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentget.go index 2eca6683374..24b3402ea1f 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentget.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentget.go @@ -53,8 +53,8 @@ func (c PolicyFragmentClient) WorkspacePolicyFragmentGet(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go index 8418f75a21d..601c1855d17 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistbyservice.go @@ -62,6 +62,18 @@ func (o WorkspacePolicyFragmentListByServiceOperationOptions) ToQuery() *client. return &out } +type WorkspacePolicyFragmentListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspacePolicyFragmentListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspacePolicyFragmentListByService ... func (c PolicyFragmentClient) WorkspacePolicyFragmentListByService(ctx context.Context, id WorkspaceId, options WorkspacePolicyFragmentListByServiceOperationOptions) (result WorkspacePolicyFragmentListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c PolicyFragmentClient) WorkspacePolicyFragmentListByService(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policyFragments", id.ID()), OptionsObject: options, + Pager: &WorkspacePolicyFragmentListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/policyFragments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go index 788d43dcd17..fca10ec83a6 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policyfragment/method_workspacepolicyfragmentlistreferences.go @@ -54,6 +54,18 @@ func (o WorkspacePolicyFragmentListReferencesOperationOptions) ToQuery() *client return &out } +type WorkspacePolicyFragmentListReferencesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspacePolicyFragmentListReferencesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspacePolicyFragmentListReferences ... func (c PolicyFragmentClient) WorkspacePolicyFragmentListReferences(ctx context.Context, id WorkspacePolicyFragmentId, options WorkspacePolicyFragmentListReferencesOperationOptions) (result WorkspacePolicyFragmentListReferencesOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c PolicyFragmentClient) WorkspacePolicyFragmentListReferences(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listReferences", id.ID()), OptionsObject: options, + Pager: &WorkspacePolicyFragmentListReferencesCustomPager{}, + Path: fmt.Sprintf("%s/listReferences", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policyrestriction/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/policyrestriction/method_createorupdate.go index 7416505bef7..56b8f26697a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policyrestriction/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policyrestriction/method_createorupdate.go @@ -54,8 +54,8 @@ func (c PolicyRestrictionClient) CreateOrUpdate(ctx context.Context, id PolicyRe http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policyrestriction/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/policyrestriction/method_delete.go index 2d3e408a392..c4ec85cd65f 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policyrestriction/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policyrestriction/method_delete.go @@ -53,8 +53,8 @@ func (c PolicyRestrictionClient) Delete(ctx context.Context, id PolicyRestrictio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policyrestriction/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/policyrestriction/method_update.go index adb6756b4a7..87847cf947c 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policyrestriction/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policyrestriction/method_update.go @@ -53,8 +53,8 @@ func (c PolicyRestrictionClient) Update(ctx context.Context, id PolicyRestrictio http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/policyrestrictions/method_policyrestrictionlistbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/policyrestrictions/method_policyrestrictionlistbyservice.go index b04e173eec6..b3fd33a3ca9 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/policyrestrictions/method_policyrestrictionlistbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/policyrestrictions/method_policyrestrictionlistbyservice.go @@ -23,6 +23,18 @@ type PolicyRestrictionListByServiceCompleteResult struct { Items []PolicyRestrictionContract } +type PolicyRestrictionListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PolicyRestrictionListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PolicyRestrictionListByService ... func (c PolicyRestrictionsClient) PolicyRestrictionListByService(ctx context.Context, id ServiceId) (result PolicyRestrictionListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PolicyRestrictionsClient) PolicyRestrictionListByService(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PolicyRestrictionListByServiceCustomPager{}, Path: fmt.Sprintf("%s/policyRestrictions", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/portalconfig/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/portalconfig/method_createorupdate.go index 3e01073d885..94bdf726259 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/portalconfig/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/portalconfig/method_createorupdate.go @@ -53,8 +53,8 @@ func (c PortalConfigClient) CreateOrUpdate(ctx context.Context, id PortalConfigI http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/portalconfig/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/portalconfig/method_listbyservice.go index bdd5b87a042..0a0e1705d39 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/portalconfig/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/portalconfig/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []PortalConfigContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c PortalConfigClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PortalConfigClient) ListByService(ctx context.Context, id ServiceId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/portalConfigs", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/portalconfig/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/portalconfig/method_update.go index 80ecf21cd10..fce54b73ff3 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/portalconfig/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/portalconfig/method_update.go @@ -53,8 +53,8 @@ func (c PortalConfigClient) Update(ctx context.Context, id PortalConfigId, input http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/portalrevision/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/portalrevision/method_listbyservice.go index 35dca6c67c4..57df46678e2 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/portalrevision/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/portalrevision/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c PortalRevisionClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c PortalRevisionClient) ListByService(ctx context.Context, id ServiceId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/portalRevisions", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/portalRevisions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/portalrevision/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/portalrevision/method_update.go index ae5b10080b9..e3568960b04 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/portalrevision/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/portalrevision/method_update.go @@ -57,8 +57,8 @@ func (c PortalRevisionClient) Update(ctx context.Context, id PortalRevisionId, i http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/product/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/product/method_createorupdate.go index 7c22993b73c..2baf83fb505 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/product/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/product/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ProductClient) CreateOrUpdate(ctx context.Context, id ProductId, input P http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/product/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/product/method_delete.go index a2aebab1182..afc7d184b70 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/product/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/product/method_delete.go @@ -56,8 +56,8 @@ func (c ProductClient) Delete(ctx context.Context, id ProductId, options DeleteO http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/product/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/product/method_listbyservice.go index 0bb14d6d7a9..b1f50c8e42d 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/product/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/product/method_listbyservice.go @@ -66,6 +66,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c ProductClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c ProductClient) ListByService(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/product/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/product/method_update.go index e0b361db676..fc36ecd5353 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/product/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/product/method_update.go @@ -53,8 +53,8 @@ func (c ProductClient) Update(ctx context.Context, id ProductId, input ProductUp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductcreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductcreateorupdate.go index 6bccd960e2d..af10ed64d9c 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductcreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductcreateorupdate.go @@ -54,8 +54,8 @@ func (c ProductClient) WorkspaceProductCreateOrUpdate(ctx context.Context, id Wo http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductdelete.go b/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductdelete.go index c4cb1b7678a..3bf8f536240 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductdelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductdelete.go @@ -56,8 +56,8 @@ func (c ProductClient) WorkspaceProductDelete(ctx context.Context, id WorkspaceP http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductlistbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductlistbyservice.go index 5efc91a5e83..457b9a161c9 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductlistbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductlistbyservice.go @@ -66,6 +66,18 @@ func (o WorkspaceProductListByServiceOperationOptions) ToQuery() *client.QueryPa return &out } +type WorkspaceProductListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceProductListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceProductListByService ... func (c ProductClient) WorkspaceProductListByService(ctx context.Context, id WorkspaceId, options WorkspaceProductListByServiceOperationOptions) (result WorkspaceProductListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c ProductClient) WorkspaceProductListByService(ctx context.Context, id Wor http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &WorkspaceProductListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductupdate.go b/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductupdate.go index 66164d213a4..e1305ecd777 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/product/method_workspaceproductupdate.go @@ -53,8 +53,8 @@ func (c ProductClient) WorkspaceProductUpdate(ctx context.Context, id WorkspaceP http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productapi/method_listbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/productapi/method_listbyproduct.go index b9f3331e327..c06016675dd 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productapi/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productapi/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ProductApiClient) ListByProduct(ctx context.Context, id ProductId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductApiClient) ListByProduct(ctx context.Context, id ProductId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apis", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/apis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productapilink/method_listbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/productapilink/method_listbyproduct.go index 2df2925b4c8..5992341c96a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productapilink/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productapilink/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ProductApiLinkClient) ListByProduct(ctx context.Context, id ProductId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductApiLinkClient) ListByProduct(ctx context.Context, id ProductId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apiLinks", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/apiLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productapilink/method_workspaceproductapilinklistbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/productapilink/method_workspaceproductapilinklistbyproduct.go index d16da97513e..ca1989e31ec 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productapilink/method_workspaceproductapilinklistbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productapilink/method_workspaceproductapilinklistbyproduct.go @@ -58,6 +58,18 @@ func (o WorkspaceProductApiLinkListByProductOperationOptions) ToQuery() *client. return &out } +type WorkspaceProductApiLinkListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceProductApiLinkListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceProductApiLinkListByProduct ... func (c ProductApiLinkClient) WorkspaceProductApiLinkListByProduct(ctx context.Context, id WorkspaceProductId, options WorkspaceProductApiLinkListByProductOperationOptions) (result WorkspaceProductApiLinkListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductApiLinkClient) WorkspaceProductApiLinkListByProduct(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apiLinks", id.ID()), OptionsObject: options, + Pager: &WorkspaceProductApiLinkListByProductCustomPager{}, + Path: fmt.Sprintf("%s/apiLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_listbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_listbyproduct.go index aa9ed4b52ff..902f45c4f73 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productgroup/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ProductGroupClient) ListByProduct(ctx context.Context, id ProductId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductGroupClient) ListByProduct(ctx context.Context, id ProductId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groups", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/groups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productgrouplink/method_listbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/productgrouplink/method_listbyproduct.go index 74f5b35fae8..84edbb8b0f2 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productgrouplink/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productgrouplink/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ProductGroupLinkClient) ListByProduct(ctx context.Context, id ProductId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductGroupLinkClient) ListByProduct(ctx context.Context, id ProductId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groupLinks", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/groupLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productgrouplink/method_workspaceproductgrouplinklistbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/productgrouplink/method_workspaceproductgrouplinklistbyproduct.go index 69ffcb14f58..f337fc0d196 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productgrouplink/method_workspaceproductgrouplinklistbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productgrouplink/method_workspaceproductgrouplinklistbyproduct.go @@ -58,6 +58,18 @@ func (o WorkspaceProductGroupLinkListByProductOperationOptions) ToQuery() *clien return &out } +type WorkspaceProductGroupLinkListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceProductGroupLinkListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceProductGroupLinkListByProduct ... func (c ProductGroupLinkClient) WorkspaceProductGroupLinkListByProduct(ctx context.Context, id WorkspaceProductId, options WorkspaceProductGroupLinkListByProductOperationOptions) (result WorkspaceProductGroupLinkListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductGroupLinkClient) WorkspaceProductGroupLinkListByProduct(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groupLinks", id.ID()), OptionsObject: options, + Pager: &WorkspaceProductGroupLinkListByProductCustomPager{}, + Path: fmt.Sprintf("%s/groupLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_createorupdate.go index aae2081db15..923d04859e1 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ProductPolicyClient) CreateOrUpdate(ctx context.Context, id ProductId, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_delete.go index 09bc23bd22e..36e74215a96 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_delete.go @@ -53,8 +53,8 @@ func (c ProductPolicyClient) Delete(ctx context.Context, id ProductId, options D http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_get.go b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_get.go index a2d2298abf0..b96d87150c2 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_get.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_get.go @@ -53,8 +53,8 @@ func (c ProductPolicyClient) Get(ctx context.Context, id ProductId, options GetO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_listbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_listbyproduct.go index 4ce880151f5..ebb09de40c2 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_listbyproduct.go @@ -23,6 +23,18 @@ type ListByProductCompleteResult struct { Items []PolicyContract } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ProductPolicyClient) ListByProduct(ctx context.Context, id ProductId) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProductPolicyClient) ListByProduct(ctx context.Context, id ProductId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByProductCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go index f62639a8b62..9a55b9a739a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicycreateorupdate.go @@ -54,8 +54,8 @@ func (c ProductPolicyClient) WorkspaceProductPolicyCreateOrUpdate(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicydelete.go b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicydelete.go index 37fc1543c89..a76872c52a7 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicydelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicydelete.go @@ -53,8 +53,8 @@ func (c ProductPolicyClient) WorkspaceProductPolicyDelete(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicyget.go b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicyget.go index 821d4c32228..cbd5809fb0e 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicyget.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicyget.go @@ -53,8 +53,8 @@ func (c ProductPolicyClient) WorkspaceProductPolicyGet(ctx context.Context, id W http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicylistbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicylistbyproduct.go index f21a4a427e0..e6db46320f2 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicylistbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productpolicy/method_workspaceproductpolicylistbyproduct.go @@ -23,6 +23,18 @@ type WorkspaceProductPolicyListByProductCompleteResult struct { Items []PolicyContract } +type WorkspaceProductPolicyListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceProductPolicyListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceProductPolicyListByProduct ... func (c ProductPolicyClient) WorkspaceProductPolicyListByProduct(ctx context.Context, id WorkspaceProductId) (result WorkspaceProductPolicyListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProductPolicyClient) WorkspaceProductPolicyListByProduct(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceProductPolicyListByProductCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/productsbytag/method_productlistbytags.go b/resource-manager/apimanagement/2023-05-01-preview/productsbytag/method_productlistbytags.go index a09abcae5db..8cffb9f2edb 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productsbytag/method_productlistbytags.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productsbytag/method_productlistbytags.go @@ -62,6 +62,18 @@ func (o ProductListByTagsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ProductListByTagsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProductListByTagsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProductListByTags ... func (c ProductsByTagClient) ProductListByTags(ctx context.Context, id ServiceId, options ProductListByTagsOperationOptions) (result ProductListByTagsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ProductsByTagClient) ProductListByTags(ctx context.Context, id ServiceId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/productsByTags", id.ID()), OptionsObject: options, + Pager: &ProductListByTagsCustomPager{}, + Path: fmt.Sprintf("%s/productsByTags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productsubscription/method_list.go b/resource-manager/apimanagement/2023-05-01-preview/productsubscription/method_list.go index b26024edaac..c71c7ba8260 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productsubscription/method_list.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productsubscription/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProductSubscriptionClient) List(ctx context.Context, id ProductId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductSubscriptionClient) List(ctx context.Context, id ProductId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taglistbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taglistbyproduct.go index a1f8fe9be8a..4e0721b94fc 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taglistbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/producttag/method_taglistbyproduct.go @@ -58,6 +58,18 @@ func (o TagListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type TagListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TagListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TagListByProduct ... func (c ProductTagClient) TagListByProduct(ctx context.Context, id ProductId, options TagListByProductOperationOptions) (result TagListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductTagClient) TagListByProduct(ctx context.Context, id ProductId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tags", id.ID()), OptionsObject: options, + Pager: &TagListByProductCustomPager{}, + Path: fmt.Sprintf("%s/tags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_createorupdate.go index 109d86803ef..f794fc61c8a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ProductWikiClient) CreateOrUpdate(ctx context.Context, id ProductId, inp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_delete.go index f2b6e116ed7..0ccc22248a0 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_delete.go @@ -53,8 +53,8 @@ func (c ProductWikiClient) Delete(ctx context.Context, id ProductId, options Del http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_list.go b/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_list.go index 8ec9ce8ab8c..db26ef5879d 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_list.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProductWikiClient) List(ctx context.Context, id ProductId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ProductWikiClient) List(ctx context.Context, id ProductId, options ListO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/wikis", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/wikis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_update.go index 88bf6c7d30a..551aa6aab7a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/productwiki/method_update.go @@ -53,8 +53,8 @@ func (c ProductWikiClient) Update(ctx context.Context, id ProductId, input WikiU http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/wikis/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/wikis/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/quotabycounterkeys/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/quotabycounterkeys/method_listbyservice.go index 9baf2281113..bcc302ce38e 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/quotabycounterkeys/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/quotabycounterkeys/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []QuotaCounterContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c QuotaByCounterKeysClient) ListByService(ctx context.Context, id QuotaId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c QuotaByCounterKeysClient) ListByService(ctx context.Context, id QuotaId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/region/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/region/method_listbyservice.go index 57a1607f18f..5574a620a92 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/region/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/region/method_listbyservice.go @@ -23,6 +23,18 @@ type ListByServiceCompleteResult struct { Items []RegionContract } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c RegionClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RegionClient) ListByService(ctx context.Context, id ServiceId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServiceCustomPager{}, Path: fmt.Sprintf("%s/regions", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyapi.go b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyapi.go index b7ef8b0e3ab..e99479d8413 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyapi.go +++ b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyapi.go @@ -62,6 +62,18 @@ func (o ListByApiOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c ReportsClient) ListByApi(ctx context.Context, id ServiceId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListByApi(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byApi", id.ID()), OptionsObject: options, + Pager: &ListByApiCustomPager{}, + Path: fmt.Sprintf("%s/reports/byApi", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbygeo.go b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbygeo.go index 3983d75106f..1e69c1fb509 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbygeo.go +++ b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbygeo.go @@ -58,6 +58,18 @@ func (o ListByGeoOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByGeoCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGeoCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGeo ... func (c ReportsClient) ListByGeo(ctx context.Context, id ServiceId, options ListByGeoOperationOptions) (result ListByGeoOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReportsClient) ListByGeo(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byGeo", id.ID()), OptionsObject: options, + Pager: &ListByGeoCustomPager{}, + Path: fmt.Sprintf("%s/reports/byGeo", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyoperation.go b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyoperation.go index 19d88620d53..bb4465b0ce3 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyoperation.go +++ b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyoperation.go @@ -62,6 +62,18 @@ func (o ListByOperationOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByOperationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByOperationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByOperation ... func (c ReportsClient) ListByOperation(ctx context.Context, id ServiceId, options ListByOperationOperationOptions) (result ListByOperationOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListByOperation(ctx context.Context, id ServiceId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byOperation", id.ID()), OptionsObject: options, + Pager: &ListByOperationCustomPager{}, + Path: fmt.Sprintf("%s/reports/byOperation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyproduct.go index 9ed3b624aa1..3a6df43c7b4 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyproduct.go @@ -62,6 +62,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c ReportsClient) ListByProduct(ctx context.Context, id ServiceId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListByProduct(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byProduct", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/reports/byProduct", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyrequest.go b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyrequest.go index 425a6eefc2d..265c2670114 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyrequest.go +++ b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyrequest.go @@ -61,8 +61,8 @@ func (c ReportsClient) ListByRequest(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byRequest", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/reports/byRequest", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbysubscription.go b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbysubscription.go index 7c89c06c99c..1e7ffadeafd 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbysubscription.go +++ b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbysubscription.go @@ -62,6 +62,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ReportsClient) ListBySubscription(ctx context.Context, id ServiceId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListBySubscription(ctx context.Context, id ServiceId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/bySubscription", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/reports/bySubscription", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbytime.go b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbytime.go index 6d6ffe5402d..629527e4e8b 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbytime.go +++ b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbytime.go @@ -66,6 +66,18 @@ func (o ListByTimeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTimeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTimeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTime ... func (c ReportsClient) ListByTime(ctx context.Context, id ServiceId, options ListByTimeOperationOptions) (result ListByTimeOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c ReportsClient) ListByTime(ctx context.Context, id ServiceId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byTime", id.ID()), OptionsObject: options, + Pager: &ListByTimeCustomPager{}, + Path: fmt.Sprintf("%s/reports/byTime", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyuser.go b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyuser.go index b2c758e720f..0751d4a40cb 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyuser.go +++ b/resource-manager/apimanagement/2023-05-01-preview/reports/method_listbyuser.go @@ -62,6 +62,18 @@ func (o ListByUserOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByUserCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByUserCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByUser ... func (c ReportsClient) ListByUser(ctx context.Context, id ServiceId, options ListByUserOperationOptions) (result ListByUserOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReportsClient) ListByUser(ctx context.Context, id ServiceId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports/byUser", id.ID()), OptionsObject: options, + Pager: &ListByUserCustomPager{}, + Path: fmt.Sprintf("%s/reports/byUser", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemacreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemacreateorupdate.go index 9d73ce6a567..6f6a15cfe78 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemacreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemacreateorupdate.go @@ -57,8 +57,8 @@ func (c SchemaClient) GlobalSchemaCreateOrUpdate(ctx context.Context, id SchemaI http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemadelete.go b/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemadelete.go index f7169489c2b..234fcfcb78f 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemadelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemadelete.go @@ -53,8 +53,8 @@ func (c SchemaClient) GlobalSchemaDelete(ctx context.Context, id SchemaId, optio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemalistbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemalistbyservice.go index 63af31ce4a0..7797c6a6b8f 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemalistbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/schema/method_globalschemalistbyservice.go @@ -58,6 +58,18 @@ func (o GlobalSchemaListByServiceOperationOptions) ToQuery() *client.QueryParams return &out } +type GlobalSchemaListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GlobalSchemaListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GlobalSchemaListByService ... func (c SchemaClient) GlobalSchemaListByService(ctx context.Context, id ServiceId, options GlobalSchemaListByServiceOperationOptions) (result GlobalSchemaListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c SchemaClient) GlobalSchemaListByService(ctx context.Context, id ServiceI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &GlobalSchemaListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemacreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemacreateorupdate.go index 163f09572d8..99be8ac48c4 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemacreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemacreateorupdate.go @@ -57,8 +57,8 @@ func (c SchemaClient) WorkspaceGlobalSchemaCreateOrUpdate(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemadelete.go b/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemadelete.go index 4342d2c69d9..a8aab3185b1 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemadelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemadelete.go @@ -53,8 +53,8 @@ func (c SchemaClient) WorkspaceGlobalSchemaDelete(ctx context.Context, id Worksp http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemalistbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemalistbyservice.go index 41fdfdc93e8..aeae5549ab2 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemalistbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/schema/method_workspaceglobalschemalistbyservice.go @@ -58,6 +58,18 @@ func (o WorkspaceGlobalSchemaListByServiceOperationOptions) ToQuery() *client.Qu return &out } +type WorkspaceGlobalSchemaListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceGlobalSchemaListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceGlobalSchemaListByService ... func (c SchemaClient) WorkspaceGlobalSchemaListByService(ctx context.Context, id WorkspaceId, options WorkspaceGlobalSchemaListByServiceOperationOptions) (result WorkspaceGlobalSchemaListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c SchemaClient) WorkspaceGlobalSchemaListByService(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &WorkspaceGlobalSchemaListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_createorupdate.go index 189a6236516..7354010fc89 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_createorupdate.go @@ -53,8 +53,8 @@ func (c SignInSettingsClient) CreateOrUpdate(ctx context.Context, id ServiceId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/portalsettings/signin", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/signin", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_update.go index cdef3702ed0..1c0af5a3508 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/signinsettings/method_update.go @@ -52,8 +52,8 @@ func (c SignInSettingsClient) Update(ctx context.Context, id ServiceId, input Po http.StatusNoContent, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/portalsettings/signin", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/signin", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_createorupdate.go index 7e867b508f6..8d57367d2f5 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_createorupdate.go @@ -53,8 +53,8 @@ func (c SignUpSettingsClient) CreateOrUpdate(ctx context.Context, id ServiceId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/portalsettings/signup", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/signup", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_update.go index fd56de21870..8d8918d3324 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/signupsettings/method_update.go @@ -52,8 +52,8 @@ func (c SignUpSettingsClient) Update(ctx context.Context, id ServiceId, input Po http.StatusNoContent, }, HttpMethod: http.MethodPatch, - Path: fmt.Sprintf("%s/portalsettings/signup", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/portalsettings/signup", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/skus/method_apimanagementskuslist.go b/resource-manager/apimanagement/2023-05-01-preview/skus/method_apimanagementskuslist.go index 30e24e4a4ee..9c429654469 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/skus/method_apimanagementskuslist.go +++ b/resource-manager/apimanagement/2023-05-01-preview/skus/method_apimanagementskuslist.go @@ -24,6 +24,18 @@ type ApiManagementSkusListCompleteResult struct { Items []ApiManagementSku } +type ApiManagementSkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiManagementSkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApiManagementSkusList ... func (c SkusClient) ApiManagementSkusList(ctx context.Context, id commonids.SubscriptionId) (result ApiManagementSkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SkusClient) ApiManagementSkusList(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApiManagementSkusListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ApiManagement/skus", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_createorupdate.go index b6f8b008bb9..84f04d880d0 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_createorupdate.go @@ -61,8 +61,8 @@ func (c SubscriptionClient) CreateOrUpdate(ctx context.Context, id Subscriptions http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_delete.go index a14c0ad04e1..e3c31885a75 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_delete.go @@ -53,8 +53,8 @@ func (c SubscriptionClient) Delete(ctx context.Context, id Subscriptions2Id, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_list.go b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_list.go index 44c90482077..2e9d96e0473 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_list.go +++ b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SubscriptionClient) List(ctx context.Context, id ServiceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c SubscriptionClient) List(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_update.go index 298fd59a60f..635071e41ca 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_update.go @@ -60,8 +60,8 @@ func (c SubscriptionClient) Update(ctx context.Context, id Subscriptions2Id, inp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go index 27aa66c3f92..9c4c3b06ccb 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptioncreateorupdate.go @@ -61,8 +61,8 @@ func (c SubscriptionClient) WorkspaceSubscriptionCreateOrUpdate(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiondelete.go b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiondelete.go index d428f4d0d29..ae93f99c979 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiondelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptiondelete.go @@ -53,8 +53,8 @@ func (c SubscriptionClient) WorkspaceSubscriptionDelete(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlist.go b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlist.go index f80b26bdabb..ae68c703393 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlist.go +++ b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionlist.go @@ -58,6 +58,18 @@ func (o WorkspaceSubscriptionListOperationOptions) ToQuery() *client.QueryParams return &out } +type WorkspaceSubscriptionListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceSubscriptionListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceSubscriptionList ... func (c SubscriptionClient) WorkspaceSubscriptionList(ctx context.Context, id WorkspaceId, options WorkspaceSubscriptionListOperationOptions) (result WorkspaceSubscriptionListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c SubscriptionClient) WorkspaceSubscriptionList(ctx context.Context, id Wo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &WorkspaceSubscriptionListCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionupdate.go b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionupdate.go index 5967520b630..e8866e97051 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/subscription/method_workspacesubscriptionupdate.go @@ -60,8 +60,8 @@ func (c SubscriptionClient) WorkspaceSubscriptionUpdate(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tag/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/tag/method_createorupdate.go index 129583f77c6..9494659a794 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tag/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tag/method_createorupdate.go @@ -54,8 +54,8 @@ func (c TagClient) CreateOrUpdate(ctx context.Context, id TagId, input TagCreate http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tag/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/tag/method_delete.go index 01b72128471..83335d794bd 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tag/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tag/method_delete.go @@ -53,8 +53,8 @@ func (c TagClient) Delete(ctx context.Context, id TagId, options DeleteOperation http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tag/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/tag/method_listbyservice.go index 56949eaba50..efb001aaa9c 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tag/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tag/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c TagClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c TagClient) ListByService(ctx context.Context, id ServiceId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tags", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tag/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/tag/method_update.go index e7ab6b0458d..8ee0391b4d4 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tag/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tag/method_update.go @@ -53,8 +53,8 @@ func (c TagClient) Update(ctx context.Context, id TagId, input TagCreateUpdatePa http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagcreateorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagcreateorupdate.go index 50b2d685c84..43dd91a0327 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagcreateorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagcreateorupdate.go @@ -54,8 +54,8 @@ func (c TagClient) WorkspaceTagCreateOrUpdate(ctx context.Context, id WorkspaceT http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagdelete.go b/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagdelete.go index d067e04b20e..c702a5f54dc 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagdelete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagdelete.go @@ -53,8 +53,8 @@ func (c TagClient) WorkspaceTagDelete(ctx context.Context, id WorkspaceTagId, op http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaglistbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaglistbyservice.go index 47a090b9b63..e41c7e2b252 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaglistbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetaglistbyservice.go @@ -62,6 +62,18 @@ func (o WorkspaceTagListByServiceOperationOptions) ToQuery() *client.QueryParams return &out } +type WorkspaceTagListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceTagListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceTagListByService ... func (c TagClient) WorkspaceTagListByService(ctx context.Context, id WorkspaceId, options WorkspaceTagListByServiceOperationOptions) (result WorkspaceTagListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c TagClient) WorkspaceTagListByService(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tags", id.ID()), OptionsObject: options, + Pager: &WorkspaceTagListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tags", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagupdate.go b/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagupdate.go index 050ed226b21..0d23c5923a8 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tag/method_workspacetagupdate.go @@ -53,8 +53,8 @@ func (c TagClient) WorkspaceTagUpdate(ctx context.Context, id WorkspaceTagId, in http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tagapilink/method_listbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/tagapilink/method_listbyproduct.go index e0196305533..4c0cda2c870 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tagapilink/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tagapilink/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c TagApiLinkClient) ListByProduct(ctx context.Context, id TagId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagApiLinkClient) ListByProduct(ctx context.Context, id TagId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apiLinks", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/apiLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tagapilink/method_workspacetagapilinklistbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/tagapilink/method_workspacetagapilinklistbyproduct.go index 4bdd9170bea..b39a8283dfe 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tagapilink/method_workspacetagapilinklistbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tagapilink/method_workspacetagapilinklistbyproduct.go @@ -58,6 +58,18 @@ func (o WorkspaceTagApiLinkListByProductOperationOptions) ToQuery() *client.Quer return &out } +type WorkspaceTagApiLinkListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceTagApiLinkListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceTagApiLinkListByProduct ... func (c TagApiLinkClient) WorkspaceTagApiLinkListByProduct(ctx context.Context, id WorkspaceTagId, options WorkspaceTagApiLinkListByProductOperationOptions) (result WorkspaceTagApiLinkListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagApiLinkClient) WorkspaceTagApiLinkListByProduct(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/apiLinks", id.ID()), OptionsObject: options, + Pager: &WorkspaceTagApiLinkListByProductCustomPager{}, + Path: fmt.Sprintf("%s/apiLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tagoperationlink/method_listbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/tagoperationlink/method_listbyproduct.go index 4234aeca588..cee618cdcb6 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tagoperationlink/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tagoperationlink/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c TagOperationLinkClient) ListByProduct(ctx context.Context, id TagId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagOperationLinkClient) ListByProduct(ctx context.Context, id TagId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operationLinks", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/operationLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tagoperationlink/method_workspacetagoperationlinklistbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/tagoperationlink/method_workspacetagoperationlinklistbyproduct.go index d5ee53e97ab..46445e555b0 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tagoperationlink/method_workspacetagoperationlinklistbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tagoperationlink/method_workspacetagoperationlinklistbyproduct.go @@ -58,6 +58,18 @@ func (o WorkspaceTagOperationLinkListByProductOperationOptions) ToQuery() *clien return &out } +type WorkspaceTagOperationLinkListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceTagOperationLinkListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceTagOperationLinkListByProduct ... func (c TagOperationLinkClient) WorkspaceTagOperationLinkListByProduct(ctx context.Context, id WorkspaceTagId, options WorkspaceTagOperationLinkListByProductOperationOptions) (result WorkspaceTagOperationLinkListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagOperationLinkClient) WorkspaceTagOperationLinkListByProduct(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operationLinks", id.ID()), OptionsObject: options, + Pager: &WorkspaceTagOperationLinkListByProductCustomPager{}, + Path: fmt.Sprintf("%s/operationLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tagproductlink/method_listbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/tagproductlink/method_listbyproduct.go index 8b71dbd26f4..c1d3225b9ab 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tagproductlink/method_listbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tagproductlink/method_listbyproduct.go @@ -58,6 +58,18 @@ func (o ListByProductOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProduct ... func (c TagProductLinkClient) ListByProduct(ctx context.Context, id TagId, options ListByProductOperationOptions) (result ListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagProductLinkClient) ListByProduct(ctx context.Context, id TagId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/productLinks", id.ID()), OptionsObject: options, + Pager: &ListByProductCustomPager{}, + Path: fmt.Sprintf("%s/productLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tagproductlink/method_workspacetagproductlinklistbyproduct.go b/resource-manager/apimanagement/2023-05-01-preview/tagproductlink/method_workspacetagproductlinklistbyproduct.go index ac118827d3a..374d9806a47 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tagproductlink/method_workspacetagproductlinklistbyproduct.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tagproductlink/method_workspacetagproductlinklistbyproduct.go @@ -58,6 +58,18 @@ func (o WorkspaceTagProductLinkListByProductOperationOptions) ToQuery() *client. return &out } +type WorkspaceTagProductLinkListByProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceTagProductLinkListByProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceTagProductLinkListByProduct ... func (c TagProductLinkClient) WorkspaceTagProductLinkListByProduct(ctx context.Context, id WorkspaceTagId, options WorkspaceTagProductLinkListByProductOperationOptions) (result WorkspaceTagProductLinkListByProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagProductLinkClient) WorkspaceTagProductLinkListByProduct(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/productLinks", id.ID()), OptionsObject: options, + Pager: &WorkspaceTagProductLinkListByProductCustomPager{}, + Path: fmt.Sprintf("%s/productLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tagresource/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/tagresource/method_listbyservice.go index 68ff8fbf3fc..0d880dc6dad 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tagresource/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tagresource/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c TagResourceClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TagResourceClient) ListByService(ctx context.Context, id ServiceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tagResources", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tagResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_create.go b/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_create.go index 1615e42b28b..73ced417651 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_create.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_create.go @@ -53,8 +53,8 @@ func (c TenantAccessClient) Create(ctx context.Context, id AccessId, input Acces http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_listbyservice.go index cd5f6f85c79..541de46f891 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_listbyservice.go @@ -50,6 +50,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c TenantAccessClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c TenantAccessClient) ListByService(ctx context.Context, id ServiceId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tenant", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/tenant", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_update.go index ad921165696..73793de2965 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tenantaccess/method_update.go @@ -53,8 +53,8 @@ func (c TenantAccessClient) Update(ctx context.Context, id AccessId, input Acces http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/tenantsettings/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/tenantsettings/method_listbyservice.go index 05666d1dd38..12487f36224 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/tenantsettings/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/tenantsettings/method_listbyservice.go @@ -50,6 +50,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c TenantSettingsClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c TenantSettingsClient) ListByService(ctx context.Context, id ServiceId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/settings", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/settings", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/user/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/user/method_createorupdate.go index 6fbf588a080..b1cf998602d 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/user/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/user/method_createorupdate.go @@ -57,8 +57,8 @@ func (c UserClient) CreateOrUpdate(ctx context.Context, id UserId, input UserCre http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/user/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/user/method_delete.go index 2c9e1594925..e5d13dba442 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/user/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/user/method_delete.go @@ -67,8 +67,8 @@ func (c UserClient) Delete(ctx context.Context, id UserId, options DeleteOperati http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/user/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/user/method_listbyservice.go index 0663b1e6c1c..e098057b246 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/user/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/user/method_listbyservice.go @@ -62,6 +62,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c UserClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c UserClient) ListByService(ctx context.Context, id ServiceId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/users", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/users", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/user/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/user/method_update.go index bf1fda6cbfd..11353f91240 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/user/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/user/method_update.go @@ -53,8 +53,8 @@ func (c UserClient) Update(ctx context.Context, id UserId, input UserUpdateParam http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/userconfirmationpasswordsend/method_userconfirmationpasswordsend.go b/resource-manager/apimanagement/2023-05-01-preview/userconfirmationpasswordsend/method_userconfirmationpasswordsend.go index 883292fd0c2..b1915a44d82 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/userconfirmationpasswordsend/method_userconfirmationpasswordsend.go +++ b/resource-manager/apimanagement/2023-05-01-preview/userconfirmationpasswordsend/method_userconfirmationpasswordsend.go @@ -52,8 +52,8 @@ func (c UserConfirmationPasswordSendClient) UserConfirmationPasswordSend(ctx con http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/confirmations/password/send", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/confirmations/password/send", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/usergroup/method_list.go b/resource-manager/apimanagement/2023-05-01-preview/usergroup/method_list.go index 4a9e2950a71..cfe2c191701 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/usergroup/method_list.go +++ b/resource-manager/apimanagement/2023-05-01-preview/usergroup/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UserGroupClient) List(ctx context.Context, id UserId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c UserGroupClient) List(ctx context.Context, id UserId, options ListOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/groups", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/groups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/useridentity/method_useridentitieslist.go b/resource-manager/apimanagement/2023-05-01-preview/useridentity/method_useridentitieslist.go index ebb7f0f9931..43e22220140 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/useridentity/method_useridentitieslist.go +++ b/resource-manager/apimanagement/2023-05-01-preview/useridentity/method_useridentitieslist.go @@ -23,6 +23,18 @@ type UserIdentitiesListCompleteResult struct { Items []UserIdentityContract } +type UserIdentitiesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UserIdentitiesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UserIdentitiesList ... func (c UserIdentityClient) UserIdentitiesList(ctx context.Context, id UserId) (result UserIdentitiesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UserIdentityClient) UserIdentitiesList(ctx context.Context, id UserId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UserIdentitiesListCustomPager{}, Path: fmt.Sprintf("%s/identities", id.ID()), } diff --git a/resource-manager/apimanagement/2023-05-01-preview/usersubscription/method_list.go b/resource-manager/apimanagement/2023-05-01-preview/usersubscription/method_list.go index 683c969fac0..9acd966ed75 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/usersubscription/method_list.go +++ b/resource-manager/apimanagement/2023-05-01-preview/usersubscription/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UserSubscriptionClient) List(ctx context.Context, id UserId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c UserSubscriptionClient) List(ctx context.Context, id UserId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/workspace/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/workspace/method_createorupdate.go index 7027a31c0f5..dfbaee168e5 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/workspace/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/workspace/method_createorupdate.go @@ -54,8 +54,8 @@ func (c WorkspaceClient) CreateOrUpdate(ctx context.Context, id WorkspaceId, inp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/workspace/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/workspace/method_delete.go index ac900a561b9..41a2b818416 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/workspace/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/workspace/method_delete.go @@ -53,8 +53,8 @@ func (c WorkspaceClient) Delete(ctx context.Context, id WorkspaceId, options Del http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/workspace/method_listbyservice.go b/resource-manager/apimanagement/2023-05-01-preview/workspace/method_listbyservice.go index 17d1aa75828..d7edc0c9746 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/workspace/method_listbyservice.go +++ b/resource-manager/apimanagement/2023-05-01-preview/workspace/method_listbyservice.go @@ -58,6 +58,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c WorkspaceClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c WorkspaceClient) ListByService(ctx context.Context, id ServiceId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/workspaces", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/workspaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/workspace/method_update.go b/resource-manager/apimanagement/2023-05-01-preview/workspace/method_update.go index 67056723b46..840713f4a4f 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/workspace/method_update.go +++ b/resource-manager/apimanagement/2023-05-01-preview/workspace/method_update.go @@ -53,8 +53,8 @@ func (c WorkspaceClient) Update(ctx context.Context, id WorkspaceId, input Works http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_createorupdate.go b/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_createorupdate.go index 1c73268ecbf..9385b41a924 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_createorupdate.go +++ b/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_createorupdate.go @@ -54,8 +54,8 @@ func (c WorkspacePolicyClient) CreateOrUpdate(ctx context.Context, id WorkspaceI http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_delete.go b/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_delete.go index 27f40cc6f91..ac1ad5e7365 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_delete.go +++ b/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_delete.go @@ -53,8 +53,8 @@ func (c WorkspacePolicyClient) Delete(ctx context.Context, id WorkspaceId, optio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_get.go b/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_get.go index e82f06c22e2..90e7b0877f6 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_get.go +++ b/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_get.go @@ -53,8 +53,8 @@ func (c WorkspacePolicyClient) Get(ctx context.Context, id WorkspaceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies/policy", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/policies/policy", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_listbyapi.go b/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_listbyapi.go index 1615219c2d7..c09f736cf9a 100644 --- a/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_listbyapi.go +++ b/resource-manager/apimanagement/2023-05-01-preview/workspacepolicy/method_listbyapi.go @@ -23,6 +23,18 @@ type ListByApiCompleteResult struct { Items []PolicyContract } +type ListByApiCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApiCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApi ... func (c WorkspacePolicyClient) ListByApi(ctx context.Context, id WorkspaceId) (result ListByApiOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkspacePolicyClient) ListByApi(ctx context.Context, id WorkspaceId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByApiCustomPager{}, Path: fmt.Sprintf("%s/policies", id.ID()), } diff --git a/resource-manager/appconfiguration/2023-03-01/configurationstores/method_list.go b/resource-manager/appconfiguration/2023-03-01/configurationstores/method_list.go index 448a4bce2af..fd3a54d79ab 100644 --- a/resource-manager/appconfiguration/2023-03-01/configurationstores/method_list.go +++ b/resource-manager/appconfiguration/2023-03-01/configurationstores/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ConfigurationStore } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ConfigurationStoresClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConfigurationStoresClient) List(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppConfiguration/configurationStores", id.ID()), } diff --git a/resource-manager/appconfiguration/2023-03-01/configurationstores/method_listbyresourcegroup.go b/resource-manager/appconfiguration/2023-03-01/configurationstores/method_listbyresourcegroup.go index 445c8b604e9..0a1a601cd32 100644 --- a/resource-manager/appconfiguration/2023-03-01/configurationstores/method_listbyresourcegroup.go +++ b/resource-manager/appconfiguration/2023-03-01/configurationstores/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ConfigurationStore } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ConfigurationStoresClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConfigurationStoresClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppConfiguration/configurationStores", id.ID()), } diff --git a/resource-manager/appconfiguration/2023-03-01/configurationstores/method_listkeys.go b/resource-manager/appconfiguration/2023-03-01/configurationstores/method_listkeys.go index 3f52becd8a3..12195419522 100644 --- a/resource-manager/appconfiguration/2023-03-01/configurationstores/method_listkeys.go +++ b/resource-manager/appconfiguration/2023-03-01/configurationstores/method_listkeys.go @@ -23,6 +23,18 @@ type ListKeysCompleteResult struct { Items []ApiKey } +type ListKeysCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListKeysCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListKeys ... func (c ConfigurationStoresClient) ListKeys(ctx context.Context, id ConfigurationStoreId) (result ListKeysOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConfigurationStoresClient) ListKeys(ctx context.Context, id Configuratio http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListKeysCustomPager{}, Path: fmt.Sprintf("%s/listKeys", id.ID()), } diff --git a/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/method_configurationstoreslistdeleted.go b/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/method_configurationstoreslistdeleted.go index 9385070ed72..10da4535051 100644 --- a/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/method_configurationstoreslistdeleted.go +++ b/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/method_configurationstoreslistdeleted.go @@ -24,6 +24,18 @@ type ConfigurationStoresListDeletedCompleteResult struct { Items []DeletedConfigurationStore } +type ConfigurationStoresListDeletedCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationStoresListDeletedCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationStoresListDeleted ... func (c DeletedConfigurationStoresClient) ConfigurationStoresListDeleted(ctx context.Context, id commonids.SubscriptionId) (result ConfigurationStoresListDeletedOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeletedConfigurationStoresClient) ConfigurationStoresListDeleted(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationStoresListDeletedCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppConfiguration/deletedConfigurationStores", id.ID()), } diff --git a/resource-manager/appconfiguration/2023-03-01/privateendpointconnections/method_listbyconfigurationstore.go b/resource-manager/appconfiguration/2023-03-01/privateendpointconnections/method_listbyconfigurationstore.go index 9488129a45f..cdf8af6e0fb 100644 --- a/resource-manager/appconfiguration/2023-03-01/privateendpointconnections/method_listbyconfigurationstore.go +++ b/resource-manager/appconfiguration/2023-03-01/privateendpointconnections/method_listbyconfigurationstore.go @@ -23,6 +23,18 @@ type ListByConfigurationStoreCompleteResult struct { Items []PrivateEndpointConnection } +type ListByConfigurationStoreCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByConfigurationStoreCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByConfigurationStore ... func (c PrivateEndpointConnectionsClient) ListByConfigurationStore(ctx context.Context, id ConfigurationStoreId) (result ListByConfigurationStoreOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) ListByConfigurationStore(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByConfigurationStoreCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/appconfiguration/2023-03-01/privatelinkresources/method_listbyconfigurationstore.go b/resource-manager/appconfiguration/2023-03-01/privatelinkresources/method_listbyconfigurationstore.go index 824e262eced..4bff5998fdb 100644 --- a/resource-manager/appconfiguration/2023-03-01/privatelinkresources/method_listbyconfigurationstore.go +++ b/resource-manager/appconfiguration/2023-03-01/privatelinkresources/method_listbyconfigurationstore.go @@ -23,6 +23,18 @@ type ListByConfigurationStoreCompleteResult struct { Items []PrivateLinkResource } +type ListByConfigurationStoreCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByConfigurationStoreCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByConfigurationStore ... func (c PrivateLinkResourcesClient) ListByConfigurationStore(ctx context.Context, id ConfigurationStoreId) (result ListByConfigurationStoreOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) ListByConfigurationStore(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByConfigurationStoreCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/appconfiguration/2023-03-01/replicas/method_listbyconfigurationstore.go b/resource-manager/appconfiguration/2023-03-01/replicas/method_listbyconfigurationstore.go index 3a2604dcd8e..46c92809c80 100644 --- a/resource-manager/appconfiguration/2023-03-01/replicas/method_listbyconfigurationstore.go +++ b/resource-manager/appconfiguration/2023-03-01/replicas/method_listbyconfigurationstore.go @@ -23,6 +23,18 @@ type ListByConfigurationStoreCompleteResult struct { Items []Replica } +type ListByConfigurationStoreCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByConfigurationStoreCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByConfigurationStore ... func (c ReplicasClient) ListByConfigurationStore(ctx context.Context, id ConfigurationStoreId) (result ListByConfigurationStoreOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicasClient) ListByConfigurationStore(ctx context.Context, id Configu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByConfigurationStoreCustomPager{}, Path: fmt.Sprintf("%s/replicas", id.ID()), } diff --git a/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsdelete.go b/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsdelete.go index af3a9bfba0f..33481f530cd 100644 --- a/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsdelete.go +++ b/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsdelete.go @@ -56,8 +56,8 @@ func (c AnalyticsItemsAPIsClient) AnalyticsItemsDelete(ctx context.Context, id P http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/item", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/item", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsget.go b/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsget.go index 6793d9068e3..85ea3ef457c 100644 --- a/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsget.go +++ b/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsget.go @@ -57,8 +57,8 @@ func (c AnalyticsItemsAPIsClient) AnalyticsItemsGet(ctx context.Context, id Prov http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/item", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/item", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemslist.go b/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemslist.go index b45a6d26662..b7714cc6de7 100644 --- a/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemslist.go +++ b/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemslist.go @@ -61,8 +61,8 @@ func (c AnalyticsItemsAPIsClient) AnalyticsItemsList(ctx context.Context, id Pro http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsput.go b/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsput.go index d13f2e55092..27716237ac2 100644 --- a/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsput.go +++ b/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsput.go @@ -53,8 +53,8 @@ func (c AnalyticsItemsAPIsClient) AnalyticsItemsPut(ctx context.Context, id Prov http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/item", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/item", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2015-05-01/componentannotationsapis/method_annotationslist.go b/resource-manager/applicationinsights/2015-05-01/componentannotationsapis/method_annotationslist.go index 98cc5d00e0f..8d51595c4c5 100644 --- a/resource-manager/applicationinsights/2015-05-01/componentannotationsapis/method_annotationslist.go +++ b/resource-manager/applicationinsights/2015-05-01/componentannotationsapis/method_annotationslist.go @@ -57,8 +57,8 @@ func (c ComponentAnnotationsAPIsClient) AnnotationsList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/annotations", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/annotations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2015-05-01/componentsapis/method_componentslist.go b/resource-manager/applicationinsights/2015-05-01/componentsapis/method_componentslist.go index 8ffaf4d6b66..06d2e4b78d5 100644 --- a/resource-manager/applicationinsights/2015-05-01/componentsapis/method_componentslist.go +++ b/resource-manager/applicationinsights/2015-05-01/componentsapis/method_componentslist.go @@ -24,6 +24,18 @@ type ComponentsListCompleteResult struct { Items []ApplicationInsightsComponent } +type ComponentsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ComponentsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ComponentsList ... func (c ComponentsAPIsClient) ComponentsList(ctx context.Context, id commonids.SubscriptionId) (result ComponentsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ComponentsAPIsClient) ComponentsList(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ComponentsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/components", id.ID()), } diff --git a/resource-manager/applicationinsights/2015-05-01/componentsapis/method_componentslistbyresourcegroup.go b/resource-manager/applicationinsights/2015-05-01/componentsapis/method_componentslistbyresourcegroup.go index 30966f3ccdb..7d2cd67041b 100644 --- a/resource-manager/applicationinsights/2015-05-01/componentsapis/method_componentslistbyresourcegroup.go +++ b/resource-manager/applicationinsights/2015-05-01/componentsapis/method_componentslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ComponentsListByResourceGroupCompleteResult struct { Items []ApplicationInsightsComponent } +type ComponentsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ComponentsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ComponentsListByResourceGroup ... func (c ComponentsAPIsClient) ComponentsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ComponentsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ComponentsAPIsClient) ComponentsListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ComponentsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/components", id.ID()), } diff --git a/resource-manager/applicationinsights/2015-05-01/favoritesapis/method_favoriteslist.go b/resource-manager/applicationinsights/2015-05-01/favoritesapis/method_favoriteslist.go index 783d40b2eb1..4e89b5e04f9 100644 --- a/resource-manager/applicationinsights/2015-05-01/favoritesapis/method_favoriteslist.go +++ b/resource-manager/applicationinsights/2015-05-01/favoritesapis/method_favoriteslist.go @@ -65,8 +65,8 @@ func (c FavoritesAPIsClient) FavoritesList(ctx context.Context, id ComponentId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/favorites", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/favorites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2015-05-01/myworkbooksapis/method_myworkbookslistbyresourcegroup.go b/resource-manager/applicationinsights/2015-05-01/myworkbooksapis/method_myworkbookslistbyresourcegroup.go index 5b8da4d3372..aeec2429c45 100644 --- a/resource-manager/applicationinsights/2015-05-01/myworkbooksapis/method_myworkbookslistbyresourcegroup.go +++ b/resource-manager/applicationinsights/2015-05-01/myworkbooksapis/method_myworkbookslistbyresourcegroup.go @@ -62,8 +62,8 @@ func (c MyworkbooksAPIsClient) MyWorkbooksListByResourceGroup(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/myWorkbooks", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/myWorkbooks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2015-05-01/myworkbooksapis/method_myworkbookslistbysubscription.go b/resource-manager/applicationinsights/2015-05-01/myworkbooksapis/method_myworkbookslistbysubscription.go index 6d7cf4d9c0d..b076d759196 100644 --- a/resource-manager/applicationinsights/2015-05-01/myworkbooksapis/method_myworkbookslistbysubscription.go +++ b/resource-manager/applicationinsights/2015-05-01/myworkbooksapis/method_myworkbookslistbysubscription.go @@ -62,8 +62,8 @@ func (c MyworkbooksAPIsClient) MyWorkbooksListBySubscription(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/myWorkbooks", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/myWorkbooks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2015-05-01/webtestsapis/method_webtestslist.go b/resource-manager/applicationinsights/2015-05-01/webtestsapis/method_webtestslist.go index 4dd02f84c3f..a4db87d275d 100644 --- a/resource-manager/applicationinsights/2015-05-01/webtestsapis/method_webtestslist.go +++ b/resource-manager/applicationinsights/2015-05-01/webtestsapis/method_webtestslist.go @@ -24,6 +24,18 @@ type WebTestsListCompleteResult struct { Items []WebTest } +type WebTestsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WebTestsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WebTestsList ... func (c WebTestsAPIsClient) WebTestsList(ctx context.Context, id commonids.SubscriptionId) (result WebTestsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebTestsAPIsClient) WebTestsList(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WebTestsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/webTests", id.ID()), } diff --git a/resource-manager/applicationinsights/2015-05-01/webtestsapis/method_webtestslistbycomponent.go b/resource-manager/applicationinsights/2015-05-01/webtestsapis/method_webtestslistbycomponent.go index 8e5390f1089..eaec0bad585 100644 --- a/resource-manager/applicationinsights/2015-05-01/webtestsapis/method_webtestslistbycomponent.go +++ b/resource-manager/applicationinsights/2015-05-01/webtestsapis/method_webtestslistbycomponent.go @@ -23,6 +23,18 @@ type WebTestsListByComponentCompleteResult struct { Items []WebTest } +type WebTestsListByComponentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WebTestsListByComponentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WebTestsListByComponent ... func (c WebTestsAPIsClient) WebTestsListByComponent(ctx context.Context, id ComponentId) (result WebTestsListByComponentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebTestsAPIsClient) WebTestsListByComponent(ctx context.Context, id Comp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WebTestsListByComponentCustomPager{}, Path: fmt.Sprintf("%s/webTests", id.ID()), } diff --git a/resource-manager/applicationinsights/2015-05-01/webtestsapis/method_webtestslistbyresourcegroup.go b/resource-manager/applicationinsights/2015-05-01/webtestsapis/method_webtestslistbyresourcegroup.go index 5ebcb4f4635..d5412d7bd52 100644 --- a/resource-manager/applicationinsights/2015-05-01/webtestsapis/method_webtestslistbyresourcegroup.go +++ b/resource-manager/applicationinsights/2015-05-01/webtestsapis/method_webtestslistbyresourcegroup.go @@ -24,6 +24,18 @@ type WebTestsListByResourceGroupCompleteResult struct { Items []WebTest } +type WebTestsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WebTestsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WebTestsListByResourceGroup ... func (c WebTestsAPIsClient) WebTestsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result WebTestsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebTestsAPIsClient) WebTestsListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WebTestsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/webTests", id.ID()), } diff --git a/resource-manager/applicationinsights/2015-05-01/workbooksapis/method_workbookslistbyresourcegroup.go b/resource-manager/applicationinsights/2015-05-01/workbooksapis/method_workbookslistbyresourcegroup.go index 7bd1f17ce9a..602c55befe7 100644 --- a/resource-manager/applicationinsights/2015-05-01/workbooksapis/method_workbookslistbyresourcegroup.go +++ b/resource-manager/applicationinsights/2015-05-01/workbooksapis/method_workbookslistbyresourcegroup.go @@ -62,8 +62,8 @@ func (c WorkbooksAPIsClient) WorkbooksListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/workbooks", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/workbooks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentslist.go b/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentslist.go index 8ffaf4d6b66..06d2e4b78d5 100644 --- a/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentslist.go +++ b/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentslist.go @@ -24,6 +24,18 @@ type ComponentsListCompleteResult struct { Items []ApplicationInsightsComponent } +type ComponentsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ComponentsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ComponentsList ... func (c ComponentsAPIsClient) ComponentsList(ctx context.Context, id commonids.SubscriptionId) (result ComponentsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ComponentsAPIsClient) ComponentsList(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ComponentsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/components", id.ID()), } diff --git a/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentslistbyresourcegroup.go b/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentslistbyresourcegroup.go index 30966f3ccdb..7d2cd67041b 100644 --- a/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentslistbyresourcegroup.go +++ b/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ComponentsListByResourceGroupCompleteResult struct { Items []ApplicationInsightsComponent } +type ComponentsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ComponentsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ComponentsListByResourceGroup ... func (c ComponentsAPIsClient) ComponentsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ComponentsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ComponentsAPIsClient) ComponentsListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ComponentsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/components", id.ID()), } diff --git a/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookscreateorupdate.go b/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookscreateorupdate.go index 97ffc74b77a..a21aa98caaf 100644 --- a/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookscreateorupdate.go +++ b/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookscreateorupdate.go @@ -54,8 +54,8 @@ func (c WorkbooksAPIsClient) WorkbooksCreateOrUpdate(ctx context.Context, id Wor http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksget.go b/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksget.go index 1dab046039a..3ae99a9ceb0 100644 --- a/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksget.go +++ b/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksget.go @@ -53,8 +53,8 @@ func (c WorkbooksAPIsClient) WorkbooksGet(ctx context.Context, id WorkbookId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbyresourcegroup.go b/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbyresourcegroup.go index 11070bf7a8f..e379fafe14a 100644 --- a/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbyresourcegroup.go +++ b/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbyresourcegroup.go @@ -63,6 +63,18 @@ func (o WorkbooksListByResourceGroupOperationOptions) ToQuery() *client.QueryPar return &out } +type WorkbooksListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkbooksListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkbooksListByResourceGroup ... func (c WorkbooksAPIsClient) WorkbooksListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options WorkbooksListByResourceGroupOperationOptions) (result WorkbooksListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -71,8 +83,9 @@ func (c WorkbooksAPIsClient) WorkbooksListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/workbooks", id.ID()), OptionsObject: options, + Pager: &WorkbooksListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/workbooks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbysubscription.go b/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbysubscription.go index 0fd34170251..6dcbaff5444 100644 --- a/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbysubscription.go +++ b/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbysubscription.go @@ -59,6 +59,18 @@ func (o WorkbooksListBySubscriptionOperationOptions) ToQuery() *client.QueryPara return &out } +type WorkbooksListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkbooksListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkbooksListBySubscription ... func (c WorkbooksAPIsClient) WorkbooksListBySubscription(ctx context.Context, id commonids.SubscriptionId, options WorkbooksListBySubscriptionOperationOptions) (result WorkbooksListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c WorkbooksAPIsClient) WorkbooksListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/workbooks", id.ID()), OptionsObject: options, + Pager: &WorkbooksListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/workbooks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksrevisionslist.go b/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksrevisionslist.go index d6b654274c3..cb78c58d647 100644 --- a/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksrevisionslist.go +++ b/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksrevisionslist.go @@ -23,6 +23,18 @@ type WorkbooksRevisionsListCompleteResult struct { Items []Workbook } +type WorkbooksRevisionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkbooksRevisionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkbooksRevisionsList ... func (c WorkbooksAPIsClient) WorkbooksRevisionsList(ctx context.Context, id WorkbookId) (result WorkbooksRevisionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkbooksAPIsClient) WorkbooksRevisionsList(ctx context.Context, id Work http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkbooksRevisionsListCustomPager{}, Path: fmt.Sprintf("%s/revisions", id.ID()), } diff --git a/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksupdate.go b/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksupdate.go index 2b1f70e688d..0fc742e12f7 100644 --- a/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksupdate.go +++ b/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksupdate.go @@ -54,8 +54,8 @@ func (c WorkbooksAPIsClient) WorkbooksUpdate(ctx context.Context, id WorkbookId, http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestslist.go b/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestslist.go index 4dd02f84c3f..a4db87d275d 100644 --- a/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestslist.go +++ b/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestslist.go @@ -24,6 +24,18 @@ type WebTestsListCompleteResult struct { Items []WebTest } +type WebTestsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WebTestsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WebTestsList ... func (c WebTestsAPIsClient) WebTestsList(ctx context.Context, id commonids.SubscriptionId) (result WebTestsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebTestsAPIsClient) WebTestsList(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WebTestsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/webTests", id.ID()), } diff --git a/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestslistbycomponent.go b/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestslistbycomponent.go index 8e5390f1089..eaec0bad585 100644 --- a/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestslistbycomponent.go +++ b/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestslistbycomponent.go @@ -23,6 +23,18 @@ type WebTestsListByComponentCompleteResult struct { Items []WebTest } +type WebTestsListByComponentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WebTestsListByComponentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WebTestsListByComponent ... func (c WebTestsAPIsClient) WebTestsListByComponent(ctx context.Context, id ComponentId) (result WebTestsListByComponentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebTestsAPIsClient) WebTestsListByComponent(ctx context.Context, id Comp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WebTestsListByComponentCustomPager{}, Path: fmt.Sprintf("%s/webTests", id.ID()), } diff --git a/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestslistbyresourcegroup.go b/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestslistbyresourcegroup.go index 5ebcb4f4635..d5412d7bd52 100644 --- a/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestslistbyresourcegroup.go +++ b/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestslistbyresourcegroup.go @@ -24,6 +24,18 @@ type WebTestsListByResourceGroupCompleteResult struct { Items []WebTest } +type WebTestsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WebTestsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WebTestsListByResourceGroup ... func (c WebTestsAPIsClient) WebTestsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result WebTestsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebTestsAPIsClient) WebTestsListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WebTestsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/webTests", id.ID()), } diff --git a/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbookscreateorupdate.go b/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbookscreateorupdate.go index 97ffc74b77a..a21aa98caaf 100644 --- a/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbookscreateorupdate.go +++ b/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbookscreateorupdate.go @@ -54,8 +54,8 @@ func (c WorkbooksAPIsClient) WorkbooksCreateOrUpdate(ctx context.Context, id Wor http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbooksget.go b/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbooksget.go index 1dab046039a..3ae99a9ceb0 100644 --- a/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbooksget.go +++ b/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbooksget.go @@ -53,8 +53,8 @@ func (c WorkbooksAPIsClient) WorkbooksGet(ctx context.Context, id WorkbookId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbookslistbyresourcegroup.go b/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbookslistbyresourcegroup.go index 11070bf7a8f..e379fafe14a 100644 --- a/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbookslistbyresourcegroup.go +++ b/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbookslistbyresourcegroup.go @@ -63,6 +63,18 @@ func (o WorkbooksListByResourceGroupOperationOptions) ToQuery() *client.QueryPar return &out } +type WorkbooksListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkbooksListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkbooksListByResourceGroup ... func (c WorkbooksAPIsClient) WorkbooksListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options WorkbooksListByResourceGroupOperationOptions) (result WorkbooksListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -71,8 +83,9 @@ func (c WorkbooksAPIsClient) WorkbooksListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/workbooks", id.ID()), OptionsObject: options, + Pager: &WorkbooksListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/workbooks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbookslistbysubscription.go b/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbookslistbysubscription.go index 0fd34170251..6dcbaff5444 100644 --- a/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbookslistbysubscription.go +++ b/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbookslistbysubscription.go @@ -59,6 +59,18 @@ func (o WorkbooksListBySubscriptionOperationOptions) ToQuery() *client.QueryPara return &out } +type WorkbooksListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkbooksListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkbooksListBySubscription ... func (c WorkbooksAPIsClient) WorkbooksListBySubscription(ctx context.Context, id commonids.SubscriptionId, options WorkbooksListBySubscriptionOperationOptions) (result WorkbooksListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c WorkbooksAPIsClient) WorkbooksListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/workbooks", id.ID()), OptionsObject: options, + Pager: &WorkbooksListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/workbooks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbooksrevisionslist.go b/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbooksrevisionslist.go index d6b654274c3..cb78c58d647 100644 --- a/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbooksrevisionslist.go +++ b/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbooksrevisionslist.go @@ -23,6 +23,18 @@ type WorkbooksRevisionsListCompleteResult struct { Items []Workbook } +type WorkbooksRevisionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkbooksRevisionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkbooksRevisionsList ... func (c WorkbooksAPIsClient) WorkbooksRevisionsList(ctx context.Context, id WorkbookId) (result WorkbooksRevisionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkbooksAPIsClient) WorkbooksRevisionsList(ctx context.Context, id Work http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkbooksRevisionsListCustomPager{}, Path: fmt.Sprintf("%s/revisions", id.ID()), } diff --git a/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbooksupdate.go b/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbooksupdate.go index 2b1f70e688d..0fc742e12f7 100644 --- a/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbooksupdate.go +++ b/resource-manager/applicationinsights/2023-06-01/workbooksapis/method_workbooksupdate.go @@ -54,8 +54,8 @@ func (c WorkbooksAPIsClient) WorkbooksUpdate(ctx context.Context, id WorkbookId, http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_apiportalcustomdomainslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_apiportalcustomdomainslist.go index 2ba639c94be..82141432efe 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_apiportalcustomdomainslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_apiportalcustomdomainslist.go @@ -23,6 +23,18 @@ type ApiPortalCustomDomainsListCompleteResult struct { Items []ApiPortalCustomDomainResource } +type ApiPortalCustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiPortalCustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApiPortalCustomDomainsList ... func (c AppPlatformClient) ApiPortalCustomDomainsList(ctx context.Context, id ApiPortalId) (result ApiPortalCustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) ApiPortalCustomDomainsList(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApiPortalCustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/domains", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_apiportalslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_apiportalslist.go index bb0a007227f..505576f3290 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_apiportalslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_apiportalslist.go @@ -24,6 +24,18 @@ type ApiPortalsListCompleteResult struct { Items []ApiPortalResource } +type ApiPortalsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiPortalsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApiPortalsList ... func (c AppPlatformClient) ApiPortalsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApiPortalsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApiPortalsList(ctx context.Context, id commonids.Spri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApiPortalsListCustomPager{}, Path: fmt.Sprintf("%s/apiPortals", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_apmslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_apmslist.go index a9807ba4c21..bbf0956d014 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_apmslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_apmslist.go @@ -24,6 +24,18 @@ type ApmsListCompleteResult struct { Items []ApmResource } +type ApmsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApmsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApmsList ... func (c AppPlatformClient) ApmsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApmsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApmsList(ctx context.Context, id commonids.SpringClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApmsListCustomPager{}, Path: fmt.Sprintf("%s/apms", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_applicationacceleratorslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_applicationacceleratorslist.go index 2acefc71889..3d0057098ed 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_applicationacceleratorslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_applicationacceleratorslist.go @@ -24,6 +24,18 @@ type ApplicationAcceleratorsListCompleteResult struct { Items []ApplicationAcceleratorResource } +type ApplicationAcceleratorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApplicationAcceleratorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApplicationAcceleratorsList ... func (c AppPlatformClient) ApplicationAcceleratorsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApplicationAcceleratorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApplicationAcceleratorsList(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApplicationAcceleratorsListCustomPager{}, Path: fmt.Sprintf("%s/applicationAccelerators", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_applicationliveviewslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_applicationliveviewslist.go index 9c6a60c111e..7b278500e1c 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_applicationliveviewslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_applicationliveviewslist.go @@ -24,6 +24,18 @@ type ApplicationLiveViewsListCompleteResult struct { Items []ApplicationLiveViewResource } +type ApplicationLiveViewsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApplicationLiveViewsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApplicationLiveViewsList ... func (c AppPlatformClient) ApplicationLiveViewsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApplicationLiveViewsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApplicationLiveViewsList(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApplicationLiveViewsListCustomPager{}, Path: fmt.Sprintf("%s/applicationLiveViews", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_appsget.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_appsget.go index da0e76b7bc4..4a53dd22ea4 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_appsget.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_appsget.go @@ -53,8 +53,8 @@ func (c AppPlatformClient) AppsGet(ctx context.Context, id AppId, options AppsGe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_appslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_appslist.go index 7b0d8299d83..5c0889a6c8e 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_appslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_appslist.go @@ -24,6 +24,18 @@ type AppsListCompleteResult struct { Items []AppResource } +type AppsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AppsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AppsList ... func (c AppPlatformClient) AppsList(ctx context.Context, id commonids.SpringCloudServiceId) (result AppsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) AppsList(ctx context.Context, id commonids.SpringClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AppsListCustomPager{}, Path: fmt.Sprintf("%s/apps", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_bindingslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_bindingslist.go index dc29c45e32f..8bda68a1115 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_bindingslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_bindingslist.go @@ -23,6 +23,18 @@ type BindingsListCompleteResult struct { Items []BindingResource } +type BindingsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BindingsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BindingsList ... func (c AppPlatformClient) BindingsList(ctx context.Context, id AppId) (result BindingsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BindingsList(ctx context.Context, id AppId) (result B http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BindingsListCustomPager{}, Path: fmt.Sprintf("%s/bindings", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildpackbindinglist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildpackbindinglist.go index a4397a14e28..d530a1a1886 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildpackbindinglist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildpackbindinglist.go @@ -23,6 +23,18 @@ type BuildpackBindingListCompleteResult struct { Items []BuildpackBindingResource } +type BuildpackBindingListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildpackBindingListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildpackBindingList ... func (c AppPlatformClient) BuildpackBindingList(ctx context.Context, id BuilderId) (result BuildpackBindingListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildpackBindingList(ctx context.Context, id BuilderI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildpackBindingListCustomPager{}, Path: fmt.Sprintf("%s/buildPackBindings", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildpackbindinglistforcluster.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildpackbindinglistforcluster.go index 62eb188cec2..ed9ca0bbdc6 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildpackbindinglistforcluster.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildpackbindinglistforcluster.go @@ -24,6 +24,18 @@ type BuildpackBindingListForClusterCompleteResult struct { Items []BuildpackBindingResource } +type BuildpackBindingListForClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildpackBindingListForClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildpackBindingListForCluster ... func (c AppPlatformClient) BuildpackBindingListForCluster(ctx context.Context, id commonids.SpringCloudServiceId) (result BuildpackBindingListForClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) BuildpackBindingListForCluster(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildpackBindingListForClusterCustomPager{}, Path: fmt.Sprintf("%s/buildPackBindings", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildserviceagentpoollist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildserviceagentpoollist.go index 999c76d2d69..c387e88ca55 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildserviceagentpoollist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildserviceagentpoollist.go @@ -23,6 +23,18 @@ type BuildServiceAgentPoolListCompleteResult struct { Items []BuildServiceAgentPoolResource } +type BuildServiceAgentPoolListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceAgentPoolListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceAgentPoolList ... func (c AppPlatformClient) BuildServiceAgentPoolList(ctx context.Context, id BuildServiceId) (result BuildServiceAgentPoolListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceAgentPoolList(ctx context.Context, id Bui http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceAgentPoolListCustomPager{}, Path: fmt.Sprintf("%s/agentPools", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicebuilderlist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicebuilderlist.go index 5f92c7a5b97..df5830f87f3 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicebuilderlist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicebuilderlist.go @@ -23,6 +23,18 @@ type BuildServiceBuilderListCompleteResult struct { Items []BuilderResource } +type BuildServiceBuilderListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceBuilderListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceBuilderList ... func (c AppPlatformClient) BuildServiceBuilderList(ctx context.Context, id BuildServiceId) (result BuildServiceBuilderListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceBuilderList(ctx context.Context, id Build http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceBuilderListCustomPager{}, Path: fmt.Sprintf("%s/builders", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistbuildresults.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistbuildresults.go index 091e800192f..07aada4094d 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistbuildresults.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistbuildresults.go @@ -23,6 +23,18 @@ type BuildServiceListBuildResultsCompleteResult struct { Items []BuildResult } +type BuildServiceListBuildResultsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListBuildResultsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListBuildResults ... func (c AppPlatformClient) BuildServiceListBuildResults(ctx context.Context, id BuildId) (result BuildServiceListBuildResultsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListBuildResults(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListBuildResultsCustomPager{}, Path: fmt.Sprintf("%s/results", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistbuilds.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistbuilds.go index c0e9cef77b2..edbc9154661 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistbuilds.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistbuilds.go @@ -23,6 +23,18 @@ type BuildServiceListBuildsCompleteResult struct { Items []Build } +type BuildServiceListBuildsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListBuildsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListBuilds ... func (c AppPlatformClient) BuildServiceListBuilds(ctx context.Context, id BuildServiceId) (result BuildServiceListBuildsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListBuilds(ctx context.Context, id BuildS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListBuildsCustomPager{}, Path: fmt.Sprintf("%s/builds", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistbuildservices.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistbuildservices.go index 2c60c6e9a1d..0bcf2638b88 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistbuildservices.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistbuildservices.go @@ -24,6 +24,18 @@ type BuildServiceListBuildServicesCompleteResult struct { Items []BuildService } +type BuildServiceListBuildServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListBuildServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListBuildServices ... func (c AppPlatformClient) BuildServiceListBuildServices(ctx context.Context, id commonids.SpringCloudServiceId) (result BuildServiceListBuildServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) BuildServiceListBuildServices(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListBuildServicesCustomPager{}, Path: fmt.Sprintf("%s/buildServices", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistsupportedbuildpacks.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistsupportedbuildpacks.go index bf3609c0102..8dc624021c3 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistsupportedbuildpacks.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistsupportedbuildpacks.go @@ -23,6 +23,18 @@ type BuildServiceListSupportedBuildpacksCompleteResult struct { Items []SupportedBuildpackResource } +type BuildServiceListSupportedBuildpacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListSupportedBuildpacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListSupportedBuildpacks ... func (c AppPlatformClient) BuildServiceListSupportedBuildpacks(ctx context.Context, id BuildServiceId) (result BuildServiceListSupportedBuildpacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListSupportedBuildpacks(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListSupportedBuildpacksCustomPager{}, Path: fmt.Sprintf("%s/supportedBuildPacks", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistsupportedstacks.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistsupportedstacks.go index ed8ee1dc60c..36afe2ccfe3 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistsupportedstacks.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_buildservicelistsupportedstacks.go @@ -23,6 +23,18 @@ type BuildServiceListSupportedStacksCompleteResult struct { Items []SupportedStackResource } +type BuildServiceListSupportedStacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListSupportedStacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListSupportedStacks ... func (c AppPlatformClient) BuildServiceListSupportedStacks(ctx context.Context, id BuildServiceId) (result BuildServiceListSupportedStacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListSupportedStacks(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListSupportedStacksCustomPager{}, Path: fmt.Sprintf("%s/supportedStacks", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_certificateslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_certificateslist.go index 4afaeedac89..44382d3cc61 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_certificateslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_certificateslist.go @@ -24,6 +24,18 @@ type CertificatesListCompleteResult struct { Items []CertificateResource } +type CertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CertificatesList ... func (c AppPlatformClient) CertificatesList(ctx context.Context, id commonids.SpringCloudServiceId) (result CertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) CertificatesList(ctx context.Context, id commonids.Sp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CertificatesListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_configurationserviceslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_configurationserviceslist.go index 16f0b534b55..f756bb8dcb7 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_configurationserviceslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_configurationserviceslist.go @@ -24,6 +24,18 @@ type ConfigurationServicesListCompleteResult struct { Items []ConfigurationServiceResource } +type ConfigurationServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationServicesList ... func (c AppPlatformClient) ConfigurationServicesList(ctx context.Context, id commonids.SpringCloudServiceId) (result ConfigurationServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ConfigurationServicesList(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationServicesListCustomPager{}, Path: fmt.Sprintf("%s/configurationServices", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_containerregistrieslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_containerregistrieslist.go index 6c58bc097c0..f95216e78b3 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_containerregistrieslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_containerregistrieslist.go @@ -24,6 +24,18 @@ type ContainerRegistriesListCompleteResult struct { Items []ContainerRegistryResource } +type ContainerRegistriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ContainerRegistriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ContainerRegistriesList ... func (c AppPlatformClient) ContainerRegistriesList(ctx context.Context, id commonids.SpringCloudServiceId) (result ContainerRegistriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ContainerRegistriesList(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ContainerRegistriesListCustomPager{}, Path: fmt.Sprintf("%s/containerRegistries", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_customdomainslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_customdomainslist.go index 2fd84d65cb2..71ca1ab1862 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_customdomainslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_customdomainslist.go @@ -23,6 +23,18 @@ type CustomDomainsListCompleteResult struct { Items []CustomDomainResource } +type CustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomDomainsList ... func (c AppPlatformClient) CustomDomainsList(ctx context.Context, id AppId) (result CustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) CustomDomainsList(ctx context.Context, id AppId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/domains", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_customizedacceleratorslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_customizedacceleratorslist.go index 184a499b15b..9f94567ade3 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_customizedacceleratorslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_customizedacceleratorslist.go @@ -23,6 +23,18 @@ type CustomizedAcceleratorsListCompleteResult struct { Items []CustomizedAcceleratorResource } +type CustomizedAcceleratorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomizedAcceleratorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomizedAcceleratorsList ... func (c AppPlatformClient) CustomizedAcceleratorsList(ctx context.Context, id ApplicationAcceleratorId) (result CustomizedAcceleratorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) CustomizedAcceleratorsList(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomizedAcceleratorsListCustomPager{}, Path: fmt.Sprintf("%s/customizedAccelerators", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_deploymentslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_deploymentslist.go index b460e59a520..9f59eb8df5c 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_deploymentslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_deploymentslist.go @@ -54,6 +54,18 @@ func (o DeploymentsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type DeploymentsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeploymentsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeploymentsList ... func (c AppPlatformClient) DeploymentsList(ctx context.Context, id AppId, options DeploymentsListOperationOptions) (result DeploymentsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c AppPlatformClient) DeploymentsList(ctx context.Context, id AppId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/deployments", id.ID()), OptionsObject: options, + Pager: &DeploymentsListCustomPager{}, + Path: fmt.Sprintf("%s/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_deploymentslistforcluster.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_deploymentslistforcluster.go index 66a4415d67f..2496ba5da3f 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_deploymentslistforcluster.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_deploymentslistforcluster.go @@ -55,6 +55,18 @@ func (o DeploymentsListForClusterOperationOptions) ToQuery() *client.QueryParams return &out } +type DeploymentsListForClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeploymentsListForClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeploymentsListForCluster ... func (c AppPlatformClient) DeploymentsListForCluster(ctx context.Context, id commonids.SpringCloudServiceId, options DeploymentsListForClusterOperationOptions) (result DeploymentsListForClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c AppPlatformClient) DeploymentsListForCluster(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/deployments", id.ID()), OptionsObject: options, + Pager: &DeploymentsListForClusterCustomPager{}, + Path: fmt.Sprintf("%s/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_devtoolportalslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_devtoolportalslist.go index 55f948f9395..a8155187039 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_devtoolportalslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_devtoolportalslist.go @@ -24,6 +24,18 @@ type DevToolPortalsListCompleteResult struct { Items []DevToolPortalResource } +type DevToolPortalsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DevToolPortalsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DevToolPortalsList ... func (c AppPlatformClient) DevToolPortalsList(ctx context.Context, id commonids.SpringCloudServiceId) (result DevToolPortalsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) DevToolPortalsList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DevToolPortalsListCustomPager{}, Path: fmt.Sprintf("%s/devToolPortals", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_eurekaserverslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_eurekaserverslist.go index 412ca748cfe..6bdac5c1414 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_eurekaserverslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_eurekaserverslist.go @@ -24,6 +24,18 @@ type EurekaServersListCompleteResult struct { Items []EurekaServerResource } +type EurekaServersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *EurekaServersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // EurekaServersList ... func (c AppPlatformClient) EurekaServersList(ctx context.Context, id commonids.SpringCloudServiceId) (result EurekaServersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) EurekaServersList(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &EurekaServersListCustomPager{}, Path: fmt.Sprintf("%s/eurekaServers", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_gatewaycustomdomainslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_gatewaycustomdomainslist.go index 54769c483a7..9e16b2bc080 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_gatewaycustomdomainslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_gatewaycustomdomainslist.go @@ -23,6 +23,18 @@ type GatewayCustomDomainsListCompleteResult struct { Items []GatewayCustomDomainResource } +type GatewayCustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GatewayCustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GatewayCustomDomainsList ... func (c AppPlatformClient) GatewayCustomDomainsList(ctx context.Context, id GatewayId) (result GatewayCustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) GatewayCustomDomainsList(ctx context.Context, id Gate http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GatewayCustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/domains", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_gatewayrouteconfigslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_gatewayrouteconfigslist.go index d6ba7576ad2..f17ce8caf9b 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_gatewayrouteconfigslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_gatewayrouteconfigslist.go @@ -23,6 +23,18 @@ type GatewayRouteConfigsListCompleteResult struct { Items []GatewayRouteConfigResource } +type GatewayRouteConfigsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GatewayRouteConfigsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GatewayRouteConfigsList ... func (c AppPlatformClient) GatewayRouteConfigsList(ctx context.Context, id GatewayId) (result GatewayRouteConfigsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) GatewayRouteConfigsList(ctx context.Context, id Gatew http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GatewayRouteConfigsListCustomPager{}, Path: fmt.Sprintf("%s/routeConfigs", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_gatewayslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_gatewayslist.go index 218505badd1..d7ee33cb902 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_gatewayslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_gatewayslist.go @@ -24,6 +24,18 @@ type GatewaysListCompleteResult struct { Items []GatewayResource } +type GatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GatewaysList ... func (c AppPlatformClient) GatewaysList(ctx context.Context, id commonids.SpringCloudServiceId) (result GatewaysListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) GatewaysList(ctx context.Context, id commonids.Spring http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GatewaysListCustomPager{}, Path: fmt.Sprintf("%s/gateways", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_predefinedacceleratorslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_predefinedacceleratorslist.go index 5fec0331cb2..79161cb1d5b 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_predefinedacceleratorslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_predefinedacceleratorslist.go @@ -23,6 +23,18 @@ type PredefinedAcceleratorsListCompleteResult struct { Items []PredefinedAcceleratorResource } +type PredefinedAcceleratorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PredefinedAcceleratorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PredefinedAcceleratorsList ... func (c AppPlatformClient) PredefinedAcceleratorsList(ctx context.Context, id ApplicationAcceleratorId) (result PredefinedAcceleratorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) PredefinedAcceleratorsList(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PredefinedAcceleratorsListCustomPager{}, Path: fmt.Sprintf("%s/predefinedAccelerators", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceregistrieslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceregistrieslist.go index a956255349c..cd292429174 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceregistrieslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceregistrieslist.go @@ -24,6 +24,18 @@ type ServiceRegistriesListCompleteResult struct { Items []ServiceRegistryResource } +type ServiceRegistriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceRegistriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceRegistriesList ... func (c AppPlatformClient) ServiceRegistriesList(ctx context.Context, id commonids.SpringCloudServiceId) (result ServiceRegistriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServiceRegistriesList(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServiceRegistriesListCustomPager{}, Path: fmt.Sprintf("%s/serviceRegistries", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslist.go index d7d06cd0898..32848608e2d 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []ServiceResource } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c AppPlatformClient) ServicesList(ctx context.Context, id commonids.ResourceGroupId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesList(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppPlatform/spring", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslistbysubscription.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslistbysubscription.go index 89f6397ae71..c0a0fe2ea94 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslistbysubscription.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslistbysubscription.go @@ -24,6 +24,18 @@ type ServicesListBySubscriptionCompleteResult struct { Items []ServiceResource } +type ServicesListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListBySubscription ... func (c AppPlatformClient) ServicesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ServicesListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppPlatform/spring", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslistsupportedapmtypes.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslistsupportedapmtypes.go index fbb2f83b4ee..460a4047eec 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslistsupportedapmtypes.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslistsupportedapmtypes.go @@ -24,6 +24,18 @@ type ServicesListSupportedApmTypesCompleteResult struct { Items []SupportedApmType } +type ServicesListSupportedApmTypesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListSupportedApmTypesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListSupportedApmTypes ... func (c AppPlatformClient) ServicesListSupportedApmTypes(ctx context.Context, id commonids.SpringCloudServiceId) (result ServicesListSupportedApmTypesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesListSupportedApmTypes(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListSupportedApmTypesCustomPager{}, Path: fmt.Sprintf("%s/supportedApmTypes", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslistsupportedserverversions.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslistsupportedserverversions.go index abcaddde818..373e33bd438 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslistsupportedserverversions.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_serviceslistsupportedserverversions.go @@ -24,6 +24,18 @@ type ServicesListSupportedServerVersionsCompleteResult struct { Items []SupportedServerVersion } +type ServicesListSupportedServerVersionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListSupportedServerVersionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListSupportedServerVersions ... func (c AppPlatformClient) ServicesListSupportedServerVersions(ctx context.Context, id commonids.SpringCloudServiceId) (result ServicesListSupportedServerVersionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesListSupportedServerVersions(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListSupportedServerVersionsCustomPager{}, Path: fmt.Sprintf("%s/supportedServerVersions", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_skuslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_skuslist.go index 6f2bcc3bdf4..7e6ba03c914 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_skuslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_skuslist.go @@ -24,6 +24,18 @@ type SkusListCompleteResult struct { Items []ResourceSku } +type SkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SkusList ... func (c AppPlatformClient) SkusList(ctx context.Context, id commonids.SubscriptionId) (result SkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) SkusList(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SkusListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppPlatform/skus", id.ID()), } diff --git a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_storageslist.go b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_storageslist.go index 05a7da332ba..56bdf56e72a 100644 --- a/resource-manager/appplatform/2023-09-01-preview/appplatform/method_storageslist.go +++ b/resource-manager/appplatform/2023-09-01-preview/appplatform/method_storageslist.go @@ -24,6 +24,18 @@ type StoragesListCompleteResult struct { Items []StorageResource } +type StoragesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *StoragesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StoragesList ... func (c AppPlatformClient) StoragesList(ctx context.Context, id commonids.SpringCloudServiceId) (result StoragesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) StoragesList(ctx context.Context, id commonids.Spring http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &StoragesListCustomPager{}, Path: fmt.Sprintf("%s/storages", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_apiportalcustomdomainslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_apiportalcustomdomainslist.go index 2ba639c94be..82141432efe 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_apiportalcustomdomainslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_apiportalcustomdomainslist.go @@ -23,6 +23,18 @@ type ApiPortalCustomDomainsListCompleteResult struct { Items []ApiPortalCustomDomainResource } +type ApiPortalCustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiPortalCustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApiPortalCustomDomainsList ... func (c AppPlatformClient) ApiPortalCustomDomainsList(ctx context.Context, id ApiPortalId) (result ApiPortalCustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) ApiPortalCustomDomainsList(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApiPortalCustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/domains", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_apiportalslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_apiportalslist.go index bb0a007227f..505576f3290 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_apiportalslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_apiportalslist.go @@ -24,6 +24,18 @@ type ApiPortalsListCompleteResult struct { Items []ApiPortalResource } +type ApiPortalsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiPortalsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApiPortalsList ... func (c AppPlatformClient) ApiPortalsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApiPortalsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApiPortalsList(ctx context.Context, id commonids.Spri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApiPortalsListCustomPager{}, Path: fmt.Sprintf("%s/apiPortals", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_apmslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_apmslist.go index a9807ba4c21..bbf0956d014 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_apmslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_apmslist.go @@ -24,6 +24,18 @@ type ApmsListCompleteResult struct { Items []ApmResource } +type ApmsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApmsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApmsList ... func (c AppPlatformClient) ApmsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApmsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApmsList(ctx context.Context, id commonids.SpringClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApmsListCustomPager{}, Path: fmt.Sprintf("%s/apms", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_applicationacceleratorslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_applicationacceleratorslist.go index 2acefc71889..3d0057098ed 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_applicationacceleratorslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_applicationacceleratorslist.go @@ -24,6 +24,18 @@ type ApplicationAcceleratorsListCompleteResult struct { Items []ApplicationAcceleratorResource } +type ApplicationAcceleratorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApplicationAcceleratorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApplicationAcceleratorsList ... func (c AppPlatformClient) ApplicationAcceleratorsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApplicationAcceleratorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApplicationAcceleratorsList(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApplicationAcceleratorsListCustomPager{}, Path: fmt.Sprintf("%s/applicationAccelerators", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_applicationliveviewslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_applicationliveviewslist.go index 9c6a60c111e..7b278500e1c 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_applicationliveviewslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_applicationliveviewslist.go @@ -24,6 +24,18 @@ type ApplicationLiveViewsListCompleteResult struct { Items []ApplicationLiveViewResource } +type ApplicationLiveViewsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApplicationLiveViewsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApplicationLiveViewsList ... func (c AppPlatformClient) ApplicationLiveViewsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApplicationLiveViewsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApplicationLiveViewsList(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApplicationLiveViewsListCustomPager{}, Path: fmt.Sprintf("%s/applicationLiveViews", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_appsget.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_appsget.go index da0e76b7bc4..4a53dd22ea4 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_appsget.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_appsget.go @@ -53,8 +53,8 @@ func (c AppPlatformClient) AppsGet(ctx context.Context, id AppId, options AppsGe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_appslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_appslist.go index 7b0d8299d83..5c0889a6c8e 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_appslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_appslist.go @@ -24,6 +24,18 @@ type AppsListCompleteResult struct { Items []AppResource } +type AppsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AppsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AppsList ... func (c AppPlatformClient) AppsList(ctx context.Context, id commonids.SpringCloudServiceId) (result AppsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) AppsList(ctx context.Context, id commonids.SpringClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AppsListCustomPager{}, Path: fmt.Sprintf("%s/apps", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_bindingslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_bindingslist.go index dc29c45e32f..8bda68a1115 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_bindingslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_bindingslist.go @@ -23,6 +23,18 @@ type BindingsListCompleteResult struct { Items []BindingResource } +type BindingsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BindingsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BindingsList ... func (c AppPlatformClient) BindingsList(ctx context.Context, id AppId) (result BindingsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BindingsList(ctx context.Context, id AppId) (result B http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BindingsListCustomPager{}, Path: fmt.Sprintf("%s/bindings", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildpackbindinglist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildpackbindinglist.go index a4397a14e28..d530a1a1886 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildpackbindinglist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildpackbindinglist.go @@ -23,6 +23,18 @@ type BuildpackBindingListCompleteResult struct { Items []BuildpackBindingResource } +type BuildpackBindingListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildpackBindingListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildpackBindingList ... func (c AppPlatformClient) BuildpackBindingList(ctx context.Context, id BuilderId) (result BuildpackBindingListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildpackBindingList(ctx context.Context, id BuilderI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildpackBindingListCustomPager{}, Path: fmt.Sprintf("%s/buildPackBindings", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildpackbindinglistforcluster.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildpackbindinglistforcluster.go index 62eb188cec2..ed9ca0bbdc6 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildpackbindinglistforcluster.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildpackbindinglistforcluster.go @@ -24,6 +24,18 @@ type BuildpackBindingListForClusterCompleteResult struct { Items []BuildpackBindingResource } +type BuildpackBindingListForClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildpackBindingListForClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildpackBindingListForCluster ... func (c AppPlatformClient) BuildpackBindingListForCluster(ctx context.Context, id commonids.SpringCloudServiceId) (result BuildpackBindingListForClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) BuildpackBindingListForCluster(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildpackBindingListForClusterCustomPager{}, Path: fmt.Sprintf("%s/buildPackBindings", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildserviceagentpoollist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildserviceagentpoollist.go index 999c76d2d69..c387e88ca55 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildserviceagentpoollist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildserviceagentpoollist.go @@ -23,6 +23,18 @@ type BuildServiceAgentPoolListCompleteResult struct { Items []BuildServiceAgentPoolResource } +type BuildServiceAgentPoolListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceAgentPoolListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceAgentPoolList ... func (c AppPlatformClient) BuildServiceAgentPoolList(ctx context.Context, id BuildServiceId) (result BuildServiceAgentPoolListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceAgentPoolList(ctx context.Context, id Bui http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceAgentPoolListCustomPager{}, Path: fmt.Sprintf("%s/agentPools", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicebuilderlist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicebuilderlist.go index 5f92c7a5b97..df5830f87f3 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicebuilderlist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicebuilderlist.go @@ -23,6 +23,18 @@ type BuildServiceBuilderListCompleteResult struct { Items []BuilderResource } +type BuildServiceBuilderListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceBuilderListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceBuilderList ... func (c AppPlatformClient) BuildServiceBuilderList(ctx context.Context, id BuildServiceId) (result BuildServiceBuilderListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceBuilderList(ctx context.Context, id Build http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceBuilderListCustomPager{}, Path: fmt.Sprintf("%s/builders", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistbuildresults.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistbuildresults.go index 091e800192f..07aada4094d 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistbuildresults.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistbuildresults.go @@ -23,6 +23,18 @@ type BuildServiceListBuildResultsCompleteResult struct { Items []BuildResult } +type BuildServiceListBuildResultsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListBuildResultsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListBuildResults ... func (c AppPlatformClient) BuildServiceListBuildResults(ctx context.Context, id BuildId) (result BuildServiceListBuildResultsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListBuildResults(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListBuildResultsCustomPager{}, Path: fmt.Sprintf("%s/results", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistbuilds.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistbuilds.go index c0e9cef77b2..edbc9154661 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistbuilds.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistbuilds.go @@ -23,6 +23,18 @@ type BuildServiceListBuildsCompleteResult struct { Items []Build } +type BuildServiceListBuildsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListBuildsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListBuilds ... func (c AppPlatformClient) BuildServiceListBuilds(ctx context.Context, id BuildServiceId) (result BuildServiceListBuildsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListBuilds(ctx context.Context, id BuildS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListBuildsCustomPager{}, Path: fmt.Sprintf("%s/builds", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistbuildservices.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistbuildservices.go index 2c60c6e9a1d..0bcf2638b88 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistbuildservices.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistbuildservices.go @@ -24,6 +24,18 @@ type BuildServiceListBuildServicesCompleteResult struct { Items []BuildService } +type BuildServiceListBuildServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListBuildServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListBuildServices ... func (c AppPlatformClient) BuildServiceListBuildServices(ctx context.Context, id commonids.SpringCloudServiceId) (result BuildServiceListBuildServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) BuildServiceListBuildServices(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListBuildServicesCustomPager{}, Path: fmt.Sprintf("%s/buildServices", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistsupportedbuildpacks.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistsupportedbuildpacks.go index bf3609c0102..8dc624021c3 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistsupportedbuildpacks.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistsupportedbuildpacks.go @@ -23,6 +23,18 @@ type BuildServiceListSupportedBuildpacksCompleteResult struct { Items []SupportedBuildpackResource } +type BuildServiceListSupportedBuildpacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListSupportedBuildpacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListSupportedBuildpacks ... func (c AppPlatformClient) BuildServiceListSupportedBuildpacks(ctx context.Context, id BuildServiceId) (result BuildServiceListSupportedBuildpacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListSupportedBuildpacks(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListSupportedBuildpacksCustomPager{}, Path: fmt.Sprintf("%s/supportedBuildPacks", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistsupportedstacks.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistsupportedstacks.go index ed8ee1dc60c..36afe2ccfe3 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistsupportedstacks.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_buildservicelistsupportedstacks.go @@ -23,6 +23,18 @@ type BuildServiceListSupportedStacksCompleteResult struct { Items []SupportedStackResource } +type BuildServiceListSupportedStacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListSupportedStacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListSupportedStacks ... func (c AppPlatformClient) BuildServiceListSupportedStacks(ctx context.Context, id BuildServiceId) (result BuildServiceListSupportedStacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListSupportedStacks(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListSupportedStacksCustomPager{}, Path: fmt.Sprintf("%s/supportedStacks", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_certificateslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_certificateslist.go index 4afaeedac89..44382d3cc61 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_certificateslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_certificateslist.go @@ -24,6 +24,18 @@ type CertificatesListCompleteResult struct { Items []CertificateResource } +type CertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CertificatesList ... func (c AppPlatformClient) CertificatesList(ctx context.Context, id commonids.SpringCloudServiceId) (result CertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) CertificatesList(ctx context.Context, id commonids.Sp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CertificatesListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_configurationserviceslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_configurationserviceslist.go index 16f0b534b55..f756bb8dcb7 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_configurationserviceslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_configurationserviceslist.go @@ -24,6 +24,18 @@ type ConfigurationServicesListCompleteResult struct { Items []ConfigurationServiceResource } +type ConfigurationServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationServicesList ... func (c AppPlatformClient) ConfigurationServicesList(ctx context.Context, id commonids.SpringCloudServiceId) (result ConfigurationServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ConfigurationServicesList(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationServicesListCustomPager{}, Path: fmt.Sprintf("%s/configurationServices", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_containerregistrieslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_containerregistrieslist.go index 6c58bc097c0..f95216e78b3 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_containerregistrieslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_containerregistrieslist.go @@ -24,6 +24,18 @@ type ContainerRegistriesListCompleteResult struct { Items []ContainerRegistryResource } +type ContainerRegistriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ContainerRegistriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ContainerRegistriesList ... func (c AppPlatformClient) ContainerRegistriesList(ctx context.Context, id commonids.SpringCloudServiceId) (result ContainerRegistriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ContainerRegistriesList(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ContainerRegistriesListCustomPager{}, Path: fmt.Sprintf("%s/containerRegistries", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_customdomainslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_customdomainslist.go index 2fd84d65cb2..71ca1ab1862 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_customdomainslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_customdomainslist.go @@ -23,6 +23,18 @@ type CustomDomainsListCompleteResult struct { Items []CustomDomainResource } +type CustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomDomainsList ... func (c AppPlatformClient) CustomDomainsList(ctx context.Context, id AppId) (result CustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) CustomDomainsList(ctx context.Context, id AppId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/domains", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_customizedacceleratorslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_customizedacceleratorslist.go index 184a499b15b..9f94567ade3 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_customizedacceleratorslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_customizedacceleratorslist.go @@ -23,6 +23,18 @@ type CustomizedAcceleratorsListCompleteResult struct { Items []CustomizedAcceleratorResource } +type CustomizedAcceleratorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomizedAcceleratorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomizedAcceleratorsList ... func (c AppPlatformClient) CustomizedAcceleratorsList(ctx context.Context, id ApplicationAcceleratorId) (result CustomizedAcceleratorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) CustomizedAcceleratorsList(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomizedAcceleratorsListCustomPager{}, Path: fmt.Sprintf("%s/customizedAccelerators", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_deploymentslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_deploymentslist.go index b460e59a520..9f59eb8df5c 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_deploymentslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_deploymentslist.go @@ -54,6 +54,18 @@ func (o DeploymentsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type DeploymentsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeploymentsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeploymentsList ... func (c AppPlatformClient) DeploymentsList(ctx context.Context, id AppId, options DeploymentsListOperationOptions) (result DeploymentsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c AppPlatformClient) DeploymentsList(ctx context.Context, id AppId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/deployments", id.ID()), OptionsObject: options, + Pager: &DeploymentsListCustomPager{}, + Path: fmt.Sprintf("%s/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_deploymentslistforcluster.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_deploymentslistforcluster.go index 66a4415d67f..2496ba5da3f 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_deploymentslistforcluster.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_deploymentslistforcluster.go @@ -55,6 +55,18 @@ func (o DeploymentsListForClusterOperationOptions) ToQuery() *client.QueryParams return &out } +type DeploymentsListForClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeploymentsListForClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeploymentsListForCluster ... func (c AppPlatformClient) DeploymentsListForCluster(ctx context.Context, id commonids.SpringCloudServiceId, options DeploymentsListForClusterOperationOptions) (result DeploymentsListForClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c AppPlatformClient) DeploymentsListForCluster(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/deployments", id.ID()), OptionsObject: options, + Pager: &DeploymentsListForClusterCustomPager{}, + Path: fmt.Sprintf("%s/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_devtoolportalslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_devtoolportalslist.go index 55f948f9395..a8155187039 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_devtoolportalslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_devtoolportalslist.go @@ -24,6 +24,18 @@ type DevToolPortalsListCompleteResult struct { Items []DevToolPortalResource } +type DevToolPortalsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DevToolPortalsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DevToolPortalsList ... func (c AppPlatformClient) DevToolPortalsList(ctx context.Context, id commonids.SpringCloudServiceId) (result DevToolPortalsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) DevToolPortalsList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DevToolPortalsListCustomPager{}, Path: fmt.Sprintf("%s/devToolPortals", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_eurekaserverslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_eurekaserverslist.go index 412ca748cfe..6bdac5c1414 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_eurekaserverslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_eurekaserverslist.go @@ -24,6 +24,18 @@ type EurekaServersListCompleteResult struct { Items []EurekaServerResource } +type EurekaServersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *EurekaServersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // EurekaServersList ... func (c AppPlatformClient) EurekaServersList(ctx context.Context, id commonids.SpringCloudServiceId) (result EurekaServersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) EurekaServersList(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &EurekaServersListCustomPager{}, Path: fmt.Sprintf("%s/eurekaServers", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_gatewaycustomdomainslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_gatewaycustomdomainslist.go index 54769c483a7..9e16b2bc080 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_gatewaycustomdomainslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_gatewaycustomdomainslist.go @@ -23,6 +23,18 @@ type GatewayCustomDomainsListCompleteResult struct { Items []GatewayCustomDomainResource } +type GatewayCustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GatewayCustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GatewayCustomDomainsList ... func (c AppPlatformClient) GatewayCustomDomainsList(ctx context.Context, id GatewayId) (result GatewayCustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) GatewayCustomDomainsList(ctx context.Context, id Gate http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GatewayCustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/domains", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_gatewayrouteconfigslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_gatewayrouteconfigslist.go index d6ba7576ad2..f17ce8caf9b 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_gatewayrouteconfigslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_gatewayrouteconfigslist.go @@ -23,6 +23,18 @@ type GatewayRouteConfigsListCompleteResult struct { Items []GatewayRouteConfigResource } +type GatewayRouteConfigsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GatewayRouteConfigsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GatewayRouteConfigsList ... func (c AppPlatformClient) GatewayRouteConfigsList(ctx context.Context, id GatewayId) (result GatewayRouteConfigsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) GatewayRouteConfigsList(ctx context.Context, id Gatew http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GatewayRouteConfigsListCustomPager{}, Path: fmt.Sprintf("%s/routeConfigs", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_gatewayslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_gatewayslist.go index 218505badd1..d7ee33cb902 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_gatewayslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_gatewayslist.go @@ -24,6 +24,18 @@ type GatewaysListCompleteResult struct { Items []GatewayResource } +type GatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GatewaysList ... func (c AppPlatformClient) GatewaysList(ctx context.Context, id commonids.SpringCloudServiceId) (result GatewaysListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) GatewaysList(ctx context.Context, id commonids.Spring http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GatewaysListCustomPager{}, Path: fmt.Sprintf("%s/gateways", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_predefinedacceleratorslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_predefinedacceleratorslist.go index 5fec0331cb2..79161cb1d5b 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_predefinedacceleratorslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_predefinedacceleratorslist.go @@ -23,6 +23,18 @@ type PredefinedAcceleratorsListCompleteResult struct { Items []PredefinedAcceleratorResource } +type PredefinedAcceleratorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PredefinedAcceleratorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PredefinedAcceleratorsList ... func (c AppPlatformClient) PredefinedAcceleratorsList(ctx context.Context, id ApplicationAcceleratorId) (result PredefinedAcceleratorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) PredefinedAcceleratorsList(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PredefinedAcceleratorsListCustomPager{}, Path: fmt.Sprintf("%s/predefinedAccelerators", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceregistrieslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceregistrieslist.go index a956255349c..cd292429174 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceregistrieslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceregistrieslist.go @@ -24,6 +24,18 @@ type ServiceRegistriesListCompleteResult struct { Items []ServiceRegistryResource } +type ServiceRegistriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceRegistriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceRegistriesList ... func (c AppPlatformClient) ServiceRegistriesList(ctx context.Context, id commonids.SpringCloudServiceId) (result ServiceRegistriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServiceRegistriesList(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServiceRegistriesListCustomPager{}, Path: fmt.Sprintf("%s/serviceRegistries", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslist.go index d7d06cd0898..32848608e2d 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []ServiceResource } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c AppPlatformClient) ServicesList(ctx context.Context, id commonids.ResourceGroupId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesList(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppPlatform/spring", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslistbysubscription.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslistbysubscription.go index 89f6397ae71..c0a0fe2ea94 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslistbysubscription.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslistbysubscription.go @@ -24,6 +24,18 @@ type ServicesListBySubscriptionCompleteResult struct { Items []ServiceResource } +type ServicesListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListBySubscription ... func (c AppPlatformClient) ServicesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ServicesListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppPlatform/spring", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslistsupportedapmtypes.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslistsupportedapmtypes.go index fbb2f83b4ee..460a4047eec 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslistsupportedapmtypes.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslistsupportedapmtypes.go @@ -24,6 +24,18 @@ type ServicesListSupportedApmTypesCompleteResult struct { Items []SupportedApmType } +type ServicesListSupportedApmTypesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListSupportedApmTypesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListSupportedApmTypes ... func (c AppPlatformClient) ServicesListSupportedApmTypes(ctx context.Context, id commonids.SpringCloudServiceId) (result ServicesListSupportedApmTypesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesListSupportedApmTypes(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListSupportedApmTypesCustomPager{}, Path: fmt.Sprintf("%s/supportedApmTypes", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslistsupportedserverversions.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslistsupportedserverversions.go index abcaddde818..373e33bd438 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslistsupportedserverversions.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_serviceslistsupportedserverversions.go @@ -24,6 +24,18 @@ type ServicesListSupportedServerVersionsCompleteResult struct { Items []SupportedServerVersion } +type ServicesListSupportedServerVersionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListSupportedServerVersionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListSupportedServerVersions ... func (c AppPlatformClient) ServicesListSupportedServerVersions(ctx context.Context, id commonids.SpringCloudServiceId) (result ServicesListSupportedServerVersionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesListSupportedServerVersions(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListSupportedServerVersionsCustomPager{}, Path: fmt.Sprintf("%s/supportedServerVersions", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_skuslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_skuslist.go index 6f2bcc3bdf4..7e6ba03c914 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_skuslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_skuslist.go @@ -24,6 +24,18 @@ type SkusListCompleteResult struct { Items []ResourceSku } +type SkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SkusList ... func (c AppPlatformClient) SkusList(ctx context.Context, id commonids.SubscriptionId) (result SkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) SkusList(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SkusListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppPlatform/skus", id.ID()), } diff --git a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_storageslist.go b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_storageslist.go index 05a7da332ba..56bdf56e72a 100644 --- a/resource-manager/appplatform/2023-11-01-preview/appplatform/method_storageslist.go +++ b/resource-manager/appplatform/2023-11-01-preview/appplatform/method_storageslist.go @@ -24,6 +24,18 @@ type StoragesListCompleteResult struct { Items []StorageResource } +type StoragesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *StoragesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StoragesList ... func (c AppPlatformClient) StoragesList(ctx context.Context, id commonids.SpringCloudServiceId) (result StoragesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) StoragesList(ctx context.Context, id commonids.Spring http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &StoragesListCustomPager{}, Path: fmt.Sprintf("%s/storages", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_apiportalcustomdomainslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_apiportalcustomdomainslist.go index 2ba639c94be..82141432efe 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_apiportalcustomdomainslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_apiportalcustomdomainslist.go @@ -23,6 +23,18 @@ type ApiPortalCustomDomainsListCompleteResult struct { Items []ApiPortalCustomDomainResource } +type ApiPortalCustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiPortalCustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApiPortalCustomDomainsList ... func (c AppPlatformClient) ApiPortalCustomDomainsList(ctx context.Context, id ApiPortalId) (result ApiPortalCustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) ApiPortalCustomDomainsList(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApiPortalCustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/domains", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_apiportalslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_apiportalslist.go index bb0a007227f..505576f3290 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_apiportalslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_apiportalslist.go @@ -24,6 +24,18 @@ type ApiPortalsListCompleteResult struct { Items []ApiPortalResource } +type ApiPortalsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiPortalsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApiPortalsList ... func (c AppPlatformClient) ApiPortalsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApiPortalsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApiPortalsList(ctx context.Context, id commonids.Spri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApiPortalsListCustomPager{}, Path: fmt.Sprintf("%s/apiPortals", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_apmslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_apmslist.go index a9807ba4c21..bbf0956d014 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_apmslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_apmslist.go @@ -24,6 +24,18 @@ type ApmsListCompleteResult struct { Items []ApmResource } +type ApmsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApmsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApmsList ... func (c AppPlatformClient) ApmsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApmsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApmsList(ctx context.Context, id commonids.SpringClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApmsListCustomPager{}, Path: fmt.Sprintf("%s/apms", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_applicationacceleratorslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_applicationacceleratorslist.go index 2acefc71889..3d0057098ed 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_applicationacceleratorslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_applicationacceleratorslist.go @@ -24,6 +24,18 @@ type ApplicationAcceleratorsListCompleteResult struct { Items []ApplicationAcceleratorResource } +type ApplicationAcceleratorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApplicationAcceleratorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApplicationAcceleratorsList ... func (c AppPlatformClient) ApplicationAcceleratorsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApplicationAcceleratorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApplicationAcceleratorsList(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApplicationAcceleratorsListCustomPager{}, Path: fmt.Sprintf("%s/applicationAccelerators", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_applicationliveviewslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_applicationliveviewslist.go index 9c6a60c111e..7b278500e1c 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_applicationliveviewslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_applicationliveviewslist.go @@ -24,6 +24,18 @@ type ApplicationLiveViewsListCompleteResult struct { Items []ApplicationLiveViewResource } +type ApplicationLiveViewsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApplicationLiveViewsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApplicationLiveViewsList ... func (c AppPlatformClient) ApplicationLiveViewsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApplicationLiveViewsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApplicationLiveViewsList(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApplicationLiveViewsListCustomPager{}, Path: fmt.Sprintf("%s/applicationLiveViews", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_appsget.go b/resource-manager/appplatform/2023-12-01/appplatform/method_appsget.go index da0e76b7bc4..4a53dd22ea4 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_appsget.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_appsget.go @@ -53,8 +53,8 @@ func (c AppPlatformClient) AppsGet(ctx context.Context, id AppId, options AppsGe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_appslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_appslist.go index 7b0d8299d83..5c0889a6c8e 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_appslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_appslist.go @@ -24,6 +24,18 @@ type AppsListCompleteResult struct { Items []AppResource } +type AppsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AppsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AppsList ... func (c AppPlatformClient) AppsList(ctx context.Context, id commonids.SpringCloudServiceId) (result AppsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) AppsList(ctx context.Context, id commonids.SpringClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AppsListCustomPager{}, Path: fmt.Sprintf("%s/apps", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_bindingslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_bindingslist.go index dc29c45e32f..8bda68a1115 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_bindingslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_bindingslist.go @@ -23,6 +23,18 @@ type BindingsListCompleteResult struct { Items []BindingResource } +type BindingsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BindingsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BindingsList ... func (c AppPlatformClient) BindingsList(ctx context.Context, id AppId) (result BindingsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BindingsList(ctx context.Context, id AppId) (result B http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BindingsListCustomPager{}, Path: fmt.Sprintf("%s/bindings", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_buildpackbindinglist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_buildpackbindinglist.go index a4397a14e28..d530a1a1886 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_buildpackbindinglist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_buildpackbindinglist.go @@ -23,6 +23,18 @@ type BuildpackBindingListCompleteResult struct { Items []BuildpackBindingResource } +type BuildpackBindingListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildpackBindingListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildpackBindingList ... func (c AppPlatformClient) BuildpackBindingList(ctx context.Context, id BuilderId) (result BuildpackBindingListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildpackBindingList(ctx context.Context, id BuilderI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildpackBindingListCustomPager{}, Path: fmt.Sprintf("%s/buildPackBindings", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_buildpackbindinglistforcluster.go b/resource-manager/appplatform/2023-12-01/appplatform/method_buildpackbindinglistforcluster.go index 62eb188cec2..ed9ca0bbdc6 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_buildpackbindinglistforcluster.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_buildpackbindinglistforcluster.go @@ -24,6 +24,18 @@ type BuildpackBindingListForClusterCompleteResult struct { Items []BuildpackBindingResource } +type BuildpackBindingListForClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildpackBindingListForClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildpackBindingListForCluster ... func (c AppPlatformClient) BuildpackBindingListForCluster(ctx context.Context, id commonids.SpringCloudServiceId) (result BuildpackBindingListForClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) BuildpackBindingListForCluster(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildpackBindingListForClusterCustomPager{}, Path: fmt.Sprintf("%s/buildPackBindings", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_buildserviceagentpoollist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_buildserviceagentpoollist.go index 999c76d2d69..c387e88ca55 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_buildserviceagentpoollist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_buildserviceagentpoollist.go @@ -23,6 +23,18 @@ type BuildServiceAgentPoolListCompleteResult struct { Items []BuildServiceAgentPoolResource } +type BuildServiceAgentPoolListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceAgentPoolListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceAgentPoolList ... func (c AppPlatformClient) BuildServiceAgentPoolList(ctx context.Context, id BuildServiceId) (result BuildServiceAgentPoolListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceAgentPoolList(ctx context.Context, id Bui http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceAgentPoolListCustomPager{}, Path: fmt.Sprintf("%s/agentPools", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicebuilderlist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicebuilderlist.go index 5f92c7a5b97..df5830f87f3 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicebuilderlist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicebuilderlist.go @@ -23,6 +23,18 @@ type BuildServiceBuilderListCompleteResult struct { Items []BuilderResource } +type BuildServiceBuilderListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceBuilderListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceBuilderList ... func (c AppPlatformClient) BuildServiceBuilderList(ctx context.Context, id BuildServiceId) (result BuildServiceBuilderListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceBuilderList(ctx context.Context, id Build http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceBuilderListCustomPager{}, Path: fmt.Sprintf("%s/builders", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistbuildresults.go b/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistbuildresults.go index 091e800192f..07aada4094d 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistbuildresults.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistbuildresults.go @@ -23,6 +23,18 @@ type BuildServiceListBuildResultsCompleteResult struct { Items []BuildResult } +type BuildServiceListBuildResultsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListBuildResultsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListBuildResults ... func (c AppPlatformClient) BuildServiceListBuildResults(ctx context.Context, id BuildId) (result BuildServiceListBuildResultsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListBuildResults(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListBuildResultsCustomPager{}, Path: fmt.Sprintf("%s/results", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistbuilds.go b/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistbuilds.go index c0e9cef77b2..edbc9154661 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistbuilds.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistbuilds.go @@ -23,6 +23,18 @@ type BuildServiceListBuildsCompleteResult struct { Items []Build } +type BuildServiceListBuildsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListBuildsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListBuilds ... func (c AppPlatformClient) BuildServiceListBuilds(ctx context.Context, id BuildServiceId) (result BuildServiceListBuildsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListBuilds(ctx context.Context, id BuildS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListBuildsCustomPager{}, Path: fmt.Sprintf("%s/builds", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistbuildservices.go b/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistbuildservices.go index 2c60c6e9a1d..0bcf2638b88 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistbuildservices.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistbuildservices.go @@ -24,6 +24,18 @@ type BuildServiceListBuildServicesCompleteResult struct { Items []BuildService } +type BuildServiceListBuildServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListBuildServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListBuildServices ... func (c AppPlatformClient) BuildServiceListBuildServices(ctx context.Context, id commonids.SpringCloudServiceId) (result BuildServiceListBuildServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) BuildServiceListBuildServices(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListBuildServicesCustomPager{}, Path: fmt.Sprintf("%s/buildServices", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistsupportedbuildpacks.go b/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistsupportedbuildpacks.go index bf3609c0102..8dc624021c3 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistsupportedbuildpacks.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistsupportedbuildpacks.go @@ -23,6 +23,18 @@ type BuildServiceListSupportedBuildpacksCompleteResult struct { Items []SupportedBuildpackResource } +type BuildServiceListSupportedBuildpacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListSupportedBuildpacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListSupportedBuildpacks ... func (c AppPlatformClient) BuildServiceListSupportedBuildpacks(ctx context.Context, id BuildServiceId) (result BuildServiceListSupportedBuildpacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListSupportedBuildpacks(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListSupportedBuildpacksCustomPager{}, Path: fmt.Sprintf("%s/supportedBuildPacks", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistsupportedstacks.go b/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistsupportedstacks.go index ed8ee1dc60c..36afe2ccfe3 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistsupportedstacks.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_buildservicelistsupportedstacks.go @@ -23,6 +23,18 @@ type BuildServiceListSupportedStacksCompleteResult struct { Items []SupportedStackResource } +type BuildServiceListSupportedStacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListSupportedStacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListSupportedStacks ... func (c AppPlatformClient) BuildServiceListSupportedStacks(ctx context.Context, id BuildServiceId) (result BuildServiceListSupportedStacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListSupportedStacks(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListSupportedStacksCustomPager{}, Path: fmt.Sprintf("%s/supportedStacks", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_certificateslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_certificateslist.go index 4afaeedac89..44382d3cc61 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_certificateslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_certificateslist.go @@ -24,6 +24,18 @@ type CertificatesListCompleteResult struct { Items []CertificateResource } +type CertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CertificatesList ... func (c AppPlatformClient) CertificatesList(ctx context.Context, id commonids.SpringCloudServiceId) (result CertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) CertificatesList(ctx context.Context, id commonids.Sp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CertificatesListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_configurationserviceslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_configurationserviceslist.go index 16f0b534b55..f756bb8dcb7 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_configurationserviceslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_configurationserviceslist.go @@ -24,6 +24,18 @@ type ConfigurationServicesListCompleteResult struct { Items []ConfigurationServiceResource } +type ConfigurationServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationServicesList ... func (c AppPlatformClient) ConfigurationServicesList(ctx context.Context, id commonids.SpringCloudServiceId) (result ConfigurationServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ConfigurationServicesList(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationServicesListCustomPager{}, Path: fmt.Sprintf("%s/configurationServices", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_containerregistrieslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_containerregistrieslist.go index 6c58bc097c0..f95216e78b3 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_containerregistrieslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_containerregistrieslist.go @@ -24,6 +24,18 @@ type ContainerRegistriesListCompleteResult struct { Items []ContainerRegistryResource } +type ContainerRegistriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ContainerRegistriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ContainerRegistriesList ... func (c AppPlatformClient) ContainerRegistriesList(ctx context.Context, id commonids.SpringCloudServiceId) (result ContainerRegistriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ContainerRegistriesList(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ContainerRegistriesListCustomPager{}, Path: fmt.Sprintf("%s/containerRegistries", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_customdomainslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_customdomainslist.go index 2fd84d65cb2..71ca1ab1862 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_customdomainslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_customdomainslist.go @@ -23,6 +23,18 @@ type CustomDomainsListCompleteResult struct { Items []CustomDomainResource } +type CustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomDomainsList ... func (c AppPlatformClient) CustomDomainsList(ctx context.Context, id AppId) (result CustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) CustomDomainsList(ctx context.Context, id AppId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/domains", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_customizedacceleratorslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_customizedacceleratorslist.go index 184a499b15b..9f94567ade3 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_customizedacceleratorslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_customizedacceleratorslist.go @@ -23,6 +23,18 @@ type CustomizedAcceleratorsListCompleteResult struct { Items []CustomizedAcceleratorResource } +type CustomizedAcceleratorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomizedAcceleratorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomizedAcceleratorsList ... func (c AppPlatformClient) CustomizedAcceleratorsList(ctx context.Context, id ApplicationAcceleratorId) (result CustomizedAcceleratorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) CustomizedAcceleratorsList(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomizedAcceleratorsListCustomPager{}, Path: fmt.Sprintf("%s/customizedAccelerators", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_deploymentslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_deploymentslist.go index 2ad70f9b022..88cad05fed5 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_deploymentslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_deploymentslist.go @@ -50,6 +50,18 @@ func (o DeploymentsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type DeploymentsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeploymentsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeploymentsList ... func (c AppPlatformClient) DeploymentsList(ctx context.Context, id AppId, options DeploymentsListOperationOptions) (result DeploymentsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c AppPlatformClient) DeploymentsList(ctx context.Context, id AppId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/deployments", id.ID()), OptionsObject: options, + Pager: &DeploymentsListCustomPager{}, + Path: fmt.Sprintf("%s/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_deploymentslistforcluster.go b/resource-manager/appplatform/2023-12-01/appplatform/method_deploymentslistforcluster.go index 66a4415d67f..2496ba5da3f 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_deploymentslistforcluster.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_deploymentslistforcluster.go @@ -55,6 +55,18 @@ func (o DeploymentsListForClusterOperationOptions) ToQuery() *client.QueryParams return &out } +type DeploymentsListForClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeploymentsListForClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeploymentsListForCluster ... func (c AppPlatformClient) DeploymentsListForCluster(ctx context.Context, id commonids.SpringCloudServiceId, options DeploymentsListForClusterOperationOptions) (result DeploymentsListForClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c AppPlatformClient) DeploymentsListForCluster(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/deployments", id.ID()), OptionsObject: options, + Pager: &DeploymentsListForClusterCustomPager{}, + Path: fmt.Sprintf("%s/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_devtoolportalslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_devtoolportalslist.go index 55f948f9395..a8155187039 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_devtoolportalslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_devtoolportalslist.go @@ -24,6 +24,18 @@ type DevToolPortalsListCompleteResult struct { Items []DevToolPortalResource } +type DevToolPortalsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DevToolPortalsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DevToolPortalsList ... func (c AppPlatformClient) DevToolPortalsList(ctx context.Context, id commonids.SpringCloudServiceId) (result DevToolPortalsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) DevToolPortalsList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DevToolPortalsListCustomPager{}, Path: fmt.Sprintf("%s/devToolPortals", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_gatewaycustomdomainslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_gatewaycustomdomainslist.go index 54769c483a7..9e16b2bc080 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_gatewaycustomdomainslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_gatewaycustomdomainslist.go @@ -23,6 +23,18 @@ type GatewayCustomDomainsListCompleteResult struct { Items []GatewayCustomDomainResource } +type GatewayCustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GatewayCustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GatewayCustomDomainsList ... func (c AppPlatformClient) GatewayCustomDomainsList(ctx context.Context, id GatewayId) (result GatewayCustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) GatewayCustomDomainsList(ctx context.Context, id Gate http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GatewayCustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/domains", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_gatewayrouteconfigslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_gatewayrouteconfigslist.go index d6ba7576ad2..f17ce8caf9b 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_gatewayrouteconfigslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_gatewayrouteconfigslist.go @@ -23,6 +23,18 @@ type GatewayRouteConfigsListCompleteResult struct { Items []GatewayRouteConfigResource } +type GatewayRouteConfigsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GatewayRouteConfigsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GatewayRouteConfigsList ... func (c AppPlatformClient) GatewayRouteConfigsList(ctx context.Context, id GatewayId) (result GatewayRouteConfigsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) GatewayRouteConfigsList(ctx context.Context, id Gatew http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GatewayRouteConfigsListCustomPager{}, Path: fmt.Sprintf("%s/routeConfigs", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_gatewayslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_gatewayslist.go index 218505badd1..d7ee33cb902 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_gatewayslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_gatewayslist.go @@ -24,6 +24,18 @@ type GatewaysListCompleteResult struct { Items []GatewayResource } +type GatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GatewaysList ... func (c AppPlatformClient) GatewaysList(ctx context.Context, id commonids.SpringCloudServiceId) (result GatewaysListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) GatewaysList(ctx context.Context, id commonids.Spring http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GatewaysListCustomPager{}, Path: fmt.Sprintf("%s/gateways", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_predefinedacceleratorslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_predefinedacceleratorslist.go index 5fec0331cb2..79161cb1d5b 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_predefinedacceleratorslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_predefinedacceleratorslist.go @@ -23,6 +23,18 @@ type PredefinedAcceleratorsListCompleteResult struct { Items []PredefinedAcceleratorResource } +type PredefinedAcceleratorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PredefinedAcceleratorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PredefinedAcceleratorsList ... func (c AppPlatformClient) PredefinedAcceleratorsList(ctx context.Context, id ApplicationAcceleratorId) (result PredefinedAcceleratorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) PredefinedAcceleratorsList(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PredefinedAcceleratorsListCustomPager{}, Path: fmt.Sprintf("%s/predefinedAccelerators", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_serviceregistrieslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_serviceregistrieslist.go index a956255349c..cd292429174 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_serviceregistrieslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_serviceregistrieslist.go @@ -24,6 +24,18 @@ type ServiceRegistriesListCompleteResult struct { Items []ServiceRegistryResource } +type ServiceRegistriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceRegistriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceRegistriesList ... func (c AppPlatformClient) ServiceRegistriesList(ctx context.Context, id commonids.SpringCloudServiceId) (result ServiceRegistriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServiceRegistriesList(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServiceRegistriesListCustomPager{}, Path: fmt.Sprintf("%s/serviceRegistries", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslist.go index d7d06cd0898..32848608e2d 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []ServiceResource } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c AppPlatformClient) ServicesList(ctx context.Context, id commonids.ResourceGroupId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesList(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppPlatform/spring", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslistbysubscription.go b/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslistbysubscription.go index 89f6397ae71..c0a0fe2ea94 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslistbysubscription.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslistbysubscription.go @@ -24,6 +24,18 @@ type ServicesListBySubscriptionCompleteResult struct { Items []ServiceResource } +type ServicesListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListBySubscription ... func (c AppPlatformClient) ServicesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ServicesListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppPlatform/spring", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslistsupportedapmtypes.go b/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslistsupportedapmtypes.go index fbb2f83b4ee..460a4047eec 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslistsupportedapmtypes.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslistsupportedapmtypes.go @@ -24,6 +24,18 @@ type ServicesListSupportedApmTypesCompleteResult struct { Items []SupportedApmType } +type ServicesListSupportedApmTypesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListSupportedApmTypesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListSupportedApmTypes ... func (c AppPlatformClient) ServicesListSupportedApmTypes(ctx context.Context, id commonids.SpringCloudServiceId) (result ServicesListSupportedApmTypesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesListSupportedApmTypes(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListSupportedApmTypesCustomPager{}, Path: fmt.Sprintf("%s/supportedApmTypes", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslistsupportedserverversions.go b/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslistsupportedserverversions.go index abcaddde818..373e33bd438 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslistsupportedserverversions.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_serviceslistsupportedserverversions.go @@ -24,6 +24,18 @@ type ServicesListSupportedServerVersionsCompleteResult struct { Items []SupportedServerVersion } +type ServicesListSupportedServerVersionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListSupportedServerVersionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListSupportedServerVersions ... func (c AppPlatformClient) ServicesListSupportedServerVersions(ctx context.Context, id commonids.SpringCloudServiceId) (result ServicesListSupportedServerVersionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesListSupportedServerVersions(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListSupportedServerVersionsCustomPager{}, Path: fmt.Sprintf("%s/supportedServerVersions", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_skuslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_skuslist.go index 6f2bcc3bdf4..7e6ba03c914 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_skuslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_skuslist.go @@ -24,6 +24,18 @@ type SkusListCompleteResult struct { Items []ResourceSku } +type SkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SkusList ... func (c AppPlatformClient) SkusList(ctx context.Context, id commonids.SubscriptionId) (result SkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) SkusList(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SkusListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppPlatform/skus", id.ID()), } diff --git a/resource-manager/appplatform/2023-12-01/appplatform/method_storageslist.go b/resource-manager/appplatform/2023-12-01/appplatform/method_storageslist.go index 05a7da332ba..56bdf56e72a 100644 --- a/resource-manager/appplatform/2023-12-01/appplatform/method_storageslist.go +++ b/resource-manager/appplatform/2023-12-01/appplatform/method_storageslist.go @@ -24,6 +24,18 @@ type StoragesListCompleteResult struct { Items []StorageResource } +type StoragesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *StoragesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StoragesList ... func (c AppPlatformClient) StoragesList(ctx context.Context, id commonids.SpringCloudServiceId) (result StoragesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) StoragesList(ctx context.Context, id commonids.Spring http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &StoragesListCustomPager{}, Path: fmt.Sprintf("%s/storages", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalcustomdomainslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalcustomdomainslist.go index 2ba639c94be..82141432efe 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalcustomdomainslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalcustomdomainslist.go @@ -23,6 +23,18 @@ type ApiPortalCustomDomainsListCompleteResult struct { Items []ApiPortalCustomDomainResource } +type ApiPortalCustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiPortalCustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApiPortalCustomDomainsList ... func (c AppPlatformClient) ApiPortalCustomDomainsList(ctx context.Context, id ApiPortalId) (result ApiPortalCustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) ApiPortalCustomDomainsList(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApiPortalCustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/domains", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalslist.go index bb0a007227f..505576f3290 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalslist.go @@ -24,6 +24,18 @@ type ApiPortalsListCompleteResult struct { Items []ApiPortalResource } +type ApiPortalsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApiPortalsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApiPortalsList ... func (c AppPlatformClient) ApiPortalsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApiPortalsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApiPortalsList(ctx context.Context, id commonids.Spri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApiPortalsListCustomPager{}, Path: fmt.Sprintf("%s/apiPortals", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apmslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apmslist.go index a9807ba4c21..bbf0956d014 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apmslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apmslist.go @@ -24,6 +24,18 @@ type ApmsListCompleteResult struct { Items []ApmResource } +type ApmsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApmsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApmsList ... func (c AppPlatformClient) ApmsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApmsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApmsList(ctx context.Context, id commonids.SpringClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApmsListCustomPager{}, Path: fmt.Sprintf("%s/apms", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationacceleratorslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationacceleratorslist.go index 2acefc71889..3d0057098ed 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationacceleratorslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationacceleratorslist.go @@ -24,6 +24,18 @@ type ApplicationAcceleratorsListCompleteResult struct { Items []ApplicationAcceleratorResource } +type ApplicationAcceleratorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApplicationAcceleratorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApplicationAcceleratorsList ... func (c AppPlatformClient) ApplicationAcceleratorsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApplicationAcceleratorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApplicationAcceleratorsList(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApplicationAcceleratorsListCustomPager{}, Path: fmt.Sprintf("%s/applicationAccelerators", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationliveviewslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationliveviewslist.go index 9c6a60c111e..7b278500e1c 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationliveviewslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationliveviewslist.go @@ -24,6 +24,18 @@ type ApplicationLiveViewsListCompleteResult struct { Items []ApplicationLiveViewResource } +type ApplicationLiveViewsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ApplicationLiveViewsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ApplicationLiveViewsList ... func (c AppPlatformClient) ApplicationLiveViewsList(ctx context.Context, id commonids.SpringCloudServiceId) (result ApplicationLiveViewsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ApplicationLiveViewsList(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ApplicationLiveViewsListCustomPager{}, Path: fmt.Sprintf("%s/applicationLiveViews", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsget.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsget.go index da0e76b7bc4..4a53dd22ea4 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsget.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsget.go @@ -53,8 +53,8 @@ func (c AppPlatformClient) AppsGet(ctx context.Context, id AppId, options AppsGe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appslist.go index 7b0d8299d83..5c0889a6c8e 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appslist.go @@ -24,6 +24,18 @@ type AppsListCompleteResult struct { Items []AppResource } +type AppsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AppsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AppsList ... func (c AppPlatformClient) AppsList(ctx context.Context, id commonids.SpringCloudServiceId) (result AppsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) AppsList(ctx context.Context, id commonids.SpringClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AppsListCustomPager{}, Path: fmt.Sprintf("%s/apps", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_bindingslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_bindingslist.go index dc29c45e32f..8bda68a1115 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_bindingslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_bindingslist.go @@ -23,6 +23,18 @@ type BindingsListCompleteResult struct { Items []BindingResource } +type BindingsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BindingsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BindingsList ... func (c AppPlatformClient) BindingsList(ctx context.Context, id AppId) (result BindingsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BindingsList(ctx context.Context, id AppId) (result B http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BindingsListCustomPager{}, Path: fmt.Sprintf("%s/bindings", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildpackbindinglist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildpackbindinglist.go index a4397a14e28..d530a1a1886 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildpackbindinglist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildpackbindinglist.go @@ -23,6 +23,18 @@ type BuildpackBindingListCompleteResult struct { Items []BuildpackBindingResource } +type BuildpackBindingListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildpackBindingListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildpackBindingList ... func (c AppPlatformClient) BuildpackBindingList(ctx context.Context, id BuilderId) (result BuildpackBindingListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildpackBindingList(ctx context.Context, id BuilderI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildpackBindingListCustomPager{}, Path: fmt.Sprintf("%s/buildPackBindings", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildpackbindinglistforcluster.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildpackbindinglistforcluster.go index 62eb188cec2..ed9ca0bbdc6 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildpackbindinglistforcluster.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildpackbindinglistforcluster.go @@ -24,6 +24,18 @@ type BuildpackBindingListForClusterCompleteResult struct { Items []BuildpackBindingResource } +type BuildpackBindingListForClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildpackBindingListForClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildpackBindingListForCluster ... func (c AppPlatformClient) BuildpackBindingListForCluster(ctx context.Context, id commonids.SpringCloudServiceId) (result BuildpackBindingListForClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) BuildpackBindingListForCluster(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildpackBindingListForClusterCustomPager{}, Path: fmt.Sprintf("%s/buildPackBindings", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildserviceagentpoollist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildserviceagentpoollist.go index 999c76d2d69..c387e88ca55 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildserviceagentpoollist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildserviceagentpoollist.go @@ -23,6 +23,18 @@ type BuildServiceAgentPoolListCompleteResult struct { Items []BuildServiceAgentPoolResource } +type BuildServiceAgentPoolListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceAgentPoolListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceAgentPoolList ... func (c AppPlatformClient) BuildServiceAgentPoolList(ctx context.Context, id BuildServiceId) (result BuildServiceAgentPoolListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceAgentPoolList(ctx context.Context, id Bui http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceAgentPoolListCustomPager{}, Path: fmt.Sprintf("%s/agentPools", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicebuilderlist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicebuilderlist.go index 5f92c7a5b97..df5830f87f3 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicebuilderlist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicebuilderlist.go @@ -23,6 +23,18 @@ type BuildServiceBuilderListCompleteResult struct { Items []BuilderResource } +type BuildServiceBuilderListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceBuilderListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceBuilderList ... func (c AppPlatformClient) BuildServiceBuilderList(ctx context.Context, id BuildServiceId) (result BuildServiceBuilderListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceBuilderList(ctx context.Context, id Build http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceBuilderListCustomPager{}, Path: fmt.Sprintf("%s/builders", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistbuildresults.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistbuildresults.go index 091e800192f..07aada4094d 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistbuildresults.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistbuildresults.go @@ -23,6 +23,18 @@ type BuildServiceListBuildResultsCompleteResult struct { Items []BuildResult } +type BuildServiceListBuildResultsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListBuildResultsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListBuildResults ... func (c AppPlatformClient) BuildServiceListBuildResults(ctx context.Context, id BuildId) (result BuildServiceListBuildResultsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListBuildResults(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListBuildResultsCustomPager{}, Path: fmt.Sprintf("%s/results", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistbuilds.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistbuilds.go index c0e9cef77b2..edbc9154661 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistbuilds.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistbuilds.go @@ -23,6 +23,18 @@ type BuildServiceListBuildsCompleteResult struct { Items []Build } +type BuildServiceListBuildsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListBuildsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListBuilds ... func (c AppPlatformClient) BuildServiceListBuilds(ctx context.Context, id BuildServiceId) (result BuildServiceListBuildsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListBuilds(ctx context.Context, id BuildS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListBuildsCustomPager{}, Path: fmt.Sprintf("%s/builds", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistbuildservices.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistbuildservices.go index 2c60c6e9a1d..0bcf2638b88 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistbuildservices.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistbuildservices.go @@ -24,6 +24,18 @@ type BuildServiceListBuildServicesCompleteResult struct { Items []BuildService } +type BuildServiceListBuildServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListBuildServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListBuildServices ... func (c AppPlatformClient) BuildServiceListBuildServices(ctx context.Context, id commonids.SpringCloudServiceId) (result BuildServiceListBuildServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) BuildServiceListBuildServices(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListBuildServicesCustomPager{}, Path: fmt.Sprintf("%s/buildServices", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistsupportedbuildpacks.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistsupportedbuildpacks.go index bf3609c0102..8dc624021c3 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistsupportedbuildpacks.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistsupportedbuildpacks.go @@ -23,6 +23,18 @@ type BuildServiceListSupportedBuildpacksCompleteResult struct { Items []SupportedBuildpackResource } +type BuildServiceListSupportedBuildpacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListSupportedBuildpacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListSupportedBuildpacks ... func (c AppPlatformClient) BuildServiceListSupportedBuildpacks(ctx context.Context, id BuildServiceId) (result BuildServiceListSupportedBuildpacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListSupportedBuildpacks(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListSupportedBuildpacksCustomPager{}, Path: fmt.Sprintf("%s/supportedBuildPacks", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistsupportedstacks.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistsupportedstacks.go index ed8ee1dc60c..36afe2ccfe3 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistsupportedstacks.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicelistsupportedstacks.go @@ -23,6 +23,18 @@ type BuildServiceListSupportedStacksCompleteResult struct { Items []SupportedStackResource } +type BuildServiceListSupportedStacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BuildServiceListSupportedStacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BuildServiceListSupportedStacks ... func (c AppPlatformClient) BuildServiceListSupportedStacks(ctx context.Context, id BuildServiceId) (result BuildServiceListSupportedStacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) BuildServiceListSupportedStacks(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BuildServiceListSupportedStacksCustomPager{}, Path: fmt.Sprintf("%s/supportedStacks", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_certificateslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_certificateslist.go index 4afaeedac89..44382d3cc61 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_certificateslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_certificateslist.go @@ -24,6 +24,18 @@ type CertificatesListCompleteResult struct { Items []CertificateResource } +type CertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CertificatesList ... func (c AppPlatformClient) CertificatesList(ctx context.Context, id commonids.SpringCloudServiceId) (result CertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) CertificatesList(ctx context.Context, id commonids.Sp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CertificatesListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_configurationserviceslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_configurationserviceslist.go index 16f0b534b55..f756bb8dcb7 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_configurationserviceslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_configurationserviceslist.go @@ -24,6 +24,18 @@ type ConfigurationServicesListCompleteResult struct { Items []ConfigurationServiceResource } +type ConfigurationServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationServicesList ... func (c AppPlatformClient) ConfigurationServicesList(ctx context.Context, id commonids.SpringCloudServiceId) (result ConfigurationServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ConfigurationServicesList(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationServicesListCustomPager{}, Path: fmt.Sprintf("%s/configurationServices", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_containerregistrieslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_containerregistrieslist.go index 6c58bc097c0..f95216e78b3 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_containerregistrieslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_containerregistrieslist.go @@ -24,6 +24,18 @@ type ContainerRegistriesListCompleteResult struct { Items []ContainerRegistryResource } +type ContainerRegistriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ContainerRegistriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ContainerRegistriesList ... func (c AppPlatformClient) ContainerRegistriesList(ctx context.Context, id commonids.SpringCloudServiceId) (result ContainerRegistriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ContainerRegistriesList(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ContainerRegistriesListCustomPager{}, Path: fmt.Sprintf("%s/containerRegistries", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customdomainslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customdomainslist.go index 2fd84d65cb2..71ca1ab1862 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customdomainslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customdomainslist.go @@ -23,6 +23,18 @@ type CustomDomainsListCompleteResult struct { Items []CustomDomainResource } +type CustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomDomainsList ... func (c AppPlatformClient) CustomDomainsList(ctx context.Context, id AppId) (result CustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) CustomDomainsList(ctx context.Context, id AppId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/domains", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customizedacceleratorslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customizedacceleratorslist.go index 184a499b15b..9f94567ade3 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customizedacceleratorslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customizedacceleratorslist.go @@ -23,6 +23,18 @@ type CustomizedAcceleratorsListCompleteResult struct { Items []CustomizedAcceleratorResource } +type CustomizedAcceleratorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomizedAcceleratorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomizedAcceleratorsList ... func (c AppPlatformClient) CustomizedAcceleratorsList(ctx context.Context, id ApplicationAcceleratorId) (result CustomizedAcceleratorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) CustomizedAcceleratorsList(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomizedAcceleratorsListCustomPager{}, Path: fmt.Sprintf("%s/customizedAccelerators", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslist.go index b460e59a520..9f59eb8df5c 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslist.go @@ -54,6 +54,18 @@ func (o DeploymentsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type DeploymentsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeploymentsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeploymentsList ... func (c AppPlatformClient) DeploymentsList(ctx context.Context, id AppId, options DeploymentsListOperationOptions) (result DeploymentsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c AppPlatformClient) DeploymentsList(ctx context.Context, id AppId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/deployments", id.ID()), OptionsObject: options, + Pager: &DeploymentsListCustomPager{}, + Path: fmt.Sprintf("%s/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslistforcluster.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslistforcluster.go index 66a4415d67f..2496ba5da3f 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslistforcluster.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslistforcluster.go @@ -55,6 +55,18 @@ func (o DeploymentsListForClusterOperationOptions) ToQuery() *client.QueryParams return &out } +type DeploymentsListForClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeploymentsListForClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeploymentsListForCluster ... func (c AppPlatformClient) DeploymentsListForCluster(ctx context.Context, id commonids.SpringCloudServiceId, options DeploymentsListForClusterOperationOptions) (result DeploymentsListForClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c AppPlatformClient) DeploymentsListForCluster(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/deployments", id.ID()), OptionsObject: options, + Pager: &DeploymentsListForClusterCustomPager{}, + Path: fmt.Sprintf("%s/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_devtoolportalslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_devtoolportalslist.go index 55f948f9395..a8155187039 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_devtoolportalslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_devtoolportalslist.go @@ -24,6 +24,18 @@ type DevToolPortalsListCompleteResult struct { Items []DevToolPortalResource } +type DevToolPortalsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DevToolPortalsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DevToolPortalsList ... func (c AppPlatformClient) DevToolPortalsList(ctx context.Context, id commonids.SpringCloudServiceId) (result DevToolPortalsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) DevToolPortalsList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DevToolPortalsListCustomPager{}, Path: fmt.Sprintf("%s/devToolPortals", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_eurekaserverslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_eurekaserverslist.go index 412ca748cfe..6bdac5c1414 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_eurekaserverslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_eurekaserverslist.go @@ -24,6 +24,18 @@ type EurekaServersListCompleteResult struct { Items []EurekaServerResource } +type EurekaServersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *EurekaServersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // EurekaServersList ... func (c AppPlatformClient) EurekaServersList(ctx context.Context, id commonids.SpringCloudServiceId) (result EurekaServersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) EurekaServersList(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &EurekaServersListCustomPager{}, Path: fmt.Sprintf("%s/eurekaServers", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaycustomdomainslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaycustomdomainslist.go index 54769c483a7..9e16b2bc080 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaycustomdomainslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaycustomdomainslist.go @@ -23,6 +23,18 @@ type GatewayCustomDomainsListCompleteResult struct { Items []GatewayCustomDomainResource } +type GatewayCustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GatewayCustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GatewayCustomDomainsList ... func (c AppPlatformClient) GatewayCustomDomainsList(ctx context.Context, id GatewayId) (result GatewayCustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) GatewayCustomDomainsList(ctx context.Context, id Gate http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GatewayCustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/domains", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayrouteconfigslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayrouteconfigslist.go index d6ba7576ad2..f17ce8caf9b 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayrouteconfigslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayrouteconfigslist.go @@ -23,6 +23,18 @@ type GatewayRouteConfigsListCompleteResult struct { Items []GatewayRouteConfigResource } +type GatewayRouteConfigsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GatewayRouteConfigsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GatewayRouteConfigsList ... func (c AppPlatformClient) GatewayRouteConfigsList(ctx context.Context, id GatewayId) (result GatewayRouteConfigsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) GatewayRouteConfigsList(ctx context.Context, id Gatew http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GatewayRouteConfigsListCustomPager{}, Path: fmt.Sprintf("%s/routeConfigs", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayslist.go index 218505badd1..d7ee33cb902 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayslist.go @@ -24,6 +24,18 @@ type GatewaysListCompleteResult struct { Items []GatewayResource } +type GatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GatewaysList ... func (c AppPlatformClient) GatewaysList(ctx context.Context, id commonids.SpringCloudServiceId) (result GatewaysListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) GatewaysList(ctx context.Context, id commonids.Spring http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GatewaysListCustomPager{}, Path: fmt.Sprintf("%s/gateways", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_predefinedacceleratorslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_predefinedacceleratorslist.go index 5fec0331cb2..79161cb1d5b 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_predefinedacceleratorslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_predefinedacceleratorslist.go @@ -23,6 +23,18 @@ type PredefinedAcceleratorsListCompleteResult struct { Items []PredefinedAcceleratorResource } +type PredefinedAcceleratorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PredefinedAcceleratorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PredefinedAcceleratorsList ... func (c AppPlatformClient) PredefinedAcceleratorsList(ctx context.Context, id ApplicationAcceleratorId) (result PredefinedAcceleratorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppPlatformClient) PredefinedAcceleratorsList(ctx context.Context, id Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PredefinedAcceleratorsListCustomPager{}, Path: fmt.Sprintf("%s/predefinedAccelerators", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceregistrieslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceregistrieslist.go index a956255349c..cd292429174 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceregistrieslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceregistrieslist.go @@ -24,6 +24,18 @@ type ServiceRegistriesListCompleteResult struct { Items []ServiceRegistryResource } +type ServiceRegistriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceRegistriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceRegistriesList ... func (c AppPlatformClient) ServiceRegistriesList(ctx context.Context, id commonids.SpringCloudServiceId) (result ServiceRegistriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServiceRegistriesList(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServiceRegistriesListCustomPager{}, Path: fmt.Sprintf("%s/serviceRegistries", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslist.go index d7d06cd0898..32848608e2d 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []ServiceResource } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c AppPlatformClient) ServicesList(ctx context.Context, id commonids.ResourceGroupId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesList(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppPlatform/spring", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistbysubscription.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistbysubscription.go index 89f6397ae71..c0a0fe2ea94 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistbysubscription.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistbysubscription.go @@ -24,6 +24,18 @@ type ServicesListBySubscriptionCompleteResult struct { Items []ServiceResource } +type ServicesListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListBySubscription ... func (c AppPlatformClient) ServicesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ServicesListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppPlatform/spring", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistsupportedapmtypes.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistsupportedapmtypes.go index fbb2f83b4ee..460a4047eec 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistsupportedapmtypes.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistsupportedapmtypes.go @@ -24,6 +24,18 @@ type ServicesListSupportedApmTypesCompleteResult struct { Items []SupportedApmType } +type ServicesListSupportedApmTypesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListSupportedApmTypesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListSupportedApmTypes ... func (c AppPlatformClient) ServicesListSupportedApmTypes(ctx context.Context, id commonids.SpringCloudServiceId) (result ServicesListSupportedApmTypesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesListSupportedApmTypes(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListSupportedApmTypesCustomPager{}, Path: fmt.Sprintf("%s/supportedApmTypes", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistsupportedserverversions.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistsupportedserverversions.go index abcaddde818..373e33bd438 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistsupportedserverversions.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistsupportedserverversions.go @@ -24,6 +24,18 @@ type ServicesListSupportedServerVersionsCompleteResult struct { Items []SupportedServerVersion } +type ServicesListSupportedServerVersionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListSupportedServerVersionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListSupportedServerVersions ... func (c AppPlatformClient) ServicesListSupportedServerVersions(ctx context.Context, id commonids.SpringCloudServiceId) (result ServicesListSupportedServerVersionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) ServicesListSupportedServerVersions(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListSupportedServerVersionsCustomPager{}, Path: fmt.Sprintf("%s/supportedServerVersions", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_skuslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_skuslist.go index 6f2bcc3bdf4..7e6ba03c914 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_skuslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_skuslist.go @@ -24,6 +24,18 @@ type SkusListCompleteResult struct { Items []ResourceSku } +type SkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SkusList ... func (c AppPlatformClient) SkusList(ctx context.Context, id commonids.SubscriptionId) (result SkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) SkusList(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SkusListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AppPlatform/skus", id.ID()), } diff --git a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_storageslist.go b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_storageslist.go index 05a7da332ba..56bdf56e72a 100644 --- a/resource-manager/appplatform/2024-01-01-preview/appplatform/method_storageslist.go +++ b/resource-manager/appplatform/2024-01-01-preview/appplatform/method_storageslist.go @@ -24,6 +24,18 @@ type StoragesListCompleteResult struct { Items []StorageResource } +type StoragesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *StoragesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StoragesList ... func (c AppPlatformClient) StoragesList(ctx context.Context, id commonids.SpringCloudServiceId) (result StoragesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppPlatformClient) StoragesList(ctx context.Context, id commonids.Spring http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &StoragesListCustomPager{}, Path: fmt.Sprintf("%s/storages", id.ID()), } diff --git a/resource-manager/authorization/2018-01-01-preview/permissions/method_listforresource.go b/resource-manager/authorization/2018-01-01-preview/permissions/method_listforresource.go index cc5603bbf18..3a2b850376c 100644 --- a/resource-manager/authorization/2018-01-01-preview/permissions/method_listforresource.go +++ b/resource-manager/authorization/2018-01-01-preview/permissions/method_listforresource.go @@ -24,6 +24,18 @@ type ListForResourceCompleteResult struct { Items []Permission } +type ListForResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResource ... func (c PermissionsClient) ListForResource(ctx context.Context, id commonids.ScopeId) (result ListForResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PermissionsClient) ListForResource(ctx context.Context, id commonids.Sco http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListForResourceCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/permissions", id.ID()), } diff --git a/resource-manager/authorization/2018-01-01-preview/permissions/method_listforresourcegroup.go b/resource-manager/authorization/2018-01-01-preview/permissions/method_listforresourcegroup.go index c5770e8c138..d1033297473 100644 --- a/resource-manager/authorization/2018-01-01-preview/permissions/method_listforresourcegroup.go +++ b/resource-manager/authorization/2018-01-01-preview/permissions/method_listforresourcegroup.go @@ -24,6 +24,18 @@ type ListForResourceGroupCompleteResult struct { Items []Permission } +type ListForResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResourceGroup ... func (c PermissionsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListForResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PermissionsClient) ListForResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListForResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/permissions", id.ID()), } diff --git a/resource-manager/authorization/2018-01-01-preview/provideroperationsmetadata/method_get.go b/resource-manager/authorization/2018-01-01-preview/provideroperationsmetadata/method_get.go index 25950813cb3..9e95668a431 100644 --- a/resource-manager/authorization/2018-01-01-preview/provideroperationsmetadata/method_get.go +++ b/resource-manager/authorization/2018-01-01-preview/provideroperationsmetadata/method_get.go @@ -53,8 +53,8 @@ func (c ProviderOperationsMetadataClient) Get(ctx context.Context, id ProviderOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2018-01-01-preview/provideroperationsmetadata/method_list.go b/resource-manager/authorization/2018-01-01-preview/provideroperationsmetadata/method_list.go index 6875e8a7e27..d7416894090 100644 --- a/resource-manager/authorization/2018-01-01-preview/provideroperationsmetadata/method_list.go +++ b/resource-manager/authorization/2018-01-01-preview/provideroperationsmetadata/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProviderOperationsMetadataClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderOperationsMetadataClient) List(ctx context.Context, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Authorization/providerOperations", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.Authorization/providerOperations", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2018-01-01-preview/roleassignments/method_list.go b/resource-manager/authorization/2018-01-01-preview/roleassignments/method_list.go index ddf2651c54a..e9cf79e037e 100644 --- a/resource-manager/authorization/2018-01-01-preview/roleassignments/method_list.go +++ b/resource-manager/authorization/2018-01-01-preview/roleassignments/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RoleAssignmentsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RoleAssignmentsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2018-01-01-preview/roleassignments/method_listforresource.go b/resource-manager/authorization/2018-01-01-preview/roleassignments/method_listforresource.go index 96a943ab549..b7480c12e53 100644 --- a/resource-manager/authorization/2018-01-01-preview/roleassignments/method_listforresource.go +++ b/resource-manager/authorization/2018-01-01-preview/roleassignments/method_listforresource.go @@ -51,6 +51,18 @@ func (o ListForResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResource ... func (c RoleAssignmentsClient) ListForResource(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (result ListForResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RoleAssignmentsClient) ListForResource(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), OptionsObject: options, + Pager: &ListForResourceCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2018-01-01-preview/roleassignments/method_listforresourcegroup.go b/resource-manager/authorization/2018-01-01-preview/roleassignments/method_listforresourcegroup.go index 58e16b9af81..5a8a9d3225d 100644 --- a/resource-manager/authorization/2018-01-01-preview/roleassignments/method_listforresourcegroup.go +++ b/resource-manager/authorization/2018-01-01-preview/roleassignments/method_listforresourcegroup.go @@ -51,6 +51,18 @@ func (o ListForResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResourceGroup ... func (c RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (result ListForResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), OptionsObject: options, + Pager: &ListForResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2018-01-01-preview/roleassignments/method_listforscope.go b/resource-manager/authorization/2018-01-01-preview/roleassignments/method_listforscope.go index 051e623e76e..00197971eeb 100644 --- a/resource-manager/authorization/2018-01-01-preview/roleassignments/method_listforscope.go +++ b/resource-manager/authorization/2018-01-01-preview/roleassignments/method_listforscope.go @@ -51,6 +51,18 @@ func (o ListForScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForScope ... func (c RoleAssignmentsClient) ListForScope(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions) (result ListForScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RoleAssignmentsClient) ListForScope(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), OptionsObject: options, + Pager: &ListForScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2018-01-01-preview/roledefinitions/method_list.go b/resource-manager/authorization/2018-01-01-preview/roledefinitions/method_list.go index f3412a496f1..65fcfd2cd2a 100644 --- a/resource-manager/authorization/2018-01-01-preview/roledefinitions/method_list.go +++ b/resource-manager/authorization/2018-01-01-preview/roledefinitions/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RoleDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RoleDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleDefinitions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleDefinitions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_delete.go b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_delete.go index 58dbc8807e4..4ccb4526b17 100644 --- a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_delete.go +++ b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_delete.go @@ -54,8 +54,8 @@ func (c RoleAssignmentsClient) Delete(ctx context.Context, id ScopedRoleAssignme http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_deletebyid.go b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_deletebyid.go index 2eff54691f4..4d6b194caa2 100644 --- a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_deletebyid.go +++ b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_deletebyid.go @@ -54,8 +54,8 @@ func (c RoleAssignmentsClient) DeleteById(ctx context.Context, id RoleIdId, opti http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_get.go b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_get.go index ab283e062c8..b1466232002 100644 --- a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_get.go +++ b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_get.go @@ -53,8 +53,8 @@ func (c RoleAssignmentsClient) Get(ctx context.Context, id ScopedRoleAssignmentI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_getbyid.go b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_getbyid.go index 61565ec99d4..2a1e20a6ecf 100644 --- a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_getbyid.go +++ b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_getbyid.go @@ -53,8 +53,8 @@ func (c RoleAssignmentsClient) GetById(ctx context.Context, id RoleIdId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_list.go b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_list.go index f0ecfb5848b..a64ed4c5595 100644 --- a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_list.go +++ b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RoleAssignmentsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RoleAssignmentsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_listforresource.go b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_listforresource.go index dc310793b37..434ec7e9375 100644 --- a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_listforresource.go +++ b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_listforresource.go @@ -55,6 +55,18 @@ func (o ListForResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResource ... func (c RoleAssignmentsClient) ListForResource(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (result ListForResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RoleAssignmentsClient) ListForResource(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), OptionsObject: options, + Pager: &ListForResourceCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_listforresourcegroup.go b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_listforresourcegroup.go index aafea78b6d6..bb681d05938 100644 --- a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_listforresourcegroup.go +++ b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_listforresourcegroup.go @@ -55,6 +55,18 @@ func (o ListForResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResourceGroup ... func (c RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (result ListForResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), OptionsObject: options, + Pager: &ListForResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_listforscope.go b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_listforscope.go index e7b53897b00..35a751a0201 100644 --- a/resource-manager/authorization/2020-04-01-preview/roleassignments/method_listforscope.go +++ b/resource-manager/authorization/2020-04-01-preview/roleassignments/method_listforscope.go @@ -55,6 +55,18 @@ func (o ListForScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForScope ... func (c RoleAssignmentsClient) ListForScope(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions) (result ListForScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RoleAssignmentsClient) ListForScope(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), OptionsObject: options, + Pager: &ListForScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-10-01/eligiblechildresources/method_get.go b/resource-manager/authorization/2020-10-01/eligiblechildresources/method_get.go index 6df5f2643ae..7015bd6c354 100644 --- a/resource-manager/authorization/2020-10-01/eligiblechildresources/method_get.go +++ b/resource-manager/authorization/2020-10-01/eligiblechildresources/method_get.go @@ -51,6 +51,18 @@ func (o GetOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Get ... func (c EligibleChildResourcesClient) Get(ctx context.Context, id commonids.ScopeId, options GetOperationOptions) (result GetOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c EligibleChildResourcesClient) Get(ctx context.Context, id commonids.Scop http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/eligibleChildResources", id.ID()), OptionsObject: options, + Pager: &GetCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/eligibleChildResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/method_listforscope.go b/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/method_listforscope.go index a015da25e86..9ff5c3b4064 100644 --- a/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/method_listforscope.go +++ b/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/method_listforscope.go @@ -51,6 +51,18 @@ func (o ListForScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForScope ... func (c RoleAssignmentScheduleInstancesClient) ListForScope(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions) (result ListForScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RoleAssignmentScheduleInstancesClient) ListForScope(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignmentScheduleInstances", id.ID()), OptionsObject: options, + Pager: &ListForScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignmentScheduleInstances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_listforscope.go b/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_listforscope.go index 1bea5396b24..ba8dd657ddc 100644 --- a/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_listforscope.go +++ b/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_listforscope.go @@ -51,6 +51,18 @@ func (o ListForScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForScope ... func (c RoleAssignmentScheduleRequestsClient) ListForScope(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions) (result ListForScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RoleAssignmentScheduleRequestsClient) ListForScope(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignmentScheduleRequests", id.ID()), OptionsObject: options, + Pager: &ListForScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignmentScheduleRequests", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-10-01/roleassignmentschedules/method_listforscope.go b/resource-manager/authorization/2020-10-01/roleassignmentschedules/method_listforscope.go index 7336ec4fe7c..5b7304bcd56 100644 --- a/resource-manager/authorization/2020-10-01/roleassignmentschedules/method_listforscope.go +++ b/resource-manager/authorization/2020-10-01/roleassignmentschedules/method_listforscope.go @@ -51,6 +51,18 @@ func (o ListForScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForScope ... func (c RoleAssignmentSchedulesClient) ListForScope(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions) (result ListForScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RoleAssignmentSchedulesClient) ListForScope(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignmentSchedules", id.ID()), OptionsObject: options, + Pager: &ListForScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignmentSchedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/method_listforscope.go b/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/method_listforscope.go index d41475da4d0..691e3f3d16b 100644 --- a/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/method_listforscope.go +++ b/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/method_listforscope.go @@ -51,6 +51,18 @@ func (o ListForScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForScope ... func (c RoleEligibilityScheduleInstancesClient) ListForScope(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions) (result ListForScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RoleEligibilityScheduleInstancesClient) ListForScope(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleEligibilityScheduleInstances", id.ID()), OptionsObject: options, + Pager: &ListForScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleEligibilityScheduleInstances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_listforscope.go b/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_listforscope.go index da0b7b8b91b..10fab072a35 100644 --- a/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_listforscope.go +++ b/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_listforscope.go @@ -51,6 +51,18 @@ func (o ListForScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForScope ... func (c RoleEligibilityScheduleRequestsClient) ListForScope(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions) (result ListForScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RoleEligibilityScheduleRequestsClient) ListForScope(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleEligibilityScheduleRequests", id.ID()), OptionsObject: options, + Pager: &ListForScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleEligibilityScheduleRequests", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-10-01/roleeligibilityschedules/method_listforscope.go b/resource-manager/authorization/2020-10-01/roleeligibilityschedules/method_listforscope.go index ac9d5cd2d32..75d9d08ed73 100644 --- a/resource-manager/authorization/2020-10-01/roleeligibilityschedules/method_listforscope.go +++ b/resource-manager/authorization/2020-10-01/roleeligibilityschedules/method_listforscope.go @@ -51,6 +51,18 @@ func (o ListForScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForScope ... func (c RoleEligibilitySchedulesClient) ListForScope(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions) (result ListForScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RoleEligibilitySchedulesClient) ListForScope(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleEligibilitySchedules", id.ID()), OptionsObject: options, + Pager: &ListForScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleEligibilitySchedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_listforscope.go b/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_listforscope.go index 253412ca219..57c4f0a394a 100644 --- a/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_listforscope.go +++ b/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_listforscope.go @@ -51,6 +51,18 @@ func (o ListForScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForScope ... func (c RoleManagementPoliciesClient) ListForScope(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions) (result ListForScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RoleManagementPoliciesClient) ListForScope(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleManagementPolicies", id.ID()), OptionsObject: options, + Pager: &ListForScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleManagementPolicies", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/method_listforscope.go b/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/method_listforscope.go index d45b00fee52..0f4c5ce313d 100644 --- a/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/method_listforscope.go +++ b/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/method_listforscope.go @@ -24,6 +24,18 @@ type ListForScopeCompleteResult struct { Items []RoleManagementPolicyAssignment } +type ListForScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForScope ... func (c RoleManagementPolicyAssignmentsClient) ListForScope(ctx context.Context, id commonids.ScopeId) (result ListForScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RoleManagementPolicyAssignmentsClient) ListForScope(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListForScopeCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleManagementPolicyAssignments", id.ID()), } diff --git a/resource-manager/authorization/2022-04-01/denyassignments/method_list.go b/resource-manager/authorization/2022-04-01/denyassignments/method_list.go index 6b1a05c2629..8db69d7909d 100644 --- a/resource-manager/authorization/2022-04-01/denyassignments/method_list.go +++ b/resource-manager/authorization/2022-04-01/denyassignments/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DenyAssignmentsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DenyAssignmentsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/denyAssignments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/denyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-04-01/denyassignments/method_listforresource.go b/resource-manager/authorization/2022-04-01/denyassignments/method_listforresource.go index 239222d5adf..6dd3e6a597b 100644 --- a/resource-manager/authorization/2022-04-01/denyassignments/method_listforresource.go +++ b/resource-manager/authorization/2022-04-01/denyassignments/method_listforresource.go @@ -51,6 +51,18 @@ func (o ListForResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResource ... func (c DenyAssignmentsClient) ListForResource(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (result ListForResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DenyAssignmentsClient) ListForResource(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/denyAssignments", id.ID()), OptionsObject: options, + Pager: &ListForResourceCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/denyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-04-01/denyassignments/method_listforresourcegroup.go b/resource-manager/authorization/2022-04-01/denyassignments/method_listforresourcegroup.go index 0ad98175f8e..9837317c67b 100644 --- a/resource-manager/authorization/2022-04-01/denyassignments/method_listforresourcegroup.go +++ b/resource-manager/authorization/2022-04-01/denyassignments/method_listforresourcegroup.go @@ -51,6 +51,18 @@ func (o ListForResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResourceGroup ... func (c DenyAssignmentsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (result ListForResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DenyAssignmentsClient) ListForResourceGroup(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/denyAssignments", id.ID()), OptionsObject: options, + Pager: &ListForResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/denyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-04-01/denyassignments/method_listforscope.go b/resource-manager/authorization/2022-04-01/denyassignments/method_listforscope.go index 8bc991fe330..3adf0a86d82 100644 --- a/resource-manager/authorization/2022-04-01/denyassignments/method_listforscope.go +++ b/resource-manager/authorization/2022-04-01/denyassignments/method_listforscope.go @@ -51,6 +51,18 @@ func (o ListForScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForScope ... func (c DenyAssignmentsClient) ListForScope(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions) (result ListForScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DenyAssignmentsClient) ListForScope(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/denyAssignments", id.ID()), OptionsObject: options, + Pager: &ListForScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/denyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-04-01/permissions/method_listforresource.go b/resource-manager/authorization/2022-04-01/permissions/method_listforresource.go index cc5603bbf18..3a2b850376c 100644 --- a/resource-manager/authorization/2022-04-01/permissions/method_listforresource.go +++ b/resource-manager/authorization/2022-04-01/permissions/method_listforresource.go @@ -24,6 +24,18 @@ type ListForResourceCompleteResult struct { Items []Permission } +type ListForResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResource ... func (c PermissionsClient) ListForResource(ctx context.Context, id commonids.ScopeId) (result ListForResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PermissionsClient) ListForResource(ctx context.Context, id commonids.Sco http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListForResourceCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/permissions", id.ID()), } diff --git a/resource-manager/authorization/2022-04-01/permissions/method_listforresourcegroup.go b/resource-manager/authorization/2022-04-01/permissions/method_listforresourcegroup.go index c5770e8c138..d1033297473 100644 --- a/resource-manager/authorization/2022-04-01/permissions/method_listforresourcegroup.go +++ b/resource-manager/authorization/2022-04-01/permissions/method_listforresourcegroup.go @@ -24,6 +24,18 @@ type ListForResourceGroupCompleteResult struct { Items []Permission } +type ListForResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResourceGroup ... func (c PermissionsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListForResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PermissionsClient) ListForResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListForResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/permissions", id.ID()), } diff --git a/resource-manager/authorization/2022-04-01/provideroperationsmetadata/method_get.go b/resource-manager/authorization/2022-04-01/provideroperationsmetadata/method_get.go index 25950813cb3..9e95668a431 100644 --- a/resource-manager/authorization/2022-04-01/provideroperationsmetadata/method_get.go +++ b/resource-manager/authorization/2022-04-01/provideroperationsmetadata/method_get.go @@ -53,8 +53,8 @@ func (c ProviderOperationsMetadataClient) Get(ctx context.Context, id ProviderOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-04-01/provideroperationsmetadata/method_list.go b/resource-manager/authorization/2022-04-01/provideroperationsmetadata/method_list.go index 6875e8a7e27..d7416894090 100644 --- a/resource-manager/authorization/2022-04-01/provideroperationsmetadata/method_list.go +++ b/resource-manager/authorization/2022-04-01/provideroperationsmetadata/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProviderOperationsMetadataClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderOperationsMetadataClient) List(ctx context.Context, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Authorization/providerOperations", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.Authorization/providerOperations", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-04-01/roleassignments/method_delete.go b/resource-manager/authorization/2022-04-01/roleassignments/method_delete.go index 58dbc8807e4..4ccb4526b17 100644 --- a/resource-manager/authorization/2022-04-01/roleassignments/method_delete.go +++ b/resource-manager/authorization/2022-04-01/roleassignments/method_delete.go @@ -54,8 +54,8 @@ func (c RoleAssignmentsClient) Delete(ctx context.Context, id ScopedRoleAssignme http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-04-01/roleassignments/method_deletebyid.go b/resource-manager/authorization/2022-04-01/roleassignments/method_deletebyid.go index 9e9d55b11db..35efbe1b2aa 100644 --- a/resource-manager/authorization/2022-04-01/roleassignments/method_deletebyid.go +++ b/resource-manager/authorization/2022-04-01/roleassignments/method_deletebyid.go @@ -55,8 +55,8 @@ func (c RoleAssignmentsClient) DeleteById(ctx context.Context, id commonids.Scop http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-04-01/roleassignments/method_get.go b/resource-manager/authorization/2022-04-01/roleassignments/method_get.go index ab283e062c8..b1466232002 100644 --- a/resource-manager/authorization/2022-04-01/roleassignments/method_get.go +++ b/resource-manager/authorization/2022-04-01/roleassignments/method_get.go @@ -53,8 +53,8 @@ func (c RoleAssignmentsClient) Get(ctx context.Context, id ScopedRoleAssignmentI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-04-01/roleassignments/method_getbyid.go b/resource-manager/authorization/2022-04-01/roleassignments/method_getbyid.go index 4caf5d31a25..d272928f5e5 100644 --- a/resource-manager/authorization/2022-04-01/roleassignments/method_getbyid.go +++ b/resource-manager/authorization/2022-04-01/roleassignments/method_getbyid.go @@ -54,8 +54,8 @@ func (c RoleAssignmentsClient) GetById(ctx context.Context, id commonids.ScopeId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-04-01/roleassignments/method_listforresource.go b/resource-manager/authorization/2022-04-01/roleassignments/method_listforresource.go index dc310793b37..434ec7e9375 100644 --- a/resource-manager/authorization/2022-04-01/roleassignments/method_listforresource.go +++ b/resource-manager/authorization/2022-04-01/roleassignments/method_listforresource.go @@ -55,6 +55,18 @@ func (o ListForResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResource ... func (c RoleAssignmentsClient) ListForResource(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (result ListForResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RoleAssignmentsClient) ListForResource(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), OptionsObject: options, + Pager: &ListForResourceCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-04-01/roleassignments/method_listforresourcegroup.go b/resource-manager/authorization/2022-04-01/roleassignments/method_listforresourcegroup.go index aafea78b6d6..bb681d05938 100644 --- a/resource-manager/authorization/2022-04-01/roleassignments/method_listforresourcegroup.go +++ b/resource-manager/authorization/2022-04-01/roleassignments/method_listforresourcegroup.go @@ -55,6 +55,18 @@ func (o ListForResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResourceGroup ... func (c RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (result ListForResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RoleAssignmentsClient) ListForResourceGroup(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), OptionsObject: options, + Pager: &ListForResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-04-01/roleassignments/method_listforscope.go b/resource-manager/authorization/2022-04-01/roleassignments/method_listforscope.go index e7b53897b00..35a751a0201 100644 --- a/resource-manager/authorization/2022-04-01/roleassignments/method_listforscope.go +++ b/resource-manager/authorization/2022-04-01/roleassignments/method_listforscope.go @@ -55,6 +55,18 @@ func (o ListForScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForScope ... func (c RoleAssignmentsClient) ListForScope(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions) (result ListForScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RoleAssignmentsClient) ListForScope(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), OptionsObject: options, + Pager: &ListForScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-04-01/roleassignments/method_listforsubscription.go b/resource-manager/authorization/2022-04-01/roleassignments/method_listforsubscription.go index 3f38308b25c..4c4e6d2aa95 100644 --- a/resource-manager/authorization/2022-04-01/roleassignments/method_listforsubscription.go +++ b/resource-manager/authorization/2022-04-01/roleassignments/method_listforsubscription.go @@ -55,6 +55,18 @@ func (o ListForSubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForSubscription ... func (c RoleAssignmentsClient) ListForSubscription(ctx context.Context, id commonids.SubscriptionId, options ListForSubscriptionOperationOptions) (result ListForSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RoleAssignmentsClient) ListForSubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), OptionsObject: options, + Pager: &ListForSubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-04-01/roledefinitions/method_list.go b/resource-manager/authorization/2022-04-01/roledefinitions/method_list.go index f3412a496f1..65fcfd2cd2a 100644 --- a/resource-manager/authorization/2022-04-01/roledefinitions/method_list.go +++ b/resource-manager/authorization/2022-04-01/roledefinitions/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RoleDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RoleDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleDefinitions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleDefinitions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/authorization/2022-05-01-preview/permissions/method_listforresource.go b/resource-manager/authorization/2022-05-01-preview/permissions/method_listforresource.go index cc5603bbf18..3a2b850376c 100644 --- a/resource-manager/authorization/2022-05-01-preview/permissions/method_listforresource.go +++ b/resource-manager/authorization/2022-05-01-preview/permissions/method_listforresource.go @@ -24,6 +24,18 @@ type ListForResourceCompleteResult struct { Items []Permission } +type ListForResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResource ... func (c PermissionsClient) ListForResource(ctx context.Context, id commonids.ScopeId) (result ListForResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PermissionsClient) ListForResource(ctx context.Context, id commonids.Sco http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListForResourceCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/permissions", id.ID()), } diff --git a/resource-manager/authorization/2022-05-01-preview/permissions/method_listforresourcegroup.go b/resource-manager/authorization/2022-05-01-preview/permissions/method_listforresourcegroup.go index c5770e8c138..d1033297473 100644 --- a/resource-manager/authorization/2022-05-01-preview/permissions/method_listforresourcegroup.go +++ b/resource-manager/authorization/2022-05-01-preview/permissions/method_listforresourcegroup.go @@ -24,6 +24,18 @@ type ListForResourceGroupCompleteResult struct { Items []Permission } +type ListForResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResourceGroup ... func (c PermissionsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListForResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PermissionsClient) ListForResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListForResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/permissions", id.ID()), } diff --git a/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_list.go b/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_list.go index f3412a496f1..65fcfd2cd2a 100644 --- a/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_list.go +++ b/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RoleDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RoleDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleDefinitions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/roleDefinitions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2015-10-31/activity/method_listbymodule.go b/resource-manager/automation/2015-10-31/activity/method_listbymodule.go index 484576db07b..05bd01e7175 100644 --- a/resource-manager/automation/2015-10-31/activity/method_listbymodule.go +++ b/resource-manager/automation/2015-10-31/activity/method_listbymodule.go @@ -23,6 +23,18 @@ type ListByModuleCompleteResult struct { Items []Activity } +type ListByModuleCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByModuleCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByModule ... func (c ActivityClient) ListByModule(ctx context.Context, id ModuleId) (result ListByModuleOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ActivityClient) ListByModule(ctx context.Context, id ModuleId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByModuleCustomPager{}, Path: fmt.Sprintf("%s/activities", id.ID()), } diff --git a/resource-manager/automation/2015-10-31/automationaccount/method_list.go b/resource-manager/automation/2015-10-31/automationaccount/method_list.go index 3b4059d588b..462f5ff62b6 100644 --- a/resource-manager/automation/2015-10-31/automationaccount/method_list.go +++ b/resource-manager/automation/2015-10-31/automationaccount/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AutomationAccount } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AutomationAccountClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutomationAccountClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Automation/automationAccounts", id.ID()), } diff --git a/resource-manager/automation/2015-10-31/automationaccount/method_listbyresourcegroup.go b/resource-manager/automation/2015-10-31/automationaccount/method_listbyresourcegroup.go index f6f58754ba9..968b4304c14 100644 --- a/resource-manager/automation/2015-10-31/automationaccount/method_listbyresourcegroup.go +++ b/resource-manager/automation/2015-10-31/automationaccount/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AutomationAccount } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AutomationAccountClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutomationAccountClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Automation/automationAccounts", id.ID()), } diff --git a/resource-manager/automation/2015-10-31/certificate/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/certificate/method_listbyautomationaccount.go index 3feb575fa99..fc9f9cd359b 100644 --- a/resource-manager/automation/2015-10-31/certificate/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/certificate/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Certificate } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c CertificateClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificateClient) ListByAutomationAccount(ctx context.Context, id Autom http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/automation/2015-10-31/connection/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/connection/method_listbyautomationaccount.go index faf384ff1a3..d3804497480 100644 --- a/resource-manager/automation/2015-10-31/connection/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/connection/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Connection } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ConnectionClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectionClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/connections", id.ID()), } diff --git a/resource-manager/automation/2015-10-31/connectiontype/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/connectiontype/method_listbyautomationaccount.go index bbfd48244ca..dcee11a1920 100644 --- a/resource-manager/automation/2015-10-31/connectiontype/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/connectiontype/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []ConnectionType } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, id Au http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/connectionTypes", id.ID()), } diff --git a/resource-manager/automation/2015-10-31/credential/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/credential/method_listbyautomationaccount.go index ed8bb8f6114..a0790f783cd 100644 --- a/resource-manager/automation/2015-10-31/credential/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/credential/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Credential } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c CredentialClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CredentialClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/credentials", id.ID()), } diff --git a/resource-manager/automation/2015-10-31/dsccompilationjob/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/dsccompilationjob/method_listbyautomationaccount.go index 8e3452c3f73..5ea430161ee 100644 --- a/resource-manager/automation/2015-10-31/dsccompilationjob/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/dsccompilationjob/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscCompilationJobClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DscCompilationJobClient) ListByAutomationAccount(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/compilationJobs", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/compilationJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2015-10-31/dsccompilationjob/method_streamlistbyjob.go b/resource-manager/automation/2015-10-31/dsccompilationjob/method_streamlistbyjob.go index 49bb0ca3266..9fe65c75caa 100644 --- a/resource-manager/automation/2015-10-31/dsccompilationjob/method_streamlistbyjob.go +++ b/resource-manager/automation/2015-10-31/dsccompilationjob/method_streamlistbyjob.go @@ -24,6 +24,18 @@ type StreamListByJobCompleteResult struct { Items []JobStream } +type StreamListByJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *StreamListByJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StreamListByJob ... func (c DscCompilationJobClient) StreamListByJob(ctx context.Context, id commonids.AutomationCompilationJobId) (result StreamListByJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DscCompilationJobClient) StreamListByJob(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &StreamListByJobCustomPager{}, Path: fmt.Sprintf("%s/streams", id.ID()), } diff --git a/resource-manager/automation/2015-10-31/dscconfiguration/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/dscconfiguration/method_listbyautomationaccount.go index 92aa57c0330..8a4b09db266 100644 --- a/resource-manager/automation/2015-10-31/dscconfiguration/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/dscconfiguration/method_listbyautomationaccount.go @@ -62,6 +62,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscConfigurationClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c DscConfigurationClient) ListByAutomationAccount(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/configurations", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/configurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2015-10-31/dscnode/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/dscnode/method_listbyautomationaccount.go index 4bf821a8a47..191a6ba2fd0 100644 --- a/resource-manager/automation/2015-10-31/dscnode/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/dscnode/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscNodeClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DscNodeClient) ListByAutomationAccount(ctx context.Context, id Automatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/nodes", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/nodes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2015-10-31/dscnodeconfiguration/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/dscnodeconfiguration/method_listbyautomationaccount.go index 0e969c4e1de..268f5899d65 100644 --- a/resource-manager/automation/2015-10-31/dscnodeconfiguration/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/dscnodeconfiguration/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/nodeConfigurations", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/nodeConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2015-10-31/hybridrunbookworkergroup/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/hybridrunbookworkergroup/method_listbyautomationaccount.go index 5e307bbb5ff..347df8f2b27 100644 --- a/resource-manager/automation/2015-10-31/hybridrunbookworkergroup/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/hybridrunbookworkergroup/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/hybridRunbookWorkerGroups", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/hybridRunbookWorkerGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2015-10-31/job/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/job/method_listbyautomationaccount.go index 311c23f27cd..5612b0e2c85 100644 --- a/resource-manager/automation/2015-10-31/job/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/job/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c JobClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c JobClient) ListByAutomationAccount(ctx context.Context, id AutomationAcc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/jobs", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/jobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2015-10-31/jobschedule/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/jobschedule/method_listbyautomationaccount.go index e6752f2fc69..6b5c6412a83 100644 --- a/resource-manager/automation/2015-10-31/jobschedule/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/jobschedule/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c JobScheduleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c JobScheduleClient) ListByAutomationAccount(ctx context.Context, id Autom http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/jobSchedules", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/jobSchedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2015-10-31/jobstream/method_listbyjob.go b/resource-manager/automation/2015-10-31/jobstream/method_listbyjob.go index b5cd634dc85..12cea4f7ea8 100644 --- a/resource-manager/automation/2015-10-31/jobstream/method_listbyjob.go +++ b/resource-manager/automation/2015-10-31/jobstream/method_listbyjob.go @@ -50,6 +50,18 @@ func (o ListByJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByJob ... func (c JobStreamClient) ListByJob(ctx context.Context, id JobId, options ListByJobOperationOptions) (result ListByJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c JobStreamClient) ListByJob(ctx context.Context, id JobId, options ListBy http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/streams", id.ID()), OptionsObject: options, + Pager: &ListByJobCustomPager{}, + Path: fmt.Sprintf("%s/streams", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2015-10-31/module/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/module/method_listbyautomationaccount.go index c0db8381a13..9face24376b 100644 --- a/resource-manager/automation/2015-10-31/module/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/module/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Module } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ModuleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ModuleClient) ListByAutomationAccount(ctx context.Context, id Automation http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/automation/2015-10-31/nodereports/method_listbynode.go b/resource-manager/automation/2015-10-31/nodereports/method_listbynode.go index b2771981db6..ebdc3271480 100644 --- a/resource-manager/automation/2015-10-31/nodereports/method_listbynode.go +++ b/resource-manager/automation/2015-10-31/nodereports/method_listbynode.go @@ -50,6 +50,18 @@ func (o ListByNodeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNodeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNodeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNode ... func (c NodeReportsClient) ListByNode(ctx context.Context, id NodeId, options ListByNodeOperationOptions) (result ListByNodeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c NodeReportsClient) ListByNode(ctx context.Context, id NodeId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports", id.ID()), OptionsObject: options, + Pager: &ListByNodeCustomPager{}, + Path: fmt.Sprintf("%s/reports", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2015-10-31/runbook/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/runbook/method_listbyautomationaccount.go index 1cbf445d7a0..3b01e1eaee8 100644 --- a/resource-manager/automation/2015-10-31/runbook/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/runbook/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Runbook } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c RunbookClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RunbookClient) ListByAutomationAccount(ctx context.Context, id Automatio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/runbooks", id.ID()), } diff --git a/resource-manager/automation/2015-10-31/schedule/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/schedule/method_listbyautomationaccount.go index dd22be2c161..379c6187f75 100644 --- a/resource-manager/automation/2015-10-31/schedule/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/schedule/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Schedule } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ScheduleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScheduleClient) ListByAutomationAccount(ctx context.Context, id Automati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/schedules", id.ID()), } diff --git a/resource-manager/automation/2015-10-31/statistics/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/statistics/method_listbyautomationaccount.go index fbcaa8da2e7..bcf9f2ef066 100644 --- a/resource-manager/automation/2015-10-31/statistics/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/statistics/method_listbyautomationaccount.go @@ -53,8 +53,8 @@ func (c StatisticsClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/statistics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/statistics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2015-10-31/testjobstream/method_listbytestjob.go b/resource-manager/automation/2015-10-31/testjobstream/method_listbytestjob.go index b1f655de849..0c69bca0921 100644 --- a/resource-manager/automation/2015-10-31/testjobstream/method_listbytestjob.go +++ b/resource-manager/automation/2015-10-31/testjobstream/method_listbytestjob.go @@ -50,6 +50,18 @@ func (o ListByTestJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTestJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTestJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTestJob ... func (c TestJobStreamClient) ListByTestJob(ctx context.Context, id RunbookId, options ListByTestJobOperationOptions) (result ListByTestJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c TestJobStreamClient) ListByTestJob(ctx context.Context, id RunbookId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/draft/testJob/streams", id.ID()), OptionsObject: options, + Pager: &ListByTestJobCustomPager{}, + Path: fmt.Sprintf("%s/draft/testJob/streams", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2015-10-31/variable/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/variable/method_listbyautomationaccount.go index 2af33bcda73..eb17b3ed601 100644 --- a/resource-manager/automation/2015-10-31/variable/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/variable/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Variable } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c VariableClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VariableClient) ListByAutomationAccount(ctx context.Context, id Automati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/variables", id.ID()), } diff --git a/resource-manager/automation/2015-10-31/watcher/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/watcher/method_listbyautomationaccount.go index 42977ae7834..b0f573fbe51 100644 --- a/resource-manager/automation/2015-10-31/watcher/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/watcher/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c WatcherClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WatcherClient) ListByAutomationAccount(ctx context.Context, id Automatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/watchers", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/watchers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2015-10-31/webhook/method_listbyautomationaccount.go b/resource-manager/automation/2015-10-31/webhook/method_listbyautomationaccount.go index a68392170dc..9dee8752f42 100644 --- a/resource-manager/automation/2015-10-31/webhook/method_listbyautomationaccount.go +++ b/resource-manager/automation/2015-10-31/webhook/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c WebhookClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WebhookClient) ListByAutomationAccount(ctx context.Context, id Automatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/webHooks", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/webHooks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/activity/method_listbymodule.go b/resource-manager/automation/2019-06-01/activity/method_listbymodule.go index 484576db07b..05bd01e7175 100644 --- a/resource-manager/automation/2019-06-01/activity/method_listbymodule.go +++ b/resource-manager/automation/2019-06-01/activity/method_listbymodule.go @@ -23,6 +23,18 @@ type ListByModuleCompleteResult struct { Items []Activity } +type ListByModuleCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByModuleCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByModule ... func (c ActivityClient) ListByModule(ctx context.Context, id ModuleId) (result ListByModuleOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ActivityClient) ListByModule(ctx context.Context, id ModuleId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByModuleCustomPager{}, Path: fmt.Sprintf("%s/activities", id.ID()), } diff --git a/resource-manager/automation/2019-06-01/automationaccount/method_list.go b/resource-manager/automation/2019-06-01/automationaccount/method_list.go index 3b4059d588b..462f5ff62b6 100644 --- a/resource-manager/automation/2019-06-01/automationaccount/method_list.go +++ b/resource-manager/automation/2019-06-01/automationaccount/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AutomationAccount } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AutomationAccountClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutomationAccountClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Automation/automationAccounts", id.ID()), } diff --git a/resource-manager/automation/2019-06-01/automationaccount/method_listbyresourcegroup.go b/resource-manager/automation/2019-06-01/automationaccount/method_listbyresourcegroup.go index f6f58754ba9..968b4304c14 100644 --- a/resource-manager/automation/2019-06-01/automationaccount/method_listbyresourcegroup.go +++ b/resource-manager/automation/2019-06-01/automationaccount/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AutomationAccount } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AutomationAccountClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutomationAccountClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Automation/automationAccounts", id.ID()), } diff --git a/resource-manager/automation/2019-06-01/certificate/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/certificate/method_listbyautomationaccount.go index 3feb575fa99..fc9f9cd359b 100644 --- a/resource-manager/automation/2019-06-01/certificate/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/certificate/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Certificate } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c CertificateClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificateClient) ListByAutomationAccount(ctx context.Context, id Autom http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/automation/2019-06-01/connection/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/connection/method_listbyautomationaccount.go index faf384ff1a3..d3804497480 100644 --- a/resource-manager/automation/2019-06-01/connection/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/connection/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Connection } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ConnectionClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectionClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/connections", id.ID()), } diff --git a/resource-manager/automation/2019-06-01/connectiontype/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/connectiontype/method_listbyautomationaccount.go index bbfd48244ca..dcee11a1920 100644 --- a/resource-manager/automation/2019-06-01/connectiontype/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/connectiontype/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []ConnectionType } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, id Au http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/connectionTypes", id.ID()), } diff --git a/resource-manager/automation/2019-06-01/credential/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/credential/method_listbyautomationaccount.go index ed8bb8f6114..a0790f783cd 100644 --- a/resource-manager/automation/2019-06-01/credential/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/credential/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Credential } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c CredentialClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CredentialClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/credentials", id.ID()), } diff --git a/resource-manager/automation/2019-06-01/dsccompilationjob/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/dsccompilationjob/method_listbyautomationaccount.go index 8e3452c3f73..5ea430161ee 100644 --- a/resource-manager/automation/2019-06-01/dsccompilationjob/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/dsccompilationjob/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscCompilationJobClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DscCompilationJobClient) ListByAutomationAccount(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/compilationJobs", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/compilationJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/dsccompilationjob/method_streamlistbyjob.go b/resource-manager/automation/2019-06-01/dsccompilationjob/method_streamlistbyjob.go index 49bb0ca3266..9fe65c75caa 100644 --- a/resource-manager/automation/2019-06-01/dsccompilationjob/method_streamlistbyjob.go +++ b/resource-manager/automation/2019-06-01/dsccompilationjob/method_streamlistbyjob.go @@ -24,6 +24,18 @@ type StreamListByJobCompleteResult struct { Items []JobStream } +type StreamListByJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *StreamListByJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StreamListByJob ... func (c DscCompilationJobClient) StreamListByJob(ctx context.Context, id commonids.AutomationCompilationJobId) (result StreamListByJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DscCompilationJobClient) StreamListByJob(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &StreamListByJobCustomPager{}, Path: fmt.Sprintf("%s/streams", id.ID()), } diff --git a/resource-manager/automation/2019-06-01/dscconfiguration/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/dscconfiguration/method_listbyautomationaccount.go index 92aa57c0330..8a4b09db266 100644 --- a/resource-manager/automation/2019-06-01/dscconfiguration/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/dscconfiguration/method_listbyautomationaccount.go @@ -62,6 +62,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscConfigurationClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c DscConfigurationClient) ListByAutomationAccount(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/configurations", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/configurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/dscnode/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/dscnode/method_listbyautomationaccount.go index 4b0103135ec..7c722bfd18a 100644 --- a/resource-manager/automation/2019-06-01/dscnode/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/dscnode/method_listbyautomationaccount.go @@ -62,6 +62,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscNodeClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c DscNodeClient) ListByAutomationAccount(ctx context.Context, id Automatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/nodes", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/nodes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/dscnodeconfiguration/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/dscnodeconfiguration/method_listbyautomationaccount.go index 1d813e018f8..707c87a2ebc 100644 --- a/resource-manager/automation/2019-06-01/dscnodeconfiguration/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/dscnodeconfiguration/method_listbyautomationaccount.go @@ -62,6 +62,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/nodeConfigurations", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/nodeConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/hybridrunbookworkergroup/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/hybridrunbookworkergroup/method_listbyautomationaccount.go index 5e307bbb5ff..347df8f2b27 100644 --- a/resource-manager/automation/2019-06-01/hybridrunbookworkergroup/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/hybridrunbookworkergroup/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/hybridRunbookWorkerGroups", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/hybridRunbookWorkerGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/job/method_create.go b/resource-manager/automation/2019-06-01/job/method_create.go index 38295c096b5..20181d88e2e 100644 --- a/resource-manager/automation/2019-06-01/job/method_create.go +++ b/resource-manager/automation/2019-06-01/job/method_create.go @@ -53,8 +53,8 @@ func (c JobClient) Create(ctx context.Context, id JobId, input JobCreateParamete http.StatusCreated, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/job/method_get.go b/resource-manager/automation/2019-06-01/job/method_get.go index e04bc9dcdef..70b2a88ce70 100644 --- a/resource-manager/automation/2019-06-01/job/method_get.go +++ b/resource-manager/automation/2019-06-01/job/method_get.go @@ -53,8 +53,8 @@ func (c JobClient) Get(ctx context.Context, id JobId, options GetOperationOption http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/job/method_getoutput.go b/resource-manager/automation/2019-06-01/job/method_getoutput.go index 1d1baac920e..c5e0edacdb0 100644 --- a/resource-manager/automation/2019-06-01/job/method_getoutput.go +++ b/resource-manager/automation/2019-06-01/job/method_getoutput.go @@ -53,8 +53,8 @@ func (c JobClient) GetOutput(ctx context.Context, id JobId, options GetOutputOpe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/output", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/output", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/job/method_getrunbookcontent.go b/resource-manager/automation/2019-06-01/job/method_getrunbookcontent.go index 557f4296619..a7a244d9859 100644 --- a/resource-manager/automation/2019-06-01/job/method_getrunbookcontent.go +++ b/resource-manager/automation/2019-06-01/job/method_getrunbookcontent.go @@ -53,8 +53,8 @@ func (c JobClient) GetRunbookContent(ctx context.Context, id JobId, options GetR http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runbookContent", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/runbookContent", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/job/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/job/method_listbyautomationaccount.go index 70973d6c881..504bd861221 100644 --- a/resource-manager/automation/2019-06-01/job/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/job/method_listbyautomationaccount.go @@ -53,6 +53,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c JobClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -61,8 +73,9 @@ func (c JobClient) ListByAutomationAccount(ctx context.Context, id AutomationAcc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/jobs", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/jobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/job/method_resume.go b/resource-manager/automation/2019-06-01/job/method_resume.go index 7dfd7fcfc04..c707c2a9c74 100644 --- a/resource-manager/automation/2019-06-01/job/method_resume.go +++ b/resource-manager/automation/2019-06-01/job/method_resume.go @@ -52,8 +52,8 @@ func (c JobClient) Resume(ctx context.Context, id JobId, options ResumeOperation http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resume", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/resume", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/job/method_stop.go b/resource-manager/automation/2019-06-01/job/method_stop.go index f92de573246..d2864853dff 100644 --- a/resource-manager/automation/2019-06-01/job/method_stop.go +++ b/resource-manager/automation/2019-06-01/job/method_stop.go @@ -52,8 +52,8 @@ func (c JobClient) Stop(ctx context.Context, id JobId, options StopOperationOpti http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/stop", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/stop", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/job/method_suspend.go b/resource-manager/automation/2019-06-01/job/method_suspend.go index cb2010871f9..bc8f428afbb 100644 --- a/resource-manager/automation/2019-06-01/job/method_suspend.go +++ b/resource-manager/automation/2019-06-01/job/method_suspend.go @@ -52,8 +52,8 @@ func (c JobClient) Suspend(ctx context.Context, id JobId, options SuspendOperati http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/suspend", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/suspend", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/jobschedule/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/jobschedule/method_listbyautomationaccount.go index e6752f2fc69..6b5c6412a83 100644 --- a/resource-manager/automation/2019-06-01/jobschedule/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/jobschedule/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c JobScheduleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c JobScheduleClient) ListByAutomationAccount(ctx context.Context, id Autom http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/jobSchedules", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/jobSchedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/jobstream/method_get.go b/resource-manager/automation/2019-06-01/jobstream/method_get.go index 36d00d54bf7..500505c3b4f 100644 --- a/resource-manager/automation/2019-06-01/jobstream/method_get.go +++ b/resource-manager/automation/2019-06-01/jobstream/method_get.go @@ -53,8 +53,8 @@ func (c JobStreamClient) Get(ctx context.Context, id StreamId, options GetOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/jobstream/method_listbyjob.go b/resource-manager/automation/2019-06-01/jobstream/method_listbyjob.go index 14c78695bb0..4d6eee1cc84 100644 --- a/resource-manager/automation/2019-06-01/jobstream/method_listbyjob.go +++ b/resource-manager/automation/2019-06-01/jobstream/method_listbyjob.go @@ -53,6 +53,18 @@ func (o ListByJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByJob ... func (c JobStreamClient) ListByJob(ctx context.Context, id JobId, options ListByJobOperationOptions) (result ListByJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -61,8 +73,9 @@ func (c JobStreamClient) ListByJob(ctx context.Context, id JobId, options ListBy http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/streams", id.ID()), OptionsObject: options, + Pager: &ListByJobCustomPager{}, + Path: fmt.Sprintf("%s/streams", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/module/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/module/method_listbyautomationaccount.go index c0db8381a13..9face24376b 100644 --- a/resource-manager/automation/2019-06-01/module/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/module/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Module } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ModuleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ModuleClient) ListByAutomationAccount(ctx context.Context, id Automation http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/automation/2019-06-01/nodereports/method_listbynode.go b/resource-manager/automation/2019-06-01/nodereports/method_listbynode.go index b2771981db6..ebdc3271480 100644 --- a/resource-manager/automation/2019-06-01/nodereports/method_listbynode.go +++ b/resource-manager/automation/2019-06-01/nodereports/method_listbynode.go @@ -50,6 +50,18 @@ func (o ListByNodeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNodeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNodeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNode ... func (c NodeReportsClient) ListByNode(ctx context.Context, id NodeId, options ListByNodeOperationOptions) (result ListByNodeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c NodeReportsClient) ListByNode(ctx context.Context, id NodeId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports", id.ID()), OptionsObject: options, + Pager: &ListByNodeCustomPager{}, + Path: fmt.Sprintf("%s/reports", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/python2package/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/python2package/method_listbyautomationaccount.go index cce782af918..ea3688979b1 100644 --- a/resource-manager/automation/2019-06-01/python2package/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/python2package/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Module } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c Python2PackageClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c Python2PackageClient) ListByAutomationAccount(ctx context.Context, id Au http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/python2Packages", id.ID()), } diff --git a/resource-manager/automation/2019-06-01/runbook/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/runbook/method_listbyautomationaccount.go index 1cbf445d7a0..3b01e1eaee8 100644 --- a/resource-manager/automation/2019-06-01/runbook/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/runbook/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Runbook } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c RunbookClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RunbookClient) ListByAutomationAccount(ctx context.Context, id Automatio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/runbooks", id.ID()), } diff --git a/resource-manager/automation/2019-06-01/schedule/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/schedule/method_listbyautomationaccount.go index dd22be2c161..379c6187f75 100644 --- a/resource-manager/automation/2019-06-01/schedule/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/schedule/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Schedule } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ScheduleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScheduleClient) ListByAutomationAccount(ctx context.Context, id Automati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/schedules", id.ID()), } diff --git a/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_create.go b/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_create.go index daf9a958308..2f9856ab171 100644 --- a/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_create.go +++ b/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_create.go @@ -54,8 +54,8 @@ func (c SoftwareUpdateConfigurationClient) Create(ctx context.Context, id Softwa http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_delete.go b/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_delete.go index f95f20b98c4..e7ff65532b7 100644 --- a/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_delete.go +++ b/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_delete.go @@ -53,8 +53,8 @@ func (c SoftwareUpdateConfigurationClient) Delete(ctx context.Context, id Softwa http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_getbyname.go b/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_getbyname.go index 3e1465a05a1..a99bd7c5087 100644 --- a/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_getbyname.go +++ b/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_getbyname.go @@ -53,8 +53,8 @@ func (c SoftwareUpdateConfigurationClient) GetByName(ctx context.Context, id Sof http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_list.go b/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_list.go index 11f88e9ed72..1313ffaad9f 100644 --- a/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_list.go +++ b/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_list.go @@ -56,8 +56,8 @@ func (c SoftwareUpdateConfigurationClient) List(ctx context.Context, id Automati http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/softwareUpdateConfigurations", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/softwareUpdateConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/softwareupdateconfigurationmachinerun/method_getbyid.go b/resource-manager/automation/2019-06-01/softwareupdateconfigurationmachinerun/method_getbyid.go index a558699f304..23b807e3e05 100644 --- a/resource-manager/automation/2019-06-01/softwareupdateconfigurationmachinerun/method_getbyid.go +++ b/resource-manager/automation/2019-06-01/softwareupdateconfigurationmachinerun/method_getbyid.go @@ -53,8 +53,8 @@ func (c SoftwareUpdateConfigurationMachineRunClient) GetById(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/softwareupdateconfigurationmachinerun/method_list.go b/resource-manager/automation/2019-06-01/softwareupdateconfigurationmachinerun/method_list.go index 24aa3e4ce84..6f047c54ccc 100644 --- a/resource-manager/automation/2019-06-01/softwareupdateconfigurationmachinerun/method_list.go +++ b/resource-manager/automation/2019-06-01/softwareupdateconfigurationmachinerun/method_list.go @@ -61,6 +61,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SoftwareUpdateConfigurationMachineRunClient) List(ctx context.Context, id AutomationAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -69,8 +81,9 @@ func (c SoftwareUpdateConfigurationMachineRunClient) List(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/softwareUpdateConfigurationMachineRuns", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/softwareUpdateConfigurationMachineRuns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/softwareupdateconfigurationrun/method_getbyid.go b/resource-manager/automation/2019-06-01/softwareupdateconfigurationrun/method_getbyid.go index 15781c18fb3..c4c6b07ca88 100644 --- a/resource-manager/automation/2019-06-01/softwareupdateconfigurationrun/method_getbyid.go +++ b/resource-manager/automation/2019-06-01/softwareupdateconfigurationrun/method_getbyid.go @@ -53,8 +53,8 @@ func (c SoftwareUpdateConfigurationRunClient) GetById(ctx context.Context, id So http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/softwareupdateconfigurationrun/method_list.go b/resource-manager/automation/2019-06-01/softwareupdateconfigurationrun/method_list.go index b3514331436..f6503cdb378 100644 --- a/resource-manager/automation/2019-06-01/softwareupdateconfigurationrun/method_list.go +++ b/resource-manager/automation/2019-06-01/softwareupdateconfigurationrun/method_list.go @@ -61,6 +61,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SoftwareUpdateConfigurationRunClient) List(ctx context.Context, id AutomationAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -69,8 +81,9 @@ func (c SoftwareUpdateConfigurationRunClient) List(ctx context.Context, id Autom http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/softwareUpdateConfigurationRuns", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/softwareUpdateConfigurationRuns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/sourcecontrol/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/sourcecontrol/method_listbyautomationaccount.go index e9eefd12800..9457e6a81fe 100644 --- a/resource-manager/automation/2019-06-01/sourcecontrol/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/sourcecontrol/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c SourceControlClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SourceControlClient) ListByAutomationAccount(ctx context.Context, id Aut http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sourceControls", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/sourceControls", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/sourcecontrolsyncjob/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/sourcecontrolsyncjob/method_listbyautomationaccount.go index 37d880011e9..84bcd7a480d 100644 --- a/resource-manager/automation/2019-06-01/sourcecontrolsyncjob/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/sourcecontrolsyncjob/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c SourceControlSyncJobClient) ListByAutomationAccount(ctx context.Context, id SourceControlId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SourceControlSyncJobClient) ListByAutomationAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sourceControlSyncJobs", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/sourceControlSyncJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/sourcecontrolsyncjobstreams/method_listbysyncjob.go b/resource-manager/automation/2019-06-01/sourcecontrolsyncjobstreams/method_listbysyncjob.go index 1ad0793f9b7..fe82bd504e4 100644 --- a/resource-manager/automation/2019-06-01/sourcecontrolsyncjobstreams/method_listbysyncjob.go +++ b/resource-manager/automation/2019-06-01/sourcecontrolsyncjobstreams/method_listbysyncjob.go @@ -50,6 +50,18 @@ func (o ListBySyncJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySyncJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySyncJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySyncJob ... func (c SourceControlSyncJobStreamsClient) ListBySyncJob(ctx context.Context, id SourceControlSyncJobId, options ListBySyncJobOperationOptions) (result ListBySyncJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SourceControlSyncJobStreamsClient) ListBySyncJob(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/streams", id.ID()), OptionsObject: options, + Pager: &ListBySyncJobCustomPager{}, + Path: fmt.Sprintf("%s/streams", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/statistics/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/statistics/method_listbyautomationaccount.go index fbcaa8da2e7..bcf9f2ef066 100644 --- a/resource-manager/automation/2019-06-01/statistics/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/statistics/method_listbyautomationaccount.go @@ -53,8 +53,8 @@ func (c StatisticsClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/statistics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/statistics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/testjobstream/method_listbytestjob.go b/resource-manager/automation/2019-06-01/testjobstream/method_listbytestjob.go index b1f655de849..0c69bca0921 100644 --- a/resource-manager/automation/2019-06-01/testjobstream/method_listbytestjob.go +++ b/resource-manager/automation/2019-06-01/testjobstream/method_listbytestjob.go @@ -50,6 +50,18 @@ func (o ListByTestJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTestJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTestJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTestJob ... func (c TestJobStreamClient) ListByTestJob(ctx context.Context, id RunbookId, options ListByTestJobOperationOptions) (result ListByTestJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c TestJobStreamClient) ListByTestJob(ctx context.Context, id RunbookId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/draft/testJob/streams", id.ID()), OptionsObject: options, + Pager: &ListByTestJobCustomPager{}, + Path: fmt.Sprintf("%s/draft/testJob/streams", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2019-06-01/variable/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/variable/method_listbyautomationaccount.go index 2af33bcda73..eb17b3ed601 100644 --- a/resource-manager/automation/2019-06-01/variable/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/variable/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Variable } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c VariableClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VariableClient) ListByAutomationAccount(ctx context.Context, id Automati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/variables", id.ID()), } diff --git a/resource-manager/automation/2019-06-01/watcher/method_listbyautomationaccount.go b/resource-manager/automation/2019-06-01/watcher/method_listbyautomationaccount.go index 42977ae7834..b0f573fbe51 100644 --- a/resource-manager/automation/2019-06-01/watcher/method_listbyautomationaccount.go +++ b/resource-manager/automation/2019-06-01/watcher/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c WatcherClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WatcherClient) ListByAutomationAccount(ctx context.Context, id Automatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/watchers", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/watchers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2020-01-13-preview/activity/method_listbymodule.go b/resource-manager/automation/2020-01-13-preview/activity/method_listbymodule.go index 484576db07b..05bd01e7175 100644 --- a/resource-manager/automation/2020-01-13-preview/activity/method_listbymodule.go +++ b/resource-manager/automation/2020-01-13-preview/activity/method_listbymodule.go @@ -23,6 +23,18 @@ type ListByModuleCompleteResult struct { Items []Activity } +type ListByModuleCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByModuleCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByModule ... func (c ActivityClient) ListByModule(ctx context.Context, id ModuleId) (result ListByModuleOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ActivityClient) ListByModule(ctx context.Context, id ModuleId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByModuleCustomPager{}, Path: fmt.Sprintf("%s/activities", id.ID()), } diff --git a/resource-manager/automation/2020-01-13-preview/automationaccount/method_list.go b/resource-manager/automation/2020-01-13-preview/automationaccount/method_list.go index 3b4059d588b..462f5ff62b6 100644 --- a/resource-manager/automation/2020-01-13-preview/automationaccount/method_list.go +++ b/resource-manager/automation/2020-01-13-preview/automationaccount/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AutomationAccount } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AutomationAccountClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutomationAccountClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Automation/automationAccounts", id.ID()), } diff --git a/resource-manager/automation/2020-01-13-preview/automationaccount/method_listbyresourcegroup.go b/resource-manager/automation/2020-01-13-preview/automationaccount/method_listbyresourcegroup.go index f6f58754ba9..968b4304c14 100644 --- a/resource-manager/automation/2020-01-13-preview/automationaccount/method_listbyresourcegroup.go +++ b/resource-manager/automation/2020-01-13-preview/automationaccount/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AutomationAccount } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AutomationAccountClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutomationAccountClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Automation/automationAccounts", id.ID()), } diff --git a/resource-manager/automation/2020-01-13-preview/certificate/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/certificate/method_listbyautomationaccount.go index 3feb575fa99..fc9f9cd359b 100644 --- a/resource-manager/automation/2020-01-13-preview/certificate/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/certificate/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Certificate } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c CertificateClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificateClient) ListByAutomationAccount(ctx context.Context, id Autom http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/automation/2020-01-13-preview/connection/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/connection/method_listbyautomationaccount.go index faf384ff1a3..d3804497480 100644 --- a/resource-manager/automation/2020-01-13-preview/connection/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/connection/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Connection } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ConnectionClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectionClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/connections", id.ID()), } diff --git a/resource-manager/automation/2020-01-13-preview/connectiontype/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/connectiontype/method_listbyautomationaccount.go index bbfd48244ca..dcee11a1920 100644 --- a/resource-manager/automation/2020-01-13-preview/connectiontype/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/connectiontype/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []ConnectionType } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, id Au http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/connectionTypes", id.ID()), } diff --git a/resource-manager/automation/2020-01-13-preview/credential/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/credential/method_listbyautomationaccount.go index ed8bb8f6114..a0790f783cd 100644 --- a/resource-manager/automation/2020-01-13-preview/credential/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/credential/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Credential } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c CredentialClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CredentialClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/credentials", id.ID()), } diff --git a/resource-manager/automation/2020-01-13-preview/dsccompilationjob/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/dsccompilationjob/method_listbyautomationaccount.go index 8e3452c3f73..5ea430161ee 100644 --- a/resource-manager/automation/2020-01-13-preview/dsccompilationjob/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/dsccompilationjob/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscCompilationJobClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DscCompilationJobClient) ListByAutomationAccount(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/compilationJobs", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/compilationJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2020-01-13-preview/dsccompilationjob/method_streamlistbyjob.go b/resource-manager/automation/2020-01-13-preview/dsccompilationjob/method_streamlistbyjob.go index 49bb0ca3266..9fe65c75caa 100644 --- a/resource-manager/automation/2020-01-13-preview/dsccompilationjob/method_streamlistbyjob.go +++ b/resource-manager/automation/2020-01-13-preview/dsccompilationjob/method_streamlistbyjob.go @@ -24,6 +24,18 @@ type StreamListByJobCompleteResult struct { Items []JobStream } +type StreamListByJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *StreamListByJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StreamListByJob ... func (c DscCompilationJobClient) StreamListByJob(ctx context.Context, id commonids.AutomationCompilationJobId) (result StreamListByJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DscCompilationJobClient) StreamListByJob(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &StreamListByJobCustomPager{}, Path: fmt.Sprintf("%s/streams", id.ID()), } diff --git a/resource-manager/automation/2020-01-13-preview/dscnode/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/dscnode/method_listbyautomationaccount.go index 4b0103135ec..7c722bfd18a 100644 --- a/resource-manager/automation/2020-01-13-preview/dscnode/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/dscnode/method_listbyautomationaccount.go @@ -62,6 +62,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscNodeClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c DscNodeClient) ListByAutomationAccount(ctx context.Context, id Automatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/nodes", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/nodes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2020-01-13-preview/dscnodeconfiguration/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/dscnodeconfiguration/method_listbyautomationaccount.go index 1d813e018f8..707c87a2ebc 100644 --- a/resource-manager/automation/2020-01-13-preview/dscnodeconfiguration/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/dscnodeconfiguration/method_listbyautomationaccount.go @@ -62,6 +62,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/nodeConfigurations", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/nodeConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2020-01-13-preview/hybridrunbookworkergroup/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/hybridrunbookworkergroup/method_listbyautomationaccount.go index 5e307bbb5ff..347df8f2b27 100644 --- a/resource-manager/automation/2020-01-13-preview/hybridrunbookworkergroup/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/hybridrunbookworkergroup/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/hybridRunbookWorkerGroups", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/hybridRunbookWorkerGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2020-01-13-preview/jobschedule/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/jobschedule/method_listbyautomationaccount.go index e6752f2fc69..6b5c6412a83 100644 --- a/resource-manager/automation/2020-01-13-preview/jobschedule/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/jobschedule/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c JobScheduleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c JobScheduleClient) ListByAutomationAccount(ctx context.Context, id Autom http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/jobSchedules", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/jobSchedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2020-01-13-preview/module/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/module/method_listbyautomationaccount.go index c0db8381a13..9face24376b 100644 --- a/resource-manager/automation/2020-01-13-preview/module/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/module/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Module } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ModuleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ModuleClient) ListByAutomationAccount(ctx context.Context, id Automation http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/automation/2020-01-13-preview/nodereports/method_listbynode.go b/resource-manager/automation/2020-01-13-preview/nodereports/method_listbynode.go index b2771981db6..ebdc3271480 100644 --- a/resource-manager/automation/2020-01-13-preview/nodereports/method_listbynode.go +++ b/resource-manager/automation/2020-01-13-preview/nodereports/method_listbynode.go @@ -50,6 +50,18 @@ func (o ListByNodeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNodeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNodeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNode ... func (c NodeReportsClient) ListByNode(ctx context.Context, id NodeId, options ListByNodeOperationOptions) (result ListByNodeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c NodeReportsClient) ListByNode(ctx context.Context, id NodeId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports", id.ID()), OptionsObject: options, + Pager: &ListByNodeCustomPager{}, + Path: fmt.Sprintf("%s/reports", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2020-01-13-preview/python2package/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/python2package/method_listbyautomationaccount.go index cce782af918..ea3688979b1 100644 --- a/resource-manager/automation/2020-01-13-preview/python2package/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/python2package/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Module } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c Python2PackageClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c Python2PackageClient) ListByAutomationAccount(ctx context.Context, id Au http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/python2Packages", id.ID()), } diff --git a/resource-manager/automation/2020-01-13-preview/schedule/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/schedule/method_listbyautomationaccount.go index dd22be2c161..379c6187f75 100644 --- a/resource-manager/automation/2020-01-13-preview/schedule/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/schedule/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Schedule } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ScheduleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScheduleClient) ListByAutomationAccount(ctx context.Context, id Automati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/schedules", id.ID()), } diff --git a/resource-manager/automation/2020-01-13-preview/sourcecontrol/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/sourcecontrol/method_listbyautomationaccount.go index e9eefd12800..9457e6a81fe 100644 --- a/resource-manager/automation/2020-01-13-preview/sourcecontrol/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/sourcecontrol/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c SourceControlClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SourceControlClient) ListByAutomationAccount(ctx context.Context, id Aut http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sourceControls", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/sourceControls", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2020-01-13-preview/sourcecontrolsyncjob/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/sourcecontrolsyncjob/method_listbyautomationaccount.go index 37d880011e9..84bcd7a480d 100644 --- a/resource-manager/automation/2020-01-13-preview/sourcecontrolsyncjob/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/sourcecontrolsyncjob/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c SourceControlSyncJobClient) ListByAutomationAccount(ctx context.Context, id SourceControlId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SourceControlSyncJobClient) ListByAutomationAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sourceControlSyncJobs", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/sourceControlSyncJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2020-01-13-preview/sourcecontrolsyncjobstreams/method_listbysyncjob.go b/resource-manager/automation/2020-01-13-preview/sourcecontrolsyncjobstreams/method_listbysyncjob.go index 1ad0793f9b7..fe82bd504e4 100644 --- a/resource-manager/automation/2020-01-13-preview/sourcecontrolsyncjobstreams/method_listbysyncjob.go +++ b/resource-manager/automation/2020-01-13-preview/sourcecontrolsyncjobstreams/method_listbysyncjob.go @@ -50,6 +50,18 @@ func (o ListBySyncJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySyncJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySyncJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySyncJob ... func (c SourceControlSyncJobStreamsClient) ListBySyncJob(ctx context.Context, id SourceControlSyncJobId, options ListBySyncJobOperationOptions) (result ListBySyncJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SourceControlSyncJobStreamsClient) ListBySyncJob(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/streams", id.ID()), OptionsObject: options, + Pager: &ListBySyncJobCustomPager{}, + Path: fmt.Sprintf("%s/streams", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2020-01-13-preview/statistics/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/statistics/method_listbyautomationaccount.go index fbcaa8da2e7..bcf9f2ef066 100644 --- a/resource-manager/automation/2020-01-13-preview/statistics/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/statistics/method_listbyautomationaccount.go @@ -53,8 +53,8 @@ func (c StatisticsClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/statistics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/statistics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2020-01-13-preview/variable/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/variable/method_listbyautomationaccount.go index 2af33bcda73..eb17b3ed601 100644 --- a/resource-manager/automation/2020-01-13-preview/variable/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/variable/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Variable } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c VariableClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VariableClient) ListByAutomationAccount(ctx context.Context, id Automati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/variables", id.ID()), } diff --git a/resource-manager/automation/2020-01-13-preview/watcher/method_listbyautomationaccount.go b/resource-manager/automation/2020-01-13-preview/watcher/method_listbyautomationaccount.go index 42977ae7834..b0f573fbe51 100644 --- a/resource-manager/automation/2020-01-13-preview/watcher/method_listbyautomationaccount.go +++ b/resource-manager/automation/2020-01-13-preview/watcher/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c WatcherClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WatcherClient) ListByAutomationAccount(ctx context.Context, id Automatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/watchers", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/watchers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2021-06-22/automationaccount/method_list.go b/resource-manager/automation/2021-06-22/automationaccount/method_list.go index 3b4059d588b..462f5ff62b6 100644 --- a/resource-manager/automation/2021-06-22/automationaccount/method_list.go +++ b/resource-manager/automation/2021-06-22/automationaccount/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AutomationAccount } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AutomationAccountClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutomationAccountClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Automation/automationAccounts", id.ID()), } diff --git a/resource-manager/automation/2021-06-22/automationaccount/method_listbyresourcegroup.go b/resource-manager/automation/2021-06-22/automationaccount/method_listbyresourcegroup.go index f6f58754ba9..968b4304c14 100644 --- a/resource-manager/automation/2021-06-22/automationaccount/method_listbyresourcegroup.go +++ b/resource-manager/automation/2021-06-22/automationaccount/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AutomationAccount } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AutomationAccountClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutomationAccountClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Automation/automationAccounts", id.ID()), } diff --git a/resource-manager/automation/2021-06-22/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go b/resource-manager/automation/2021-06-22/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go index d0499275824..3b13c74775b 100644 --- a/resource-manager/automation/2021-06-22/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go +++ b/resource-manager/automation/2021-06-22/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go @@ -50,6 +50,18 @@ func (o ListByHybridRunbookWorkerGroupOperationOptions) ToQuery() *client.QueryP return &out } +type ListByHybridRunbookWorkerGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHybridRunbookWorkerGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHybridRunbookWorkerGroup ... func (c HybridRunbookWorkerClient) ListByHybridRunbookWorkerGroup(ctx context.Context, id HybridRunbookWorkerGroupId, options ListByHybridRunbookWorkerGroupOperationOptions) (result ListByHybridRunbookWorkerGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c HybridRunbookWorkerClient) ListByHybridRunbookWorkerGroup(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/hybridRunbookWorkers", id.ID()), OptionsObject: options, + Pager: &ListByHybridRunbookWorkerGroupCustomPager{}, + Path: fmt.Sprintf("%s/hybridRunbookWorkers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2021-06-22/hybridrunbookworkergroup/method_listbyautomationaccount.go b/resource-manager/automation/2021-06-22/hybridrunbookworkergroup/method_listbyautomationaccount.go index 5e307bbb5ff..347df8f2b27 100644 --- a/resource-manager/automation/2021-06-22/hybridrunbookworkergroup/method_listbyautomationaccount.go +++ b/resource-manager/automation/2021-06-22/hybridrunbookworkergroup/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/hybridRunbookWorkerGroups", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/hybridRunbookWorkerGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2021-06-22/statistics/method_listbyautomationaccount.go b/resource-manager/automation/2021-06-22/statistics/method_listbyautomationaccount.go index fbcaa8da2e7..bcf9f2ef066 100644 --- a/resource-manager/automation/2021-06-22/statistics/method_listbyautomationaccount.go +++ b/resource-manager/automation/2021-06-22/statistics/method_listbyautomationaccount.go @@ -53,8 +53,8 @@ func (c StatisticsClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/statistics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/statistics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/activity/method_listbymodule.go b/resource-manager/automation/2022-08-08/activity/method_listbymodule.go index 484576db07b..05bd01e7175 100644 --- a/resource-manager/automation/2022-08-08/activity/method_listbymodule.go +++ b/resource-manager/automation/2022-08-08/activity/method_listbymodule.go @@ -23,6 +23,18 @@ type ListByModuleCompleteResult struct { Items []Activity } +type ListByModuleCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByModuleCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByModule ... func (c ActivityClient) ListByModule(ctx context.Context, id ModuleId) (result ListByModuleOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ActivityClient) ListByModule(ctx context.Context, id ModuleId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByModuleCustomPager{}, Path: fmt.Sprintf("%s/activities", id.ID()), } diff --git a/resource-manager/automation/2022-08-08/automationaccount/method_list.go b/resource-manager/automation/2022-08-08/automationaccount/method_list.go index 3b4059d588b..462f5ff62b6 100644 --- a/resource-manager/automation/2022-08-08/automationaccount/method_list.go +++ b/resource-manager/automation/2022-08-08/automationaccount/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AutomationAccount } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AutomationAccountClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutomationAccountClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Automation/automationAccounts", id.ID()), } diff --git a/resource-manager/automation/2022-08-08/automationaccount/method_listbyresourcegroup.go b/resource-manager/automation/2022-08-08/automationaccount/method_listbyresourcegroup.go index f6f58754ba9..968b4304c14 100644 --- a/resource-manager/automation/2022-08-08/automationaccount/method_listbyresourcegroup.go +++ b/resource-manager/automation/2022-08-08/automationaccount/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AutomationAccount } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AutomationAccountClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutomationAccountClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Automation/automationAccounts", id.ID()), } diff --git a/resource-manager/automation/2022-08-08/certificate/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/certificate/method_listbyautomationaccount.go index 3feb575fa99..fc9f9cd359b 100644 --- a/resource-manager/automation/2022-08-08/certificate/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/certificate/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Certificate } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c CertificateClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificateClient) ListByAutomationAccount(ctx context.Context, id Autom http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/automation/2022-08-08/connection/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/connection/method_listbyautomationaccount.go index faf384ff1a3..d3804497480 100644 --- a/resource-manager/automation/2022-08-08/connection/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/connection/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Connection } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ConnectionClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectionClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/connections", id.ID()), } diff --git a/resource-manager/automation/2022-08-08/connectiontype/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/connectiontype/method_listbyautomationaccount.go index bbfd48244ca..dcee11a1920 100644 --- a/resource-manager/automation/2022-08-08/connectiontype/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/connectiontype/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []ConnectionType } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, id Au http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/connectionTypes", id.ID()), } diff --git a/resource-manager/automation/2022-08-08/credential/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/credential/method_listbyautomationaccount.go index ed8bb8f6114..a0790f783cd 100644 --- a/resource-manager/automation/2022-08-08/credential/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/credential/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Credential } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c CredentialClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CredentialClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/credentials", id.ID()), } diff --git a/resource-manager/automation/2022-08-08/dscconfiguration/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/dscconfiguration/method_listbyautomationaccount.go index 92aa57c0330..8a4b09db266 100644 --- a/resource-manager/automation/2022-08-08/dscconfiguration/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/dscconfiguration/method_listbyautomationaccount.go @@ -62,6 +62,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscConfigurationClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c DscConfigurationClient) ListByAutomationAccount(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/configurations", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/configurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/dscnodeconfiguration/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/dscnodeconfiguration/method_listbyautomationaccount.go index 1d813e018f8..707c87a2ebc 100644 --- a/resource-manager/automation/2022-08-08/dscnodeconfiguration/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/dscnodeconfiguration/method_listbyautomationaccount.go @@ -62,6 +62,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/nodeConfigurations", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/nodeConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go b/resource-manager/automation/2022-08-08/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go index d0499275824..3b13c74775b 100644 --- a/resource-manager/automation/2022-08-08/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go +++ b/resource-manager/automation/2022-08-08/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go @@ -50,6 +50,18 @@ func (o ListByHybridRunbookWorkerGroupOperationOptions) ToQuery() *client.QueryP return &out } +type ListByHybridRunbookWorkerGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHybridRunbookWorkerGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHybridRunbookWorkerGroup ... func (c HybridRunbookWorkerClient) ListByHybridRunbookWorkerGroup(ctx context.Context, id HybridRunbookWorkerGroupId, options ListByHybridRunbookWorkerGroupOperationOptions) (result ListByHybridRunbookWorkerGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c HybridRunbookWorkerClient) ListByHybridRunbookWorkerGroup(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/hybridRunbookWorkers", id.ID()), OptionsObject: options, + Pager: &ListByHybridRunbookWorkerGroupCustomPager{}, + Path: fmt.Sprintf("%s/hybridRunbookWorkers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/hybridrunbookworkergroup/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/hybridrunbookworkergroup/method_listbyautomationaccount.go index 5e307bbb5ff..347df8f2b27 100644 --- a/resource-manager/automation/2022-08-08/hybridrunbookworkergroup/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/hybridrunbookworkergroup/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/hybridRunbookWorkerGroups", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/hybridRunbookWorkerGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/job/method_create.go b/resource-manager/automation/2022-08-08/job/method_create.go index 38295c096b5..20181d88e2e 100644 --- a/resource-manager/automation/2022-08-08/job/method_create.go +++ b/resource-manager/automation/2022-08-08/job/method_create.go @@ -53,8 +53,8 @@ func (c JobClient) Create(ctx context.Context, id JobId, input JobCreateParamete http.StatusCreated, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/job/method_get.go b/resource-manager/automation/2022-08-08/job/method_get.go index e04bc9dcdef..70b2a88ce70 100644 --- a/resource-manager/automation/2022-08-08/job/method_get.go +++ b/resource-manager/automation/2022-08-08/job/method_get.go @@ -53,8 +53,8 @@ func (c JobClient) Get(ctx context.Context, id JobId, options GetOperationOption http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/job/method_getoutput.go b/resource-manager/automation/2022-08-08/job/method_getoutput.go index 1d1baac920e..c5e0edacdb0 100644 --- a/resource-manager/automation/2022-08-08/job/method_getoutput.go +++ b/resource-manager/automation/2022-08-08/job/method_getoutput.go @@ -53,8 +53,8 @@ func (c JobClient) GetOutput(ctx context.Context, id JobId, options GetOutputOpe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/output", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/output", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/job/method_getrunbookcontent.go b/resource-manager/automation/2022-08-08/job/method_getrunbookcontent.go index 557f4296619..a7a244d9859 100644 --- a/resource-manager/automation/2022-08-08/job/method_getrunbookcontent.go +++ b/resource-manager/automation/2022-08-08/job/method_getrunbookcontent.go @@ -53,8 +53,8 @@ func (c JobClient) GetRunbookContent(ctx context.Context, id JobId, options GetR http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runbookContent", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/runbookContent", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/job/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/job/method_listbyautomationaccount.go index 70973d6c881..504bd861221 100644 --- a/resource-manager/automation/2022-08-08/job/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/job/method_listbyautomationaccount.go @@ -53,6 +53,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c JobClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -61,8 +73,9 @@ func (c JobClient) ListByAutomationAccount(ctx context.Context, id AutomationAcc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/jobs", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/jobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/job/method_resume.go b/resource-manager/automation/2022-08-08/job/method_resume.go index 7dfd7fcfc04..c707c2a9c74 100644 --- a/resource-manager/automation/2022-08-08/job/method_resume.go +++ b/resource-manager/automation/2022-08-08/job/method_resume.go @@ -52,8 +52,8 @@ func (c JobClient) Resume(ctx context.Context, id JobId, options ResumeOperation http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resume", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/resume", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/job/method_stop.go b/resource-manager/automation/2022-08-08/job/method_stop.go index f92de573246..d2864853dff 100644 --- a/resource-manager/automation/2022-08-08/job/method_stop.go +++ b/resource-manager/automation/2022-08-08/job/method_stop.go @@ -52,8 +52,8 @@ func (c JobClient) Stop(ctx context.Context, id JobId, options StopOperationOpti http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/stop", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/stop", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/job/method_suspend.go b/resource-manager/automation/2022-08-08/job/method_suspend.go index cb2010871f9..bc8f428afbb 100644 --- a/resource-manager/automation/2022-08-08/job/method_suspend.go +++ b/resource-manager/automation/2022-08-08/job/method_suspend.go @@ -52,8 +52,8 @@ func (c JobClient) Suspend(ctx context.Context, id JobId, options SuspendOperati http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/suspend", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/suspend", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/jobschedule/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/jobschedule/method_listbyautomationaccount.go index e6752f2fc69..6b5c6412a83 100644 --- a/resource-manager/automation/2022-08-08/jobschedule/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/jobschedule/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c JobScheduleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c JobScheduleClient) ListByAutomationAccount(ctx context.Context, id Autom http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/jobSchedules", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/jobSchedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/jobstream/method_get.go b/resource-manager/automation/2022-08-08/jobstream/method_get.go index 36d00d54bf7..500505c3b4f 100644 --- a/resource-manager/automation/2022-08-08/jobstream/method_get.go +++ b/resource-manager/automation/2022-08-08/jobstream/method_get.go @@ -53,8 +53,8 @@ func (c JobStreamClient) Get(ctx context.Context, id StreamId, options GetOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/jobstream/method_listbyjob.go b/resource-manager/automation/2022-08-08/jobstream/method_listbyjob.go index 14c78695bb0..4d6eee1cc84 100644 --- a/resource-manager/automation/2022-08-08/jobstream/method_listbyjob.go +++ b/resource-manager/automation/2022-08-08/jobstream/method_listbyjob.go @@ -53,6 +53,18 @@ func (o ListByJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByJob ... func (c JobStreamClient) ListByJob(ctx context.Context, id JobId, options ListByJobOperationOptions) (result ListByJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -61,8 +73,9 @@ func (c JobStreamClient) ListByJob(ctx context.Context, id JobId, options ListBy http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/streams", id.ID()), OptionsObject: options, + Pager: &ListByJobCustomPager{}, + Path: fmt.Sprintf("%s/streams", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/module/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/module/method_listbyautomationaccount.go index c0db8381a13..9face24376b 100644 --- a/resource-manager/automation/2022-08-08/module/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/module/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Module } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ModuleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ModuleClient) ListByAutomationAccount(ctx context.Context, id Automation http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/automation/2022-08-08/python2package/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/python2package/method_listbyautomationaccount.go index cce782af918..ea3688979b1 100644 --- a/resource-manager/automation/2022-08-08/python2package/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/python2package/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Module } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c Python2PackageClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c Python2PackageClient) ListByAutomationAccount(ctx context.Context, id Au http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/python2Packages", id.ID()), } diff --git a/resource-manager/automation/2022-08-08/python3package/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/python3package/method_listbyautomationaccount.go index 4e5c29317da..23c2c35e7bb 100644 --- a/resource-manager/automation/2022-08-08/python3package/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/python3package/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Module } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c Python3PackageClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c Python3PackageClient) ListByAutomationAccount(ctx context.Context, id Au http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/python3Packages", id.ID()), } diff --git a/resource-manager/automation/2022-08-08/runbook/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/runbook/method_listbyautomationaccount.go index 1cbf445d7a0..3b01e1eaee8 100644 --- a/resource-manager/automation/2022-08-08/runbook/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/runbook/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Runbook } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c RunbookClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RunbookClient) ListByAutomationAccount(ctx context.Context, id Automatio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/runbooks", id.ID()), } diff --git a/resource-manager/automation/2022-08-08/schedule/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/schedule/method_listbyautomationaccount.go index dd22be2c161..379c6187f75 100644 --- a/resource-manager/automation/2022-08-08/schedule/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/schedule/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Schedule } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ScheduleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScheduleClient) ListByAutomationAccount(ctx context.Context, id Automati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/schedules", id.ID()), } diff --git a/resource-manager/automation/2022-08-08/softwareupdateconfigurationmachinerun/method_getbyid.go b/resource-manager/automation/2022-08-08/softwareupdateconfigurationmachinerun/method_getbyid.go index a558699f304..23b807e3e05 100644 --- a/resource-manager/automation/2022-08-08/softwareupdateconfigurationmachinerun/method_getbyid.go +++ b/resource-manager/automation/2022-08-08/softwareupdateconfigurationmachinerun/method_getbyid.go @@ -53,8 +53,8 @@ func (c SoftwareUpdateConfigurationMachineRunClient) GetById(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/softwareupdateconfigurationmachinerun/method_list.go b/resource-manager/automation/2022-08-08/softwareupdateconfigurationmachinerun/method_list.go index 24aa3e4ce84..6f047c54ccc 100644 --- a/resource-manager/automation/2022-08-08/softwareupdateconfigurationmachinerun/method_list.go +++ b/resource-manager/automation/2022-08-08/softwareupdateconfigurationmachinerun/method_list.go @@ -61,6 +61,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SoftwareUpdateConfigurationMachineRunClient) List(ctx context.Context, id AutomationAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -69,8 +81,9 @@ func (c SoftwareUpdateConfigurationMachineRunClient) List(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/softwareUpdateConfigurationMachineRuns", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/softwareUpdateConfigurationMachineRuns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/softwareupdateconfigurationrun/method_getbyid.go b/resource-manager/automation/2022-08-08/softwareupdateconfigurationrun/method_getbyid.go index 15781c18fb3..c4c6b07ca88 100644 --- a/resource-manager/automation/2022-08-08/softwareupdateconfigurationrun/method_getbyid.go +++ b/resource-manager/automation/2022-08-08/softwareupdateconfigurationrun/method_getbyid.go @@ -53,8 +53,8 @@ func (c SoftwareUpdateConfigurationRunClient) GetById(ctx context.Context, id So http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/softwareupdateconfigurationrun/method_list.go b/resource-manager/automation/2022-08-08/softwareupdateconfigurationrun/method_list.go index b3514331436..f6503cdb378 100644 --- a/resource-manager/automation/2022-08-08/softwareupdateconfigurationrun/method_list.go +++ b/resource-manager/automation/2022-08-08/softwareupdateconfigurationrun/method_list.go @@ -61,6 +61,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SoftwareUpdateConfigurationRunClient) List(ctx context.Context, id AutomationAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -69,8 +81,9 @@ func (c SoftwareUpdateConfigurationRunClient) List(ctx context.Context, id Autom http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/softwareUpdateConfigurationRuns", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/softwareUpdateConfigurationRuns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/sourcecontrol/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/sourcecontrol/method_listbyautomationaccount.go index e9eefd12800..9457e6a81fe 100644 --- a/resource-manager/automation/2022-08-08/sourcecontrol/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/sourcecontrol/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c SourceControlClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SourceControlClient) ListByAutomationAccount(ctx context.Context, id Aut http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sourceControls", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/sourceControls", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/sourcecontrolsyncjob/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/sourcecontrolsyncjob/method_listbyautomationaccount.go index 37d880011e9..84bcd7a480d 100644 --- a/resource-manager/automation/2022-08-08/sourcecontrolsyncjob/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/sourcecontrolsyncjob/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c SourceControlSyncJobClient) ListByAutomationAccount(ctx context.Context, id SourceControlId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SourceControlSyncJobClient) ListByAutomationAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sourceControlSyncJobs", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/sourceControlSyncJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/sourcecontrolsyncjobstreams/method_listbysyncjob.go b/resource-manager/automation/2022-08-08/sourcecontrolsyncjobstreams/method_listbysyncjob.go index 1ad0793f9b7..fe82bd504e4 100644 --- a/resource-manager/automation/2022-08-08/sourcecontrolsyncjobstreams/method_listbysyncjob.go +++ b/resource-manager/automation/2022-08-08/sourcecontrolsyncjobstreams/method_listbysyncjob.go @@ -50,6 +50,18 @@ func (o ListBySyncJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySyncJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySyncJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySyncJob ... func (c SourceControlSyncJobStreamsClient) ListBySyncJob(ctx context.Context, id SourceControlSyncJobId, options ListBySyncJobOperationOptions) (result ListBySyncJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SourceControlSyncJobStreamsClient) ListBySyncJob(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/streams", id.ID()), OptionsObject: options, + Pager: &ListBySyncJobCustomPager{}, + Path: fmt.Sprintf("%s/streams", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/statistics/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/statistics/method_listbyautomationaccount.go index fbcaa8da2e7..bcf9f2ef066 100644 --- a/resource-manager/automation/2022-08-08/statistics/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/statistics/method_listbyautomationaccount.go @@ -53,8 +53,8 @@ func (c StatisticsClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/statistics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/statistics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/testjobstream/method_listbytestjob.go b/resource-manager/automation/2022-08-08/testjobstream/method_listbytestjob.go index b1f655de849..0c69bca0921 100644 --- a/resource-manager/automation/2022-08-08/testjobstream/method_listbytestjob.go +++ b/resource-manager/automation/2022-08-08/testjobstream/method_listbytestjob.go @@ -50,6 +50,18 @@ func (o ListByTestJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTestJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTestJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTestJob ... func (c TestJobStreamClient) ListByTestJob(ctx context.Context, id RunbookId, options ListByTestJobOperationOptions) (result ListByTestJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c TestJobStreamClient) ListByTestJob(ctx context.Context, id RunbookId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/draft/testJob/streams", id.ID()), OptionsObject: options, + Pager: &ListByTestJobCustomPager{}, + Path: fmt.Sprintf("%s/draft/testJob/streams", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2022-08-08/variable/method_listbyautomationaccount.go b/resource-manager/automation/2022-08-08/variable/method_listbyautomationaccount.go index 2af33bcda73..eb17b3ed601 100644 --- a/resource-manager/automation/2022-08-08/variable/method_listbyautomationaccount.go +++ b/resource-manager/automation/2022-08-08/variable/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Variable } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c VariableClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VariableClient) ListByAutomationAccount(ctx context.Context, id Automati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/variables", id.ID()), } diff --git a/resource-manager/automation/2023-11-01/activity/method_listbymodule.go b/resource-manager/automation/2023-11-01/activity/method_listbymodule.go index 484576db07b..05bd01e7175 100644 --- a/resource-manager/automation/2023-11-01/activity/method_listbymodule.go +++ b/resource-manager/automation/2023-11-01/activity/method_listbymodule.go @@ -23,6 +23,18 @@ type ListByModuleCompleteResult struct { Items []Activity } +type ListByModuleCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByModuleCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByModule ... func (c ActivityClient) ListByModule(ctx context.Context, id ModuleId) (result ListByModuleOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ActivityClient) ListByModule(ctx context.Context, id ModuleId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByModuleCustomPager{}, Path: fmt.Sprintf("%s/activities", id.ID()), } diff --git a/resource-manager/automation/2023-11-01/automationaccount/method_list.go b/resource-manager/automation/2023-11-01/automationaccount/method_list.go index 3b4059d588b..462f5ff62b6 100644 --- a/resource-manager/automation/2023-11-01/automationaccount/method_list.go +++ b/resource-manager/automation/2023-11-01/automationaccount/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AutomationAccount } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AutomationAccountClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutomationAccountClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Automation/automationAccounts", id.ID()), } diff --git a/resource-manager/automation/2023-11-01/automationaccount/method_listbyresourcegroup.go b/resource-manager/automation/2023-11-01/automationaccount/method_listbyresourcegroup.go index f6f58754ba9..968b4304c14 100644 --- a/resource-manager/automation/2023-11-01/automationaccount/method_listbyresourcegroup.go +++ b/resource-manager/automation/2023-11-01/automationaccount/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AutomationAccount } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AutomationAccountClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutomationAccountClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Automation/automationAccounts", id.ID()), } diff --git a/resource-manager/automation/2023-11-01/certificate/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/certificate/method_listbyautomationaccount.go index 3feb575fa99..fc9f9cd359b 100644 --- a/resource-manager/automation/2023-11-01/certificate/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/certificate/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Certificate } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c CertificateClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificateClient) ListByAutomationAccount(ctx context.Context, id Autom http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/automation/2023-11-01/connection/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/connection/method_listbyautomationaccount.go index faf384ff1a3..d3804497480 100644 --- a/resource-manager/automation/2023-11-01/connection/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/connection/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Connection } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ConnectionClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectionClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/connections", id.ID()), } diff --git a/resource-manager/automation/2023-11-01/connectiontype/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/connectiontype/method_listbyautomationaccount.go index bbfd48244ca..dcee11a1920 100644 --- a/resource-manager/automation/2023-11-01/connectiontype/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/connectiontype/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []ConnectionType } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, id Au http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/connectionTypes", id.ID()), } diff --git a/resource-manager/automation/2023-11-01/credential/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/credential/method_listbyautomationaccount.go index ed8bb8f6114..a0790f783cd 100644 --- a/resource-manager/automation/2023-11-01/credential/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/credential/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Credential } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c CredentialClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CredentialClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/credentials", id.ID()), } diff --git a/resource-manager/automation/2023-11-01/dscconfiguration/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/dscconfiguration/method_listbyautomationaccount.go index 92aa57c0330..8a4b09db266 100644 --- a/resource-manager/automation/2023-11-01/dscconfiguration/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/dscconfiguration/method_listbyautomationaccount.go @@ -62,6 +62,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscConfigurationClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c DscConfigurationClient) ListByAutomationAccount(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/configurations", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/configurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/dscnodeconfiguration/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/dscnodeconfiguration/method_listbyautomationaccount.go index 1d813e018f8..707c87a2ebc 100644 --- a/resource-manager/automation/2023-11-01/dscnodeconfiguration/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/dscnodeconfiguration/method_listbyautomationaccount.go @@ -62,6 +62,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/nodeConfigurations", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/nodeConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go b/resource-manager/automation/2023-11-01/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go index d0499275824..3b13c74775b 100644 --- a/resource-manager/automation/2023-11-01/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go +++ b/resource-manager/automation/2023-11-01/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go @@ -50,6 +50,18 @@ func (o ListByHybridRunbookWorkerGroupOperationOptions) ToQuery() *client.QueryP return &out } +type ListByHybridRunbookWorkerGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHybridRunbookWorkerGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHybridRunbookWorkerGroup ... func (c HybridRunbookWorkerClient) ListByHybridRunbookWorkerGroup(ctx context.Context, id HybridRunbookWorkerGroupId, options ListByHybridRunbookWorkerGroupOperationOptions) (result ListByHybridRunbookWorkerGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c HybridRunbookWorkerClient) ListByHybridRunbookWorkerGroup(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/hybridRunbookWorkers", id.ID()), OptionsObject: options, + Pager: &ListByHybridRunbookWorkerGroupCustomPager{}, + Path: fmt.Sprintf("%s/hybridRunbookWorkers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_listbyautomationaccount.go index 5e307bbb5ff..347df8f2b27 100644 --- a/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/hybridRunbookWorkerGroups", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/hybridRunbookWorkerGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/job/method_create.go b/resource-manager/automation/2023-11-01/job/method_create.go index 38295c096b5..20181d88e2e 100644 --- a/resource-manager/automation/2023-11-01/job/method_create.go +++ b/resource-manager/automation/2023-11-01/job/method_create.go @@ -53,8 +53,8 @@ func (c JobClient) Create(ctx context.Context, id JobId, input JobCreateParamete http.StatusCreated, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/job/method_get.go b/resource-manager/automation/2023-11-01/job/method_get.go index e04bc9dcdef..70b2a88ce70 100644 --- a/resource-manager/automation/2023-11-01/job/method_get.go +++ b/resource-manager/automation/2023-11-01/job/method_get.go @@ -53,8 +53,8 @@ func (c JobClient) Get(ctx context.Context, id JobId, options GetOperationOption http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/job/method_getoutput.go b/resource-manager/automation/2023-11-01/job/method_getoutput.go index 1d1baac920e..c5e0edacdb0 100644 --- a/resource-manager/automation/2023-11-01/job/method_getoutput.go +++ b/resource-manager/automation/2023-11-01/job/method_getoutput.go @@ -53,8 +53,8 @@ func (c JobClient) GetOutput(ctx context.Context, id JobId, options GetOutputOpe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/output", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/output", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/job/method_getrunbookcontent.go b/resource-manager/automation/2023-11-01/job/method_getrunbookcontent.go index 557f4296619..a7a244d9859 100644 --- a/resource-manager/automation/2023-11-01/job/method_getrunbookcontent.go +++ b/resource-manager/automation/2023-11-01/job/method_getrunbookcontent.go @@ -53,8 +53,8 @@ func (c JobClient) GetRunbookContent(ctx context.Context, id JobId, options GetR http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runbookContent", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/runbookContent", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/job/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/job/method_listbyautomationaccount.go index 70973d6c881..504bd861221 100644 --- a/resource-manager/automation/2023-11-01/job/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/job/method_listbyautomationaccount.go @@ -53,6 +53,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c JobClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -61,8 +73,9 @@ func (c JobClient) ListByAutomationAccount(ctx context.Context, id AutomationAcc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/jobs", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/jobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/job/method_resume.go b/resource-manager/automation/2023-11-01/job/method_resume.go index 7dfd7fcfc04..c707c2a9c74 100644 --- a/resource-manager/automation/2023-11-01/job/method_resume.go +++ b/resource-manager/automation/2023-11-01/job/method_resume.go @@ -52,8 +52,8 @@ func (c JobClient) Resume(ctx context.Context, id JobId, options ResumeOperation http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resume", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/resume", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/job/method_stop.go b/resource-manager/automation/2023-11-01/job/method_stop.go index f92de573246..d2864853dff 100644 --- a/resource-manager/automation/2023-11-01/job/method_stop.go +++ b/resource-manager/automation/2023-11-01/job/method_stop.go @@ -52,8 +52,8 @@ func (c JobClient) Stop(ctx context.Context, id JobId, options StopOperationOpti http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/stop", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/stop", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/job/method_suspend.go b/resource-manager/automation/2023-11-01/job/method_suspend.go index cb2010871f9..bc8f428afbb 100644 --- a/resource-manager/automation/2023-11-01/job/method_suspend.go +++ b/resource-manager/automation/2023-11-01/job/method_suspend.go @@ -52,8 +52,8 @@ func (c JobClient) Suspend(ctx context.Context, id JobId, options SuspendOperati http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/suspend", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/suspend", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/jobschedule/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/jobschedule/method_listbyautomationaccount.go index e6752f2fc69..6b5c6412a83 100644 --- a/resource-manager/automation/2023-11-01/jobschedule/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/jobschedule/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c JobScheduleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c JobScheduleClient) ListByAutomationAccount(ctx context.Context, id Autom http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/jobSchedules", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/jobSchedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/jobstream/method_get.go b/resource-manager/automation/2023-11-01/jobstream/method_get.go index 36d00d54bf7..500505c3b4f 100644 --- a/resource-manager/automation/2023-11-01/jobstream/method_get.go +++ b/resource-manager/automation/2023-11-01/jobstream/method_get.go @@ -53,8 +53,8 @@ func (c JobStreamClient) Get(ctx context.Context, id StreamId, options GetOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/jobstream/method_listbyjob.go b/resource-manager/automation/2023-11-01/jobstream/method_listbyjob.go index 14c78695bb0..4d6eee1cc84 100644 --- a/resource-manager/automation/2023-11-01/jobstream/method_listbyjob.go +++ b/resource-manager/automation/2023-11-01/jobstream/method_listbyjob.go @@ -53,6 +53,18 @@ func (o ListByJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByJob ... func (c JobStreamClient) ListByJob(ctx context.Context, id JobId, options ListByJobOperationOptions) (result ListByJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -61,8 +73,9 @@ func (c JobStreamClient) ListByJob(ctx context.Context, id JobId, options ListBy http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/streams", id.ID()), OptionsObject: options, + Pager: &ListByJobCustomPager{}, + Path: fmt.Sprintf("%s/streams", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/module/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/module/method_listbyautomationaccount.go index c0db8381a13..9face24376b 100644 --- a/resource-manager/automation/2023-11-01/module/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/module/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Module } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ModuleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ModuleClient) ListByAutomationAccount(ctx context.Context, id Automation http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/automation/2023-11-01/module/method_powershell72modulelistbyautomationaccount.go b/resource-manager/automation/2023-11-01/module/method_powershell72modulelistbyautomationaccount.go index 6a502bad8b5..d902e725210 100644 --- a/resource-manager/automation/2023-11-01/module/method_powershell72modulelistbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/module/method_powershell72modulelistbyautomationaccount.go @@ -23,6 +23,18 @@ type PowerShell72ModuleListByAutomationAccountCompleteResult struct { Items []Module } +type PowerShell72ModuleListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PowerShell72ModuleListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PowerShell72ModuleListByAutomationAccount ... func (c ModuleClient) PowerShell72ModuleListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result PowerShell72ModuleListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ModuleClient) PowerShell72ModuleListByAutomationAccount(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PowerShell72ModuleListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/powerShell72Modules", id.ID()), } diff --git a/resource-manager/automation/2023-11-01/python2package/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/python2package/method_listbyautomationaccount.go index cce782af918..ea3688979b1 100644 --- a/resource-manager/automation/2023-11-01/python2package/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/python2package/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Module } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c Python2PackageClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c Python2PackageClient) ListByAutomationAccount(ctx context.Context, id Au http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/python2Packages", id.ID()), } diff --git a/resource-manager/automation/2023-11-01/python3package/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/python3package/method_listbyautomationaccount.go index 4e5c29317da..23c2c35e7bb 100644 --- a/resource-manager/automation/2023-11-01/python3package/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/python3package/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Module } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c Python3PackageClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c Python3PackageClient) ListByAutomationAccount(ctx context.Context, id Au http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/python3Packages", id.ID()), } diff --git a/resource-manager/automation/2023-11-01/runbook/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/runbook/method_listbyautomationaccount.go index 1cbf445d7a0..3b01e1eaee8 100644 --- a/resource-manager/automation/2023-11-01/runbook/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/runbook/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Runbook } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c RunbookClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RunbookClient) ListByAutomationAccount(ctx context.Context, id Automatio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/runbooks", id.ID()), } diff --git a/resource-manager/automation/2023-11-01/schedule/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/schedule/method_listbyautomationaccount.go index dd22be2c161..379c6187f75 100644 --- a/resource-manager/automation/2023-11-01/schedule/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/schedule/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Schedule } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c ScheduleClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScheduleClient) ListByAutomationAccount(ctx context.Context, id Automati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/schedules", id.ID()), } diff --git a/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_getbyid.go b/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_getbyid.go index a558699f304..23b807e3e05 100644 --- a/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_getbyid.go +++ b/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_getbyid.go @@ -53,8 +53,8 @@ func (c SoftwareUpdateConfigurationMachineRunClient) GetById(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_list.go b/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_list.go index 24aa3e4ce84..6f047c54ccc 100644 --- a/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_list.go +++ b/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_list.go @@ -61,6 +61,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SoftwareUpdateConfigurationMachineRunClient) List(ctx context.Context, id AutomationAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -69,8 +81,9 @@ func (c SoftwareUpdateConfigurationMachineRunClient) List(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/softwareUpdateConfigurationMachineRuns", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/softwareUpdateConfigurationMachineRuns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_getbyid.go b/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_getbyid.go index 15781c18fb3..c4c6b07ca88 100644 --- a/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_getbyid.go +++ b/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_getbyid.go @@ -53,8 +53,8 @@ func (c SoftwareUpdateConfigurationRunClient) GetById(ctx context.Context, id So http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_list.go b/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_list.go index b3514331436..f6503cdb378 100644 --- a/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_list.go +++ b/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_list.go @@ -61,6 +61,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SoftwareUpdateConfigurationRunClient) List(ctx context.Context, id AutomationAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -69,8 +81,9 @@ func (c SoftwareUpdateConfigurationRunClient) List(ctx context.Context, id Autom http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/softwareUpdateConfigurationRuns", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/softwareUpdateConfigurationRuns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/sourcecontrol/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/sourcecontrol/method_listbyautomationaccount.go index e9eefd12800..9457e6a81fe 100644 --- a/resource-manager/automation/2023-11-01/sourcecontrol/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/sourcecontrol/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c SourceControlClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SourceControlClient) ListByAutomationAccount(ctx context.Context, id Aut http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sourceControls", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/sourceControls", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_listbyautomationaccount.go index 37d880011e9..84bcd7a480d 100644 --- a/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_listbyautomationaccount.go @@ -50,6 +50,18 @@ func (o ListByAutomationAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c SourceControlSyncJobClient) ListByAutomationAccount(ctx context.Context, id SourceControlId, options ListByAutomationAccountOperationOptions) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SourceControlSyncJobClient) ListByAutomationAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sourceControlSyncJobs", id.ID()), OptionsObject: options, + Pager: &ListByAutomationAccountCustomPager{}, + Path: fmt.Sprintf("%s/sourceControlSyncJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/method_listbysyncjob.go b/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/method_listbysyncjob.go index 1ad0793f9b7..fe82bd504e4 100644 --- a/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/method_listbysyncjob.go +++ b/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/method_listbysyncjob.go @@ -50,6 +50,18 @@ func (o ListBySyncJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySyncJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySyncJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySyncJob ... func (c SourceControlSyncJobStreamsClient) ListBySyncJob(ctx context.Context, id SourceControlSyncJobId, options ListBySyncJobOperationOptions) (result ListBySyncJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SourceControlSyncJobStreamsClient) ListBySyncJob(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/streams", id.ID()), OptionsObject: options, + Pager: &ListBySyncJobCustomPager{}, + Path: fmt.Sprintf("%s/streams", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/statistics/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/statistics/method_listbyautomationaccount.go index fbcaa8da2e7..bcf9f2ef066 100644 --- a/resource-manager/automation/2023-11-01/statistics/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/statistics/method_listbyautomationaccount.go @@ -53,8 +53,8 @@ func (c StatisticsClient) ListByAutomationAccount(ctx context.Context, id Automa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/statistics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/statistics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/testjobstream/method_listbytestjob.go b/resource-manager/automation/2023-11-01/testjobstream/method_listbytestjob.go index b1f655de849..0c69bca0921 100644 --- a/resource-manager/automation/2023-11-01/testjobstream/method_listbytestjob.go +++ b/resource-manager/automation/2023-11-01/testjobstream/method_listbytestjob.go @@ -50,6 +50,18 @@ func (o ListByTestJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTestJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTestJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTestJob ... func (c TestJobStreamClient) ListByTestJob(ctx context.Context, id RunbookId, options ListByTestJobOperationOptions) (result ListByTestJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c TestJobStreamClient) ListByTestJob(ctx context.Context, id RunbookId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/draft/testJob/streams", id.ID()), OptionsObject: options, + Pager: &ListByTestJobCustomPager{}, + Path: fmt.Sprintf("%s/draft/testJob/streams", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/automation/2023-11-01/variable/method_listbyautomationaccount.go b/resource-manager/automation/2023-11-01/variable/method_listbyautomationaccount.go index 2af33bcda73..eb17b3ed601 100644 --- a/resource-manager/automation/2023-11-01/variable/method_listbyautomationaccount.go +++ b/resource-manager/automation/2023-11-01/variable/method_listbyautomationaccount.go @@ -23,6 +23,18 @@ type ListByAutomationAccountCompleteResult struct { Items []Variable } +type ListByAutomationAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAutomationAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAutomationAccount ... func (c VariableClient) ListByAutomationAccount(ctx context.Context, id AutomationAccountId) (result ListByAutomationAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VariableClient) ListByAutomationAccount(ctx context.Context, id Automati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAutomationAccountCustomPager{}, Path: fmt.Sprintf("%s/variables", id.ID()), } diff --git a/resource-manager/azureactivedirectory/2020-03-01/privateendpointconnections/method_listbypolicyname.go b/resource-manager/azureactivedirectory/2020-03-01/privateendpointconnections/method_listbypolicyname.go index d0ff70d755d..c26179624d2 100644 --- a/resource-manager/azureactivedirectory/2020-03-01/privateendpointconnections/method_listbypolicyname.go +++ b/resource-manager/azureactivedirectory/2020-03-01/privateendpointconnections/method_listbypolicyname.go @@ -23,6 +23,18 @@ type ListByPolicyNameCompleteResult struct { Items []PrivateEndpointConnection } +type ListByPolicyNameCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPolicyNameCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPolicyName ... func (c PrivateEndpointConnectionsClient) ListByPolicyName(ctx context.Context, id PrivateLinkForAzureAdId) (result ListByPolicyNameOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) ListByPolicyName(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPolicyNameCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread/method_list.go b/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread/method_list.go index 6255adccabe..0fc20b57985 100644 --- a/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread/method_list.go +++ b/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PrivateLinkPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkForAzureAdClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkForAzureAdClient) List(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AADIAM/privateLinkForAzureAd", id.ID()), } diff --git a/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread/method_listbysubscription.go b/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread/method_listbysubscription.go index 789e36b2507..7c97be433d9 100644 --- a/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread/method_listbysubscription.go +++ b/resource-manager/azureactivedirectory/2020-03-01/privatelinkforazuread/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PrivateLinkPolicy } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PrivateLinkForAzureAdClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkForAzureAdClient) ListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AADIAM/privateLinkForAzureAd", id.ID()), } diff --git a/resource-manager/azureactivedirectory/2020-03-01/privatelinkresources/method_listbyprivatelinkpolicy.go b/resource-manager/azureactivedirectory/2020-03-01/privatelinkresources/method_listbyprivatelinkpolicy.go index 7e40544bfe0..938a0d77c76 100644 --- a/resource-manager/azureactivedirectory/2020-03-01/privatelinkresources/method_listbyprivatelinkpolicy.go +++ b/resource-manager/azureactivedirectory/2020-03-01/privatelinkresources/method_listbyprivatelinkpolicy.go @@ -23,6 +23,18 @@ type ListByPrivateLinkPolicyCompleteResult struct { Items []PrivateLinkResource } +type ListByPrivateLinkPolicyCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPrivateLinkPolicyCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPrivateLinkPolicy ... func (c PrivateLinkResourcesClient) ListByPrivateLinkPolicy(ctx context.Context, id PrivateLinkForAzureAdId) (result ListByPrivateLinkPolicyOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) ListByPrivateLinkPolicy(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPrivateLinkPolicyCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingslistbycluster.go b/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingslistbycluster.go index 0f7b78cac60..6f8f90e080e 100644 --- a/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingslistbycluster.go +++ b/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingslistbycluster.go @@ -23,6 +23,18 @@ type ArcSettingsListByClusterCompleteResult struct { Items []ArcSetting } +type ArcSettingsListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ArcSettingsListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ArcSettingsListByCluster ... func (c ArcSettingsClient) ArcSettingsListByCluster(ctx context.Context, id ClusterId) (result ArcSettingsListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ArcSettingsClient) ArcSettingsListByCluster(ctx context.Context, id Clus http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ArcSettingsListByClusterCustomPager{}, Path: fmt.Sprintf("%s/arcSettings", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/clusters/method_listbyresourcegroup.go b/resource-manager/azurestackhci/2024-01-01/clusters/method_listbyresourcegroup.go index 25a4aafb3b0..c9f85285baa 100644 --- a/resource-manager/azurestackhci/2024-01-01/clusters/method_listbyresourcegroup.go +++ b/resource-manager/azurestackhci/2024-01-01/clusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/clusters", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/clusters/method_listbysubscription.go b/resource-manager/azurestackhci/2024-01-01/clusters/method_listbysubscription.go index d5c01af4e3b..406665c9518 100644 --- a/resource-manager/azurestackhci/2024-01-01/clusters/method_listbysubscription.go +++ b/resource-manager/azurestackhci/2024-01-01/clusters/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Cluster } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ClustersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/clusters", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/deploymentsettings/method_listbyclusters.go b/resource-manager/azurestackhci/2024-01-01/deploymentsettings/method_listbyclusters.go index 5d39a802be1..333bb67ae86 100644 --- a/resource-manager/azurestackhci/2024-01-01/deploymentsettings/method_listbyclusters.go +++ b/resource-manager/azurestackhci/2024-01-01/deploymentsettings/method_listbyclusters.go @@ -23,6 +23,18 @@ type ListByClustersCompleteResult struct { Items []DeploymentSetting } +type ListByClustersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClustersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByClusters ... func (c DeploymentSettingsClient) ListByClusters(ctx context.Context, id ClusterId) (result ListByClustersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeploymentSettingsClient) ListByClusters(ctx context.Context, id Cluster http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByClustersCustomPager{}, Path: fmt.Sprintf("%s/deploymentSettings", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/edgedevices/method_list.go b/resource-manager/azurestackhci/2024-01-01/edgedevices/method_list.go index b5f972df8d6..fa5f63eb568 100644 --- a/resource-manager/azurestackhci/2024-01-01/edgedevices/method_list.go +++ b/resource-manager/azurestackhci/2024-01-01/edgedevices/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []EdgeDevice } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EdgeDevicesClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EdgeDevicesClient) List(ctx context.Context, id commonids.ScopeId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/edgeDevices", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/extensions/method_listbyarcsetting.go b/resource-manager/azurestackhci/2024-01-01/extensions/method_listbyarcsetting.go index 6c94bd63434..50aee775161 100644 --- a/resource-manager/azurestackhci/2024-01-01/extensions/method_listbyarcsetting.go +++ b/resource-manager/azurestackhci/2024-01-01/extensions/method_listbyarcsetting.go @@ -23,6 +23,18 @@ type ListByArcSettingCompleteResult struct { Items []Extension } +type ListByArcSettingCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByArcSettingCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByArcSetting ... func (c ExtensionsClient) ListByArcSetting(ctx context.Context, id ArcSettingId) (result ListByArcSettingOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExtensionsClient) ListByArcSetting(ctx context.Context, id ArcSettingId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByArcSettingCustomPager{}, Path: fmt.Sprintf("%s/extensions", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/galleryimages/method_list.go b/resource-manager/azurestackhci/2024-01-01/galleryimages/method_list.go index 8da8215f32d..15927c15e59 100644 --- a/resource-manager/azurestackhci/2024-01-01/galleryimages/method_list.go +++ b/resource-manager/azurestackhci/2024-01-01/galleryimages/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []GalleryImages } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GalleryImagesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GalleryImagesClient) List(ctx context.Context, id commonids.ResourceGrou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/galleryImages", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/galleryimages/method_listall.go b/resource-manager/azurestackhci/2024-01-01/galleryimages/method_listall.go index 0b5adc2b9a9..c5486c894e7 100644 --- a/resource-manager/azurestackhci/2024-01-01/galleryimages/method_listall.go +++ b/resource-manager/azurestackhci/2024-01-01/galleryimages/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []GalleryImages } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c GalleryImagesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GalleryImagesClient) ListAll(ctx context.Context, id commonids.Subscript http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/galleryImages", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/guestagents/method_list.go b/resource-manager/azurestackhci/2024-01-01/guestagents/method_list.go index 710a26f4e67..f52fd490fd5 100644 --- a/resource-manager/azurestackhci/2024-01-01/guestagents/method_list.go +++ b/resource-manager/azurestackhci/2024-01-01/guestagents/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []GuestAgent } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GuestAgentsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GuestAgentsClient) List(ctx context.Context, id commonids.ScopeId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/method_list.go b/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/method_list.go index 1eefc364b8b..f586e90c583 100644 --- a/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/method_list.go +++ b/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []HybridIdentityMetadata } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c HybridIdentityMetadataClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HybridIdentityMetadataClient) List(ctx context.Context, id commonids.Sco http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/hybridIdentityMetadata", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/logicalnetworks/method_list.go b/resource-manager/azurestackhci/2024-01-01/logicalnetworks/method_list.go index 8f8473c5c68..a7fc7cd7eb6 100644 --- a/resource-manager/azurestackhci/2024-01-01/logicalnetworks/method_list.go +++ b/resource-manager/azurestackhci/2024-01-01/logicalnetworks/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []LogicalNetworks } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LogicalNetworksClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LogicalNetworksClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/logicalNetworks", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/logicalnetworks/method_listall.go b/resource-manager/azurestackhci/2024-01-01/logicalnetworks/method_listall.go index a4e6b3f3276..31ac44fa1ce 100644 --- a/resource-manager/azurestackhci/2024-01-01/logicalnetworks/method_listall.go +++ b/resource-manager/azurestackhci/2024-01-01/logicalnetworks/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []LogicalNetworks } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c LogicalNetworksClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LogicalNetworksClient) ListAll(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/logicalNetworks", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/method_list.go b/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/method_list.go index 176c0b55d76..c9fb86454ae 100644 --- a/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/method_list.go +++ b/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []MarketplaceGalleryImages } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MarketplaceGalleryImagesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MarketplaceGalleryImagesClient) List(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/method_listall.go b/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/method_listall.go index 35f93d61e12..1f1ac8ff73e 100644 --- a/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/method_listall.go +++ b/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []MarketplaceGalleryImages } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c MarketplaceGalleryImagesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MarketplaceGalleryImagesClient) ListAll(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/networkinterfaces/method_list.go b/resource-manager/azurestackhci/2024-01-01/networkinterfaces/method_list.go index 3debe57f35b..dc0f0cbad40 100644 --- a/resource-manager/azurestackhci/2024-01-01/networkinterfaces/method_list.go +++ b/resource-manager/azurestackhci/2024-01-01/networkinterfaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkInterfaces } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkInterfacesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) List(ctx context.Context, id commonids.Resource http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/networkInterfaces", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/networkinterfaces/method_listall.go b/resource-manager/azurestackhci/2024-01-01/networkinterfaces/method_listall.go index 859fd5caf3f..d3f8c05b292 100644 --- a/resource-manager/azurestackhci/2024-01-01/networkinterfaces/method_listall.go +++ b/resource-manager/azurestackhci/2024-01-01/networkinterfaces/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NetworkInterfaces } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NetworkInterfacesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) ListAll(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/networkInterfaces", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/offers/method_get.go b/resource-manager/azurestackhci/2024-01-01/offers/method_get.go index d23785a91f3..47730661e35 100644 --- a/resource-manager/azurestackhci/2024-01-01/offers/method_get.go +++ b/resource-manager/azurestackhci/2024-01-01/offers/method_get.go @@ -53,8 +53,8 @@ func (c OffersClient) Get(ctx context.Context, id OfferId, options GetOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/azurestackhci/2024-01-01/offers/method_listbycluster.go b/resource-manager/azurestackhci/2024-01-01/offers/method_listbycluster.go index 1076f33466b..00376abec4e 100644 --- a/resource-manager/azurestackhci/2024-01-01/offers/method_listbycluster.go +++ b/resource-manager/azurestackhci/2024-01-01/offers/method_listbycluster.go @@ -50,6 +50,18 @@ func (o ListByClusterOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCluster ... func (c OffersClient) ListByCluster(ctx context.Context, id ClusterId, options ListByClusterOperationOptions) (result ListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c OffersClient) ListByCluster(ctx context.Context, id ClusterId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/offers", id.ID()), OptionsObject: options, + Pager: &ListByClusterCustomPager{}, + Path: fmt.Sprintf("%s/offers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/azurestackhci/2024-01-01/offers/method_listbypublisher.go b/resource-manager/azurestackhci/2024-01-01/offers/method_listbypublisher.go index 1bc81e3f14a..8f4f58cf712 100644 --- a/resource-manager/azurestackhci/2024-01-01/offers/method_listbypublisher.go +++ b/resource-manager/azurestackhci/2024-01-01/offers/method_listbypublisher.go @@ -50,6 +50,18 @@ func (o ListByPublisherOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByPublisherCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPublisherCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPublisher ... func (c OffersClient) ListByPublisher(ctx context.Context, id PublisherId, options ListByPublisherOperationOptions) (result ListByPublisherOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c OffersClient) ListByPublisher(ctx context.Context, id PublisherId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/offers", id.ID()), OptionsObject: options, + Pager: &ListByPublisherCustomPager{}, + Path: fmt.Sprintf("%s/offers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/azurestackhci/2024-01-01/publishers/method_listbycluster.go b/resource-manager/azurestackhci/2024-01-01/publishers/method_listbycluster.go index a4bd21c4e16..6e8e64e60bc 100644 --- a/resource-manager/azurestackhci/2024-01-01/publishers/method_listbycluster.go +++ b/resource-manager/azurestackhci/2024-01-01/publishers/method_listbycluster.go @@ -23,6 +23,18 @@ type ListByClusterCompleteResult struct { Items []Publisher } +type ListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCluster ... func (c PublishersClient) ListByCluster(ctx context.Context, id ClusterId) (result ListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PublishersClient) ListByCluster(ctx context.Context, id ClusterId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByClusterCustomPager{}, Path: fmt.Sprintf("%s/publishers", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/securitysettings/method_listbyclusters.go b/resource-manager/azurestackhci/2024-01-01/securitysettings/method_listbyclusters.go index a4b961319c3..957fc1089f3 100644 --- a/resource-manager/azurestackhci/2024-01-01/securitysettings/method_listbyclusters.go +++ b/resource-manager/azurestackhci/2024-01-01/securitysettings/method_listbyclusters.go @@ -23,6 +23,18 @@ type ListByClustersCompleteResult struct { Items []SecuritySetting } +type ListByClustersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClustersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByClusters ... func (c SecuritySettingsClient) ListByClusters(ctx context.Context, id ClusterId) (result ListByClustersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SecuritySettingsClient) ListByClusters(ctx context.Context, id ClusterId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByClustersCustomPager{}, Path: fmt.Sprintf("%s/securitySettings", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/skuses/method_skusget.go b/resource-manager/azurestackhci/2024-01-01/skuses/method_skusget.go index 5ae2a348d5b..f33f165fcc3 100644 --- a/resource-manager/azurestackhci/2024-01-01/skuses/method_skusget.go +++ b/resource-manager/azurestackhci/2024-01-01/skuses/method_skusget.go @@ -53,8 +53,8 @@ func (c SkusesClient) SkusGet(ctx context.Context, id SkuId, options SkusGetOper http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/azurestackhci/2024-01-01/skuses/method_skuslistbyoffer.go b/resource-manager/azurestackhci/2024-01-01/skuses/method_skuslistbyoffer.go index 15bec015470..58d1602bf96 100644 --- a/resource-manager/azurestackhci/2024-01-01/skuses/method_skuslistbyoffer.go +++ b/resource-manager/azurestackhci/2024-01-01/skuses/method_skuslistbyoffer.go @@ -50,6 +50,18 @@ func (o SkusListByOfferOperationOptions) ToQuery() *client.QueryParams { return &out } +type SkusListByOfferCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SkusListByOfferCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SkusListByOffer ... func (c SkusesClient) SkusListByOffer(ctx context.Context, id OfferId, options SkusListByOfferOperationOptions) (result SkusListByOfferOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SkusesClient) SkusListByOffer(ctx context.Context, id OfferId, options S http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/skus", id.ID()), OptionsObject: options, + Pager: &SkusListByOfferCustomPager{}, + Path: fmt.Sprintf("%s/skus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/azurestackhci/2024-01-01/storagecontainers/method_list.go b/resource-manager/azurestackhci/2024-01-01/storagecontainers/method_list.go index eae8afc8903..b1252d6ee49 100644 --- a/resource-manager/azurestackhci/2024-01-01/storagecontainers/method_list.go +++ b/resource-manager/azurestackhci/2024-01-01/storagecontainers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []StorageContainers } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StorageContainersClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StorageContainersClient) List(ctx context.Context, id commonids.Resource http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/storageContainers", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/storagecontainers/method_listall.go b/resource-manager/azurestackhci/2024-01-01/storagecontainers/method_listall.go index c17baa4d6ba..ba78ae07b89 100644 --- a/resource-manager/azurestackhci/2024-01-01/storagecontainers/method_listall.go +++ b/resource-manager/azurestackhci/2024-01-01/storagecontainers/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []StorageContainers } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c StorageContainersClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StorageContainersClient) ListAll(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/storageContainers", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/updateruns/method_list.go b/resource-manager/azurestackhci/2024-01-01/updateruns/method_list.go index 01503f0ba47..c931166af73 100644 --- a/resource-manager/azurestackhci/2024-01-01/updateruns/method_list.go +++ b/resource-manager/azurestackhci/2024-01-01/updateruns/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []UpdateRun } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UpdateRunsClient) List(ctx context.Context, id UpdateId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UpdateRunsClient) List(ctx context.Context, id UpdateId) (result ListOpe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/updateRuns", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/updates/method_list.go b/resource-manager/azurestackhci/2024-01-01/updates/method_list.go index c9cf7ed0ff5..447a611086c 100644 --- a/resource-manager/azurestackhci/2024-01-01/updates/method_list.go +++ b/resource-manager/azurestackhci/2024-01-01/updates/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Update } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UpdatesClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UpdatesClient) List(ctx context.Context, id ClusterId) (result ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/updates", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/updatesummaries/method_list.go b/resource-manager/azurestackhci/2024-01-01/updatesummaries/method_list.go index 9b6aee70f14..79ebd856314 100644 --- a/resource-manager/azurestackhci/2024-01-01/updatesummaries/method_list.go +++ b/resource-manager/azurestackhci/2024-01-01/updatesummaries/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []UpdateSummaries } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UpdateSummariesClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UpdateSummariesClient) List(ctx context.Context, id ClusterId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/updateSummaries", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/virtualharddisks/method_list.go b/resource-manager/azurestackhci/2024-01-01/virtualharddisks/method_list.go index 0f3dbda9649..c6c074e9a79 100644 --- a/resource-manager/azurestackhci/2024-01-01/virtualharddisks/method_list.go +++ b/resource-manager/azurestackhci/2024-01-01/virtualharddisks/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualHardDisks } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualHardDisksClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualHardDisksClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/virtualHardDisks", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/virtualharddisks/method_listall.go b/resource-manager/azurestackhci/2024-01-01/virtualharddisks/method_listall.go index 555c178d877..99b96bc68aa 100644 --- a/resource-manager/azurestackhci/2024-01-01/virtualharddisks/method_listall.go +++ b/resource-manager/azurestackhci/2024-01-01/virtualharddisks/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []VirtualHardDisks } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualHardDisksClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualHardDisksClient) ListAll(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/virtualHardDisks", id.ID()), } diff --git a/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/method_list.go b/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/method_list.go index c577a7abbec..f85c91b14ee 100644 --- a/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/method_list.go +++ b/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualMachineInstance } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineInstancesClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineInstancesClient) List(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AzureStackHCI/virtualMachineInstances", id.ID()), } diff --git a/resource-manager/batch/2023-05-01/application/method_list.go b/resource-manager/batch/2023-05-01/application/method_list.go index 9173dba1106..ea47d96f097 100644 --- a/resource-manager/batch/2023-05-01/application/method_list.go +++ b/resource-manager/batch/2023-05-01/application/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationClient) List(ctx context.Context, id BatchAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ApplicationClient) List(ctx context.Context, id BatchAccountId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/applications", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/applications", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-05-01/applicationpackage/method_list.go b/resource-manager/batch/2023-05-01/applicationpackage/method_list.go index 94f4d0e9896..4283d8928c6 100644 --- a/resource-manager/batch/2023-05-01/applicationpackage/method_list.go +++ b/resource-manager/batch/2023-05-01/applicationpackage/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationPackageClient) List(ctx context.Context, id ApplicationId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ApplicationPackageClient) List(ctx context.Context, id ApplicationId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-05-01/batchaccount/method_list.go b/resource-manager/batch/2023-05-01/batchaccount/method_list.go index 4632b1db37b..943c7136da5 100644 --- a/resource-manager/batch/2023-05-01/batchaccount/method_list.go +++ b/resource-manager/batch/2023-05-01/batchaccount/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BatchAccount } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BatchAccountClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BatchAccountClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Batch/batchAccounts", id.ID()), } diff --git a/resource-manager/batch/2023-05-01/batchaccount/method_listbyresourcegroup.go b/resource-manager/batch/2023-05-01/batchaccount/method_listbyresourcegroup.go index 81ad265b0c3..7fd56b0a473 100644 --- a/resource-manager/batch/2023-05-01/batchaccount/method_listbyresourcegroup.go +++ b/resource-manager/batch/2023-05-01/batchaccount/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []BatchAccount } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c BatchAccountClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BatchAccountClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Batch/batchAccounts", id.ID()), } diff --git a/resource-manager/batch/2023-05-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go b/resource-manager/batch/2023-05-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go index f2c2875626d..5fc750bff53 100644 --- a/resource-manager/batch/2023-05-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/batch/2023-05-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go @@ -23,6 +23,18 @@ type ListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesEndpoints ... func (c BatchAccountClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, id BatchAccountId) (result ListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BatchAccountClient) ListOutboundNetworkDependenciesEndpoints(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/batch/2023-05-01/batchmanagements/method_batchaccountlistdetectors.go b/resource-manager/batch/2023-05-01/batchmanagements/method_batchaccountlistdetectors.go index 0e98c37a19f..fc4fca4848a 100644 --- a/resource-manager/batch/2023-05-01/batchmanagements/method_batchaccountlistdetectors.go +++ b/resource-manager/batch/2023-05-01/batchmanagements/method_batchaccountlistdetectors.go @@ -23,6 +23,18 @@ type BatchAccountListDetectorsCompleteResult struct { Items []DetectorResponse } +type BatchAccountListDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BatchAccountListDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BatchAccountListDetectors ... func (c BatchManagementsClient) BatchAccountListDetectors(ctx context.Context, id BatchAccountId) (result BatchAccountListDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BatchManagementsClient) BatchAccountListDetectors(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BatchAccountListDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/batch/2023-05-01/certificate/method_create.go b/resource-manager/batch/2023-05-01/certificate/method_create.go index 47c406ced4e..bbbc2c0757c 100644 --- a/resource-manager/batch/2023-05-01/certificate/method_create.go +++ b/resource-manager/batch/2023-05-01/certificate/method_create.go @@ -57,8 +57,8 @@ func (c CertificateClient) Create(ctx context.Context, id CertificateId, input C http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-05-01/certificate/method_listbybatchaccount.go b/resource-manager/batch/2023-05-01/certificate/method_listbybatchaccount.go index 212ec5dd0aa..287d5fc9781 100644 --- a/resource-manager/batch/2023-05-01/certificate/method_listbybatchaccount.go +++ b/resource-manager/batch/2023-05-01/certificate/method_listbybatchaccount.go @@ -58,6 +58,18 @@ func (o ListByBatchAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBatchAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBatchAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBatchAccount ... func (c CertificateClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, options ListByBatchAccountOperationOptions) (result ListByBatchAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c CertificateClient) ListByBatchAccount(ctx context.Context, id BatchAccou http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/certificates", id.ID()), OptionsObject: options, + Pager: &ListByBatchAccountCustomPager{}, + Path: fmt.Sprintf("%s/certificates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-05-01/certificate/method_update.go b/resource-manager/batch/2023-05-01/certificate/method_update.go index 0532d6c644d..1977e470b49 100644 --- a/resource-manager/batch/2023-05-01/certificate/method_update.go +++ b/resource-manager/batch/2023-05-01/certificate/method_update.go @@ -53,8 +53,8 @@ func (c CertificateClient) Update(ctx context.Context, id CertificateId, input C http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-05-01/location/method_listsupportedcloudserviceskus.go b/resource-manager/batch/2023-05-01/location/method_listsupportedcloudserviceskus.go index 3a85241482f..45deac379b4 100644 --- a/resource-manager/batch/2023-05-01/location/method_listsupportedcloudserviceskus.go +++ b/resource-manager/batch/2023-05-01/location/method_listsupportedcloudserviceskus.go @@ -54,6 +54,18 @@ func (o ListSupportedCloudServiceSkusOperationOptions) ToQuery() *client.QueryPa return &out } +type ListSupportedCloudServiceSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSupportedCloudServiceSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSupportedCloudServiceSkus ... func (c LocationClient) ListSupportedCloudServiceSkus(ctx context.Context, id LocationId, options ListSupportedCloudServiceSkusOperationOptions) (result ListSupportedCloudServiceSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LocationClient) ListSupportedCloudServiceSkus(ctx context.Context, id Lo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/cloudServiceSkus", id.ID()), OptionsObject: options, + Pager: &ListSupportedCloudServiceSkusCustomPager{}, + Path: fmt.Sprintf("%s/cloudServiceSkus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-05-01/location/method_listsupportedvirtualmachineskus.go b/resource-manager/batch/2023-05-01/location/method_listsupportedvirtualmachineskus.go index f5b18b147f9..be5b08e29ed 100644 --- a/resource-manager/batch/2023-05-01/location/method_listsupportedvirtualmachineskus.go +++ b/resource-manager/batch/2023-05-01/location/method_listsupportedvirtualmachineskus.go @@ -54,6 +54,18 @@ func (o ListSupportedVirtualMachineSkusOperationOptions) ToQuery() *client.Query return &out } +type ListSupportedVirtualMachineSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSupportedVirtualMachineSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSupportedVirtualMachineSkus ... func (c LocationClient) ListSupportedVirtualMachineSkus(ctx context.Context, id LocationId, options ListSupportedVirtualMachineSkusOperationOptions) (result ListSupportedVirtualMachineSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LocationClient) ListSupportedVirtualMachineSkus(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/virtualMachineSkus", id.ID()), OptionsObject: options, + Pager: &ListSupportedVirtualMachineSkusCustomPager{}, + Path: fmt.Sprintf("%s/virtualMachineSkus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-05-01/pool/method_create.go b/resource-manager/batch/2023-05-01/pool/method_create.go index 794bcc131d1..8c732d52df0 100644 --- a/resource-manager/batch/2023-05-01/pool/method_create.go +++ b/resource-manager/batch/2023-05-01/pool/method_create.go @@ -57,8 +57,8 @@ func (c PoolClient) Create(ctx context.Context, id PoolId, input Pool, options C http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-05-01/pool/method_listbybatchaccount.go b/resource-manager/batch/2023-05-01/pool/method_listbybatchaccount.go index 9676c7db141..a3590d663af 100644 --- a/resource-manager/batch/2023-05-01/pool/method_listbybatchaccount.go +++ b/resource-manager/batch/2023-05-01/pool/method_listbybatchaccount.go @@ -58,6 +58,18 @@ func (o ListByBatchAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBatchAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBatchAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBatchAccount ... func (c PoolClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, options ListByBatchAccountOperationOptions) (result ListByBatchAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c PoolClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/pools", id.ID()), OptionsObject: options, + Pager: &ListByBatchAccountCustomPager{}, + Path: fmt.Sprintf("%s/pools", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-05-01/pool/method_update.go b/resource-manager/batch/2023-05-01/pool/method_update.go index 275122325d9..fbbb607783e 100644 --- a/resource-manager/batch/2023-05-01/pool/method_update.go +++ b/resource-manager/batch/2023-05-01/pool/method_update.go @@ -53,8 +53,8 @@ func (c PoolClient) Update(ctx context.Context, id PoolId, input Pool, options U http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-05-01/privateendpointconnection/method_listbybatchaccount.go b/resource-manager/batch/2023-05-01/privateendpointconnection/method_listbybatchaccount.go index 7dabb26d57a..ff65bcec30f 100644 --- a/resource-manager/batch/2023-05-01/privateendpointconnection/method_listbybatchaccount.go +++ b/resource-manager/batch/2023-05-01/privateendpointconnection/method_listbybatchaccount.go @@ -50,6 +50,18 @@ func (o ListByBatchAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBatchAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBatchAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBatchAccount ... func (c PrivateEndpointConnectionClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, options ListByBatchAccountOperationOptions) (result ListByBatchAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c PrivateEndpointConnectionClient) ListByBatchAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), OptionsObject: options, + Pager: &ListByBatchAccountCustomPager{}, + Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-05-01/privateendpointconnection/method_update.go b/resource-manager/batch/2023-05-01/privateendpointconnection/method_update.go index ab33dd5f8b9..f92a9e21504 100644 --- a/resource-manager/batch/2023-05-01/privateendpointconnection/method_update.go +++ b/resource-manager/batch/2023-05-01/privateendpointconnection/method_update.go @@ -57,8 +57,8 @@ func (c PrivateEndpointConnectionClient) Update(ctx context.Context, id PrivateE http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-05-01/privatelinkresource/method_listbybatchaccount.go b/resource-manager/batch/2023-05-01/privatelinkresource/method_listbybatchaccount.go index d135027ecbb..a5c4f91b508 100644 --- a/resource-manager/batch/2023-05-01/privatelinkresource/method_listbybatchaccount.go +++ b/resource-manager/batch/2023-05-01/privatelinkresource/method_listbybatchaccount.go @@ -50,6 +50,18 @@ func (o ListByBatchAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBatchAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBatchAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBatchAccount ... func (c PrivateLinkResourceClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, options ListByBatchAccountOperationOptions) (result ListByBatchAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c PrivateLinkResourceClient) ListByBatchAccount(ctx context.Context, id Ba http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), OptionsObject: options, + Pager: &ListByBatchAccountCustomPager{}, + Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-11-01/application/method_list.go b/resource-manager/batch/2023-11-01/application/method_list.go index 9173dba1106..ea47d96f097 100644 --- a/resource-manager/batch/2023-11-01/application/method_list.go +++ b/resource-manager/batch/2023-11-01/application/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationClient) List(ctx context.Context, id BatchAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ApplicationClient) List(ctx context.Context, id BatchAccountId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/applications", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/applications", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-11-01/applicationpackage/method_list.go b/resource-manager/batch/2023-11-01/applicationpackage/method_list.go index 94f4d0e9896..4283d8928c6 100644 --- a/resource-manager/batch/2023-11-01/applicationpackage/method_list.go +++ b/resource-manager/batch/2023-11-01/applicationpackage/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationPackageClient) List(ctx context.Context, id ApplicationId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ApplicationPackageClient) List(ctx context.Context, id ApplicationId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-11-01/batchaccount/method_list.go b/resource-manager/batch/2023-11-01/batchaccount/method_list.go index 4632b1db37b..943c7136da5 100644 --- a/resource-manager/batch/2023-11-01/batchaccount/method_list.go +++ b/resource-manager/batch/2023-11-01/batchaccount/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BatchAccount } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BatchAccountClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BatchAccountClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Batch/batchAccounts", id.ID()), } diff --git a/resource-manager/batch/2023-11-01/batchaccount/method_listbyresourcegroup.go b/resource-manager/batch/2023-11-01/batchaccount/method_listbyresourcegroup.go index 81ad265b0c3..7fd56b0a473 100644 --- a/resource-manager/batch/2023-11-01/batchaccount/method_listbyresourcegroup.go +++ b/resource-manager/batch/2023-11-01/batchaccount/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []BatchAccount } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c BatchAccountClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BatchAccountClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Batch/batchAccounts", id.ID()), } diff --git a/resource-manager/batch/2023-11-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go b/resource-manager/batch/2023-11-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go index f2c2875626d..5fc750bff53 100644 --- a/resource-manager/batch/2023-11-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/batch/2023-11-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go @@ -23,6 +23,18 @@ type ListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesEndpoints ... func (c BatchAccountClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, id BatchAccountId) (result ListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BatchAccountClient) ListOutboundNetworkDependenciesEndpoints(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/batch/2023-11-01/batchmanagements/method_batchaccountlistdetectors.go b/resource-manager/batch/2023-11-01/batchmanagements/method_batchaccountlistdetectors.go index 0e98c37a19f..fc4fca4848a 100644 --- a/resource-manager/batch/2023-11-01/batchmanagements/method_batchaccountlistdetectors.go +++ b/resource-manager/batch/2023-11-01/batchmanagements/method_batchaccountlistdetectors.go @@ -23,6 +23,18 @@ type BatchAccountListDetectorsCompleteResult struct { Items []DetectorResponse } +type BatchAccountListDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BatchAccountListDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BatchAccountListDetectors ... func (c BatchManagementsClient) BatchAccountListDetectors(ctx context.Context, id BatchAccountId) (result BatchAccountListDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BatchManagementsClient) BatchAccountListDetectors(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BatchAccountListDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/batch/2023-11-01/certificate/method_create.go b/resource-manager/batch/2023-11-01/certificate/method_create.go index 47c406ced4e..bbbc2c0757c 100644 --- a/resource-manager/batch/2023-11-01/certificate/method_create.go +++ b/resource-manager/batch/2023-11-01/certificate/method_create.go @@ -57,8 +57,8 @@ func (c CertificateClient) Create(ctx context.Context, id CertificateId, input C http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-11-01/certificate/method_listbybatchaccount.go b/resource-manager/batch/2023-11-01/certificate/method_listbybatchaccount.go index 212ec5dd0aa..287d5fc9781 100644 --- a/resource-manager/batch/2023-11-01/certificate/method_listbybatchaccount.go +++ b/resource-manager/batch/2023-11-01/certificate/method_listbybatchaccount.go @@ -58,6 +58,18 @@ func (o ListByBatchAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBatchAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBatchAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBatchAccount ... func (c CertificateClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, options ListByBatchAccountOperationOptions) (result ListByBatchAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c CertificateClient) ListByBatchAccount(ctx context.Context, id BatchAccou http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/certificates", id.ID()), OptionsObject: options, + Pager: &ListByBatchAccountCustomPager{}, + Path: fmt.Sprintf("%s/certificates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-11-01/certificate/method_update.go b/resource-manager/batch/2023-11-01/certificate/method_update.go index 0532d6c644d..1977e470b49 100644 --- a/resource-manager/batch/2023-11-01/certificate/method_update.go +++ b/resource-manager/batch/2023-11-01/certificate/method_update.go @@ -53,8 +53,8 @@ func (c CertificateClient) Update(ctx context.Context, id CertificateId, input C http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-11-01/location/method_listsupportedcloudserviceskus.go b/resource-manager/batch/2023-11-01/location/method_listsupportedcloudserviceskus.go index 3a85241482f..45deac379b4 100644 --- a/resource-manager/batch/2023-11-01/location/method_listsupportedcloudserviceskus.go +++ b/resource-manager/batch/2023-11-01/location/method_listsupportedcloudserviceskus.go @@ -54,6 +54,18 @@ func (o ListSupportedCloudServiceSkusOperationOptions) ToQuery() *client.QueryPa return &out } +type ListSupportedCloudServiceSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSupportedCloudServiceSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSupportedCloudServiceSkus ... func (c LocationClient) ListSupportedCloudServiceSkus(ctx context.Context, id LocationId, options ListSupportedCloudServiceSkusOperationOptions) (result ListSupportedCloudServiceSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LocationClient) ListSupportedCloudServiceSkus(ctx context.Context, id Lo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/cloudServiceSkus", id.ID()), OptionsObject: options, + Pager: &ListSupportedCloudServiceSkusCustomPager{}, + Path: fmt.Sprintf("%s/cloudServiceSkus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-11-01/location/method_listsupportedvirtualmachineskus.go b/resource-manager/batch/2023-11-01/location/method_listsupportedvirtualmachineskus.go index f5b18b147f9..be5b08e29ed 100644 --- a/resource-manager/batch/2023-11-01/location/method_listsupportedvirtualmachineskus.go +++ b/resource-manager/batch/2023-11-01/location/method_listsupportedvirtualmachineskus.go @@ -54,6 +54,18 @@ func (o ListSupportedVirtualMachineSkusOperationOptions) ToQuery() *client.Query return &out } +type ListSupportedVirtualMachineSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSupportedVirtualMachineSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSupportedVirtualMachineSkus ... func (c LocationClient) ListSupportedVirtualMachineSkus(ctx context.Context, id LocationId, options ListSupportedVirtualMachineSkusOperationOptions) (result ListSupportedVirtualMachineSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LocationClient) ListSupportedVirtualMachineSkus(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/virtualMachineSkus", id.ID()), OptionsObject: options, + Pager: &ListSupportedVirtualMachineSkusCustomPager{}, + Path: fmt.Sprintf("%s/virtualMachineSkus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-11-01/pool/method_create.go b/resource-manager/batch/2023-11-01/pool/method_create.go index 794bcc131d1..8c732d52df0 100644 --- a/resource-manager/batch/2023-11-01/pool/method_create.go +++ b/resource-manager/batch/2023-11-01/pool/method_create.go @@ -57,8 +57,8 @@ func (c PoolClient) Create(ctx context.Context, id PoolId, input Pool, options C http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-11-01/pool/method_listbybatchaccount.go b/resource-manager/batch/2023-11-01/pool/method_listbybatchaccount.go index 9676c7db141..a3590d663af 100644 --- a/resource-manager/batch/2023-11-01/pool/method_listbybatchaccount.go +++ b/resource-manager/batch/2023-11-01/pool/method_listbybatchaccount.go @@ -58,6 +58,18 @@ func (o ListByBatchAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBatchAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBatchAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBatchAccount ... func (c PoolClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, options ListByBatchAccountOperationOptions) (result ListByBatchAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c PoolClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/pools", id.ID()), OptionsObject: options, + Pager: &ListByBatchAccountCustomPager{}, + Path: fmt.Sprintf("%s/pools", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-11-01/pool/method_update.go b/resource-manager/batch/2023-11-01/pool/method_update.go index 275122325d9..fbbb607783e 100644 --- a/resource-manager/batch/2023-11-01/pool/method_update.go +++ b/resource-manager/batch/2023-11-01/pool/method_update.go @@ -53,8 +53,8 @@ func (c PoolClient) Update(ctx context.Context, id PoolId, input Pool, options U http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-11-01/privateendpointconnection/method_listbybatchaccount.go b/resource-manager/batch/2023-11-01/privateendpointconnection/method_listbybatchaccount.go index 7dabb26d57a..ff65bcec30f 100644 --- a/resource-manager/batch/2023-11-01/privateendpointconnection/method_listbybatchaccount.go +++ b/resource-manager/batch/2023-11-01/privateendpointconnection/method_listbybatchaccount.go @@ -50,6 +50,18 @@ func (o ListByBatchAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBatchAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBatchAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBatchAccount ... func (c PrivateEndpointConnectionClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, options ListByBatchAccountOperationOptions) (result ListByBatchAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c PrivateEndpointConnectionClient) ListByBatchAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), OptionsObject: options, + Pager: &ListByBatchAccountCustomPager{}, + Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-11-01/privateendpointconnection/method_update.go b/resource-manager/batch/2023-11-01/privateendpointconnection/method_update.go index ab33dd5f8b9..f92a9e21504 100644 --- a/resource-manager/batch/2023-11-01/privateendpointconnection/method_update.go +++ b/resource-manager/batch/2023-11-01/privateendpointconnection/method_update.go @@ -57,8 +57,8 @@ func (c PrivateEndpointConnectionClient) Update(ctx context.Context, id PrivateE http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2023-11-01/privatelinkresource/method_listbybatchaccount.go b/resource-manager/batch/2023-11-01/privatelinkresource/method_listbybatchaccount.go index d135027ecbb..a5c4f91b508 100644 --- a/resource-manager/batch/2023-11-01/privatelinkresource/method_listbybatchaccount.go +++ b/resource-manager/batch/2023-11-01/privatelinkresource/method_listbybatchaccount.go @@ -50,6 +50,18 @@ func (o ListByBatchAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBatchAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBatchAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBatchAccount ... func (c PrivateLinkResourceClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, options ListByBatchAccountOperationOptions) (result ListByBatchAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c PrivateLinkResourceClient) ListByBatchAccount(ctx context.Context, id Ba http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), OptionsObject: options, + Pager: &ListByBatchAccountCustomPager{}, + Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2024-02-01/application/method_list.go b/resource-manager/batch/2024-02-01/application/method_list.go index 9173dba1106..ea47d96f097 100644 --- a/resource-manager/batch/2024-02-01/application/method_list.go +++ b/resource-manager/batch/2024-02-01/application/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationClient) List(ctx context.Context, id BatchAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ApplicationClient) List(ctx context.Context, id BatchAccountId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/applications", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/applications", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2024-02-01/applicationpackage/method_list.go b/resource-manager/batch/2024-02-01/applicationpackage/method_list.go index 94f4d0e9896..4283d8928c6 100644 --- a/resource-manager/batch/2024-02-01/applicationpackage/method_list.go +++ b/resource-manager/batch/2024-02-01/applicationpackage/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationPackageClient) List(ctx context.Context, id ApplicationId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ApplicationPackageClient) List(ctx context.Context, id ApplicationId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2024-02-01/batchaccount/method_list.go b/resource-manager/batch/2024-02-01/batchaccount/method_list.go index 4632b1db37b..943c7136da5 100644 --- a/resource-manager/batch/2024-02-01/batchaccount/method_list.go +++ b/resource-manager/batch/2024-02-01/batchaccount/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BatchAccount } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BatchAccountClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BatchAccountClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Batch/batchAccounts", id.ID()), } diff --git a/resource-manager/batch/2024-02-01/batchaccount/method_listbyresourcegroup.go b/resource-manager/batch/2024-02-01/batchaccount/method_listbyresourcegroup.go index 81ad265b0c3..7fd56b0a473 100644 --- a/resource-manager/batch/2024-02-01/batchaccount/method_listbyresourcegroup.go +++ b/resource-manager/batch/2024-02-01/batchaccount/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []BatchAccount } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c BatchAccountClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BatchAccountClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Batch/batchAccounts", id.ID()), } diff --git a/resource-manager/batch/2024-02-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go b/resource-manager/batch/2024-02-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go index f2c2875626d..5fc750bff53 100644 --- a/resource-manager/batch/2024-02-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/batch/2024-02-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go @@ -23,6 +23,18 @@ type ListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesEndpoints ... func (c BatchAccountClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, id BatchAccountId) (result ListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BatchAccountClient) ListOutboundNetworkDependenciesEndpoints(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/batch/2024-02-01/batchmanagements/method_batchaccountlistdetectors.go b/resource-manager/batch/2024-02-01/batchmanagements/method_batchaccountlistdetectors.go index 0e98c37a19f..fc4fca4848a 100644 --- a/resource-manager/batch/2024-02-01/batchmanagements/method_batchaccountlistdetectors.go +++ b/resource-manager/batch/2024-02-01/batchmanagements/method_batchaccountlistdetectors.go @@ -23,6 +23,18 @@ type BatchAccountListDetectorsCompleteResult struct { Items []DetectorResponse } +type BatchAccountListDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BatchAccountListDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BatchAccountListDetectors ... func (c BatchManagementsClient) BatchAccountListDetectors(ctx context.Context, id BatchAccountId) (result BatchAccountListDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BatchManagementsClient) BatchAccountListDetectors(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BatchAccountListDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/batch/2024-02-01/certificate/method_create.go b/resource-manager/batch/2024-02-01/certificate/method_create.go index 47c406ced4e..bbbc2c0757c 100644 --- a/resource-manager/batch/2024-02-01/certificate/method_create.go +++ b/resource-manager/batch/2024-02-01/certificate/method_create.go @@ -57,8 +57,8 @@ func (c CertificateClient) Create(ctx context.Context, id CertificateId, input C http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2024-02-01/certificate/method_listbybatchaccount.go b/resource-manager/batch/2024-02-01/certificate/method_listbybatchaccount.go index 212ec5dd0aa..287d5fc9781 100644 --- a/resource-manager/batch/2024-02-01/certificate/method_listbybatchaccount.go +++ b/resource-manager/batch/2024-02-01/certificate/method_listbybatchaccount.go @@ -58,6 +58,18 @@ func (o ListByBatchAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBatchAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBatchAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBatchAccount ... func (c CertificateClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, options ListByBatchAccountOperationOptions) (result ListByBatchAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c CertificateClient) ListByBatchAccount(ctx context.Context, id BatchAccou http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/certificates", id.ID()), OptionsObject: options, + Pager: &ListByBatchAccountCustomPager{}, + Path: fmt.Sprintf("%s/certificates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2024-02-01/certificate/method_update.go b/resource-manager/batch/2024-02-01/certificate/method_update.go index 0532d6c644d..1977e470b49 100644 --- a/resource-manager/batch/2024-02-01/certificate/method_update.go +++ b/resource-manager/batch/2024-02-01/certificate/method_update.go @@ -53,8 +53,8 @@ func (c CertificateClient) Update(ctx context.Context, id CertificateId, input C http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2024-02-01/location/method_listsupportedcloudserviceskus.go b/resource-manager/batch/2024-02-01/location/method_listsupportedcloudserviceskus.go index 3a85241482f..45deac379b4 100644 --- a/resource-manager/batch/2024-02-01/location/method_listsupportedcloudserviceskus.go +++ b/resource-manager/batch/2024-02-01/location/method_listsupportedcloudserviceskus.go @@ -54,6 +54,18 @@ func (o ListSupportedCloudServiceSkusOperationOptions) ToQuery() *client.QueryPa return &out } +type ListSupportedCloudServiceSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSupportedCloudServiceSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSupportedCloudServiceSkus ... func (c LocationClient) ListSupportedCloudServiceSkus(ctx context.Context, id LocationId, options ListSupportedCloudServiceSkusOperationOptions) (result ListSupportedCloudServiceSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LocationClient) ListSupportedCloudServiceSkus(ctx context.Context, id Lo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/cloudServiceSkus", id.ID()), OptionsObject: options, + Pager: &ListSupportedCloudServiceSkusCustomPager{}, + Path: fmt.Sprintf("%s/cloudServiceSkus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2024-02-01/location/method_listsupportedvirtualmachineskus.go b/resource-manager/batch/2024-02-01/location/method_listsupportedvirtualmachineskus.go index f5b18b147f9..be5b08e29ed 100644 --- a/resource-manager/batch/2024-02-01/location/method_listsupportedvirtualmachineskus.go +++ b/resource-manager/batch/2024-02-01/location/method_listsupportedvirtualmachineskus.go @@ -54,6 +54,18 @@ func (o ListSupportedVirtualMachineSkusOperationOptions) ToQuery() *client.Query return &out } +type ListSupportedVirtualMachineSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSupportedVirtualMachineSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSupportedVirtualMachineSkus ... func (c LocationClient) ListSupportedVirtualMachineSkus(ctx context.Context, id LocationId, options ListSupportedVirtualMachineSkusOperationOptions) (result ListSupportedVirtualMachineSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LocationClient) ListSupportedVirtualMachineSkus(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/virtualMachineSkus", id.ID()), OptionsObject: options, + Pager: &ListSupportedVirtualMachineSkusCustomPager{}, + Path: fmt.Sprintf("%s/virtualMachineSkus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2024-02-01/pool/method_create.go b/resource-manager/batch/2024-02-01/pool/method_create.go index 794bcc131d1..8c732d52df0 100644 --- a/resource-manager/batch/2024-02-01/pool/method_create.go +++ b/resource-manager/batch/2024-02-01/pool/method_create.go @@ -57,8 +57,8 @@ func (c PoolClient) Create(ctx context.Context, id PoolId, input Pool, options C http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2024-02-01/pool/method_listbybatchaccount.go b/resource-manager/batch/2024-02-01/pool/method_listbybatchaccount.go index 9676c7db141..a3590d663af 100644 --- a/resource-manager/batch/2024-02-01/pool/method_listbybatchaccount.go +++ b/resource-manager/batch/2024-02-01/pool/method_listbybatchaccount.go @@ -58,6 +58,18 @@ func (o ListByBatchAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBatchAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBatchAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBatchAccount ... func (c PoolClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, options ListByBatchAccountOperationOptions) (result ListByBatchAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c PoolClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/pools", id.ID()), OptionsObject: options, + Pager: &ListByBatchAccountCustomPager{}, + Path: fmt.Sprintf("%s/pools", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2024-02-01/pool/method_update.go b/resource-manager/batch/2024-02-01/pool/method_update.go index 275122325d9..fbbb607783e 100644 --- a/resource-manager/batch/2024-02-01/pool/method_update.go +++ b/resource-manager/batch/2024-02-01/pool/method_update.go @@ -53,8 +53,8 @@ func (c PoolClient) Update(ctx context.Context, id PoolId, input Pool, options U http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2024-02-01/privateendpointconnection/method_listbybatchaccount.go b/resource-manager/batch/2024-02-01/privateendpointconnection/method_listbybatchaccount.go index 7dabb26d57a..ff65bcec30f 100644 --- a/resource-manager/batch/2024-02-01/privateendpointconnection/method_listbybatchaccount.go +++ b/resource-manager/batch/2024-02-01/privateendpointconnection/method_listbybatchaccount.go @@ -50,6 +50,18 @@ func (o ListByBatchAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBatchAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBatchAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBatchAccount ... func (c PrivateEndpointConnectionClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, options ListByBatchAccountOperationOptions) (result ListByBatchAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c PrivateEndpointConnectionClient) ListByBatchAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), OptionsObject: options, + Pager: &ListByBatchAccountCustomPager{}, + Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2024-02-01/privateendpointconnection/method_update.go b/resource-manager/batch/2024-02-01/privateendpointconnection/method_update.go index ab33dd5f8b9..f92a9e21504 100644 --- a/resource-manager/batch/2024-02-01/privateendpointconnection/method_update.go +++ b/resource-manager/batch/2024-02-01/privateendpointconnection/method_update.go @@ -57,8 +57,8 @@ func (c PrivateEndpointConnectionClient) Update(ctx context.Context, id PrivateE http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/batch/2024-02-01/privatelinkresource/method_listbybatchaccount.go b/resource-manager/batch/2024-02-01/privatelinkresource/method_listbybatchaccount.go index d135027ecbb..a5c4f91b508 100644 --- a/resource-manager/batch/2024-02-01/privatelinkresource/method_listbybatchaccount.go +++ b/resource-manager/batch/2024-02-01/privatelinkresource/method_listbybatchaccount.go @@ -50,6 +50,18 @@ func (o ListByBatchAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBatchAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBatchAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBatchAccount ... func (c PrivateLinkResourceClient) ListByBatchAccount(ctx context.Context, id BatchAccountId, options ListByBatchAccountOperationOptions) (result ListByBatchAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c PrivateLinkResourceClient) ListByBatchAccount(ctx context.Context, id Ba http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), OptionsObject: options, + Pager: &ListByBatchAccountCustomPager{}, + Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/agreements/method_get.go b/resource-manager/billing/2019-10-01-preview/agreements/method_get.go index 480e40c562e..acb7951a8ab 100644 --- a/resource-manager/billing/2019-10-01-preview/agreements/method_get.go +++ b/resource-manager/billing/2019-10-01-preview/agreements/method_get.go @@ -53,8 +53,8 @@ func (c AgreementsClient) Get(ctx context.Context, id AgreementId, options GetOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/agreements/method_listbybillingaccount.go b/resource-manager/billing/2019-10-01-preview/agreements/method_listbybillingaccount.go index 7e67b66efde..abd7419ba69 100644 --- a/resource-manager/billing/2019-10-01-preview/agreements/method_listbybillingaccount.go +++ b/resource-manager/billing/2019-10-01-preview/agreements/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c AgreementsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c AgreementsClient) ListByBillingAccount(ctx context.Context, id BillingAc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/agreements", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/agreements", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/billingaccounts/method_get.go b/resource-manager/billing/2019-10-01-preview/billingaccounts/method_get.go index 12754e93040..523444c582c 100644 --- a/resource-manager/billing/2019-10-01-preview/billingaccounts/method_get.go +++ b/resource-manager/billing/2019-10-01-preview/billingaccounts/method_get.go @@ -53,8 +53,8 @@ func (c BillingAccountsClient) Get(ctx context.Context, id BillingAccountId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/billingaccounts/method_list.go b/resource-manager/billing/2019-10-01-preview/billingaccounts/method_list.go index 219355cb5bb..0f7c7268ccc 100644 --- a/resource-manager/billing/2019-10-01-preview/billingaccounts/method_list.go +++ b/resource-manager/billing/2019-10-01-preview/billingaccounts/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BillingAccountsClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c BillingAccountsClient) List(ctx context.Context, options ListOperationOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Billing/billingAccounts", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.Billing/billingAccounts", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/billingaccounts/method_listinvoicesectionsbycreatesubscriptionpermission.go b/resource-manager/billing/2019-10-01-preview/billingaccounts/method_listinvoicesectionsbycreatesubscriptionpermission.go index 7601f4b0c74..2d788e382d2 100644 --- a/resource-manager/billing/2019-10-01-preview/billingaccounts/method_listinvoicesectionsbycreatesubscriptionpermission.go +++ b/resource-manager/billing/2019-10-01-preview/billingaccounts/method_listinvoicesectionsbycreatesubscriptionpermission.go @@ -23,6 +23,18 @@ type ListInvoiceSectionsByCreateSubscriptionPermissionCompleteResult struct { Items []InvoiceSectionWithCreateSubPermission } +type ListInvoiceSectionsByCreateSubscriptionPermissionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInvoiceSectionsByCreateSubscriptionPermissionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInvoiceSectionsByCreateSubscriptionPermission ... func (c BillingAccountsClient) ListInvoiceSectionsByCreateSubscriptionPermission(ctx context.Context, id BillingAccountId) (result ListInvoiceSectionsByCreateSubscriptionPermissionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingAccountsClient) ListInvoiceSectionsByCreateSubscriptionPermission http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListInvoiceSectionsByCreateSubscriptionPermissionCustomPager{}, Path: fmt.Sprintf("%s/listInvoiceSectionsWithCreateSubscriptionPermission", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbybillingaccount.go b/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbybillingaccount.go index 5813935c561..70d44e3d604 100644 --- a/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbybillingaccount.go +++ b/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []BillingPermissionsProperties } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingPermissionsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionsClient) ListByBillingAccount(ctx context.Context, id B http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbybillingprofile.go b/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbybillingprofile.go index 26d97615f01..b04c29963fb 100644 --- a/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbybillingprofile.go +++ b/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []BillingPermissionsProperties } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c BillingPermissionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionsClient) ListByBillingProfile(ctx context.Context, id B http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbycustomer.go b/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbycustomer.go index c1b08ad96cd..4747e015185 100644 --- a/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbycustomer.go +++ b/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbycustomer.go @@ -23,6 +23,18 @@ type ListByCustomerCompleteResult struct { Items []BillingPermissionsProperties } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c BillingPermissionsClient) ListByCustomer(ctx context.Context, id CustomerId) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionsClient) ListByCustomer(ctx context.Context, id Custome http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCustomerCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbydepartment.go b/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbydepartment.go index 022f7b11168..1073f389ad0 100644 --- a/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbydepartment.go +++ b/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbydepartment.go @@ -23,6 +23,18 @@ type ListByDepartmentCompleteResult struct { Items []BillingPermissionsProperties } +type ListByDepartmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDepartmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDepartment ... func (c BillingPermissionsClient) ListByDepartment(ctx context.Context, id DepartmentId) (result ListByDepartmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionsClient) ListByDepartment(ctx context.Context, id Depar http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDepartmentCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbyenrollmentaccount.go b/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbyenrollmentaccount.go index d34b28f8152..1e8f3343ade 100644 --- a/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbyenrollmentaccount.go +++ b/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbyenrollmentaccount.go @@ -23,6 +23,18 @@ type ListByEnrollmentAccountCompleteResult struct { Items []BillingPermissionsProperties } +type ListByEnrollmentAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEnrollmentAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEnrollmentAccount ... func (c BillingPermissionsClient) ListByEnrollmentAccount(ctx context.Context, id EnrollmentAccountId) (result ListByEnrollmentAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionsClient) ListByEnrollmentAccount(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByEnrollmentAccountCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbyinvoicesections.go b/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbyinvoicesections.go index 33b10e97249..fa9fba0c830 100644 --- a/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbyinvoicesections.go +++ b/resource-manager/billing/2019-10-01-preview/billingpermissions/method_listbyinvoicesections.go @@ -23,6 +23,18 @@ type ListByInvoiceSectionsCompleteResult struct { Items []BillingPermissionsProperties } +type ListByInvoiceSectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSections ... func (c BillingPermissionsClient) ListByInvoiceSections(ctx context.Context, id InvoiceSectionId) (result ListByInvoiceSectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionsClient) ListByInvoiceSections(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInvoiceSectionsCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingprofiles/method_get.go b/resource-manager/billing/2019-10-01-preview/billingprofiles/method_get.go index e43ad34d9e6..3896f9ba000 100644 --- a/resource-manager/billing/2019-10-01-preview/billingprofiles/method_get.go +++ b/resource-manager/billing/2019-10-01-preview/billingprofiles/method_get.go @@ -53,8 +53,8 @@ func (c BillingProfilesClient) Get(ctx context.Context, id BillingProfileId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/billingprofiles/method_listbybillingaccount.go b/resource-manager/billing/2019-10-01-preview/billingprofiles/method_listbybillingaccount.go index 1e75659eea9..83b01179d11 100644 --- a/resource-manager/billing/2019-10-01-preview/billingprofiles/method_listbybillingaccount.go +++ b/resource-manager/billing/2019-10-01-preview/billingprofiles/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingProfilesClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c BillingProfilesClient) ListByBillingAccount(ctx context.Context, id Bill http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingProfiles", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/billingProfiles", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_addbybillingaccount.go b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_addbybillingaccount.go index 77a396a7881..05330daa0b9 100644 --- a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_addbybillingaccount.go +++ b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_addbybillingaccount.go @@ -23,6 +23,18 @@ type AddByBillingAccountCompleteResult struct { Items []BillingRoleAssignment } +type AddByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AddByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AddByBillingAccount ... func (c BillingRoleAssignmentsClient) AddByBillingAccount(ctx context.Context, id BillingAccountId, input BillingRoleAssignmentPayload) (result AddByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleAssignmentsClient) AddByBillingAccount(ctx context.Context, i http.StatusCreated, }, HttpMethod: http.MethodPost, + Pager: &AddByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/createBillingRoleAssignment", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_addbybillingprofile.go b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_addbybillingprofile.go index 48dec4819f5..58748bdc761 100644 --- a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_addbybillingprofile.go +++ b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_addbybillingprofile.go @@ -23,6 +23,18 @@ type AddByBillingProfileCompleteResult struct { Items []BillingRoleAssignment } +type AddByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AddByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AddByBillingProfile ... func (c BillingRoleAssignmentsClient) AddByBillingProfile(ctx context.Context, id BillingProfileId, input BillingRoleAssignmentPayload) (result AddByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleAssignmentsClient) AddByBillingProfile(ctx context.Context, i http.StatusCreated, }, HttpMethod: http.MethodPost, + Pager: &AddByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/createBillingRoleAssignment", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_addbyinvoicesection.go b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_addbyinvoicesection.go index d814239893e..cc78fa05ce9 100644 --- a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_addbyinvoicesection.go +++ b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_addbyinvoicesection.go @@ -23,6 +23,18 @@ type AddByInvoiceSectionCompleteResult struct { Items []BillingRoleAssignment } +type AddByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AddByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AddByInvoiceSection ... func (c BillingRoleAssignmentsClient) AddByInvoiceSection(ctx context.Context, id InvoiceSectionId, input BillingRoleAssignmentPayload) (result AddByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleAssignmentsClient) AddByInvoiceSection(ctx context.Context, i http.StatusCreated, }, HttpMethod: http.MethodPost, + Pager: &AddByInvoiceSectionCustomPager{}, Path: fmt.Sprintf("%s/createBillingRoleAssignment", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbybillingaccount.go b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbybillingaccount.go index 4be39794f1d..949c34887ed 100644 --- a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbybillingaccount.go +++ b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []BillingRoleAssignment } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingRoleAssignmentsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleAssignmentsClient) ListByBillingAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbybillingprofile.go b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbybillingprofile.go index 16f6cbcfade..0e3fc9530db 100644 --- a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbybillingprofile.go +++ b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []BillingRoleAssignment } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c BillingRoleAssignmentsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleAssignmentsClient) ListByBillingProfile(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbydepartment.go b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbydepartment.go index 6c776d3a507..fb4ba3d38a3 100644 --- a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbydepartment.go +++ b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbydepartment.go @@ -23,6 +23,18 @@ type ListByDepartmentCompleteResult struct { Items []BillingRoleAssignment } +type ListByDepartmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDepartmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDepartment ... func (c BillingRoleAssignmentsClient) ListByDepartment(ctx context.Context, id DepartmentId) (result ListByDepartmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleAssignmentsClient) ListByDepartment(ctx context.Context, id D http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDepartmentCustomPager{}, Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbyenrollmentaccount.go b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbyenrollmentaccount.go index 77ff96c8d78..764b18f622e 100644 --- a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbyenrollmentaccount.go +++ b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbyenrollmentaccount.go @@ -23,6 +23,18 @@ type ListByEnrollmentAccountCompleteResult struct { Items []BillingRoleAssignment } +type ListByEnrollmentAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEnrollmentAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEnrollmentAccount ... func (c BillingRoleAssignmentsClient) ListByEnrollmentAccount(ctx context.Context, id EnrollmentAccountId) (result ListByEnrollmentAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleAssignmentsClient) ListByEnrollmentAccount(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByEnrollmentAccountCustomPager{}, Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbyinvoicesection.go b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbyinvoicesection.go index 69246193aee..aa19aa65b3d 100644 --- a/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbyinvoicesection.go +++ b/resource-manager/billing/2019-10-01-preview/billingroleassignments/method_listbyinvoicesection.go @@ -23,6 +23,18 @@ type ListByInvoiceSectionCompleteResult struct { Items []BillingRoleAssignment } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c BillingRoleAssignmentsClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleAssignmentsClient) ListByInvoiceSection(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInvoiceSectionCustomPager{}, Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbybillingaccount.go b/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbybillingaccount.go index 7934dd20ab0..3e89ccc72d9 100644 --- a/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbybillingaccount.go +++ b/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []BillingRoleDefinition } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingRoleDefinitionsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleDefinitionsClient) ListByBillingAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/billingRoleDefinitions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbybillingprofile.go b/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbybillingprofile.go index 0db7709423d..4d57870a65d 100644 --- a/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbybillingprofile.go +++ b/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []BillingRoleDefinition } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c BillingRoleDefinitionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleDefinitionsClient) ListByBillingProfile(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/billingRoleDefinitions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbydepartment.go b/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbydepartment.go index 83f974f9a57..09141f2ec7a 100644 --- a/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbydepartment.go +++ b/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbydepartment.go @@ -23,6 +23,18 @@ type ListByDepartmentCompleteResult struct { Items []BillingRoleDefinition } +type ListByDepartmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDepartmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDepartment ... func (c BillingRoleDefinitionsClient) ListByDepartment(ctx context.Context, id DepartmentId) (result ListByDepartmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleDefinitionsClient) ListByDepartment(ctx context.Context, id D http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDepartmentCustomPager{}, Path: fmt.Sprintf("%s/billingRoleDefinitions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbyenrollmentaccount.go b/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbyenrollmentaccount.go index c707a8a1953..22b5f70062c 100644 --- a/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbyenrollmentaccount.go +++ b/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbyenrollmentaccount.go @@ -23,6 +23,18 @@ type ListByEnrollmentAccountCompleteResult struct { Items []BillingRoleDefinition } +type ListByEnrollmentAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEnrollmentAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEnrollmentAccount ... func (c BillingRoleDefinitionsClient) ListByEnrollmentAccount(ctx context.Context, id EnrollmentAccountId) (result ListByEnrollmentAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleDefinitionsClient) ListByEnrollmentAccount(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByEnrollmentAccountCustomPager{}, Path: fmt.Sprintf("%s/billingRoleDefinitions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbyinvoicesection.go b/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbyinvoicesection.go index 696130b02c6..b01a201017e 100644 --- a/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbyinvoicesection.go +++ b/resource-manager/billing/2019-10-01-preview/billingroledefinitions/method_listbyinvoicesection.go @@ -23,6 +23,18 @@ type ListByInvoiceSectionCompleteResult struct { Items []BillingRoleDefinition } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c BillingRoleDefinitionsClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleDefinitionsClient) ListByInvoiceSection(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInvoiceSectionCustomPager{}, Path: fmt.Sprintf("%s/billingRoleDefinitions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbybillingaccount.go b/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbybillingaccount.go index 50bf4b72e0f..03ee755122a 100644 --- a/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbybillingaccount.go +++ b/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []BillingSubscription } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingSubscriptionsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingSubscriptionsClient) ListByBillingAccount(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbybillingprofile.go b/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbybillingprofile.go index 8a21714210d..c66f77f7514 100644 --- a/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbybillingprofile.go +++ b/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []BillingSubscription } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c BillingSubscriptionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingSubscriptionsClient) ListByBillingProfile(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbycustomer.go b/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbycustomer.go index 4cc3c76606a..a1adcf8fba1 100644 --- a/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbycustomer.go +++ b/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbycustomer.go @@ -23,6 +23,18 @@ type ListByCustomerCompleteResult struct { Items []BillingSubscription } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c BillingSubscriptionsClient) ListByCustomer(ctx context.Context, id CustomerId) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingSubscriptionsClient) ListByCustomer(ctx context.Context, id Custo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCustomerCustomPager{}, Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbyinvoicesection.go b/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbyinvoicesection.go index d9ac7db8d24..d59e85d75a6 100644 --- a/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbyinvoicesection.go +++ b/resource-manager/billing/2019-10-01-preview/billingsubscriptions/method_listbyinvoicesection.go @@ -23,6 +23,18 @@ type ListByInvoiceSectionCompleteResult struct { Items []BillingSubscription } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c BillingSubscriptionsClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingSubscriptionsClient) ListByInvoiceSection(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInvoiceSectionCustomPager{}, Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/customers/method_get.go b/resource-manager/billing/2019-10-01-preview/customers/method_get.go index f8b0395ec3f..52478728af0 100644 --- a/resource-manager/billing/2019-10-01-preview/customers/method_get.go +++ b/resource-manager/billing/2019-10-01-preview/customers/method_get.go @@ -53,8 +53,8 @@ func (c CustomersClient) Get(ctx context.Context, id CustomerId, options GetOper http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/customers/method_listbybillingaccount.go b/resource-manager/billing/2019-10-01-preview/customers/method_listbybillingaccount.go index da37fdd9f81..c3cbb6e2201 100644 --- a/resource-manager/billing/2019-10-01-preview/customers/method_listbybillingaccount.go +++ b/resource-manager/billing/2019-10-01-preview/customers/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c CustomersClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c CustomersClient) ListByBillingAccount(ctx context.Context, id BillingAcc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/customers", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/customers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/customers/method_listbybillingprofile.go b/resource-manager/billing/2019-10-01-preview/customers/method_listbybillingprofile.go index c208529ad38..d64d29b5e3e 100644 --- a/resource-manager/billing/2019-10-01-preview/customers/method_listbybillingprofile.go +++ b/resource-manager/billing/2019-10-01-preview/customers/method_listbybillingprofile.go @@ -50,6 +50,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c CustomersClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c CustomersClient) ListByBillingProfile(ctx context.Context, id BillingPro http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/customers", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/customers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/departments/method_get.go b/resource-manager/billing/2019-10-01-preview/departments/method_get.go index f05a056f5cf..9fcfa0b1432 100644 --- a/resource-manager/billing/2019-10-01-preview/departments/method_get.go +++ b/resource-manager/billing/2019-10-01-preview/departments/method_get.go @@ -57,8 +57,8 @@ func (c DepartmentsClient) Get(ctx context.Context, id DepartmentId, options Get http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/departments/method_listbybillingaccountname.go b/resource-manager/billing/2019-10-01-preview/departments/method_listbybillingaccountname.go index 22b31261875..601d7e5cd18 100644 --- a/resource-manager/billing/2019-10-01-preview/departments/method_listbybillingaccountname.go +++ b/resource-manager/billing/2019-10-01-preview/departments/method_listbybillingaccountname.go @@ -54,6 +54,18 @@ func (o ListByBillingAccountNameOperationOptions) ToQuery() *client.QueryParams return &out } +type ListByBillingAccountNameCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountNameCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccountName ... func (c DepartmentsClient) ListByBillingAccountName(ctx context.Context, id BillingAccountId, options ListByBillingAccountNameOperationOptions) (result ListByBillingAccountNameOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c DepartmentsClient) ListByBillingAccountName(ctx context.Context, id Bill http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/departments", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountNameCustomPager{}, + Path: fmt.Sprintf("%s/departments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/enrollmentaccounts/method_getbyenrollmentaccountid.go b/resource-manager/billing/2019-10-01-preview/enrollmentaccounts/method_getbyenrollmentaccountid.go index 52ba25a4e77..9a3d414b988 100644 --- a/resource-manager/billing/2019-10-01-preview/enrollmentaccounts/method_getbyenrollmentaccountid.go +++ b/resource-manager/billing/2019-10-01-preview/enrollmentaccounts/method_getbyenrollmentaccountid.go @@ -57,8 +57,8 @@ func (c EnrollmentAccountsClient) GetByEnrollmentAccountId(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/enrollmentaccounts/method_listbybillingaccountname.go b/resource-manager/billing/2019-10-01-preview/enrollmentaccounts/method_listbybillingaccountname.go index ffb3eb33c9a..3bd6d5f870b 100644 --- a/resource-manager/billing/2019-10-01-preview/enrollmentaccounts/method_listbybillingaccountname.go +++ b/resource-manager/billing/2019-10-01-preview/enrollmentaccounts/method_listbybillingaccountname.go @@ -54,6 +54,18 @@ func (o ListByBillingAccountNameOperationOptions) ToQuery() *client.QueryParams return &out } +type ListByBillingAccountNameCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountNameCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccountName ... func (c EnrollmentAccountsClient) ListByBillingAccountName(ctx context.Context, id BillingAccountId, options ListByBillingAccountNameOperationOptions) (result ListByBillingAccountNameOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EnrollmentAccountsClient) ListByBillingAccountName(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/enrollmentAccounts", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountNameCustomPager{}, + Path: fmt.Sprintf("%s/enrollmentAccounts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/instructions/method_listbybillingprofile.go b/resource-manager/billing/2019-10-01-preview/instructions/method_listbybillingprofile.go index b19239fa172..d5b6d8c4afb 100644 --- a/resource-manager/billing/2019-10-01-preview/instructions/method_listbybillingprofile.go +++ b/resource-manager/billing/2019-10-01-preview/instructions/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []Instruction } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c InstructionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c InstructionsClient) ListByBillingProfile(ctx context.Context, id Billing http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/instructions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/invoices/method_listbybillingaccount.go b/resource-manager/billing/2019-10-01-preview/invoices/method_listbybillingaccount.go index 1d47b4f45c6..878d939bb88 100644 --- a/resource-manager/billing/2019-10-01-preview/invoices/method_listbybillingaccount.go +++ b/resource-manager/billing/2019-10-01-preview/invoices/method_listbybillingaccount.go @@ -54,6 +54,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c InvoicesClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c InvoicesClient) ListByBillingAccount(ctx context.Context, id BillingAcco http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/invoices", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/invoices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/invoices/method_listbybillingprofile.go b/resource-manager/billing/2019-10-01-preview/invoices/method_listbybillingprofile.go index d5f0f2a9ab0..ef2bfcd099f 100644 --- a/resource-manager/billing/2019-10-01-preview/invoices/method_listbybillingprofile.go +++ b/resource-manager/billing/2019-10-01-preview/invoices/method_listbybillingprofile.go @@ -54,6 +54,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c InvoicesClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c InvoicesClient) ListByBillingProfile(ctx context.Context, id BillingProf http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/invoices", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/invoices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/invoices/method_listbybillingsubscription.go b/resource-manager/billing/2019-10-01-preview/invoices/method_listbybillingsubscription.go index e3ec12dfa85..50864d2b895 100644 --- a/resource-manager/billing/2019-10-01-preview/invoices/method_listbybillingsubscription.go +++ b/resource-manager/billing/2019-10-01-preview/invoices/method_listbybillingsubscription.go @@ -54,6 +54,18 @@ func (o ListByBillingSubscriptionOperationOptions) ToQuery() *client.QueryParams return &out } +type ListByBillingSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingSubscription ... func (c InvoicesClient) ListByBillingSubscription(ctx context.Context, id BillingAccountBillingSubscriptionId, options ListByBillingSubscriptionOperationOptions) (result ListByBillingSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c InvoicesClient) ListByBillingSubscription(ctx context.Context, id Billin http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/invoices", id.ID()), OptionsObject: options, + Pager: &ListByBillingSubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/invoices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/invoicesections/method_listbybillingprofile.go b/resource-manager/billing/2019-10-01-preview/invoicesections/method_listbybillingprofile.go index 8ef328cf159..dc2c97915ac 100644 --- a/resource-manager/billing/2019-10-01-preview/invoicesections/method_listbybillingprofile.go +++ b/resource-manager/billing/2019-10-01-preview/invoicesections/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []InvoiceSection } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c InvoiceSectionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c InvoiceSectionsClient) ListByBillingProfile(ctx context.Context, id Bill http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/invoiceSections", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/paymentmethods/method_listbybillingaccount.go b/resource-manager/billing/2019-10-01-preview/paymentmethods/method_listbybillingaccount.go index 3a49759b5c7..50e9f9053b5 100644 --- a/resource-manager/billing/2019-10-01-preview/paymentmethods/method_listbybillingaccount.go +++ b/resource-manager/billing/2019-10-01-preview/paymentmethods/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []PaymentMethod } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c PaymentMethodsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PaymentMethodsClient) ListByBillingAccount(ctx context.Context, id Billi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/paymentMethods", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/paymentmethods/method_listbybillingprofile.go b/resource-manager/billing/2019-10-01-preview/paymentmethods/method_listbybillingprofile.go index daa44641bbb..963260ac346 100644 --- a/resource-manager/billing/2019-10-01-preview/paymentmethods/method_listbybillingprofile.go +++ b/resource-manager/billing/2019-10-01-preview/paymentmethods/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []PaymentMethod } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c PaymentMethodsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PaymentMethodsClient) ListByBillingProfile(ctx context.Context, id Billi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/paymentMethods", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/products/method_listbybillingaccount.go b/resource-manager/billing/2019-10-01-preview/products/method_listbybillingaccount.go index 35336c90024..62bce9b91bb 100644 --- a/resource-manager/billing/2019-10-01-preview/products/method_listbybillingaccount.go +++ b/resource-manager/billing/2019-10-01-preview/products/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c ProductsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProductsClient) ListByBillingAccount(ctx context.Context, id BillingAcco http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/products/method_listbycustomer.go b/resource-manager/billing/2019-10-01-preview/products/method_listbycustomer.go index a31b41af9c6..aabe6f58607 100644 --- a/resource-manager/billing/2019-10-01-preview/products/method_listbycustomer.go +++ b/resource-manager/billing/2019-10-01-preview/products/method_listbycustomer.go @@ -50,6 +50,18 @@ func (o ListByCustomerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c ProductsClient) ListByCustomer(ctx context.Context, id CustomerId, options ListByCustomerOperationOptions) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProductsClient) ListByCustomer(ctx context.Context, id CustomerId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByCustomerCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/products/method_listbyinvoicesection.go b/resource-manager/billing/2019-10-01-preview/products/method_listbyinvoicesection.go index efce03b2852..7ef18e20a42 100644 --- a/resource-manager/billing/2019-10-01-preview/products/method_listbyinvoicesection.go +++ b/resource-manager/billing/2019-10-01-preview/products/method_listbyinvoicesection.go @@ -50,6 +50,18 @@ func (o ListByInvoiceSectionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c ProductsClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId, options ListByInvoiceSectionOperationOptions) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProductsClient) ListByInvoiceSection(ctx context.Context, id InvoiceSect http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByInvoiceSectionCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/recipienttransfers/method_list.go b/resource-manager/billing/2019-10-01-preview/recipienttransfers/method_list.go index 323059ed5c8..af812f394a4 100644 --- a/resource-manager/billing/2019-10-01-preview/recipienttransfers/method_list.go +++ b/resource-manager/billing/2019-10-01-preview/recipienttransfers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecipientTransferDetails } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RecipientTransfersClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RecipientTransfersClient) List(ctx context.Context) (result ListOperatio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.Billing/transfers", } diff --git a/resource-manager/billing/2019-10-01-preview/transactions/method_get.go b/resource-manager/billing/2019-10-01-preview/transactions/method_get.go index 6dd6f7c601f..960e6b31fa8 100644 --- a/resource-manager/billing/2019-10-01-preview/transactions/method_get.go +++ b/resource-manager/billing/2019-10-01-preview/transactions/method_get.go @@ -57,8 +57,8 @@ func (c TransactionsClient) Get(ctx context.Context, id TransactionId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/transactions/method_listbybillingaccount.go b/resource-manager/billing/2019-10-01-preview/transactions/method_listbybillingaccount.go index d65c418b891..eef5518467c 100644 --- a/resource-manager/billing/2019-10-01-preview/transactions/method_listbybillingaccount.go +++ b/resource-manager/billing/2019-10-01-preview/transactions/method_listbybillingaccount.go @@ -58,6 +58,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c TransactionsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TransactionsClient) ListByBillingAccount(ctx context.Context, id Billing http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/transactions", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/transactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/transactions/method_listbybillingprofile.go b/resource-manager/billing/2019-10-01-preview/transactions/method_listbybillingprofile.go index ce65b848deb..f88e9853873 100644 --- a/resource-manager/billing/2019-10-01-preview/transactions/method_listbybillingprofile.go +++ b/resource-manager/billing/2019-10-01-preview/transactions/method_listbybillingprofile.go @@ -58,6 +58,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c TransactionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TransactionsClient) ListByBillingProfile(ctx context.Context, id Billing http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/transactions", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/transactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/transactions/method_listbycustomer.go b/resource-manager/billing/2019-10-01-preview/transactions/method_listbycustomer.go index f89ef43f55a..ad1b8c87d69 100644 --- a/resource-manager/billing/2019-10-01-preview/transactions/method_listbycustomer.go +++ b/resource-manager/billing/2019-10-01-preview/transactions/method_listbycustomer.go @@ -58,6 +58,18 @@ func (o ListByCustomerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c TransactionsClient) ListByCustomer(ctx context.Context, id CustomerId, options ListByCustomerOperationOptions) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TransactionsClient) ListByCustomer(ctx context.Context, id CustomerId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/transactions", id.ID()), OptionsObject: options, + Pager: &ListByCustomerCustomPager{}, + Path: fmt.Sprintf("%s/transactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/transactions/method_listbyinvoice.go b/resource-manager/billing/2019-10-01-preview/transactions/method_listbyinvoice.go index 8bb6e91239b..d844f6d7867 100644 --- a/resource-manager/billing/2019-10-01-preview/transactions/method_listbyinvoice.go +++ b/resource-manager/billing/2019-10-01-preview/transactions/method_listbyinvoice.go @@ -23,6 +23,18 @@ type ListByInvoiceCompleteResult struct { Items []Transaction } +type ListByInvoiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoice ... func (c TransactionsClient) ListByInvoice(ctx context.Context, id BillingProfileInvoiceId) (result ListByInvoiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TransactionsClient) ListByInvoice(ctx context.Context, id BillingProfile http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInvoiceCustomPager{}, Path: fmt.Sprintf("%s/transactions", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/transactions/method_listbyinvoicesection.go b/resource-manager/billing/2019-10-01-preview/transactions/method_listbyinvoicesection.go index 686d256fdb6..b6dd7294f6b 100644 --- a/resource-manager/billing/2019-10-01-preview/transactions/method_listbyinvoicesection.go +++ b/resource-manager/billing/2019-10-01-preview/transactions/method_listbyinvoicesection.go @@ -58,6 +58,18 @@ func (o ListByInvoiceSectionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c TransactionsClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId, options ListByInvoiceSectionOperationOptions) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c TransactionsClient) ListByInvoiceSection(ctx context.Context, id Invoice http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/transactions", id.ID()), OptionsObject: options, + Pager: &ListByInvoiceSectionCustomPager{}, + Path: fmt.Sprintf("%s/transactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2019-10-01-preview/transfers/method_list.go b/resource-manager/billing/2019-10-01-preview/transfers/method_list.go index 1b950ad55a4..a1f2562baf3 100644 --- a/resource-manager/billing/2019-10-01-preview/transfers/method_list.go +++ b/resource-manager/billing/2019-10-01-preview/transfers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []TransferDetails } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TransfersClient) List(ctx context.Context, id InvoiceSectionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TransfersClient) List(ctx context.Context, id InvoiceSectionId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/transfers", id.ID()), } diff --git a/resource-manager/billing/2019-10-01-preview/transfers/method_partnertransferslist.go b/resource-manager/billing/2019-10-01-preview/transfers/method_partnertransferslist.go index b0be40f51ee..8a4330e6840 100644 --- a/resource-manager/billing/2019-10-01-preview/transfers/method_partnertransferslist.go +++ b/resource-manager/billing/2019-10-01-preview/transfers/method_partnertransferslist.go @@ -23,6 +23,18 @@ type PartnerTransfersListCompleteResult struct { Items []TransferDetails } +type PartnerTransfersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PartnerTransfersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PartnerTransfersList ... func (c TransfersClient) PartnerTransfersList(ctx context.Context, id BillingProfileCustomerId) (result PartnerTransfersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TransfersClient) PartnerTransfersList(ctx context.Context, id BillingPro http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PartnerTransfersListCustomPager{}, Path: fmt.Sprintf("%s/transfers", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/agreements/method_get.go b/resource-manager/billing/2020-05-01/agreements/method_get.go index 480e40c562e..acb7951a8ab 100644 --- a/resource-manager/billing/2020-05-01/agreements/method_get.go +++ b/resource-manager/billing/2020-05-01/agreements/method_get.go @@ -53,8 +53,8 @@ func (c AgreementsClient) Get(ctx context.Context, id AgreementId, options GetOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/agreements/method_listbybillingaccount.go b/resource-manager/billing/2020-05-01/agreements/method_listbybillingaccount.go index 7e67b66efde..abd7419ba69 100644 --- a/resource-manager/billing/2020-05-01/agreements/method_listbybillingaccount.go +++ b/resource-manager/billing/2020-05-01/agreements/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c AgreementsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c AgreementsClient) ListByBillingAccount(ctx context.Context, id BillingAc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/agreements", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/agreements", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/billingaccounts/method_get.go b/resource-manager/billing/2020-05-01/billingaccounts/method_get.go index 12754e93040..523444c582c 100644 --- a/resource-manager/billing/2020-05-01/billingaccounts/method_get.go +++ b/resource-manager/billing/2020-05-01/billingaccounts/method_get.go @@ -53,8 +53,8 @@ func (c BillingAccountsClient) Get(ctx context.Context, id BillingAccountId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/billingaccounts/method_list.go b/resource-manager/billing/2020-05-01/billingaccounts/method_list.go index 219355cb5bb..0f7c7268ccc 100644 --- a/resource-manager/billing/2020-05-01/billingaccounts/method_list.go +++ b/resource-manager/billing/2020-05-01/billingaccounts/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BillingAccountsClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c BillingAccountsClient) List(ctx context.Context, options ListOperationOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Billing/billingAccounts", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.Billing/billingAccounts", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/billingaccounts/method_listinvoicesectionsbycreatesubscriptionpermission.go b/resource-manager/billing/2020-05-01/billingaccounts/method_listinvoicesectionsbycreatesubscriptionpermission.go index 7601f4b0c74..2d788e382d2 100644 --- a/resource-manager/billing/2020-05-01/billingaccounts/method_listinvoicesectionsbycreatesubscriptionpermission.go +++ b/resource-manager/billing/2020-05-01/billingaccounts/method_listinvoicesectionsbycreatesubscriptionpermission.go @@ -23,6 +23,18 @@ type ListInvoiceSectionsByCreateSubscriptionPermissionCompleteResult struct { Items []InvoiceSectionWithCreateSubPermission } +type ListInvoiceSectionsByCreateSubscriptionPermissionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInvoiceSectionsByCreateSubscriptionPermissionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInvoiceSectionsByCreateSubscriptionPermission ... func (c BillingAccountsClient) ListInvoiceSectionsByCreateSubscriptionPermission(ctx context.Context, id BillingAccountId) (result ListInvoiceSectionsByCreateSubscriptionPermissionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingAccountsClient) ListInvoiceSectionsByCreateSubscriptionPermission http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListInvoiceSectionsByCreateSubscriptionPermissionCustomPager{}, Path: fmt.Sprintf("%s/listInvoiceSectionsWithCreateSubscriptionPermission", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/billingpermissions/method_listbybillingaccount.go b/resource-manager/billing/2020-05-01/billingpermissions/method_listbybillingaccount.go index 5813935c561..70d44e3d604 100644 --- a/resource-manager/billing/2020-05-01/billingpermissions/method_listbybillingaccount.go +++ b/resource-manager/billing/2020-05-01/billingpermissions/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []BillingPermissionsProperties } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingPermissionsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionsClient) ListByBillingAccount(ctx context.Context, id B http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/billingpermissions/method_listbybillingprofile.go b/resource-manager/billing/2020-05-01/billingpermissions/method_listbybillingprofile.go index 26d97615f01..b04c29963fb 100644 --- a/resource-manager/billing/2020-05-01/billingpermissions/method_listbybillingprofile.go +++ b/resource-manager/billing/2020-05-01/billingpermissions/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []BillingPermissionsProperties } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c BillingPermissionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionsClient) ListByBillingProfile(ctx context.Context, id B http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/billingpermissions/method_listbycustomer.go b/resource-manager/billing/2020-05-01/billingpermissions/method_listbycustomer.go index c1b08ad96cd..4747e015185 100644 --- a/resource-manager/billing/2020-05-01/billingpermissions/method_listbycustomer.go +++ b/resource-manager/billing/2020-05-01/billingpermissions/method_listbycustomer.go @@ -23,6 +23,18 @@ type ListByCustomerCompleteResult struct { Items []BillingPermissionsProperties } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c BillingPermissionsClient) ListByCustomer(ctx context.Context, id CustomerId) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionsClient) ListByCustomer(ctx context.Context, id Custome http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCustomerCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/billingpermissions/method_listbyinvoicesections.go b/resource-manager/billing/2020-05-01/billingpermissions/method_listbyinvoicesections.go index 33b10e97249..fa9fba0c830 100644 --- a/resource-manager/billing/2020-05-01/billingpermissions/method_listbyinvoicesections.go +++ b/resource-manager/billing/2020-05-01/billingpermissions/method_listbyinvoicesections.go @@ -23,6 +23,18 @@ type ListByInvoiceSectionsCompleteResult struct { Items []BillingPermissionsProperties } +type ListByInvoiceSectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSections ... func (c BillingPermissionsClient) ListByInvoiceSections(ctx context.Context, id InvoiceSectionId) (result ListByInvoiceSectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionsClient) ListByInvoiceSections(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInvoiceSectionsCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/billingprofiles/method_get.go b/resource-manager/billing/2020-05-01/billingprofiles/method_get.go index e43ad34d9e6..3896f9ba000 100644 --- a/resource-manager/billing/2020-05-01/billingprofiles/method_get.go +++ b/resource-manager/billing/2020-05-01/billingprofiles/method_get.go @@ -53,8 +53,8 @@ func (c BillingProfilesClient) Get(ctx context.Context, id BillingProfileId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/billingprofiles/method_listbybillingaccount.go b/resource-manager/billing/2020-05-01/billingprofiles/method_listbybillingaccount.go index 1e75659eea9..83b01179d11 100644 --- a/resource-manager/billing/2020-05-01/billingprofiles/method_listbybillingaccount.go +++ b/resource-manager/billing/2020-05-01/billingprofiles/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingProfilesClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c BillingProfilesClient) ListByBillingAccount(ctx context.Context, id Bill http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingProfiles", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/billingProfiles", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/billingroleassignments/method_listbybillingaccount.go b/resource-manager/billing/2020-05-01/billingroleassignments/method_listbybillingaccount.go index 4be39794f1d..949c34887ed 100644 --- a/resource-manager/billing/2020-05-01/billingroleassignments/method_listbybillingaccount.go +++ b/resource-manager/billing/2020-05-01/billingroleassignments/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []BillingRoleAssignment } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingRoleAssignmentsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleAssignmentsClient) ListByBillingAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/billingroleassignments/method_listbybillingprofile.go b/resource-manager/billing/2020-05-01/billingroleassignments/method_listbybillingprofile.go index 16f6cbcfade..0e3fc9530db 100644 --- a/resource-manager/billing/2020-05-01/billingroleassignments/method_listbybillingprofile.go +++ b/resource-manager/billing/2020-05-01/billingroleassignments/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []BillingRoleAssignment } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c BillingRoleAssignmentsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleAssignmentsClient) ListByBillingProfile(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/billingroleassignments/method_listbyinvoicesection.go b/resource-manager/billing/2020-05-01/billingroleassignments/method_listbyinvoicesection.go index 69246193aee..aa19aa65b3d 100644 --- a/resource-manager/billing/2020-05-01/billingroleassignments/method_listbyinvoicesection.go +++ b/resource-manager/billing/2020-05-01/billingroleassignments/method_listbyinvoicesection.go @@ -23,6 +23,18 @@ type ListByInvoiceSectionCompleteResult struct { Items []BillingRoleAssignment } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c BillingRoleAssignmentsClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleAssignmentsClient) ListByInvoiceSection(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInvoiceSectionCustomPager{}, Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/billingroledefinitions/method_listbybillingaccount.go b/resource-manager/billing/2020-05-01/billingroledefinitions/method_listbybillingaccount.go index 7934dd20ab0..3e89ccc72d9 100644 --- a/resource-manager/billing/2020-05-01/billingroledefinitions/method_listbybillingaccount.go +++ b/resource-manager/billing/2020-05-01/billingroledefinitions/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []BillingRoleDefinition } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingRoleDefinitionsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleDefinitionsClient) ListByBillingAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/billingRoleDefinitions", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/billingroledefinitions/method_listbybillingprofile.go b/resource-manager/billing/2020-05-01/billingroledefinitions/method_listbybillingprofile.go index 0db7709423d..4d57870a65d 100644 --- a/resource-manager/billing/2020-05-01/billingroledefinitions/method_listbybillingprofile.go +++ b/resource-manager/billing/2020-05-01/billingroledefinitions/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []BillingRoleDefinition } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c BillingRoleDefinitionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleDefinitionsClient) ListByBillingProfile(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/billingRoleDefinitions", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/billingroledefinitions/method_listbyinvoicesection.go b/resource-manager/billing/2020-05-01/billingroledefinitions/method_listbyinvoicesection.go index 696130b02c6..b01a201017e 100644 --- a/resource-manager/billing/2020-05-01/billingroledefinitions/method_listbyinvoicesection.go +++ b/resource-manager/billing/2020-05-01/billingroledefinitions/method_listbyinvoicesection.go @@ -23,6 +23,18 @@ type ListByInvoiceSectionCompleteResult struct { Items []BillingRoleDefinition } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c BillingRoleDefinitionsClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleDefinitionsClient) ListByInvoiceSection(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInvoiceSectionCustomPager{}, Path: fmt.Sprintf("%s/billingRoleDefinitions", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbybillingaccount.go b/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbybillingaccount.go index 50bf4b72e0f..03ee755122a 100644 --- a/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbybillingaccount.go +++ b/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []BillingSubscription } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingSubscriptionsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingSubscriptionsClient) ListByBillingAccount(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbybillingprofile.go b/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbybillingprofile.go index 8a21714210d..c66f77f7514 100644 --- a/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbybillingprofile.go +++ b/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []BillingSubscription } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c BillingSubscriptionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingSubscriptionsClient) ListByBillingProfile(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbycustomer.go b/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbycustomer.go index 4cc3c76606a..a1adcf8fba1 100644 --- a/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbycustomer.go +++ b/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbycustomer.go @@ -23,6 +23,18 @@ type ListByCustomerCompleteResult struct { Items []BillingSubscription } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c BillingSubscriptionsClient) ListByCustomer(ctx context.Context, id CustomerId) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingSubscriptionsClient) ListByCustomer(ctx context.Context, id Custo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCustomerCustomPager{}, Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbyinvoicesection.go b/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbyinvoicesection.go index d9ac7db8d24..d59e85d75a6 100644 --- a/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbyinvoicesection.go +++ b/resource-manager/billing/2020-05-01/billingsubscriptions/method_listbyinvoicesection.go @@ -23,6 +23,18 @@ type ListByInvoiceSectionCompleteResult struct { Items []BillingSubscription } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c BillingSubscriptionsClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingSubscriptionsClient) ListByInvoiceSection(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInvoiceSectionCustomPager{}, Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/customers/method_get.go b/resource-manager/billing/2020-05-01/customers/method_get.go index f8b0395ec3f..52478728af0 100644 --- a/resource-manager/billing/2020-05-01/customers/method_get.go +++ b/resource-manager/billing/2020-05-01/customers/method_get.go @@ -53,8 +53,8 @@ func (c CustomersClient) Get(ctx context.Context, id CustomerId, options GetOper http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/customers/method_listbybillingaccount.go b/resource-manager/billing/2020-05-01/customers/method_listbybillingaccount.go index c81ad637bb1..c05fcb61a2e 100644 --- a/resource-manager/billing/2020-05-01/customers/method_listbybillingaccount.go +++ b/resource-manager/billing/2020-05-01/customers/method_listbybillingaccount.go @@ -54,6 +54,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c CustomersClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c CustomersClient) ListByBillingAccount(ctx context.Context, id BillingAcc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/customers", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/customers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/customers/method_listbybillingprofile.go b/resource-manager/billing/2020-05-01/customers/method_listbybillingprofile.go index 17473f2161b..b46d3ffaca1 100644 --- a/resource-manager/billing/2020-05-01/customers/method_listbybillingprofile.go +++ b/resource-manager/billing/2020-05-01/customers/method_listbybillingprofile.go @@ -54,6 +54,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c CustomersClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c CustomersClient) ListByBillingProfile(ctx context.Context, id BillingPro http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/customers", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/customers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/instructions/method_listbybillingprofile.go b/resource-manager/billing/2020-05-01/instructions/method_listbybillingprofile.go index b19239fa172..d5b6d8c4afb 100644 --- a/resource-manager/billing/2020-05-01/instructions/method_listbybillingprofile.go +++ b/resource-manager/billing/2020-05-01/instructions/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []Instruction } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c InstructionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c InstructionsClient) ListByBillingProfile(ctx context.Context, id Billing http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/instructions", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/invoices/method_downloadbillingsubscriptioninvoice.go b/resource-manager/billing/2020-05-01/invoices/method_downloadbillingsubscriptioninvoice.go index 6a7ad55c8eb..406fc2acb94 100644 --- a/resource-manager/billing/2020-05-01/invoices/method_downloadbillingsubscriptioninvoice.go +++ b/resource-manager/billing/2020-05-01/invoices/method_downloadbillingsubscriptioninvoice.go @@ -57,8 +57,8 @@ func (c InvoicesClient) DownloadBillingSubscriptionInvoice(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/download", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/download", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/invoices/method_downloadinvoice.go b/resource-manager/billing/2020-05-01/invoices/method_downloadinvoice.go index 1a732f6006e..fa68961fbe1 100644 --- a/resource-manager/billing/2020-05-01/invoices/method_downloadinvoice.go +++ b/resource-manager/billing/2020-05-01/invoices/method_downloadinvoice.go @@ -57,8 +57,8 @@ func (c InvoicesClient) DownloadInvoice(ctx context.Context, id BillingAccountIn http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/download", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/download", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/invoices/method_listbybillingaccount.go b/resource-manager/billing/2020-05-01/invoices/method_listbybillingaccount.go index 1d47b4f45c6..878d939bb88 100644 --- a/resource-manager/billing/2020-05-01/invoices/method_listbybillingaccount.go +++ b/resource-manager/billing/2020-05-01/invoices/method_listbybillingaccount.go @@ -54,6 +54,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c InvoicesClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c InvoicesClient) ListByBillingAccount(ctx context.Context, id BillingAcco http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/invoices", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/invoices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/invoices/method_listbybillingprofile.go b/resource-manager/billing/2020-05-01/invoices/method_listbybillingprofile.go index d5f0f2a9ab0..ef2bfcd099f 100644 --- a/resource-manager/billing/2020-05-01/invoices/method_listbybillingprofile.go +++ b/resource-manager/billing/2020-05-01/invoices/method_listbybillingprofile.go @@ -54,6 +54,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c InvoicesClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c InvoicesClient) ListByBillingProfile(ctx context.Context, id BillingProf http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/invoices", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/invoices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/invoices/method_listbybillingsubscription.go b/resource-manager/billing/2020-05-01/invoices/method_listbybillingsubscription.go index df558711522..d0c9eeddbbe 100644 --- a/resource-manager/billing/2020-05-01/invoices/method_listbybillingsubscription.go +++ b/resource-manager/billing/2020-05-01/invoices/method_listbybillingsubscription.go @@ -54,6 +54,18 @@ func (o ListByBillingSubscriptionOperationOptions) ToQuery() *client.QueryParams return &out } +type ListByBillingSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingSubscription ... func (c InvoicesClient) ListByBillingSubscription(ctx context.Context, id BillingSubscriptionId, options ListByBillingSubscriptionOperationOptions) (result ListByBillingSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c InvoicesClient) ListByBillingSubscription(ctx context.Context, id Billin http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/invoices", id.ID()), OptionsObject: options, + Pager: &ListByBillingSubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/invoices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/invoicesections/method_listbybillingprofile.go b/resource-manager/billing/2020-05-01/invoicesections/method_listbybillingprofile.go index 8ef328cf159..dc2c97915ac 100644 --- a/resource-manager/billing/2020-05-01/invoicesections/method_listbybillingprofile.go +++ b/resource-manager/billing/2020-05-01/invoicesections/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []InvoiceSection } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c InvoiceSectionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c InvoiceSectionsClient) ListByBillingProfile(ctx context.Context, id Bill http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/invoiceSections", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/products/method_listbybillingaccount.go b/resource-manager/billing/2020-05-01/products/method_listbybillingaccount.go index 35336c90024..62bce9b91bb 100644 --- a/resource-manager/billing/2020-05-01/products/method_listbybillingaccount.go +++ b/resource-manager/billing/2020-05-01/products/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c ProductsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProductsClient) ListByBillingAccount(ctx context.Context, id BillingAcco http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/products/method_listbybillingprofile.go b/resource-manager/billing/2020-05-01/products/method_listbybillingprofile.go index fa191f9d474..37ef26966d4 100644 --- a/resource-manager/billing/2020-05-01/products/method_listbybillingprofile.go +++ b/resource-manager/billing/2020-05-01/products/method_listbybillingprofile.go @@ -50,6 +50,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c ProductsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProductsClient) ListByBillingProfile(ctx context.Context, id BillingProf http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/products/method_listbycustomer.go b/resource-manager/billing/2020-05-01/products/method_listbycustomer.go index 43326301d4f..d53818d46eb 100644 --- a/resource-manager/billing/2020-05-01/products/method_listbycustomer.go +++ b/resource-manager/billing/2020-05-01/products/method_listbycustomer.go @@ -23,6 +23,18 @@ type ListByCustomerCompleteResult struct { Items []Product } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c ProductsClient) ListByCustomer(ctx context.Context, id CustomerId) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProductsClient) ListByCustomer(ctx context.Context, id CustomerId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCustomerCustomPager{}, Path: fmt.Sprintf("%s/products", id.ID()), } diff --git a/resource-manager/billing/2020-05-01/products/method_listbyinvoicesection.go b/resource-manager/billing/2020-05-01/products/method_listbyinvoicesection.go index efce03b2852..7ef18e20a42 100644 --- a/resource-manager/billing/2020-05-01/products/method_listbyinvoicesection.go +++ b/resource-manager/billing/2020-05-01/products/method_listbyinvoicesection.go @@ -50,6 +50,18 @@ func (o ListByInvoiceSectionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c ProductsClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId, options ListByInvoiceSectionOperationOptions) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProductsClient) ListByInvoiceSection(ctx context.Context, id InvoiceSect http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByInvoiceSectionCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/reservations/method_listbybillingaccount.go b/resource-manager/billing/2020-05-01/reservations/method_listbybillingaccount.go index dc02b77b5e1..f4c7f059fb7 100644 --- a/resource-manager/billing/2020-05-01/reservations/method_listbybillingaccount.go +++ b/resource-manager/billing/2020-05-01/reservations/method_listbybillingaccount.go @@ -62,6 +62,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c ReservationsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReservationsClient) ListByBillingAccount(ctx context.Context, id Billing http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reservations", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/reservations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/reservations/method_listbybillingprofile.go b/resource-manager/billing/2020-05-01/reservations/method_listbybillingprofile.go index 0415a2953d5..1afeb5e59d2 100644 --- a/resource-manager/billing/2020-05-01/reservations/method_listbybillingprofile.go +++ b/resource-manager/billing/2020-05-01/reservations/method_listbybillingprofile.go @@ -62,6 +62,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c ReservationsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ReservationsClient) ListByBillingProfile(ctx context.Context, id Billing http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reservations", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/reservations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2020-05-01/transactions/method_listbyinvoice.go b/resource-manager/billing/2020-05-01/transactions/method_listbyinvoice.go index 6157dc4ad78..0d8e4c79f35 100644 --- a/resource-manager/billing/2020-05-01/transactions/method_listbyinvoice.go +++ b/resource-manager/billing/2020-05-01/transactions/method_listbyinvoice.go @@ -23,6 +23,18 @@ type ListByInvoiceCompleteResult struct { Items []Transaction } +type ListByInvoiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoice ... func (c TransactionsClient) ListByInvoice(ctx context.Context, id BillingAccountInvoiceId) (result ListByInvoiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TransactionsClient) ListByInvoice(ctx context.Context, id BillingAccount http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInvoiceCustomPager{}, Path: fmt.Sprintf("%s/transactions", id.ID()), } diff --git a/resource-manager/billing/2021-10-01/billingsubscriptions/method_listbybillingaccount.go b/resource-manager/billing/2021-10-01/billingsubscriptions/method_listbybillingaccount.go index 50bf4b72e0f..03ee755122a 100644 --- a/resource-manager/billing/2021-10-01/billingsubscriptions/method_listbybillingaccount.go +++ b/resource-manager/billing/2021-10-01/billingsubscriptions/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []BillingSubscription } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingSubscriptionsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingSubscriptionsClient) ListByBillingAccount(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } diff --git a/resource-manager/billing/2021-10-01/billingsubscriptionsaliases/method_listbybillingaccount.go b/resource-manager/billing/2021-10-01/billingsubscriptionsaliases/method_listbybillingaccount.go index 597c96d1d05..4afdb75cc99 100644 --- a/resource-manager/billing/2021-10-01/billingsubscriptionsaliases/method_listbybillingaccount.go +++ b/resource-manager/billing/2021-10-01/billingsubscriptionsaliases/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []BillingSubscriptionAlias } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingSubscriptionsAliasesClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingSubscriptionsAliasesClient) ListByBillingAccount(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/billingSubscriptionAliases", id.ID()), } diff --git a/resource-manager/billing/2021-10-01/paymentmethods/method_listbybillingaccount.go b/resource-manager/billing/2021-10-01/paymentmethods/method_listbybillingaccount.go index 3a49759b5c7..50e9f9053b5 100644 --- a/resource-manager/billing/2021-10-01/paymentmethods/method_listbybillingaccount.go +++ b/resource-manager/billing/2021-10-01/paymentmethods/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []PaymentMethod } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c PaymentMethodsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PaymentMethodsClient) ListByBillingAccount(ctx context.Context, id Billi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/paymentMethods", id.ID()), } diff --git a/resource-manager/billing/2021-10-01/paymentmethods/method_listbybillingprofile.go b/resource-manager/billing/2021-10-01/paymentmethods/method_listbybillingprofile.go index 99e13e695ef..8f07f3c9126 100644 --- a/resource-manager/billing/2021-10-01/paymentmethods/method_listbybillingprofile.go +++ b/resource-manager/billing/2021-10-01/paymentmethods/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []PaymentMethodLink } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c PaymentMethodsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PaymentMethodsClient) ListByBillingProfile(ctx context.Context, id Billi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/paymentMethodLinks", id.ID()), } diff --git a/resource-manager/billing/2021-10-01/paymentmethods/method_listbyuser.go b/resource-manager/billing/2021-10-01/paymentmethods/method_listbyuser.go index 2810f9e7d43..a538ff03545 100644 --- a/resource-manager/billing/2021-10-01/paymentmethods/method_listbyuser.go +++ b/resource-manager/billing/2021-10-01/paymentmethods/method_listbyuser.go @@ -23,6 +23,18 @@ type ListByUserCompleteResult struct { Items []PaymentMethod } +type ListByUserCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByUserCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByUser ... func (c PaymentMethodsClient) ListByUser(ctx context.Context) (result ListByUserOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PaymentMethodsClient) ListByUser(ctx context.Context) (result ListByUser http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByUserCustomPager{}, Path: "/providers/Microsoft.Billing/paymentMethods", } diff --git a/resource-manager/billing/2024-04-01/agreement/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/agreement/method_listbybillingaccount.go index 57e8294ee8b..3f2887fb50c 100644 --- a/resource-manager/billing/2024-04-01/agreement/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/agreement/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c AgreementClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c AgreementClient) ListByBillingAccount(ctx context.Context, id BillingAcc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/agreements", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/agreements", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/associatedtenant/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/associatedtenant/method_listbybillingaccount.go index 082b75e0b8a..19b871de69f 100644 --- a/resource-manager/billing/2024-04-01/associatedtenant/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/associatedtenant/method_listbybillingaccount.go @@ -74,6 +74,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c AssociatedTenantClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c AssociatedTenantClient) ListByBillingAccount(ctx context.Context, id Bil http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/associatedTenants", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/associatedTenants", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingaccount/method_list.go b/resource-manager/billing/2024-04-01/billingaccount/method_list.go index aa91f5c5284..ee9ddd169d0 100644 --- a/resource-manager/billing/2024-04-01/billingaccount/method_list.go +++ b/resource-manager/billing/2024-04-01/billingaccount/method_list.go @@ -94,6 +94,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BillingAccountClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -102,8 +114,9 @@ func (c BillingAccountClient) List(ctx context.Context, options ListOperationOpt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Billing/billingAccounts", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.Billing/billingAccounts", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingaccount/method_listinvoicesectionsbycreatesubscriptionpermission.go b/resource-manager/billing/2024-04-01/billingaccount/method_listinvoicesectionsbycreatesubscriptionpermission.go index a497c68b402..0197575c59f 100644 --- a/resource-manager/billing/2024-04-01/billingaccount/method_listinvoicesectionsbycreatesubscriptionpermission.go +++ b/resource-manager/billing/2024-04-01/billingaccount/method_listinvoicesectionsbycreatesubscriptionpermission.go @@ -50,6 +50,18 @@ func (o ListInvoiceSectionsByCreateSubscriptionPermissionOperationOptions) ToQue return &out } +type ListInvoiceSectionsByCreateSubscriptionPermissionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInvoiceSectionsByCreateSubscriptionPermissionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInvoiceSectionsByCreateSubscriptionPermission ... func (c BillingAccountClient) ListInvoiceSectionsByCreateSubscriptionPermission(ctx context.Context, id BillingAccountId, options ListInvoiceSectionsByCreateSubscriptionPermissionOperationOptions) (result ListInvoiceSectionsByCreateSubscriptionPermissionOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c BillingAccountClient) ListInvoiceSectionsByCreateSubscriptionPermission( http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listInvoiceSectionsWithCreateSubscriptionPermission", id.ID()), OptionsObject: options, + Pager: &ListInvoiceSectionsByCreateSubscriptionPermissionCustomPager{}, + Path: fmt.Sprintf("%s/listInvoiceSectionsWithCreateSubscriptionPermission", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingpermission/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/billingpermission/method_listbybillingaccount.go index 3963052040a..4469e7617fa 100644 --- a/resource-manager/billing/2024-04-01/billingpermission/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/billingpermission/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []BillingPermission } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingPermissionClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionClient) ListByBillingAccount(ctx context.Context, id Bi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingpermission/method_listbybillingprofile.go b/resource-manager/billing/2024-04-01/billingpermission/method_listbybillingprofile.go index 1961fa256d5..3a9134ad676 100644 --- a/resource-manager/billing/2024-04-01/billingpermission/method_listbybillingprofile.go +++ b/resource-manager/billing/2024-04-01/billingpermission/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []BillingPermission } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c BillingPermissionClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionClient) ListByBillingProfile(ctx context.Context, id Bi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingpermission/method_listbycustomer.go b/resource-manager/billing/2024-04-01/billingpermission/method_listbycustomer.go index 0cf08d6b711..81760936116 100644 --- a/resource-manager/billing/2024-04-01/billingpermission/method_listbycustomer.go +++ b/resource-manager/billing/2024-04-01/billingpermission/method_listbycustomer.go @@ -23,6 +23,18 @@ type ListByCustomerCompleteResult struct { Items []BillingPermission } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c BillingPermissionClient) ListByCustomer(ctx context.Context, id BillingProfileCustomerId) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionClient) ListByCustomer(ctx context.Context, id BillingP http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCustomerCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingpermission/method_listbycustomeratbillingaccount.go b/resource-manager/billing/2024-04-01/billingpermission/method_listbycustomeratbillingaccount.go index d1fbde43c85..c1fa3ffd726 100644 --- a/resource-manager/billing/2024-04-01/billingpermission/method_listbycustomeratbillingaccount.go +++ b/resource-manager/billing/2024-04-01/billingpermission/method_listbycustomeratbillingaccount.go @@ -23,6 +23,18 @@ type ListByCustomerAtBillingAccountCompleteResult struct { Items []BillingPermission } +type ListByCustomerAtBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerAtBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomerAtBillingAccount ... func (c BillingPermissionClient) ListByCustomerAtBillingAccount(ctx context.Context, id CustomerId) (result ListByCustomerAtBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionClient) ListByCustomerAtBillingAccount(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCustomerAtBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingpermission/method_listbydepartment.go b/resource-manager/billing/2024-04-01/billingpermission/method_listbydepartment.go index 2858561f7c2..166483edcc0 100644 --- a/resource-manager/billing/2024-04-01/billingpermission/method_listbydepartment.go +++ b/resource-manager/billing/2024-04-01/billingpermission/method_listbydepartment.go @@ -23,6 +23,18 @@ type ListByDepartmentCompleteResult struct { Items []BillingPermission } +type ListByDepartmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDepartmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDepartment ... func (c BillingPermissionClient) ListByDepartment(ctx context.Context, id DepartmentId) (result ListByDepartmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionClient) ListByDepartment(ctx context.Context, id Depart http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDepartmentCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingpermission/method_listbyenrollmentaccount.go b/resource-manager/billing/2024-04-01/billingpermission/method_listbyenrollmentaccount.go index 6ffa30cfbd4..30e98ab5624 100644 --- a/resource-manager/billing/2024-04-01/billingpermission/method_listbyenrollmentaccount.go +++ b/resource-manager/billing/2024-04-01/billingpermission/method_listbyenrollmentaccount.go @@ -23,6 +23,18 @@ type ListByEnrollmentAccountCompleteResult struct { Items []BillingPermission } +type ListByEnrollmentAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEnrollmentAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEnrollmentAccount ... func (c BillingPermissionClient) ListByEnrollmentAccount(ctx context.Context, id EnrollmentAccountId) (result ListByEnrollmentAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionClient) ListByEnrollmentAccount(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByEnrollmentAccountCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingpermission/method_listbyinvoicesection.go b/resource-manager/billing/2024-04-01/billingpermission/method_listbyinvoicesection.go index 3611480ab14..a37f1bd1f08 100644 --- a/resource-manager/billing/2024-04-01/billingpermission/method_listbyinvoicesection.go +++ b/resource-manager/billing/2024-04-01/billingpermission/method_listbyinvoicesection.go @@ -23,6 +23,18 @@ type ListByInvoiceSectionCompleteResult struct { Items []BillingPermission } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c BillingPermissionClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingPermissionClient) ListByInvoiceSection(ctx context.Context, id In http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInvoiceSectionCustomPager{}, Path: fmt.Sprintf("%s/billingPermissions", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingprofile/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/billingprofile/method_listbybillingaccount.go index 3415310d83a..aa2ae520e16 100644 --- a/resource-manager/billing/2024-04-01/billingprofile/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/billingprofile/method_listbybillingaccount.go @@ -74,6 +74,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingProfileClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c BillingProfileClient) ListByBillingAccount(ctx context.Context, id Billi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingProfiles", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/billingProfiles", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingproperty/method_get.go b/resource-manager/billing/2024-04-01/billingproperty/method_get.go index 238a686fd9c..c1bf39081f4 100644 --- a/resource-manager/billing/2024-04-01/billingproperty/method_get.go +++ b/resource-manager/billing/2024-04-01/billingproperty/method_get.go @@ -58,8 +58,8 @@ func (c BillingPropertyClient) Get(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Billing/billingProperty/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Billing/billingProperty/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingrequest/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/billingrequest/method_listbybillingaccount.go index 98c05ba92d0..e06a5676440 100644 --- a/resource-manager/billing/2024-04-01/billingrequest/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/billingrequest/method_listbybillingaccount.go @@ -70,6 +70,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingRequestClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c BillingRequestClient) ListByBillingAccount(ctx context.Context, id Billi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingRequests", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/billingRequests", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingrequest/method_listbybillingprofile.go b/resource-manager/billing/2024-04-01/billingrequest/method_listbybillingprofile.go index ccb9c328f3a..32299ce08e7 100644 --- a/resource-manager/billing/2024-04-01/billingrequest/method_listbybillingprofile.go +++ b/resource-manager/billing/2024-04-01/billingrequest/method_listbybillingprofile.go @@ -70,6 +70,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c BillingRequestClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c BillingRequestClient) ListByBillingProfile(ctx context.Context, id Billi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingRequests", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/billingRequests", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingrequest/method_listbycustomer.go b/resource-manager/billing/2024-04-01/billingrequest/method_listbycustomer.go index bcbaebe6403..435f88feddb 100644 --- a/resource-manager/billing/2024-04-01/billingrequest/method_listbycustomer.go +++ b/resource-manager/billing/2024-04-01/billingrequest/method_listbycustomer.go @@ -70,6 +70,18 @@ func (o ListByCustomerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c BillingRequestClient) ListByCustomer(ctx context.Context, id BillingProfileCustomerId, options ListByCustomerOperationOptions) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c BillingRequestClient) ListByCustomer(ctx context.Context, id BillingProf http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingRequests", id.ID()), OptionsObject: options, + Pager: &ListByCustomerCustomPager{}, + Path: fmt.Sprintf("%s/billingRequests", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingrequest/method_listbyinvoicesection.go b/resource-manager/billing/2024-04-01/billingrequest/method_listbyinvoicesection.go index 6423e0ae4bf..73f01e8cdba 100644 --- a/resource-manager/billing/2024-04-01/billingrequest/method_listbyinvoicesection.go +++ b/resource-manager/billing/2024-04-01/billingrequest/method_listbyinvoicesection.go @@ -70,6 +70,18 @@ func (o ListByInvoiceSectionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c BillingRequestClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId, options ListByInvoiceSectionOperationOptions) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c BillingRequestClient) ListByInvoiceSection(ctx context.Context, id Invoi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingRequests", id.ID()), OptionsObject: options, + Pager: &ListByInvoiceSectionCustomPager{}, + Path: fmt.Sprintf("%s/billingRequests", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingrequest/method_listbyuser.go b/resource-manager/billing/2024-04-01/billingrequest/method_listbyuser.go index 6d74c04981e..b3c9ed765de 100644 --- a/resource-manager/billing/2024-04-01/billingrequest/method_listbyuser.go +++ b/resource-manager/billing/2024-04-01/billingrequest/method_listbyuser.go @@ -70,6 +70,18 @@ func (o ListByUserOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByUserCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByUserCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByUser ... func (c BillingRequestClient) ListByUser(ctx context.Context, options ListByUserOperationOptions) (result ListByUserOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c BillingRequestClient) ListByUser(ctx context.Context, options ListByUser http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Billing/billingRequests", OptionsObject: options, + Pager: &ListByUserCustomPager{}, + Path: "/providers/Microsoft.Billing/billingRequests", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingroleassignment/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/billingroleassignment/method_listbybillingaccount.go index 80050768baa..1957b949b24 100644 --- a/resource-manager/billing/2024-04-01/billingroleassignment/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/billingroleassignment/method_listbybillingaccount.go @@ -58,6 +58,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingRoleAssignmentClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c BillingRoleAssignmentClient) ListByBillingAccount(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingroleassignment/method_listbybillingprofile.go b/resource-manager/billing/2024-04-01/billingroleassignment/method_listbybillingprofile.go index 984fceab35d..a6ade28708e 100644 --- a/resource-manager/billing/2024-04-01/billingroleassignment/method_listbybillingprofile.go +++ b/resource-manager/billing/2024-04-01/billingroleassignment/method_listbybillingprofile.go @@ -58,6 +58,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c BillingRoleAssignmentClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c BillingRoleAssignmentClient) ListByBillingProfile(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingroleassignment/method_listbycustomer.go b/resource-manager/billing/2024-04-01/billingroleassignment/method_listbycustomer.go index 53b6b6d292b..2a85b517a71 100644 --- a/resource-manager/billing/2024-04-01/billingroleassignment/method_listbycustomer.go +++ b/resource-manager/billing/2024-04-01/billingroleassignment/method_listbycustomer.go @@ -58,6 +58,18 @@ func (o ListByCustomerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c BillingRoleAssignmentClient) ListByCustomer(ctx context.Context, id BillingProfileCustomerId, options ListByCustomerOperationOptions) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c BillingRoleAssignmentClient) ListByCustomer(ctx context.Context, id Bill http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), OptionsObject: options, + Pager: &ListByCustomerCustomPager{}, + Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingroleassignment/method_listbydepartment.go b/resource-manager/billing/2024-04-01/billingroleassignment/method_listbydepartment.go index 7785c4ba3de..253e6dba5bc 100644 --- a/resource-manager/billing/2024-04-01/billingroleassignment/method_listbydepartment.go +++ b/resource-manager/billing/2024-04-01/billingroleassignment/method_listbydepartment.go @@ -23,6 +23,18 @@ type ListByDepartmentCompleteResult struct { Items []BillingRoleAssignment } +type ListByDepartmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDepartmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDepartment ... func (c BillingRoleAssignmentClient) ListByDepartment(ctx context.Context, id DepartmentId) (result ListByDepartmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleAssignmentClient) ListByDepartment(ctx context.Context, id De http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDepartmentCustomPager{}, Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingroleassignment/method_listbyenrollmentaccount.go b/resource-manager/billing/2024-04-01/billingroleassignment/method_listbyenrollmentaccount.go index 2affad258d0..e0894573161 100644 --- a/resource-manager/billing/2024-04-01/billingroleassignment/method_listbyenrollmentaccount.go +++ b/resource-manager/billing/2024-04-01/billingroleassignment/method_listbyenrollmentaccount.go @@ -23,6 +23,18 @@ type ListByEnrollmentAccountCompleteResult struct { Items []BillingRoleAssignment } +type ListByEnrollmentAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEnrollmentAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEnrollmentAccount ... func (c BillingRoleAssignmentClient) ListByEnrollmentAccount(ctx context.Context, id EnrollmentAccountId) (result ListByEnrollmentAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleAssignmentClient) ListByEnrollmentAccount(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByEnrollmentAccountCustomPager{}, Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingroleassignment/method_listbyinvoicesection.go b/resource-manager/billing/2024-04-01/billingroleassignment/method_listbyinvoicesection.go index 8cd4e3aee84..dd4ea519b10 100644 --- a/resource-manager/billing/2024-04-01/billingroleassignment/method_listbyinvoicesection.go +++ b/resource-manager/billing/2024-04-01/billingroleassignment/method_listbyinvoicesection.go @@ -58,6 +58,18 @@ func (o ListByInvoiceSectionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c BillingRoleAssignmentClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId, options ListByInvoiceSectionOperationOptions) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c BillingRoleAssignmentClient) ListByInvoiceSection(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), OptionsObject: options, + Pager: &ListByInvoiceSectionCustomPager{}, + Path: fmt.Sprintf("%s/billingRoleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebybillingaccount.go b/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebybillingaccount.go index adf8d80b756..9cda0134e2b 100644 --- a/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebybillingaccount.go +++ b/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebybillingaccount.go @@ -57,6 +57,18 @@ func (o ResolveByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ResolveByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResolveByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResolveByBillingAccount ... func (c BillingRoleAssignmentClient) ResolveByBillingAccount(ctx context.Context, id BillingAccountId, options ResolveByBillingAccountOperationOptions) (result ResolveByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c BillingRoleAssignmentClient) ResolveByBillingAccount(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resolveBillingRoleAssignments", id.ID()), OptionsObject: options, + Pager: &ResolveByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/resolveBillingRoleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebybillingprofile.go b/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebybillingprofile.go index 7c7e44e3c10..09e7b023a40 100644 --- a/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebybillingprofile.go +++ b/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebybillingprofile.go @@ -57,6 +57,18 @@ func (o ResolveByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ResolveByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResolveByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResolveByBillingProfile ... func (c BillingRoleAssignmentClient) ResolveByBillingProfile(ctx context.Context, id BillingProfileId, options ResolveByBillingProfileOperationOptions) (result ResolveByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c BillingRoleAssignmentClient) ResolveByBillingProfile(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resolveBillingRoleAssignments", id.ID()), OptionsObject: options, + Pager: &ResolveByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/resolveBillingRoleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebycustomer.go b/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebycustomer.go index 4499044cc00..1d8ccc75c7f 100644 --- a/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebycustomer.go +++ b/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebycustomer.go @@ -57,6 +57,18 @@ func (o ResolveByCustomerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ResolveByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResolveByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResolveByCustomer ... func (c BillingRoleAssignmentClient) ResolveByCustomer(ctx context.Context, id BillingProfileCustomerId, options ResolveByCustomerOperationOptions) (result ResolveByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c BillingRoleAssignmentClient) ResolveByCustomer(ctx context.Context, id B http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resolveBillingRoleAssignments", id.ID()), OptionsObject: options, + Pager: &ResolveByCustomerCustomPager{}, + Path: fmt.Sprintf("%s/resolveBillingRoleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebyinvoicesection.go b/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebyinvoicesection.go index e23779a2643..fd22e18c0dd 100644 --- a/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebyinvoicesection.go +++ b/resource-manager/billing/2024-04-01/billingroleassignment/method_resolvebyinvoicesection.go @@ -57,6 +57,18 @@ func (o ResolveByInvoiceSectionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ResolveByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResolveByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResolveByInvoiceSection ... func (c BillingRoleAssignmentClient) ResolveByInvoiceSection(ctx context.Context, id InvoiceSectionId, options ResolveByInvoiceSectionOperationOptions) (result ResolveByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c BillingRoleAssignmentClient) ResolveByInvoiceSection(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resolveBillingRoleAssignments", id.ID()), OptionsObject: options, + Pager: &ResolveByInvoiceSectionCustomPager{}, + Path: fmt.Sprintf("%s/resolveBillingRoleAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingroledefinition/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/billingroledefinition/method_listbybillingaccount.go index 964e3eae26c..3574d8086d9 100644 --- a/resource-manager/billing/2024-04-01/billingroledefinition/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/billingroledefinition/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []BillingRoleDefinition } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingRoleDefinitionClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleDefinitionClient) ListByBillingAccount(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/billingRoleDefinitions", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingroledefinition/method_listbybillingprofile.go b/resource-manager/billing/2024-04-01/billingroledefinition/method_listbybillingprofile.go index ed8d3f8ba56..af707741cd1 100644 --- a/resource-manager/billing/2024-04-01/billingroledefinition/method_listbybillingprofile.go +++ b/resource-manager/billing/2024-04-01/billingroledefinition/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []BillingRoleDefinition } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c BillingRoleDefinitionClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleDefinitionClient) ListByBillingProfile(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/billingRoleDefinitions", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingroledefinition/method_listbycustomer.go b/resource-manager/billing/2024-04-01/billingroledefinition/method_listbycustomer.go index 8c915fe651a..b55278c3475 100644 --- a/resource-manager/billing/2024-04-01/billingroledefinition/method_listbycustomer.go +++ b/resource-manager/billing/2024-04-01/billingroledefinition/method_listbycustomer.go @@ -23,6 +23,18 @@ type ListByCustomerCompleteResult struct { Items []BillingRoleDefinition } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c BillingRoleDefinitionClient) ListByCustomer(ctx context.Context, id BillingProfileCustomerId) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleDefinitionClient) ListByCustomer(ctx context.Context, id Bill http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCustomerCustomPager{}, Path: fmt.Sprintf("%s/billingRoleDefinitions", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingroledefinition/method_listbydepartment.go b/resource-manager/billing/2024-04-01/billingroledefinition/method_listbydepartment.go index 161b0736fc1..08c4bc6840e 100644 --- a/resource-manager/billing/2024-04-01/billingroledefinition/method_listbydepartment.go +++ b/resource-manager/billing/2024-04-01/billingroledefinition/method_listbydepartment.go @@ -23,6 +23,18 @@ type ListByDepartmentCompleteResult struct { Items []BillingRoleDefinition } +type ListByDepartmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDepartmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDepartment ... func (c BillingRoleDefinitionClient) ListByDepartment(ctx context.Context, id DepartmentId) (result ListByDepartmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleDefinitionClient) ListByDepartment(ctx context.Context, id De http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDepartmentCustomPager{}, Path: fmt.Sprintf("%s/billingRoleDefinitions", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingroledefinition/method_listbyenrollmentaccount.go b/resource-manager/billing/2024-04-01/billingroledefinition/method_listbyenrollmentaccount.go index 083567f9da8..406b4ea3412 100644 --- a/resource-manager/billing/2024-04-01/billingroledefinition/method_listbyenrollmentaccount.go +++ b/resource-manager/billing/2024-04-01/billingroledefinition/method_listbyenrollmentaccount.go @@ -23,6 +23,18 @@ type ListByEnrollmentAccountCompleteResult struct { Items []BillingRoleDefinition } +type ListByEnrollmentAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEnrollmentAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEnrollmentAccount ... func (c BillingRoleDefinitionClient) ListByEnrollmentAccount(ctx context.Context, id EnrollmentAccountId) (result ListByEnrollmentAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleDefinitionClient) ListByEnrollmentAccount(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByEnrollmentAccountCustomPager{}, Path: fmt.Sprintf("%s/billingRoleDefinitions", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingroledefinition/method_listbyinvoicesection.go b/resource-manager/billing/2024-04-01/billingroledefinition/method_listbyinvoicesection.go index f00fdf7fb6d..78b96e3be72 100644 --- a/resource-manager/billing/2024-04-01/billingroledefinition/method_listbyinvoicesection.go +++ b/resource-manager/billing/2024-04-01/billingroledefinition/method_listbyinvoicesection.go @@ -23,6 +23,18 @@ type ListByInvoiceSectionCompleteResult struct { Items []BillingRoleDefinition } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c BillingRoleDefinitionClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BillingRoleDefinitionClient) ListByInvoiceSection(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInvoiceSectionCustomPager{}, Path: fmt.Sprintf("%s/billingRoleDefinitions", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/billingsubscription/method_aliaseslistbybillingaccount.go b/resource-manager/billing/2024-04-01/billingsubscription/method_aliaseslistbybillingaccount.go index 519a0cb35ef..4886c81a200 100644 --- a/resource-manager/billing/2024-04-01/billingsubscription/method_aliaseslistbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/billingsubscription/method_aliaseslistbybillingaccount.go @@ -74,6 +74,18 @@ func (o AliasesListByBillingAccountOperationOptions) ToQuery() *client.QueryPara return &out } +type AliasesListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AliasesListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AliasesListByBillingAccount ... func (c BillingSubscriptionClient) AliasesListByBillingAccount(ctx context.Context, id BillingAccountId, options AliasesListByBillingAccountOperationOptions) (result AliasesListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c BillingSubscriptionClient) AliasesListByBillingAccount(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingSubscriptionAliases", id.ID()), OptionsObject: options, + Pager: &AliasesListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/billingSubscriptionAliases", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingsubscription/method_get.go b/resource-manager/billing/2024-04-01/billingsubscription/method_get.go index e6aebdd6a6e..69e9ce35d84 100644 --- a/resource-manager/billing/2024-04-01/billingsubscription/method_get.go +++ b/resource-manager/billing/2024-04-01/billingsubscription/method_get.go @@ -53,8 +53,8 @@ func (c BillingSubscriptionClient) Get(ctx context.Context, id BillingAccountBil http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingsubscription/method_getbybillingprofile.go b/resource-manager/billing/2024-04-01/billingsubscription/method_getbybillingprofile.go index 2e5a3d052a6..edc943ad1a3 100644 --- a/resource-manager/billing/2024-04-01/billingsubscription/method_getbybillingprofile.go +++ b/resource-manager/billing/2024-04-01/billingsubscription/method_getbybillingprofile.go @@ -53,8 +53,8 @@ func (c BillingSubscriptionClient) GetByBillingProfile(ctx context.Context, id B http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingsubscription/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/billingsubscription/method_listbybillingaccount.go index 563b1d41582..54405d466a9 100644 --- a/resource-manager/billing/2024-04-01/billingsubscription/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/billingsubscription/method_listbybillingaccount.go @@ -86,6 +86,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c BillingSubscriptionClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -94,8 +106,9 @@ func (c BillingSubscriptionClient) ListByBillingAccount(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingsubscription/method_listbybillingprofile.go b/resource-manager/billing/2024-04-01/billingsubscription/method_listbybillingprofile.go index e6c0ef70a2b..4df8714b21e 100644 --- a/resource-manager/billing/2024-04-01/billingsubscription/method_listbybillingprofile.go +++ b/resource-manager/billing/2024-04-01/billingsubscription/method_listbybillingprofile.go @@ -78,6 +78,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c BillingSubscriptionClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -86,8 +98,9 @@ func (c BillingSubscriptionClient) ListByBillingProfile(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingsubscription/method_listbycustomer.go b/resource-manager/billing/2024-04-01/billingsubscription/method_listbycustomer.go index b5fc080c85f..52e8cdb5d9f 100644 --- a/resource-manager/billing/2024-04-01/billingsubscription/method_listbycustomer.go +++ b/resource-manager/billing/2024-04-01/billingsubscription/method_listbycustomer.go @@ -78,6 +78,18 @@ func (o ListByCustomerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c BillingSubscriptionClient) ListByCustomer(ctx context.Context, id BillingProfileCustomerId, options ListByCustomerOperationOptions) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -86,8 +98,9 @@ func (c BillingSubscriptionClient) ListByCustomer(ctx context.Context, id Billin http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListByCustomerCustomPager{}, + Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingsubscription/method_listbycustomeratbillingaccount.go b/resource-manager/billing/2024-04-01/billingsubscription/method_listbycustomeratbillingaccount.go index 4f440ac874f..9d46d32b754 100644 --- a/resource-manager/billing/2024-04-01/billingsubscription/method_listbycustomeratbillingaccount.go +++ b/resource-manager/billing/2024-04-01/billingsubscription/method_listbycustomeratbillingaccount.go @@ -78,6 +78,18 @@ func (o ListByCustomerAtBillingAccountOperationOptions) ToQuery() *client.QueryP return &out } +type ListByCustomerAtBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerAtBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomerAtBillingAccount ... func (c BillingSubscriptionClient) ListByCustomerAtBillingAccount(ctx context.Context, id CustomerId, options ListByCustomerAtBillingAccountOperationOptions) (result ListByCustomerAtBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -86,8 +98,9 @@ func (c BillingSubscriptionClient) ListByCustomerAtBillingAccount(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListByCustomerAtBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingsubscription/method_listbyenrollmentaccount.go b/resource-manager/billing/2024-04-01/billingsubscription/method_listbyenrollmentaccount.go index b9ff68a608c..719d13bdde5 100644 --- a/resource-manager/billing/2024-04-01/billingsubscription/method_listbyenrollmentaccount.go +++ b/resource-manager/billing/2024-04-01/billingsubscription/method_listbyenrollmentaccount.go @@ -70,6 +70,18 @@ func (o ListByEnrollmentAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByEnrollmentAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEnrollmentAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEnrollmentAccount ... func (c BillingSubscriptionClient) ListByEnrollmentAccount(ctx context.Context, id EnrollmentAccountId, options ListByEnrollmentAccountOperationOptions) (result ListByEnrollmentAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c BillingSubscriptionClient) ListByEnrollmentAccount(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListByEnrollmentAccountCustomPager{}, + Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/billingsubscription/method_listbyinvoicesection.go b/resource-manager/billing/2024-04-01/billingsubscription/method_listbyinvoicesection.go index 6ef946d2321..4e008e51728 100644 --- a/resource-manager/billing/2024-04-01/billingsubscription/method_listbyinvoicesection.go +++ b/resource-manager/billing/2024-04-01/billingsubscription/method_listbyinvoicesection.go @@ -78,6 +78,18 @@ func (o ListByInvoiceSectionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c BillingSubscriptionClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId, options ListByInvoiceSectionOperationOptions) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -86,8 +98,9 @@ func (c BillingSubscriptionClient) ListByInvoiceSection(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListByInvoiceSectionCustomPager{}, + Path: fmt.Sprintf("%s/billingSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/customer/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/customer/method_listbybillingaccount.go index 1c02622b950..c4d6bc61d64 100644 --- a/resource-manager/billing/2024-04-01/customer/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/customer/method_listbybillingaccount.go @@ -74,6 +74,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c CustomerClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c CustomerClient) ListByBillingAccount(ctx context.Context, id BillingAcco http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/customers", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/customers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/customer/method_listbybillingprofile.go b/resource-manager/billing/2024-04-01/customer/method_listbybillingprofile.go index 92fc50c9abc..7b31af10f42 100644 --- a/resource-manager/billing/2024-04-01/customer/method_listbybillingprofile.go +++ b/resource-manager/billing/2024-04-01/customer/method_listbybillingprofile.go @@ -74,6 +74,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c CustomerClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c CustomerClient) ListByBillingProfile(ctx context.Context, id BillingProf http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/customers", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/customers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/department/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/department/method_listbybillingaccount.go index 2e204638da4..5378707ee9e 100644 --- a/resource-manager/billing/2024-04-01/department/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/department/method_listbybillingaccount.go @@ -66,6 +66,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c DepartmentClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c DepartmentClient) ListByBillingAccount(ctx context.Context, id BillingAc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/departments", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/departments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/enrollmentaccount/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/enrollmentaccount/method_listbybillingaccount.go index 0ec0d79355c..9dd7ef03cbc 100644 --- a/resource-manager/billing/2024-04-01/enrollmentaccount/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/enrollmentaccount/method_listbybillingaccount.go @@ -70,6 +70,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c EnrollmentAccountClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c EnrollmentAccountClient) ListByBillingAccount(ctx context.Context, id Bi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/enrollmentAccounts", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/enrollmentAccounts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/enrollmentaccount/method_listbydepartment.go b/resource-manager/billing/2024-04-01/enrollmentaccount/method_listbydepartment.go index d61e9a5998a..f44352f8dc4 100644 --- a/resource-manager/billing/2024-04-01/enrollmentaccount/method_listbydepartment.go +++ b/resource-manager/billing/2024-04-01/enrollmentaccount/method_listbydepartment.go @@ -70,6 +70,18 @@ func (o ListByDepartmentOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDepartmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDepartmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDepartment ... func (c EnrollmentAccountClient) ListByDepartment(ctx context.Context, id DepartmentId, options ListByDepartmentOperationOptions) (result ListByDepartmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c EnrollmentAccountClient) ListByDepartment(ctx context.Context, id Depart http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/enrollmentAccounts", id.ID()), OptionsObject: options, + Pager: &ListByDepartmentCustomPager{}, + Path: fmt.Sprintf("%s/enrollmentAccounts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/invoice/method_downloadbybillingaccount.go b/resource-manager/billing/2024-04-01/invoice/method_downloadbybillingaccount.go index 7ba83775d17..9e272229b84 100644 --- a/resource-manager/billing/2024-04-01/invoice/method_downloadbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/invoice/method_downloadbybillingaccount.go @@ -57,8 +57,8 @@ func (c InvoiceClient) DownloadByBillingAccount(ctx context.Context, id BillingA http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/download", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/download", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/invoice/method_downloadbybillingsubscription.go b/resource-manager/billing/2024-04-01/invoice/method_downloadbybillingsubscription.go index 1cfbd373fdf..ca9333a8970 100644 --- a/resource-manager/billing/2024-04-01/invoice/method_downloadbybillingsubscription.go +++ b/resource-manager/billing/2024-04-01/invoice/method_downloadbybillingsubscription.go @@ -57,8 +57,8 @@ func (c InvoiceClient) DownloadByBillingSubscription(ctx context.Context, id Bil http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/download", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/download", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/invoice/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/invoice/method_listbybillingaccount.go index 35b3cc9803f..844fd940663 100644 --- a/resource-manager/billing/2024-04-01/invoice/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/invoice/method_listbybillingaccount.go @@ -78,6 +78,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c InvoiceClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -86,8 +98,9 @@ func (c InvoiceClient) ListByBillingAccount(ctx context.Context, id BillingAccou http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/invoices", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/invoices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/invoice/method_listbybillingprofile.go b/resource-manager/billing/2024-04-01/invoice/method_listbybillingprofile.go index e9e2f93a652..e866cbbf8f6 100644 --- a/resource-manager/billing/2024-04-01/invoice/method_listbybillingprofile.go +++ b/resource-manager/billing/2024-04-01/invoice/method_listbybillingprofile.go @@ -78,6 +78,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c InvoiceClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -86,8 +98,9 @@ func (c InvoiceClient) ListByBillingProfile(ctx context.Context, id BillingProfi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/invoices", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/invoices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/invoice/method_listbybillingsubscription.go b/resource-manager/billing/2024-04-01/invoice/method_listbybillingsubscription.go index 7aa3e04c4f3..ef394343d74 100644 --- a/resource-manager/billing/2024-04-01/invoice/method_listbybillingsubscription.go +++ b/resource-manager/billing/2024-04-01/invoice/method_listbybillingsubscription.go @@ -78,6 +78,18 @@ func (o ListByBillingSubscriptionOperationOptions) ToQuery() *client.QueryParams return &out } +type ListByBillingSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingSubscription ... func (c InvoiceClient) ListByBillingSubscription(ctx context.Context, id BillingSubscriptionId, options ListByBillingSubscriptionOperationOptions) (result ListByBillingSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -86,8 +98,9 @@ func (c InvoiceClient) ListByBillingSubscription(ctx context.Context, id Billing http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/invoices", id.ID()), OptionsObject: options, + Pager: &ListByBillingSubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/invoices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/invoicesection/method_listbybillingprofile.go b/resource-manager/billing/2024-04-01/invoicesection/method_listbybillingprofile.go index 00829f20175..4efae2cda84 100644 --- a/resource-manager/billing/2024-04-01/invoicesection/method_listbybillingprofile.go +++ b/resource-manager/billing/2024-04-01/invoicesection/method_listbybillingprofile.go @@ -74,6 +74,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c InvoiceSectionClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c InvoiceSectionClient) ListByBillingProfile(ctx context.Context, id Billi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/invoiceSections", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/invoiceSections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/paymentmethods/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/paymentmethods/method_listbybillingaccount.go index 3a49759b5c7..50e9f9053b5 100644 --- a/resource-manager/billing/2024-04-01/paymentmethods/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/paymentmethods/method_listbybillingaccount.go @@ -23,6 +23,18 @@ type ListByBillingAccountCompleteResult struct { Items []PaymentMethod } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c PaymentMethodsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PaymentMethodsClient) ListByBillingAccount(ctx context.Context, id Billi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingAccountCustomPager{}, Path: fmt.Sprintf("%s/paymentMethods", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/paymentmethods/method_listbybillingprofile.go b/resource-manager/billing/2024-04-01/paymentmethods/method_listbybillingprofile.go index 99e13e695ef..8f07f3c9126 100644 --- a/resource-manager/billing/2024-04-01/paymentmethods/method_listbybillingprofile.go +++ b/resource-manager/billing/2024-04-01/paymentmethods/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []PaymentMethodLink } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c PaymentMethodsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PaymentMethodsClient) ListByBillingProfile(ctx context.Context, id Billi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/paymentMethodLinks", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/paymentmethods/method_listbyuser.go b/resource-manager/billing/2024-04-01/paymentmethods/method_listbyuser.go index 2810f9e7d43..a538ff03545 100644 --- a/resource-manager/billing/2024-04-01/paymentmethods/method_listbyuser.go +++ b/resource-manager/billing/2024-04-01/paymentmethods/method_listbyuser.go @@ -23,6 +23,18 @@ type ListByUserCompleteResult struct { Items []PaymentMethod } +type ListByUserCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByUserCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByUser ... func (c PaymentMethodsClient) ListByUser(ctx context.Context) (result ListByUserOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PaymentMethodsClient) ListByUser(ctx context.Context) (result ListByUser http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByUserCustomPager{}, Path: "/providers/Microsoft.Billing/paymentMethods", } diff --git a/resource-manager/billing/2024-04-01/product/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/product/method_listbybillingaccount.go index 1ce5da0cb3c..4d4f9d8cb67 100644 --- a/resource-manager/billing/2024-04-01/product/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/product/method_listbybillingaccount.go @@ -70,6 +70,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c ProductClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c ProductClient) ListByBillingAccount(ctx context.Context, id BillingAccou http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/product/method_listbybillingprofile.go b/resource-manager/billing/2024-04-01/product/method_listbybillingprofile.go index ac16ca6b265..d533cdbb05d 100644 --- a/resource-manager/billing/2024-04-01/product/method_listbybillingprofile.go +++ b/resource-manager/billing/2024-04-01/product/method_listbybillingprofile.go @@ -70,6 +70,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c ProductClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c ProductClient) ListByBillingProfile(ctx context.Context, id BillingProfi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/product/method_listbycustomer.go b/resource-manager/billing/2024-04-01/product/method_listbycustomer.go index bd64a6683f3..682701108c3 100644 --- a/resource-manager/billing/2024-04-01/product/method_listbycustomer.go +++ b/resource-manager/billing/2024-04-01/product/method_listbycustomer.go @@ -70,6 +70,18 @@ func (o ListByCustomerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c ProductClient) ListByCustomer(ctx context.Context, id CustomerId, options ListByCustomerOperationOptions) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c ProductClient) ListByCustomer(ctx context.Context, id CustomerId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByCustomerCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/product/method_listbyinvoicesection.go b/resource-manager/billing/2024-04-01/product/method_listbyinvoicesection.go index 1dae9d85278..3c23f2dcdc2 100644 --- a/resource-manager/billing/2024-04-01/product/method_listbyinvoicesection.go +++ b/resource-manager/billing/2024-04-01/product/method_listbyinvoicesection.go @@ -70,6 +70,18 @@ func (o ListByInvoiceSectionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c ProductClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId, options ListByInvoiceSectionOperationOptions) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c ProductClient) ListByInvoiceSection(ctx context.Context, id InvoiceSecti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/products", id.ID()), OptionsObject: options, + Pager: &ListByInvoiceSectionCustomPager{}, + Path: fmt.Sprintf("%s/products", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/recipienttransfers/method_list.go b/resource-manager/billing/2024-04-01/recipienttransfers/method_list.go index 323059ed5c8..af812f394a4 100644 --- a/resource-manager/billing/2024-04-01/recipienttransfers/method_list.go +++ b/resource-manager/billing/2024-04-01/recipienttransfers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecipientTransferDetails } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RecipientTransfersClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RecipientTransfersClient) List(ctx context.Context) (result ListOperatio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.Billing/transfers", } diff --git a/resource-manager/billing/2024-04-01/reservation/method_getbyreservationorder.go b/resource-manager/billing/2024-04-01/reservation/method_getbyreservationorder.go index d5a771b94f8..6f27d4f8bd4 100644 --- a/resource-manager/billing/2024-04-01/reservation/method_getbyreservationorder.go +++ b/resource-manager/billing/2024-04-01/reservation/method_getbyreservationorder.go @@ -53,8 +53,8 @@ func (c ReservationClient) GetByReservationOrder(ctx context.Context, id Reserva http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/reservationorder/method_getbybillingaccount.go b/resource-manager/billing/2024-04-01/reservationorder/method_getbybillingaccount.go index eaf6602b073..ae629481a3a 100644 --- a/resource-manager/billing/2024-04-01/reservationorder/method_getbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/reservationorder/method_getbybillingaccount.go @@ -53,8 +53,8 @@ func (c ReservationOrderClient) GetByBillingAccount(ctx context.Context, id Rese http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/reservationorders/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/reservationorders/method_listbybillingaccount.go index 38a72a60518..033a4ff968d 100644 --- a/resource-manager/billing/2024-04-01/reservationorders/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/reservationorders/method_listbybillingaccount.go @@ -58,6 +58,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c ReservationOrdersClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReservationOrdersClient) ListByBillingAccount(ctx context.Context, id Bi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reservationOrders", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/reservationOrders", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/reservations/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/reservations/method_listbybillingaccount.go index 3dbc378a220..867994a1f0b 100644 --- a/resource-manager/billing/2024-04-01/reservations/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/reservations/method_listbybillingaccount.go @@ -70,6 +70,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c ReservationsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c ReservationsClient) ListByBillingAccount(ctx context.Context, id Billing http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reservations", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/reservations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/reservations/method_listbybillingprofile.go b/resource-manager/billing/2024-04-01/reservations/method_listbybillingprofile.go index 9e1bb34fc27..00581028d87 100644 --- a/resource-manager/billing/2024-04-01/reservations/method_listbybillingprofile.go +++ b/resource-manager/billing/2024-04-01/reservations/method_listbybillingprofile.go @@ -70,6 +70,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c ReservationsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c ReservationsClient) ListByBillingProfile(ctx context.Context, id Billing http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reservations", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/reservations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/reservations/method_listbyreservationorder.go b/resource-manager/billing/2024-04-01/reservations/method_listbyreservationorder.go index 5c2eccd4c7b..f5d1f2525a1 100644 --- a/resource-manager/billing/2024-04-01/reservations/method_listbyreservationorder.go +++ b/resource-manager/billing/2024-04-01/reservations/method_listbyreservationorder.go @@ -23,6 +23,18 @@ type ListByReservationOrderCompleteResult struct { Items []Reservation } +type ListByReservationOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReservationOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReservationOrder ... func (c ReservationsClient) ListByReservationOrder(ctx context.Context, id ReservationOrderId) (result ListByReservationOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReservationsClient) ListByReservationOrder(ctx context.Context, id Reser http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReservationOrderCustomPager{}, Path: fmt.Sprintf("%s/reservations", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/savingsplan/method_getbybillingaccount.go b/resource-manager/billing/2024-04-01/savingsplan/method_getbybillingaccount.go index 2553b86f3ac..1b65ad8246d 100644 --- a/resource-manager/billing/2024-04-01/savingsplan/method_getbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/savingsplan/method_getbybillingaccount.go @@ -53,8 +53,8 @@ func (c SavingsPlanClient) GetByBillingAccount(ctx context.Context, id SavingsPl http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/savingsplan/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/savingsplan/method_listbybillingaccount.go index 766c6b9f2dc..9bc34b438e9 100644 --- a/resource-manager/billing/2024-04-01/savingsplan/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/savingsplan/method_listbybillingaccount.go @@ -70,6 +70,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c SavingsPlanClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c SavingsPlanClient) ListByBillingAccount(ctx context.Context, id BillingA http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/savingsPlans", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/savingsPlans", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/savingsplan/method_listbysavingsplanorder.go b/resource-manager/billing/2024-04-01/savingsplan/method_listbysavingsplanorder.go index 0bdf20e0f39..f7027f74089 100644 --- a/resource-manager/billing/2024-04-01/savingsplan/method_listbysavingsplanorder.go +++ b/resource-manager/billing/2024-04-01/savingsplan/method_listbysavingsplanorder.go @@ -23,6 +23,18 @@ type ListBySavingsPlanOrderCompleteResult struct { Items []SavingsPlanModel } +type ListBySavingsPlanOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySavingsPlanOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySavingsPlanOrder ... func (c SavingsPlanClient) ListBySavingsPlanOrder(ctx context.Context, id SavingsPlanOrderId) (result ListBySavingsPlanOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SavingsPlanClient) ListBySavingsPlanOrder(ctx context.Context, id Saving http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySavingsPlanOrderCustomPager{}, Path: fmt.Sprintf("%s/savingsPlans", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/savingsplanorder/method_getbybillingaccount.go b/resource-manager/billing/2024-04-01/savingsplanorder/method_getbybillingaccount.go index 467a3354011..6f628106538 100644 --- a/resource-manager/billing/2024-04-01/savingsplanorder/method_getbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/savingsplanorder/method_getbybillingaccount.go @@ -53,8 +53,8 @@ func (c SavingsPlanOrderClient) GetByBillingAccount(ctx context.Context, id Savi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/savingsplanorder/method_listbybillingaccount.go b/resource-manager/billing/2024-04-01/savingsplanorder/method_listbybillingaccount.go index 132c963e6c0..f6689b321fe 100644 --- a/resource-manager/billing/2024-04-01/savingsplanorder/method_listbybillingaccount.go +++ b/resource-manager/billing/2024-04-01/savingsplanorder/method_listbybillingaccount.go @@ -58,6 +58,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c SavingsPlanOrderClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c SavingsPlanOrderClient) ListByBillingAccount(ctx context.Context, id Bil http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/savingsPlanOrders", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/savingsPlanOrders", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/transaction/method_gettransactionsummarybyinvoice.go b/resource-manager/billing/2024-04-01/transaction/method_gettransactionsummarybyinvoice.go index 8d0dc8f79a8..cd2e2e81317 100644 --- a/resource-manager/billing/2024-04-01/transaction/method_gettransactionsummarybyinvoice.go +++ b/resource-manager/billing/2024-04-01/transaction/method_gettransactionsummarybyinvoice.go @@ -57,8 +57,8 @@ func (c TransactionClient) GetTransactionSummaryByInvoice(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/transactionSummary", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/transactionSummary", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/transaction/method_listbybillingprofile.go b/resource-manager/billing/2024-04-01/transaction/method_listbybillingprofile.go index 6c706793af1..cee818c46fc 100644 --- a/resource-manager/billing/2024-04-01/transaction/method_listbybillingprofile.go +++ b/resource-manager/billing/2024-04-01/transaction/method_listbybillingprofile.go @@ -82,6 +82,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c TransactionClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -90,8 +102,9 @@ func (c TransactionClient) ListByBillingProfile(ctx context.Context, id BillingP http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/transactions", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/transactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/transaction/method_listbycustomer.go b/resource-manager/billing/2024-04-01/transaction/method_listbycustomer.go index fe56c5c9fb7..eaac68a0f06 100644 --- a/resource-manager/billing/2024-04-01/transaction/method_listbycustomer.go +++ b/resource-manager/billing/2024-04-01/transaction/method_listbycustomer.go @@ -82,6 +82,18 @@ func (o ListByCustomerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c TransactionClient) ListByCustomer(ctx context.Context, id BillingProfileCustomerId, options ListByCustomerOperationOptions) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -90,8 +102,9 @@ func (c TransactionClient) ListByCustomer(ctx context.Context, id BillingProfile http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/transactions", id.ID()), OptionsObject: options, + Pager: &ListByCustomerCustomPager{}, + Path: fmt.Sprintf("%s/transactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/transaction/method_listbyinvoice.go b/resource-manager/billing/2024-04-01/transaction/method_listbyinvoice.go index c20c3afa813..8ed24307f68 100644 --- a/resource-manager/billing/2024-04-01/transaction/method_listbyinvoice.go +++ b/resource-manager/billing/2024-04-01/transaction/method_listbyinvoice.go @@ -70,6 +70,18 @@ func (o ListByInvoiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInvoiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoice ... func (c TransactionClient) ListByInvoice(ctx context.Context, id BillingAccountInvoiceId, options ListByInvoiceOperationOptions) (result ListByInvoiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c TransactionClient) ListByInvoice(ctx context.Context, id BillingAccountI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/transactions", id.ID()), OptionsObject: options, + Pager: &ListByInvoiceCustomPager{}, + Path: fmt.Sprintf("%s/transactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/transaction/method_listbyinvoicesection.go b/resource-manager/billing/2024-04-01/transaction/method_listbyinvoicesection.go index c9db2941d97..c2ed4686652 100644 --- a/resource-manager/billing/2024-04-01/transaction/method_listbyinvoicesection.go +++ b/resource-manager/billing/2024-04-01/transaction/method_listbyinvoicesection.go @@ -82,6 +82,18 @@ func (o ListByInvoiceSectionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInvoiceSectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInvoiceSectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInvoiceSection ... func (c TransactionClient) ListByInvoiceSection(ctx context.Context, id InvoiceSectionId, options ListByInvoiceSectionOperationOptions) (result ListByInvoiceSectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -90,8 +102,9 @@ func (c TransactionClient) ListByInvoiceSection(ctx context.Context, id InvoiceS http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/transactions", id.ID()), OptionsObject: options, + Pager: &ListByInvoiceSectionCustomPager{}, + Path: fmt.Sprintf("%s/transactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/billing/2024-04-01/transfers/method_list.go b/resource-manager/billing/2024-04-01/transfers/method_list.go index 1b950ad55a4..a1f2562baf3 100644 --- a/resource-manager/billing/2024-04-01/transfers/method_list.go +++ b/resource-manager/billing/2024-04-01/transfers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []TransferDetails } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TransfersClient) List(ctx context.Context, id InvoiceSectionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TransfersClient) List(ctx context.Context, id InvoiceSectionId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/transfers", id.ID()), } diff --git a/resource-manager/billing/2024-04-01/transfers/method_partnertransferslist.go b/resource-manager/billing/2024-04-01/transfers/method_partnertransferslist.go index 1ca90c997a9..86a592f2aa9 100644 --- a/resource-manager/billing/2024-04-01/transfers/method_partnertransferslist.go +++ b/resource-manager/billing/2024-04-01/transfers/method_partnertransferslist.go @@ -23,6 +23,18 @@ type PartnerTransfersListCompleteResult struct { Items []PartnerTransferDetails } +type PartnerTransfersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PartnerTransfersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PartnerTransfersList ... func (c TransfersClient) PartnerTransfersList(ctx context.Context, id BillingProfileCustomerId) (result PartnerTransfersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TransfersClient) PartnerTransfersList(ctx context.Context, id BillingPro http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PartnerTransfersListCustomPager{}, Path: fmt.Sprintf("%s/transfers", id.ID()), } diff --git a/resource-manager/blueprints/2018-11-01-preview/artifact/method_list.go b/resource-manager/blueprints/2018-11-01-preview/artifact/method_list.go index 5ac4a44add3..6fa437cf480 100644 --- a/resource-manager/blueprints/2018-11-01-preview/artifact/method_list.go +++ b/resource-manager/blueprints/2018-11-01-preview/artifact/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Artifact } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ArtifactClient) List(ctx context.Context, id ScopedBlueprintId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ArtifactClient) List(ctx context.Context, id ScopedBlueprintId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/artifacts", id.ID()), } diff --git a/resource-manager/blueprints/2018-11-01-preview/assignment/method_delete.go b/resource-manager/blueprints/2018-11-01-preview/assignment/method_delete.go index 37712c968ac..a69eea0ead2 100644 --- a/resource-manager/blueprints/2018-11-01-preview/assignment/method_delete.go +++ b/resource-manager/blueprints/2018-11-01-preview/assignment/method_delete.go @@ -54,8 +54,8 @@ func (c AssignmentClient) Delete(ctx context.Context, id ScopedBlueprintAssignme http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/blueprints/2018-11-01-preview/assignment/method_list.go b/resource-manager/blueprints/2018-11-01-preview/assignment/method_list.go index f03d78545ad..fa30b60e538 100644 --- a/resource-manager/blueprints/2018-11-01-preview/assignment/method_list.go +++ b/resource-manager/blueprints/2018-11-01-preview/assignment/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Assignment } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AssignmentClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AssignmentClient) List(ctx context.Context, id commonids.ScopeId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Blueprint/blueprintAssignments", id.ID()), } diff --git a/resource-manager/blueprints/2018-11-01-preview/assignmentoperations/method_list.go b/resource-manager/blueprints/2018-11-01-preview/assignmentoperations/method_list.go index a8eddef6b06..5750db9da9a 100644 --- a/resource-manager/blueprints/2018-11-01-preview/assignmentoperations/method_list.go +++ b/resource-manager/blueprints/2018-11-01-preview/assignmentoperations/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []AssignmentOperation } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AssignmentOperationsClient) List(ctx context.Context, id ScopedBlueprintAssignmentId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AssignmentOperationsClient) List(ctx context.Context, id ScopedBlueprint http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/assignmentOperations", id.ID()), } diff --git a/resource-manager/blueprints/2018-11-01-preview/blueprint/method_list.go b/resource-manager/blueprints/2018-11-01-preview/blueprint/method_list.go index 5e8c5afe788..d206757266b 100644 --- a/resource-manager/blueprints/2018-11-01-preview/blueprint/method_list.go +++ b/resource-manager/blueprints/2018-11-01-preview/blueprint/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Blueprint } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BlueprintClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BlueprintClient) List(ctx context.Context, id commonids.ScopeId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Blueprint/blueprints", id.ID()), } diff --git a/resource-manager/blueprints/2018-11-01-preview/publishedartifact/method_list.go b/resource-manager/blueprints/2018-11-01-preview/publishedartifact/method_list.go index 3e6351c7819..1b20e244037 100644 --- a/resource-manager/blueprints/2018-11-01-preview/publishedartifact/method_list.go +++ b/resource-manager/blueprints/2018-11-01-preview/publishedartifact/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Artifact } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PublishedArtifactClient) List(ctx context.Context, id ScopedVersionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublishedArtifactClient) List(ctx context.Context, id ScopedVersionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/artifacts", id.ID()), } diff --git a/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_list.go b/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_list.go index 9d94aa8bcbe..31391071f5b 100644 --- a/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_list.go +++ b/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PublishedBlueprint } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PublishedBlueprintClient) List(ctx context.Context, id ScopedBlueprintId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PublishedBlueprintClient) List(ctx context.Context, id ScopedBlueprintId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/botservice/2022-09-15/bot/method_list.go b/resource-manager/botservice/2022-09-15/bot/method_list.go index e72bb74dbec..17144676a2d 100644 --- a/resource-manager/botservice/2022-09-15/bot/method_list.go +++ b/resource-manager/botservice/2022-09-15/bot/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Bot } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BotClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BotClient) List(ctx context.Context, id commonids.SubscriptionId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.BotService/botServices", id.ID()), } diff --git a/resource-manager/botservice/2022-09-15/bot/method_listbyresourcegroup.go b/resource-manager/botservice/2022-09-15/bot/method_listbyresourcegroup.go index 9ade2397c8c..81afbcb900f 100644 --- a/resource-manager/botservice/2022-09-15/bot/method_listbyresourcegroup.go +++ b/resource-manager/botservice/2022-09-15/bot/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Bot } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c BotClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BotClient) ListByResourceGroup(ctx context.Context, id commonids.Resourc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.BotService/botServices", id.ID()), } diff --git a/resource-manager/botservice/2022-09-15/botconnection/method_listbybotservice.go b/resource-manager/botservice/2022-09-15/botconnection/method_listbybotservice.go index f8e1165dff0..85343643357 100644 --- a/resource-manager/botservice/2022-09-15/botconnection/method_listbybotservice.go +++ b/resource-manager/botservice/2022-09-15/botconnection/method_listbybotservice.go @@ -24,6 +24,18 @@ type ListByBotServiceCompleteResult struct { Items []ConnectionSetting } +type ListByBotServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBotServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBotService ... func (c BotConnectionClient) ListByBotService(ctx context.Context, id commonids.BotServiceId) (result ListByBotServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BotConnectionClient) ListByBotService(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBotServiceCustomPager{}, Path: fmt.Sprintf("%s/connections", id.ID()), } diff --git a/resource-manager/botservice/2022-09-15/channel/method_listbyresourcegroup.go b/resource-manager/botservice/2022-09-15/channel/method_listbyresourcegroup.go index 4f7de43d9bf..2861aab2845 100644 --- a/resource-manager/botservice/2022-09-15/channel/method_listbyresourcegroup.go +++ b/resource-manager/botservice/2022-09-15/channel/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []BotChannel } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ChannelClient) ListByResourceGroup(ctx context.Context, id commonids.BotServiceId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ChannelClient) ListByResourceGroup(ctx context.Context, id commonids.Bot http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/channels", id.ID()), } diff --git a/resource-manager/botservice/2022-09-15/listserviceproviders/method_botconnectionlistserviceproviders.go b/resource-manager/botservice/2022-09-15/listserviceproviders/method_botconnectionlistserviceproviders.go index 70ed8680c2a..6b8310c24a8 100644 --- a/resource-manager/botservice/2022-09-15/listserviceproviders/method_botconnectionlistserviceproviders.go +++ b/resource-manager/botservice/2022-09-15/listserviceproviders/method_botconnectionlistserviceproviders.go @@ -24,6 +24,18 @@ type BotConnectionListServiceProvidersCompleteResult struct { Items []ServiceProvider } +type BotConnectionListServiceProvidersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BotConnectionListServiceProvidersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BotConnectionListServiceProviders ... func (c ListServiceProvidersClient) BotConnectionListServiceProviders(ctx context.Context, id commonids.SubscriptionId) (result BotConnectionListServiceProvidersOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ListServiceProvidersClient) BotConnectionListServiceProviders(ctx contex http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &BotConnectionListServiceProvidersCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.BotService/listAuthServiceProviders", id.ID()), } diff --git a/resource-manager/chaosstudio/2023-11-01/capabilities/method_list.go b/resource-manager/chaosstudio/2023-11-01/capabilities/method_list.go index da4098d149c..d724ac45475 100644 --- a/resource-manager/chaosstudio/2023-11-01/capabilities/method_list.go +++ b/resource-manager/chaosstudio/2023-11-01/capabilities/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CapabilitiesClient) List(ctx context.Context, id commonids.ChaosStudioTargetId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c CapabilitiesClient) List(ctx context.Context, id commonids.ChaosStudioTa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/capabilities", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/capabilities", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/chaosstudio/2023-11-01/capabilitytypes/method_list.go b/resource-manager/chaosstudio/2023-11-01/capabilitytypes/method_list.go index b90252b8599..925560e0b50 100644 --- a/resource-manager/chaosstudio/2023-11-01/capabilitytypes/method_list.go +++ b/resource-manager/chaosstudio/2023-11-01/capabilitytypes/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CapabilityTypesClient) List(ctx context.Context, id TargetTypeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c CapabilityTypesClient) List(ctx context.Context, id TargetTypeId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/capabilityTypes", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/capabilityTypes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/chaosstudio/2023-11-01/experiments/method_list.go b/resource-manager/chaosstudio/2023-11-01/experiments/method_list.go index 38d948940f4..bf3e84085b1 100644 --- a/resource-manager/chaosstudio/2023-11-01/experiments/method_list.go +++ b/resource-manager/chaosstudio/2023-11-01/experiments/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExperimentsClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ExperimentsClient) List(ctx context.Context, id commonids.ResourceGroupI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Chaos/experiments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Chaos/experiments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/chaosstudio/2023-11-01/experiments/method_listall.go b/resource-manager/chaosstudio/2023-11-01/experiments/method_listall.go index abf09fd128b..f5a05c93f16 100644 --- a/resource-manager/chaosstudio/2023-11-01/experiments/method_listall.go +++ b/resource-manager/chaosstudio/2023-11-01/experiments/method_listall.go @@ -55,6 +55,18 @@ func (o ListAllOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c ExperimentsClient) ListAll(ctx context.Context, id commonids.SubscriptionId, options ListAllOperationOptions) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ExperimentsClient) ListAll(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Chaos/experiments", id.ID()), OptionsObject: options, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Chaos/experiments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/chaosstudio/2023-11-01/experiments/method_listallexecutions.go b/resource-manager/chaosstudio/2023-11-01/experiments/method_listallexecutions.go index 62a229b2ccf..f2c8aa0ebd6 100644 --- a/resource-manager/chaosstudio/2023-11-01/experiments/method_listallexecutions.go +++ b/resource-manager/chaosstudio/2023-11-01/experiments/method_listallexecutions.go @@ -23,6 +23,18 @@ type ListAllExecutionsCompleteResult struct { Items []ExperimentExecution } +type ListAllExecutionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllExecutionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAllExecutions ... func (c ExperimentsClient) ListAllExecutions(ctx context.Context, id ExperimentId) (result ListAllExecutionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExperimentsClient) ListAllExecutions(ctx context.Context, id ExperimentI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllExecutionsCustomPager{}, Path: fmt.Sprintf("%s/executions", id.ID()), } diff --git a/resource-manager/chaosstudio/2023-11-01/targets/method_list.go b/resource-manager/chaosstudio/2023-11-01/targets/method_list.go index 8fde3cb3fd8..4e6681c4b1e 100644 --- a/resource-manager/chaosstudio/2023-11-01/targets/method_list.go +++ b/resource-manager/chaosstudio/2023-11-01/targets/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TargetsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c TargetsClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Chaos/targets", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Chaos/targets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/chaosstudio/2023-11-01/targettypes/method_list.go b/resource-manager/chaosstudio/2023-11-01/targettypes/method_list.go index a5b39218132..62d8fb2d6f0 100644 --- a/resource-manager/chaosstudio/2023-11-01/targettypes/method_list.go +++ b/resource-manager/chaosstudio/2023-11-01/targettypes/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TargetTypesClient) List(ctx context.Context, id LocationId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c TargetTypesClient) List(ctx context.Context, id LocationId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/targetTypes", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/targetTypes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/chaosstudio/2024-01-01/capabilities/method_list.go b/resource-manager/chaosstudio/2024-01-01/capabilities/method_list.go index da4098d149c..d724ac45475 100644 --- a/resource-manager/chaosstudio/2024-01-01/capabilities/method_list.go +++ b/resource-manager/chaosstudio/2024-01-01/capabilities/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CapabilitiesClient) List(ctx context.Context, id commonids.ChaosStudioTargetId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c CapabilitiesClient) List(ctx context.Context, id commonids.ChaosStudioTa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/capabilities", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/capabilities", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/chaosstudio/2024-01-01/capabilitytypes/method_list.go b/resource-manager/chaosstudio/2024-01-01/capabilitytypes/method_list.go index b90252b8599..925560e0b50 100644 --- a/resource-manager/chaosstudio/2024-01-01/capabilitytypes/method_list.go +++ b/resource-manager/chaosstudio/2024-01-01/capabilitytypes/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CapabilityTypesClient) List(ctx context.Context, id TargetTypeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c CapabilityTypesClient) List(ctx context.Context, id TargetTypeId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/capabilityTypes", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/capabilityTypes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/chaosstudio/2024-01-01/experiments/method_list.go b/resource-manager/chaosstudio/2024-01-01/experiments/method_list.go index 38d948940f4..bf3e84085b1 100644 --- a/resource-manager/chaosstudio/2024-01-01/experiments/method_list.go +++ b/resource-manager/chaosstudio/2024-01-01/experiments/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExperimentsClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ExperimentsClient) List(ctx context.Context, id commonids.ResourceGroupI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Chaos/experiments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Chaos/experiments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/chaosstudio/2024-01-01/experiments/method_listall.go b/resource-manager/chaosstudio/2024-01-01/experiments/method_listall.go index abf09fd128b..f5a05c93f16 100644 --- a/resource-manager/chaosstudio/2024-01-01/experiments/method_listall.go +++ b/resource-manager/chaosstudio/2024-01-01/experiments/method_listall.go @@ -55,6 +55,18 @@ func (o ListAllOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c ExperimentsClient) ListAll(ctx context.Context, id commonids.SubscriptionId, options ListAllOperationOptions) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ExperimentsClient) ListAll(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Chaos/experiments", id.ID()), OptionsObject: options, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Chaos/experiments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/chaosstudio/2024-01-01/experiments/method_listallexecutions.go b/resource-manager/chaosstudio/2024-01-01/experiments/method_listallexecutions.go index 62a229b2ccf..f2c8aa0ebd6 100644 --- a/resource-manager/chaosstudio/2024-01-01/experiments/method_listallexecutions.go +++ b/resource-manager/chaosstudio/2024-01-01/experiments/method_listallexecutions.go @@ -23,6 +23,18 @@ type ListAllExecutionsCompleteResult struct { Items []ExperimentExecution } +type ListAllExecutionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllExecutionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAllExecutions ... func (c ExperimentsClient) ListAllExecutions(ctx context.Context, id ExperimentId) (result ListAllExecutionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExperimentsClient) ListAllExecutions(ctx context.Context, id ExperimentI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllExecutionsCustomPager{}, Path: fmt.Sprintf("%s/executions", id.ID()), } diff --git a/resource-manager/chaosstudio/2024-01-01/targets/method_list.go b/resource-manager/chaosstudio/2024-01-01/targets/method_list.go index 8fde3cb3fd8..4e6681c4b1e 100644 --- a/resource-manager/chaosstudio/2024-01-01/targets/method_list.go +++ b/resource-manager/chaosstudio/2024-01-01/targets/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TargetsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c TargetsClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Chaos/targets", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Chaos/targets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/chaosstudio/2024-01-01/targettypes/method_list.go b/resource-manager/chaosstudio/2024-01-01/targettypes/method_list.go index a5b39218132..62d8fb2d6f0 100644 --- a/resource-manager/chaosstudio/2024-01-01/targettypes/method_list.go +++ b/resource-manager/chaosstudio/2024-01-01/targettypes/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TargetTypesClient) List(ctx context.Context, id LocationId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c TargetTypesClient) List(ctx context.Context, id LocationId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/targetTypes", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/targetTypes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslist.go b/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslist.go index 5a1e3e79201..b73e6cb27fa 100644 --- a/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslist.go +++ b/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslist.go @@ -24,6 +24,18 @@ type AccountsListCompleteResult struct { Items []Account } +type AccountsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsList ... func (c CognitiveServicesAccountsClient) AccountsList(ctx context.Context, id commonids.SubscriptionId) (result AccountsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CognitiveServicesAccountsClient) AccountsList(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/accounts", id.ID()), } diff --git a/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistbyresourcegroup.go b/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistbyresourcegroup.go index 4893537fabf..19345d84406 100644 --- a/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistbyresourcegroup.go +++ b/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistbyresourcegroup.go @@ -24,6 +24,18 @@ type AccountsListByResourceGroupCompleteResult struct { Items []Account } +type AccountsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListByResourceGroup ... func (c CognitiveServicesAccountsClient) AccountsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result AccountsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CognitiveServicesAccountsClient) AccountsListByResourceGroup(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/accounts", id.ID()), } diff --git a/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistmodels.go b/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistmodels.go index b3e4ef054d9..7ca2e815a35 100644 --- a/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistmodels.go +++ b/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistmodels.go @@ -23,6 +23,18 @@ type AccountsListModelsCompleteResult struct { Items []AccountModel } +type AccountsListModelsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListModelsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListModels ... func (c CognitiveServicesAccountsClient) AccountsListModels(ctx context.Context, id AccountId) (result AccountsListModelsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CognitiveServicesAccountsClient) AccountsListModels(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListModelsCustomPager{}, Path: fmt.Sprintf("%s/models", id.ID()), } diff --git a/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistusages.go b/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistusages.go index 4d1dea25e38..aa800ae686c 100644 --- a/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistusages.go +++ b/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistusages.go @@ -50,6 +50,18 @@ func (o AccountsListUsagesOperationOptions) ToQuery() *client.QueryParams { return &out } +type AccountsListUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListUsages ... func (c CognitiveServicesAccountsClient) AccountsListUsages(ctx context.Context, id AccountId, options AccountsListUsagesOperationOptions) (result AccountsListUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c CognitiveServicesAccountsClient) AccountsListUsages(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &AccountsListUsagesCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_deletedaccountslist.go b/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_deletedaccountslist.go index 4930734f113..a086dc5f064 100644 --- a/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_deletedaccountslist.go +++ b/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_deletedaccountslist.go @@ -24,6 +24,18 @@ type DeletedAccountsListCompleteResult struct { Items []Account } +type DeletedAccountsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeletedAccountsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeletedAccountsList ... func (c CognitiveServicesAccountsClient) DeletedAccountsList(ctx context.Context, id commonids.SubscriptionId) (result DeletedAccountsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CognitiveServicesAccountsClient) DeletedAccountsList(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DeletedAccountsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/deletedAccounts", id.ID()), } diff --git a/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_resourceskuslist.go b/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_resourceskuslist.go index 0b34ffc831e..34ab0cd1815 100644 --- a/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_resourceskuslist.go +++ b/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_resourceskuslist.go @@ -24,6 +24,18 @@ type ResourceSkusListCompleteResult struct { Items []ResourceSku } +type ResourceSkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceSkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourceSkusList ... func (c CognitiveServicesAccountsClient) ResourceSkusList(ctx context.Context, id commonids.SubscriptionId) (result ResourceSkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CognitiveServicesAccountsClient) ResourceSkusList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourceSkusListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/skus", id.ID()), } diff --git a/resource-manager/cognitive/2023-05-01/cognitiveservicescommitmentplans/method_commitmentplanslistplansbyresourcegroup.go b/resource-manager/cognitive/2023-05-01/cognitiveservicescommitmentplans/method_commitmentplanslistplansbyresourcegroup.go index 068c5ddceb7..324819b4a0e 100644 --- a/resource-manager/cognitive/2023-05-01/cognitiveservicescommitmentplans/method_commitmentplanslistplansbyresourcegroup.go +++ b/resource-manager/cognitive/2023-05-01/cognitiveservicescommitmentplans/method_commitmentplanslistplansbyresourcegroup.go @@ -24,6 +24,18 @@ type CommitmentPlansListPlansByResourceGroupCompleteResult struct { Items []CommitmentPlan } +type CommitmentPlansListPlansByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CommitmentPlansListPlansByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CommitmentPlansListPlansByResourceGroup ... func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result CommitmentPlansListPlansByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansByResour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CommitmentPlansListPlansByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/commitmentPlans", id.ID()), } diff --git a/resource-manager/cognitive/2023-05-01/cognitiveservicescommitmentplans/method_commitmentplanslistplansbysubscription.go b/resource-manager/cognitive/2023-05-01/cognitiveservicescommitmentplans/method_commitmentplanslistplansbysubscription.go index 8716bf14a43..233851e9e31 100644 --- a/resource-manager/cognitive/2023-05-01/cognitiveservicescommitmentplans/method_commitmentplanslistplansbysubscription.go +++ b/resource-manager/cognitive/2023-05-01/cognitiveservicescommitmentplans/method_commitmentplanslistplansbysubscription.go @@ -24,6 +24,18 @@ type CommitmentPlansListPlansBySubscriptionCompleteResult struct { Items []CommitmentPlan } +type CommitmentPlansListPlansBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CommitmentPlansListPlansBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CommitmentPlansListPlansBySubscription ... func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansBySubscription(ctx context.Context, id commonids.SubscriptionId) (result CommitmentPlansListPlansBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansBySubscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CommitmentPlansListPlansBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/commitmentPlans", id.ID()), } diff --git a/resource-manager/cognitive/2023-05-01/commitmentplans/method_list.go b/resource-manager/cognitive/2023-05-01/commitmentplans/method_list.go index 74c54aef8a9..0bdb4c6329f 100644 --- a/resource-manager/cognitive/2023-05-01/commitmentplans/method_list.go +++ b/resource-manager/cognitive/2023-05-01/commitmentplans/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CommitmentPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CommitmentPlansClient) List(ctx context.Context, id AccountId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CommitmentPlansClient) List(ctx context.Context, id AccountId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/commitmentPlans", id.ID()), } diff --git a/resource-manager/cognitive/2023-05-01/commitmentplans/method_listassociations.go b/resource-manager/cognitive/2023-05-01/commitmentplans/method_listassociations.go index d79b07eca0b..43e6a69f9c9 100644 --- a/resource-manager/cognitive/2023-05-01/commitmentplans/method_listassociations.go +++ b/resource-manager/cognitive/2023-05-01/commitmentplans/method_listassociations.go @@ -23,6 +23,18 @@ type ListAssociationsCompleteResult struct { Items []CommitmentPlanAccountAssociation } +type ListAssociationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAssociationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAssociations ... func (c CommitmentPlansClient) ListAssociations(ctx context.Context, id CommitmentPlanId) (result ListAssociationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CommitmentPlansClient) ListAssociations(ctx context.Context, id Commitme http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAssociationsCustomPager{}, Path: fmt.Sprintf("%s/accountAssociations", id.ID()), } diff --git a/resource-manager/cognitive/2023-05-01/commitmenttiers/method_list.go b/resource-manager/cognitive/2023-05-01/commitmenttiers/method_list.go index 37f5021198e..81c610ace27 100644 --- a/resource-manager/cognitive/2023-05-01/commitmenttiers/method_list.go +++ b/resource-manager/cognitive/2023-05-01/commitmenttiers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CommitmentTier } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CommitmentTiersClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CommitmentTiersClient) List(ctx context.Context, id LocationId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/commitmentTiers", id.ID()), } diff --git a/resource-manager/cognitive/2023-05-01/deployments/method_list.go b/resource-manager/cognitive/2023-05-01/deployments/method_list.go index 793955c832b..43c4d7c3e54 100644 --- a/resource-manager/cognitive/2023-05-01/deployments/method_list.go +++ b/resource-manager/cognitive/2023-05-01/deployments/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Deployment } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeploymentsClient) List(ctx context.Context, id AccountId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeploymentsClient) List(ctx context.Context, id AccountId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/deployments", id.ID()), } diff --git a/resource-manager/cognitive/2023-05-01/models/method_list.go b/resource-manager/cognitive/2023-05-01/models/method_list.go index b996ddead8f..cb77970d546 100644 --- a/resource-manager/cognitive/2023-05-01/models/method_list.go +++ b/resource-manager/cognitive/2023-05-01/models/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Model } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ModelsClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ModelsClient) List(ctx context.Context, id LocationId) (result ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/models", id.ID()), } diff --git a/resource-manager/cognitive/2023-05-01/skus/method_resourceskuslist.go b/resource-manager/cognitive/2023-05-01/skus/method_resourceskuslist.go index 226823d2a54..7388d1fdf59 100644 --- a/resource-manager/cognitive/2023-05-01/skus/method_resourceskuslist.go +++ b/resource-manager/cognitive/2023-05-01/skus/method_resourceskuslist.go @@ -24,6 +24,18 @@ type ResourceSkusListCompleteResult struct { Items []ResourceSku } +type ResourceSkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceSkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourceSkusList ... func (c SkusClient) ResourceSkusList(ctx context.Context, id commonids.SubscriptionId) (result ResourceSkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SkusClient) ResourceSkusList(ctx context.Context, id commonids.Subscript http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourceSkusListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/skus", id.ID()), } diff --git a/resource-manager/cognitive/2023-05-01/usages/method_list.go b/resource-manager/cognitive/2023-05-01/usages/method_list.go index 76fcbe39cf4..cfa904ac7f3 100644 --- a/resource-manager/cognitive/2023-05-01/usages/method_list.go +++ b/resource-manager/cognitive/2023-05-01/usages/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UsagesClient) List(ctx context.Context, id LocationId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c UsagesClient) List(ctx context.Context, id LocationId, options ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslist.go b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslist.go index 5a1e3e79201..b73e6cb27fa 100644 --- a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslist.go +++ b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslist.go @@ -24,6 +24,18 @@ type AccountsListCompleteResult struct { Items []Account } +type AccountsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsList ... func (c CognitiveServicesAccountsClient) AccountsList(ctx context.Context, id commonids.SubscriptionId) (result AccountsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CognitiveServicesAccountsClient) AccountsList(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/accounts", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslistbyresourcegroup.go b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslistbyresourcegroup.go index 4893537fabf..19345d84406 100644 --- a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslistbyresourcegroup.go +++ b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslistbyresourcegroup.go @@ -24,6 +24,18 @@ type AccountsListByResourceGroupCompleteResult struct { Items []Account } +type AccountsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListByResourceGroup ... func (c CognitiveServicesAccountsClient) AccountsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result AccountsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CognitiveServicesAccountsClient) AccountsListByResourceGroup(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/accounts", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslistmodels.go b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslistmodels.go index b3e4ef054d9..7ca2e815a35 100644 --- a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslistmodels.go +++ b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslistmodels.go @@ -23,6 +23,18 @@ type AccountsListModelsCompleteResult struct { Items []AccountModel } +type AccountsListModelsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListModelsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListModels ... func (c CognitiveServicesAccountsClient) AccountsListModels(ctx context.Context, id AccountId) (result AccountsListModelsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CognitiveServicesAccountsClient) AccountsListModels(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListModelsCustomPager{}, Path: fmt.Sprintf("%s/models", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslistusages.go b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslistusages.go index 4d1dea25e38..aa800ae686c 100644 --- a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslistusages.go +++ b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_accountslistusages.go @@ -50,6 +50,18 @@ func (o AccountsListUsagesOperationOptions) ToQuery() *client.QueryParams { return &out } +type AccountsListUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListUsages ... func (c CognitiveServicesAccountsClient) AccountsListUsages(ctx context.Context, id AccountId, options AccountsListUsagesOperationOptions) (result AccountsListUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c CognitiveServicesAccountsClient) AccountsListUsages(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &AccountsListUsagesCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_deletedaccountslist.go b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_deletedaccountslist.go index 4930734f113..a086dc5f064 100644 --- a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_deletedaccountslist.go +++ b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_deletedaccountslist.go @@ -24,6 +24,18 @@ type DeletedAccountsListCompleteResult struct { Items []Account } +type DeletedAccountsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeletedAccountsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeletedAccountsList ... func (c CognitiveServicesAccountsClient) DeletedAccountsList(ctx context.Context, id commonids.SubscriptionId) (result DeletedAccountsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CognitiveServicesAccountsClient) DeletedAccountsList(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DeletedAccountsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/deletedAccounts", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_resourceskuslist.go b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_resourceskuslist.go index 0b34ffc831e..34ab0cd1815 100644 --- a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_resourceskuslist.go +++ b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicesaccounts/method_resourceskuslist.go @@ -24,6 +24,18 @@ type ResourceSkusListCompleteResult struct { Items []ResourceSku } +type ResourceSkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceSkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourceSkusList ... func (c CognitiveServicesAccountsClient) ResourceSkusList(ctx context.Context, id commonids.SubscriptionId) (result ResourceSkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CognitiveServicesAccountsClient) ResourceSkusList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourceSkusListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/skus", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicescommitmentplans/method_commitmentplanslistplansbyresourcegroup.go b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicescommitmentplans/method_commitmentplanslistplansbyresourcegroup.go index 068c5ddceb7..324819b4a0e 100644 --- a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicescommitmentplans/method_commitmentplanslistplansbyresourcegroup.go +++ b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicescommitmentplans/method_commitmentplanslistplansbyresourcegroup.go @@ -24,6 +24,18 @@ type CommitmentPlansListPlansByResourceGroupCompleteResult struct { Items []CommitmentPlan } +type CommitmentPlansListPlansByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CommitmentPlansListPlansByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CommitmentPlansListPlansByResourceGroup ... func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result CommitmentPlansListPlansByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansByResour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CommitmentPlansListPlansByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/commitmentPlans", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicescommitmentplans/method_commitmentplanslistplansbysubscription.go b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicescommitmentplans/method_commitmentplanslistplansbysubscription.go index 8716bf14a43..233851e9e31 100644 --- a/resource-manager/cognitive/2023-10-01-preview/cognitiveservicescommitmentplans/method_commitmentplanslistplansbysubscription.go +++ b/resource-manager/cognitive/2023-10-01-preview/cognitiveservicescommitmentplans/method_commitmentplanslistplansbysubscription.go @@ -24,6 +24,18 @@ type CommitmentPlansListPlansBySubscriptionCompleteResult struct { Items []CommitmentPlan } +type CommitmentPlansListPlansBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CommitmentPlansListPlansBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CommitmentPlansListPlansBySubscription ... func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansBySubscription(ctx context.Context, id commonids.SubscriptionId) (result CommitmentPlansListPlansBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansBySubscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CommitmentPlansListPlansBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/commitmentPlans", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/commitmentplans/method_list.go b/resource-manager/cognitive/2023-10-01-preview/commitmentplans/method_list.go index 74c54aef8a9..0bdb4c6329f 100644 --- a/resource-manager/cognitive/2023-10-01-preview/commitmentplans/method_list.go +++ b/resource-manager/cognitive/2023-10-01-preview/commitmentplans/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CommitmentPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CommitmentPlansClient) List(ctx context.Context, id AccountId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CommitmentPlansClient) List(ctx context.Context, id AccountId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/commitmentPlans", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/commitmentplans/method_listassociations.go b/resource-manager/cognitive/2023-10-01-preview/commitmentplans/method_listassociations.go index d79b07eca0b..43e6a69f9c9 100644 --- a/resource-manager/cognitive/2023-10-01-preview/commitmentplans/method_listassociations.go +++ b/resource-manager/cognitive/2023-10-01-preview/commitmentplans/method_listassociations.go @@ -23,6 +23,18 @@ type ListAssociationsCompleteResult struct { Items []CommitmentPlanAccountAssociation } +type ListAssociationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAssociationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAssociations ... func (c CommitmentPlansClient) ListAssociations(ctx context.Context, id CommitmentPlanId) (result ListAssociationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CommitmentPlansClient) ListAssociations(ctx context.Context, id Commitme http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAssociationsCustomPager{}, Path: fmt.Sprintf("%s/accountAssociations", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/commitmenttiers/method_list.go b/resource-manager/cognitive/2023-10-01-preview/commitmenttiers/method_list.go index 37f5021198e..81c610ace27 100644 --- a/resource-manager/cognitive/2023-10-01-preview/commitmenttiers/method_list.go +++ b/resource-manager/cognitive/2023-10-01-preview/commitmenttiers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CommitmentTier } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CommitmentTiersClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CommitmentTiersClient) List(ctx context.Context, id LocationId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/commitmentTiers", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/deployments/method_list.go b/resource-manager/cognitive/2023-10-01-preview/deployments/method_list.go index 793955c832b..43c4d7c3e54 100644 --- a/resource-manager/cognitive/2023-10-01-preview/deployments/method_list.go +++ b/resource-manager/cognitive/2023-10-01-preview/deployments/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Deployment } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeploymentsClient) List(ctx context.Context, id AccountId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeploymentsClient) List(ctx context.Context, id AccountId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/deployments", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/deployments/method_listskus.go b/resource-manager/cognitive/2023-10-01-preview/deployments/method_listskus.go index ef5d1d0d413..512ae6396a9 100644 --- a/resource-manager/cognitive/2023-10-01-preview/deployments/method_listskus.go +++ b/resource-manager/cognitive/2023-10-01-preview/deployments/method_listskus.go @@ -23,6 +23,18 @@ type ListSkusCompleteResult struct { Items []SkuResource } +type ListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSkus ... func (c DeploymentsClient) ListSkus(ctx context.Context, id DeploymentId) (result ListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeploymentsClient) ListSkus(ctx context.Context, id DeploymentId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/encryptionscopes/method_list.go b/resource-manager/cognitive/2023-10-01-preview/encryptionscopes/method_list.go index 36b9e3e9fe3..a2c0396dc90 100644 --- a/resource-manager/cognitive/2023-10-01-preview/encryptionscopes/method_list.go +++ b/resource-manager/cognitive/2023-10-01-preview/encryptionscopes/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []EncryptionScope } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EncryptionScopesClient) List(ctx context.Context, id AccountId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c EncryptionScopesClient) List(ctx context.Context, id AccountId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/encryptionScopes", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/models/method_list.go b/resource-manager/cognitive/2023-10-01-preview/models/method_list.go index b996ddead8f..cb77970d546 100644 --- a/resource-manager/cognitive/2023-10-01-preview/models/method_list.go +++ b/resource-manager/cognitive/2023-10-01-preview/models/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Model } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ModelsClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ModelsClient) List(ctx context.Context, id LocationId) (result ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/models", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/raiblocklists/method_list.go b/resource-manager/cognitive/2023-10-01-preview/raiblocklists/method_list.go index 923c508010a..ea9724913f5 100644 --- a/resource-manager/cognitive/2023-10-01-preview/raiblocklists/method_list.go +++ b/resource-manager/cognitive/2023-10-01-preview/raiblocklists/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RaiBlocklist } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RaiBlocklistsClient) List(ctx context.Context, id AccountId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RaiBlocklistsClient) List(ctx context.Context, id AccountId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/raiBlocklists", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/raiblocklists/method_raiblocklistitemslist.go b/resource-manager/cognitive/2023-10-01-preview/raiblocklists/method_raiblocklistitemslist.go index 32b4c40ca9e..15c228ce07a 100644 --- a/resource-manager/cognitive/2023-10-01-preview/raiblocklists/method_raiblocklistitemslist.go +++ b/resource-manager/cognitive/2023-10-01-preview/raiblocklists/method_raiblocklistitemslist.go @@ -23,6 +23,18 @@ type RaiBlocklistItemsListCompleteResult struct { Items []RaiBlocklistItem } +type RaiBlocklistItemsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RaiBlocklistItemsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RaiBlocklistItemsList ... func (c RaiBlocklistsClient) RaiBlocklistItemsList(ctx context.Context, id RaiBlocklistId) (result RaiBlocklistItemsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RaiBlocklistsClient) RaiBlocklistItemsList(ctx context.Context, id RaiBl http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RaiBlocklistItemsListCustomPager{}, Path: fmt.Sprintf("%s/raiBlocklistItems", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/raicontentfilters/method_list.go b/resource-manager/cognitive/2023-10-01-preview/raicontentfilters/method_list.go index 1a916ca3979..0760eeeeb37 100644 --- a/resource-manager/cognitive/2023-10-01-preview/raicontentfilters/method_list.go +++ b/resource-manager/cognitive/2023-10-01-preview/raicontentfilters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RaiContentFilter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RaiContentFiltersClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RaiContentFiltersClient) List(ctx context.Context, id LocationId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/raiContentFilters", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/raipolicies/method_list.go b/resource-manager/cognitive/2023-10-01-preview/raipolicies/method_list.go index 69cecb1867d..932a5025f0e 100644 --- a/resource-manager/cognitive/2023-10-01-preview/raipolicies/method_list.go +++ b/resource-manager/cognitive/2023-10-01-preview/raipolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RaiPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RaiPoliciesClient) List(ctx context.Context, id AccountId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RaiPoliciesClient) List(ctx context.Context, id AccountId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/raiPolicies", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/skus/method_resourceskuslist.go b/resource-manager/cognitive/2023-10-01-preview/skus/method_resourceskuslist.go index 226823d2a54..7388d1fdf59 100644 --- a/resource-manager/cognitive/2023-10-01-preview/skus/method_resourceskuslist.go +++ b/resource-manager/cognitive/2023-10-01-preview/skus/method_resourceskuslist.go @@ -24,6 +24,18 @@ type ResourceSkusListCompleteResult struct { Items []ResourceSku } +type ResourceSkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceSkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourceSkusList ... func (c SkusClient) ResourceSkusList(ctx context.Context, id commonids.SubscriptionId) (result ResourceSkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SkusClient) ResourceSkusList(ctx context.Context, id commonids.Subscript http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourceSkusListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/skus", id.ID()), } diff --git a/resource-manager/cognitive/2023-10-01-preview/usages/method_list.go b/resource-manager/cognitive/2023-10-01-preview/usages/method_list.go index 76fcbe39cf4..cfa904ac7f3 100644 --- a/resource-manager/cognitive/2023-10-01-preview/usages/method_list.go +++ b/resource-manager/cognitive/2023-10-01-preview/usages/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UsagesClient) List(ctx context.Context, id LocationId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c UsagesClient) List(ctx context.Context, id LocationId, options ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/communication/2023-03-31/communicationservices/method_listbyresourcegroup.go b/resource-manager/communication/2023-03-31/communicationservices/method_listbyresourcegroup.go index dee3a8b2836..4c71d957394 100644 --- a/resource-manager/communication/2023-03-31/communicationservices/method_listbyresourcegroup.go +++ b/resource-manager/communication/2023-03-31/communicationservices/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []CommunicationServiceResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CommunicationServicesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CommunicationServicesClient) ListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Communication/communicationServices", id.ID()), } diff --git a/resource-manager/communication/2023-03-31/communicationservices/method_listbysubscription.go b/resource-manager/communication/2023-03-31/communicationservices/method_listbysubscription.go index 44ee1229c4c..aeda249bbe1 100644 --- a/resource-manager/communication/2023-03-31/communicationservices/method_listbysubscription.go +++ b/resource-manager/communication/2023-03-31/communicationservices/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []CommunicationServiceResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c CommunicationServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CommunicationServicesClient) ListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Communication/communicationServices", id.ID()), } diff --git a/resource-manager/communication/2023-03-31/domains/method_listbyemailserviceresource.go b/resource-manager/communication/2023-03-31/domains/method_listbyemailserviceresource.go index 43d1a8a32a5..c5f939d7ddd 100644 --- a/resource-manager/communication/2023-03-31/domains/method_listbyemailserviceresource.go +++ b/resource-manager/communication/2023-03-31/domains/method_listbyemailserviceresource.go @@ -23,6 +23,18 @@ type ListByEmailServiceResourceCompleteResult struct { Items []DomainResource } +type ListByEmailServiceResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEmailServiceResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEmailServiceResource ... func (c DomainsClient) ListByEmailServiceResource(ctx context.Context, id EmailServiceId) (result ListByEmailServiceResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DomainsClient) ListByEmailServiceResource(ctx context.Context, id EmailS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByEmailServiceResourceCustomPager{}, Path: fmt.Sprintf("%s/domains", id.ID()), } diff --git a/resource-manager/communication/2023-03-31/emailservices/method_listbyresourcegroup.go b/resource-manager/communication/2023-03-31/emailservices/method_listbyresourcegroup.go index acfccac8a58..0541feb9223 100644 --- a/resource-manager/communication/2023-03-31/emailservices/method_listbyresourcegroup.go +++ b/resource-manager/communication/2023-03-31/emailservices/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []EmailServiceResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c EmailServicesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EmailServicesClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Communication/emailServices", id.ID()), } diff --git a/resource-manager/communication/2023-03-31/emailservices/method_listbysubscription.go b/resource-manager/communication/2023-03-31/emailservices/method_listbysubscription.go index c93060d9fb7..6387134151c 100644 --- a/resource-manager/communication/2023-03-31/emailservices/method_listbysubscription.go +++ b/resource-manager/communication/2023-03-31/emailservices/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []EmailServiceResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c EmailServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EmailServicesClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Communication/emailServices", id.ID()), } diff --git a/resource-manager/communication/2023-03-31/senderusernames/method_listbydomains.go b/resource-manager/communication/2023-03-31/senderusernames/method_listbydomains.go index ba9f651394a..4a0dc9ca97a 100644 --- a/resource-manager/communication/2023-03-31/senderusernames/method_listbydomains.go +++ b/resource-manager/communication/2023-03-31/senderusernames/method_listbydomains.go @@ -23,6 +23,18 @@ type ListByDomainsCompleteResult struct { Items []SenderUsernameResource } +type ListByDomainsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDomainsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDomains ... func (c SenderUsernamesClient) ListByDomains(ctx context.Context, id DomainId) (result ListByDomainsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SenderUsernamesClient) ListByDomains(ctx context.Context, id DomainId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDomainsCustomPager{}, Path: fmt.Sprintf("%s/senderUsernames", id.ID()), } diff --git a/resource-manager/communication/2023-04-01/communicationservices/method_listbyresourcegroup.go b/resource-manager/communication/2023-04-01/communicationservices/method_listbyresourcegroup.go index dee3a8b2836..4c71d957394 100644 --- a/resource-manager/communication/2023-04-01/communicationservices/method_listbyresourcegroup.go +++ b/resource-manager/communication/2023-04-01/communicationservices/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []CommunicationServiceResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CommunicationServicesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CommunicationServicesClient) ListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Communication/communicationServices", id.ID()), } diff --git a/resource-manager/communication/2023-04-01/communicationservices/method_listbysubscription.go b/resource-manager/communication/2023-04-01/communicationservices/method_listbysubscription.go index 44ee1229c4c..aeda249bbe1 100644 --- a/resource-manager/communication/2023-04-01/communicationservices/method_listbysubscription.go +++ b/resource-manager/communication/2023-04-01/communicationservices/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []CommunicationServiceResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c CommunicationServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CommunicationServicesClient) ListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Communication/communicationServices", id.ID()), } diff --git a/resource-manager/communication/2023-04-01/domains/method_listbyemailserviceresource.go b/resource-manager/communication/2023-04-01/domains/method_listbyemailserviceresource.go index 43d1a8a32a5..c5f939d7ddd 100644 --- a/resource-manager/communication/2023-04-01/domains/method_listbyemailserviceresource.go +++ b/resource-manager/communication/2023-04-01/domains/method_listbyemailserviceresource.go @@ -23,6 +23,18 @@ type ListByEmailServiceResourceCompleteResult struct { Items []DomainResource } +type ListByEmailServiceResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEmailServiceResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEmailServiceResource ... func (c DomainsClient) ListByEmailServiceResource(ctx context.Context, id EmailServiceId) (result ListByEmailServiceResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DomainsClient) ListByEmailServiceResource(ctx context.Context, id EmailS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByEmailServiceResourceCustomPager{}, Path: fmt.Sprintf("%s/domains", id.ID()), } diff --git a/resource-manager/communication/2023-04-01/emailservices/method_listbyresourcegroup.go b/resource-manager/communication/2023-04-01/emailservices/method_listbyresourcegroup.go index acfccac8a58..0541feb9223 100644 --- a/resource-manager/communication/2023-04-01/emailservices/method_listbyresourcegroup.go +++ b/resource-manager/communication/2023-04-01/emailservices/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []EmailServiceResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c EmailServicesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EmailServicesClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Communication/emailServices", id.ID()), } diff --git a/resource-manager/communication/2023-04-01/emailservices/method_listbysubscription.go b/resource-manager/communication/2023-04-01/emailservices/method_listbysubscription.go index c93060d9fb7..6387134151c 100644 --- a/resource-manager/communication/2023-04-01/emailservices/method_listbysubscription.go +++ b/resource-manager/communication/2023-04-01/emailservices/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []EmailServiceResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c EmailServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EmailServicesClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Communication/emailServices", id.ID()), } diff --git a/resource-manager/communication/2023-04-01/senderusernames/method_listbydomains.go b/resource-manager/communication/2023-04-01/senderusernames/method_listbydomains.go index ba9f651394a..4a0dc9ca97a 100644 --- a/resource-manager/communication/2023-04-01/senderusernames/method_listbydomains.go +++ b/resource-manager/communication/2023-04-01/senderusernames/method_listbydomains.go @@ -23,6 +23,18 @@ type ListByDomainsCompleteResult struct { Items []SenderUsernameResource } +type ListByDomainsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDomainsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDomains ... func (c SenderUsernamesClient) ListByDomains(ctx context.Context, id DomainId) (result ListByDomainsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SenderUsernamesClient) ListByDomains(ctx context.Context, id DomainId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDomainsCustomPager{}, Path: fmt.Sprintf("%s/senderUsernames", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/availabilitysets/method_resourceskuslist.go b/resource-manager/compute/2021-07-01/availabilitysets/method_resourceskuslist.go index 2f9acdd9d3b..0b7cde5be3f 100644 --- a/resource-manager/compute/2021-07-01/availabilitysets/method_resourceskuslist.go +++ b/resource-manager/compute/2021-07-01/availabilitysets/method_resourceskuslist.go @@ -55,6 +55,18 @@ func (o ResourceSkusListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ResourceSkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceSkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourceSkusList ... func (c AvailabilitySetsClient) ResourceSkusList(ctx context.Context, id commonids.SubscriptionId, options ResourceSkusListOperationOptions) (result ResourceSkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c AvailabilitySetsClient) ResourceSkusList(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/skus", id.ID()), OptionsObject: options, + Pager: &ResourceSkusListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/skus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/capacityreservation/method_listbycapacityreservationgroup.go b/resource-manager/compute/2021-07-01/capacityreservation/method_listbycapacityreservationgroup.go index 719ac25a6da..2f8db2b36b9 100644 --- a/resource-manager/compute/2021-07-01/capacityreservation/method_listbycapacityreservationgroup.go +++ b/resource-manager/compute/2021-07-01/capacityreservation/method_listbycapacityreservationgroup.go @@ -23,6 +23,18 @@ type ListByCapacityReservationGroupCompleteResult struct { Items []CapacityReservation } +type ListByCapacityReservationGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCapacityReservationGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCapacityReservationGroup ... func (c CapacityReservationClient) ListByCapacityReservationGroup(ctx context.Context, id CapacityReservationGroupId) (result ListByCapacityReservationGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CapacityReservationClient) ListByCapacityReservationGroup(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCapacityReservationGroupCustomPager{}, Path: fmt.Sprintf("%s/capacityReservations", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/capacityreservationgroups/method_get.go b/resource-manager/compute/2021-07-01/capacityreservationgroups/method_get.go index 2627f1a818e..3aa39e689af 100644 --- a/resource-manager/compute/2021-07-01/capacityreservationgroups/method_get.go +++ b/resource-manager/compute/2021-07-01/capacityreservationgroups/method_get.go @@ -53,8 +53,8 @@ func (c CapacityReservationGroupsClient) Get(ctx context.Context, id CapacityRes http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/capacityreservationgroups/method_listbyresourcegroup.go b/resource-manager/compute/2021-07-01/capacityreservationgroups/method_listbyresourcegroup.go index bc8561f70b0..e3708c6a167 100644 --- a/resource-manager/compute/2021-07-01/capacityreservationgroups/method_listbyresourcegroup.go +++ b/resource-manager/compute/2021-07-01/capacityreservationgroups/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CapacityReservationGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c CapacityReservationGroupsClient) ListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/capacityreservationgroups/method_listbysubscription.go b/resource-manager/compute/2021-07-01/capacityreservationgroups/method_listbysubscription.go index c111b8c4621..810c49f03b4 100644 --- a/resource-manager/compute/2021-07-01/capacityreservationgroups/method_listbysubscription.go +++ b/resource-manager/compute/2021-07-01/capacityreservationgroups/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c CapacityReservationGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c CapacityReservationGroupsClient) ListBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/capacityreservations/method_get.go b/resource-manager/compute/2021-07-01/capacityreservations/method_get.go index 194fdeb7057..745d18a7fc3 100644 --- a/resource-manager/compute/2021-07-01/capacityreservations/method_get.go +++ b/resource-manager/compute/2021-07-01/capacityreservations/method_get.go @@ -53,8 +53,8 @@ func (c CapacityReservationsClient) Get(ctx context.Context, id CapacityReservat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/dedicatedhost/method_listbyhostgroup.go b/resource-manager/compute/2021-07-01/dedicatedhost/method_listbyhostgroup.go index 894156b3982..c4637f0a0c1 100644 --- a/resource-manager/compute/2021-07-01/dedicatedhost/method_listbyhostgroup.go +++ b/resource-manager/compute/2021-07-01/dedicatedhost/method_listbyhostgroup.go @@ -24,6 +24,18 @@ type ListByHostGroupCompleteResult struct { Items []DedicatedHost } +type ListByHostGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHostGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHostGroup ... func (c DedicatedHostClient) ListByHostGroup(ctx context.Context, id commonids.DedicatedHostGroupId) (result ListByHostGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DedicatedHostClient) ListByHostGroup(ctx context.Context, id commonids.D http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByHostGroupCustomPager{}, Path: fmt.Sprintf("%s/hosts", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/dedicatedhostgroups/method_get.go b/resource-manager/compute/2021-07-01/dedicatedhostgroups/method_get.go index ad403c28f60..7c5f6eba0af 100644 --- a/resource-manager/compute/2021-07-01/dedicatedhostgroups/method_get.go +++ b/resource-manager/compute/2021-07-01/dedicatedhostgroups/method_get.go @@ -54,8 +54,8 @@ func (c DedicatedHostGroupsClient) Get(ctx context.Context, id commonids.Dedicat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/dedicatedhostgroups/method_listbyresourcegroup.go b/resource-manager/compute/2021-07-01/dedicatedhostgroups/method_listbyresourcegroup.go index c1a3b6381fe..3fe766d2e65 100644 --- a/resource-manager/compute/2021-07-01/dedicatedhostgroups/method_listbyresourcegroup.go +++ b/resource-manager/compute/2021-07-01/dedicatedhostgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DedicatedHostGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DedicatedHostGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DedicatedHostGroupsClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/hostGroups", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/dedicatedhostgroups/method_listbysubscription.go b/resource-manager/compute/2021-07-01/dedicatedhostgroups/method_listbysubscription.go index 9aa8059fc1d..80e15ebf447 100644 --- a/resource-manager/compute/2021-07-01/dedicatedhostgroups/method_listbysubscription.go +++ b/resource-manager/compute/2021-07-01/dedicatedhostgroups/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DedicatedHostGroup } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DedicatedHostGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DedicatedHostGroupsClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/hostGroups", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/dedicatedhosts/method_get.go b/resource-manager/compute/2021-07-01/dedicatedhosts/method_get.go index c02d4212d71..63e85f0ce8b 100644 --- a/resource-manager/compute/2021-07-01/dedicatedhosts/method_get.go +++ b/resource-manager/compute/2021-07-01/dedicatedhosts/method_get.go @@ -54,8 +54,8 @@ func (c DedicatedHostsClient) Get(ctx context.Context, id commonids.DedicatedHos http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/galleries/method_get.go b/resource-manager/compute/2021-07-01/galleries/method_get.go index 3c9b4953135..4634c0b0cd2 100644 --- a/resource-manager/compute/2021-07-01/galleries/method_get.go +++ b/resource-manager/compute/2021-07-01/galleries/method_get.go @@ -54,8 +54,8 @@ func (c GalleriesClient) Get(ctx context.Context, id commonids.SharedImageGaller http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/galleries/method_list.go b/resource-manager/compute/2021-07-01/galleries/method_list.go index 781778d99a1..d6c84d1aaa8 100644 --- a/resource-manager/compute/2021-07-01/galleries/method_list.go +++ b/resource-manager/compute/2021-07-01/galleries/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Gallery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GalleriesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GalleriesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/galleries", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/galleries/method_listbyresourcegroup.go b/resource-manager/compute/2021-07-01/galleries/method_listbyresourcegroup.go index 56f1d7c86cd..ec15c1ce97d 100644 --- a/resource-manager/compute/2021-07-01/galleries/method_listbyresourcegroup.go +++ b/resource-manager/compute/2021-07-01/galleries/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Gallery } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c GalleriesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GalleriesClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/galleries", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/galleryapplications/method_listbygallery.go b/resource-manager/compute/2021-07-01/galleryapplications/method_listbygallery.go index 864305d5018..d2b6c2d76f0 100644 --- a/resource-manager/compute/2021-07-01/galleryapplications/method_listbygallery.go +++ b/resource-manager/compute/2021-07-01/galleryapplications/method_listbygallery.go @@ -24,6 +24,18 @@ type ListByGalleryCompleteResult struct { Items []GalleryApplication } +type ListByGalleryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGalleryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGallery ... func (c GalleryApplicationsClient) ListByGallery(ctx context.Context, id commonids.SharedImageGalleryId) (result ListByGalleryOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GalleryApplicationsClient) ListByGallery(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGalleryCustomPager{}, Path: fmt.Sprintf("%s/applications", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/galleryapplicationversions/method_get.go b/resource-manager/compute/2021-07-01/galleryapplicationversions/method_get.go index 8ea78e545bc..fc382e13c39 100644 --- a/resource-manager/compute/2021-07-01/galleryapplicationversions/method_get.go +++ b/resource-manager/compute/2021-07-01/galleryapplicationversions/method_get.go @@ -53,8 +53,8 @@ func (c GalleryApplicationVersionsClient) Get(ctx context.Context, id Applicatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/galleryapplicationversions/method_listbygalleryapplication.go b/resource-manager/compute/2021-07-01/galleryapplicationversions/method_listbygalleryapplication.go index b022996026e..3c537e4d710 100644 --- a/resource-manager/compute/2021-07-01/galleryapplicationversions/method_listbygalleryapplication.go +++ b/resource-manager/compute/2021-07-01/galleryapplicationversions/method_listbygalleryapplication.go @@ -23,6 +23,18 @@ type ListByGalleryApplicationCompleteResult struct { Items []GalleryApplicationVersion } +type ListByGalleryApplicationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGalleryApplicationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGalleryApplication ... func (c GalleryApplicationVersionsClient) ListByGalleryApplication(ctx context.Context, id ApplicationId) (result ListByGalleryApplicationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GalleryApplicationVersionsClient) ListByGalleryApplication(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGalleryApplicationCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/galleryimages/method_listbygallery.go b/resource-manager/compute/2021-07-01/galleryimages/method_listbygallery.go index 150b27f4cc2..5ffc1598af0 100644 --- a/resource-manager/compute/2021-07-01/galleryimages/method_listbygallery.go +++ b/resource-manager/compute/2021-07-01/galleryimages/method_listbygallery.go @@ -24,6 +24,18 @@ type ListByGalleryCompleteResult struct { Items []GalleryImage } +type ListByGalleryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGalleryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGallery ... func (c GalleryImagesClient) ListByGallery(ctx context.Context, id commonids.SharedImageGalleryId) (result ListByGalleryOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GalleryImagesClient) ListByGallery(ctx context.Context, id commonids.Sha http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGalleryCustomPager{}, Path: fmt.Sprintf("%s/images", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/galleryimageversions/method_get.go b/resource-manager/compute/2021-07-01/galleryimageversions/method_get.go index 3c1effc049e..9638bdc304d 100644 --- a/resource-manager/compute/2021-07-01/galleryimageversions/method_get.go +++ b/resource-manager/compute/2021-07-01/galleryimageversions/method_get.go @@ -53,8 +53,8 @@ func (c GalleryImageVersionsClient) Get(ctx context.Context, id ImageVersionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/galleryimageversions/method_listbygalleryimage.go b/resource-manager/compute/2021-07-01/galleryimageversions/method_listbygalleryimage.go index ef0f4305a88..a49ceeeb88a 100644 --- a/resource-manager/compute/2021-07-01/galleryimageversions/method_listbygalleryimage.go +++ b/resource-manager/compute/2021-07-01/galleryimageversions/method_listbygalleryimage.go @@ -23,6 +23,18 @@ type ListByGalleryImageCompleteResult struct { Items []GalleryImageVersion } +type ListByGalleryImageCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGalleryImageCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGalleryImage ... func (c GalleryImageVersionsClient) ListByGalleryImage(ctx context.Context, id GalleryImageId) (result ListByGalleryImageOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GalleryImageVersionsClient) ListByGalleryImage(ctx context.Context, id G http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGalleryImageCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/images/method_get.go b/resource-manager/compute/2021-07-01/images/method_get.go index 26a1dc433c7..73320770a28 100644 --- a/resource-manager/compute/2021-07-01/images/method_get.go +++ b/resource-manager/compute/2021-07-01/images/method_get.go @@ -53,8 +53,8 @@ func (c ImagesClient) Get(ctx context.Context, id ImageId, options GetOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/images/method_list.go b/resource-manager/compute/2021-07-01/images/method_list.go index 3798c13116a..9a78161d8aa 100644 --- a/resource-manager/compute/2021-07-01/images/method_list.go +++ b/resource-manager/compute/2021-07-01/images/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Image } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ImagesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ImagesClient) List(ctx context.Context, id commonids.SubscriptionId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/images", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/images/method_listbyresourcegroup.go b/resource-manager/compute/2021-07-01/images/method_listbyresourcegroup.go index 2f3bbf763d1..3026c68a08f 100644 --- a/resource-manager/compute/2021-07-01/images/method_listbyresourcegroup.go +++ b/resource-manager/compute/2021-07-01/images/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Image } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ImagesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ImagesClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/images", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/proximityplacementgroups/method_get.go b/resource-manager/compute/2021-07-01/proximityplacementgroups/method_get.go index f4a86febc87..3e2a44fe371 100644 --- a/resource-manager/compute/2021-07-01/proximityplacementgroups/method_get.go +++ b/resource-manager/compute/2021-07-01/proximityplacementgroups/method_get.go @@ -53,8 +53,8 @@ func (c ProximityPlacementGroupsClient) Get(ctx context.Context, id ProximityPla http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/proximityplacementgroups/method_listbyresourcegroup.go b/resource-manager/compute/2021-07-01/proximityplacementgroups/method_listbyresourcegroup.go index 259a77fa399..1a30eaa36b4 100644 --- a/resource-manager/compute/2021-07-01/proximityplacementgroups/method_listbyresourcegroup.go +++ b/resource-manager/compute/2021-07-01/proximityplacementgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ProximityPlacementGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/proximityPlacementGroups", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/proximityplacementgroups/method_listbysubscription.go b/resource-manager/compute/2021-07-01/proximityplacementgroups/method_listbysubscription.go index 20491949b40..6cc0adf42da 100644 --- a/resource-manager/compute/2021-07-01/proximityplacementgroups/method_listbysubscription.go +++ b/resource-manager/compute/2021-07-01/proximityplacementgroups/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ProximityPlacementGroup } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ProximityPlacementGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProximityPlacementGroupsClient) ListBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/proximityPlacementGroups", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/restorepointcollections/method_get.go b/resource-manager/compute/2021-07-01/restorepointcollections/method_get.go index 2647f657fde..875f286c7fa 100644 --- a/resource-manager/compute/2021-07-01/restorepointcollections/method_get.go +++ b/resource-manager/compute/2021-07-01/restorepointcollections/method_get.go @@ -53,8 +53,8 @@ func (c RestorePointCollectionsClient) Get(ctx context.Context, id RestorePointC http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/restorepointcollections/method_list.go b/resource-manager/compute/2021-07-01/restorepointcollections/method_list.go index a67e6567058..ab48c476888 100644 --- a/resource-manager/compute/2021-07-01/restorepointcollections/method_list.go +++ b/resource-manager/compute/2021-07-01/restorepointcollections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []RestorePointCollection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RestorePointCollectionsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RestorePointCollectionsClient) List(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/restorePointCollections", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/restorepointcollections/method_listall.go b/resource-manager/compute/2021-07-01/restorepointcollections/method_listall.go index 50cdf2b0c34..a254de39170 100644 --- a/resource-manager/compute/2021-07-01/restorepointcollections/method_listall.go +++ b/resource-manager/compute/2021-07-01/restorepointcollections/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []RestorePointCollection } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c RestorePointCollectionsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RestorePointCollectionsClient) ListAll(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/restorePointCollections", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/sharedgalleries/method_list.go b/resource-manager/compute/2021-07-01/sharedgalleries/method_list.go index 7a5a470c6c9..e3949cf2c22 100644 --- a/resource-manager/compute/2021-07-01/sharedgalleries/method_list.go +++ b/resource-manager/compute/2021-07-01/sharedgalleries/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SharedGalleriesClient) List(ctx context.Context, id LocationId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SharedGalleriesClient) List(ctx context.Context, id LocationId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sharedGalleries", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/sharedGalleries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/sharedgalleryimages/method_list.go b/resource-manager/compute/2021-07-01/sharedgalleryimages/method_list.go index b0df59c4034..2ea5dd5b351 100644 --- a/resource-manager/compute/2021-07-01/sharedgalleryimages/method_list.go +++ b/resource-manager/compute/2021-07-01/sharedgalleryimages/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SharedGalleryImagesClient) List(ctx context.Context, id SharedGalleryId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SharedGalleryImagesClient) List(ctx context.Context, id SharedGalleryId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/images", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/images", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/sharedgalleryimageversions/method_list.go b/resource-manager/compute/2021-07-01/sharedgalleryimageversions/method_list.go index e0047dc4dd2..71525072c3d 100644 --- a/resource-manager/compute/2021-07-01/sharedgalleryimageversions/method_list.go +++ b/resource-manager/compute/2021-07-01/sharedgalleryimageversions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SharedGalleryImageVersionsClient) List(ctx context.Context, id ImageId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SharedGalleryImageVersionsClient) List(ctx context.Context, id ImageId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/skus/method_resourceskuslist.go b/resource-manager/compute/2021-07-01/skus/method_resourceskuslist.go index 6b87602af9f..6ffa0d54543 100644 --- a/resource-manager/compute/2021-07-01/skus/method_resourceskuslist.go +++ b/resource-manager/compute/2021-07-01/skus/method_resourceskuslist.go @@ -55,6 +55,18 @@ func (o ResourceSkusListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ResourceSkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceSkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourceSkusList ... func (c SkusClient) ResourceSkusList(ctx context.Context, id commonids.SubscriptionId, options ResourceSkusListOperationOptions) (result ResourceSkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c SkusClient) ResourceSkusList(ctx context.Context, id commonids.Subscript http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/skus", id.ID()), OptionsObject: options, + Pager: &ResourceSkusListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/skus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/sshpublickeys/method_listbyresourcegroup.go b/resource-manager/compute/2021-07-01/sshpublickeys/method_listbyresourcegroup.go index ed018705d3d..506f8a33cd3 100644 --- a/resource-manager/compute/2021-07-01/sshpublickeys/method_listbyresourcegroup.go +++ b/resource-manager/compute/2021-07-01/sshpublickeys/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SshPublicKeyResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SshPublicKeysClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SshPublicKeysClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/sshPublicKeys", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/sshpublickeys/method_listbysubscription.go b/resource-manager/compute/2021-07-01/sshpublickeys/method_listbysubscription.go index e1a8864a747..60fe1490315 100644 --- a/resource-manager/compute/2021-07-01/sshpublickeys/method_listbysubscription.go +++ b/resource-manager/compute/2021-07-01/sshpublickeys/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SshPublicKeyResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SshPublicKeysClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SshPublicKeysClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/sshPublicKeys", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/virtualmachineextensionimages/method_listversions.go b/resource-manager/compute/2021-07-01/virtualmachineextensionimages/method_listversions.go index f6f91e7df60..ad463b163fd 100644 --- a/resource-manager/compute/2021-07-01/virtualmachineextensionimages/method_listversions.go +++ b/resource-manager/compute/2021-07-01/virtualmachineextensionimages/method_listversions.go @@ -61,8 +61,8 @@ func (c VirtualMachineExtensionImagesClient) ListVersions(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachineextensions/method_get.go b/resource-manager/compute/2021-07-01/virtualmachineextensions/method_get.go index 6397f7bc167..767c337cafb 100644 --- a/resource-manager/compute/2021-07-01/virtualmachineextensions/method_get.go +++ b/resource-manager/compute/2021-07-01/virtualmachineextensions/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineExtensionsClient) Get(ctx context.Context, id ExtensionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachineextensions/method_list.go b/resource-manager/compute/2021-07-01/virtualmachineextensions/method_list.go index 0267f64dcff..b5541f85116 100644 --- a/resource-manager/compute/2021-07-01/virtualmachineextensions/method_list.go +++ b/resource-manager/compute/2021-07-01/virtualmachineextensions/method_list.go @@ -53,8 +53,8 @@ func (c VirtualMachineExtensionsClient) List(ctx context.Context, id VirtualMach http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/extensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/extensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachineimages/method_edgezonelist.go b/resource-manager/compute/2021-07-01/virtualmachineimages/method_edgezonelist.go index fac941ae21e..ba17ca15382 100644 --- a/resource-manager/compute/2021-07-01/virtualmachineimages/method_edgezonelist.go +++ b/resource-manager/compute/2021-07-01/virtualmachineimages/method_edgezonelist.go @@ -61,8 +61,8 @@ func (c VirtualMachineImagesClient) EdgeZoneList(ctx context.Context, id OfferSk http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachineimages/method_list.go b/resource-manager/compute/2021-07-01/virtualmachineimages/method_list.go index d4b1b2f8e2d..2989d0c443a 100644 --- a/resource-manager/compute/2021-07-01/virtualmachineimages/method_list.go +++ b/resource-manager/compute/2021-07-01/virtualmachineimages/method_list.go @@ -61,8 +61,8 @@ func (c VirtualMachineImagesClient) List(ctx context.Context, id SkuId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachineruncommands/method_getbyvirtualmachine.go b/resource-manager/compute/2021-07-01/virtualmachineruncommands/method_getbyvirtualmachine.go index 7b4d2cc3699..c06971e26be 100644 --- a/resource-manager/compute/2021-07-01/virtualmachineruncommands/method_getbyvirtualmachine.go +++ b/resource-manager/compute/2021-07-01/virtualmachineruncommands/method_getbyvirtualmachine.go @@ -53,8 +53,8 @@ func (c VirtualMachineRunCommandsClient) GetByVirtualMachine(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachineruncommands/method_list.go b/resource-manager/compute/2021-07-01/virtualmachineruncommands/method_list.go index f9ec91c853a..6a0102e039f 100644 --- a/resource-manager/compute/2021-07-01/virtualmachineruncommands/method_list.go +++ b/resource-manager/compute/2021-07-01/virtualmachineruncommands/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RunCommandDocumentBase } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineRunCommandsClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineRunCommandsClient) List(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/runCommands", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/virtualmachineruncommands/method_listbyvirtualmachine.go b/resource-manager/compute/2021-07-01/virtualmachineruncommands/method_listbyvirtualmachine.go index 42e84b5ace4..d3cf5c6296b 100644 --- a/resource-manager/compute/2021-07-01/virtualmachineruncommands/method_listbyvirtualmachine.go +++ b/resource-manager/compute/2021-07-01/virtualmachineruncommands/method_listbyvirtualmachine.go @@ -50,6 +50,18 @@ func (o ListByVirtualMachineOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByVirtualMachineCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVirtualMachineCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVirtualMachine ... func (c VirtualMachineRunCommandsClient) ListByVirtualMachine(ctx context.Context, id VirtualMachineId, options ListByVirtualMachineOperationOptions) (result ListByVirtualMachineOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c VirtualMachineRunCommandsClient) ListByVirtualMachine(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runCommands", id.ID()), OptionsObject: options, + Pager: &ListByVirtualMachineCustomPager{}, + Path: fmt.Sprintf("%s/runCommands", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachines/method_deallocate.go b/resource-manager/compute/2021-07-01/virtualmachines/method_deallocate.go index 04bf9f442e8..ae7ee7a0d2b 100644 --- a/resource-manager/compute/2021-07-01/virtualmachines/method_deallocate.go +++ b/resource-manager/compute/2021-07-01/virtualmachines/method_deallocate.go @@ -56,8 +56,8 @@ func (c VirtualMachinesClient) Deallocate(ctx context.Context, id VirtualMachine http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/deallocate", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/deallocate", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachines/method_delete.go b/resource-manager/compute/2021-07-01/virtualmachines/method_delete.go index deff9337dd1..7809910a33a 100644 --- a/resource-manager/compute/2021-07-01/virtualmachines/method_delete.go +++ b/resource-manager/compute/2021-07-01/virtualmachines/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachinesClient) Delete(ctx context.Context, id VirtualMachineId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachines/method_get.go b/resource-manager/compute/2021-07-01/virtualmachines/method_get.go index c6812dce057..ca0e72e7b04 100644 --- a/resource-manager/compute/2021-07-01/virtualmachines/method_get.go +++ b/resource-manager/compute/2021-07-01/virtualmachines/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachinesClient) Get(ctx context.Context, id VirtualMachineId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachines/method_list.go b/resource-manager/compute/2021-07-01/virtualmachines/method_list.go index db6774cc0ba..8bdf8302952 100644 --- a/resource-manager/compute/2021-07-01/virtualmachines/method_list.go +++ b/resource-manager/compute/2021-07-01/virtualmachines/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualMachine } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachinesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachinesClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/virtualmachines/method_listall.go b/resource-manager/compute/2021-07-01/virtualmachines/method_listall.go index 7159f8c16e3..c78a483d777 100644 --- a/resource-manager/compute/2021-07-01/virtualmachines/method_listall.go +++ b/resource-manager/compute/2021-07-01/virtualmachines/method_listall.go @@ -51,6 +51,18 @@ func (o ListAllOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualMachinesClient) ListAll(ctx context.Context, id commonids.SubscriptionId, options ListAllOperationOptions) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c VirtualMachinesClient) ListAll(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), OptionsObject: options, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachines/method_listbylocation.go b/resource-manager/compute/2021-07-01/virtualmachines/method_listbylocation.go index 06778c05761..a06b8ffe0f2 100644 --- a/resource-manager/compute/2021-07-01/virtualmachines/method_listbylocation.go +++ b/resource-manager/compute/2021-07-01/virtualmachines/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []VirtualMachine } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c VirtualMachinesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachinesClient) ListByLocation(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/virtualMachines", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/virtualmachines/method_poweroff.go b/resource-manager/compute/2021-07-01/virtualmachines/method_poweroff.go index 3feeec83cf1..cd9da953583 100644 --- a/resource-manager/compute/2021-07-01/virtualmachines/method_poweroff.go +++ b/resource-manager/compute/2021-07-01/virtualmachines/method_poweroff.go @@ -56,8 +56,8 @@ func (c VirtualMachinesClient) PowerOff(ctx context.Context, id VirtualMachineId http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/powerOff", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/powerOff", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachines/method_retrievebootdiagnosticsdata.go b/resource-manager/compute/2021-07-01/virtualmachines/method_retrievebootdiagnosticsdata.go index 6050bd7bafe..ef782af5c0a 100644 --- a/resource-manager/compute/2021-07-01/virtualmachines/method_retrievebootdiagnosticsdata.go +++ b/resource-manager/compute/2021-07-01/virtualmachines/method_retrievebootdiagnosticsdata.go @@ -53,8 +53,8 @@ func (c VirtualMachinesClient) RetrieveBootDiagnosticsData(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesetextensions/method_get.go b/resource-manager/compute/2021-07-01/virtualmachinescalesetextensions/method_get.go index 4be3f676e2f..805e9846e65 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesetextensions/method_get.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesetextensions/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, id Virt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesetextensions/method_list.go b/resource-manager/compute/2021-07-01/virtualmachinescalesetextensions/method_list.go index 21a2fe90c79..56536db416c 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesetextensions/method_list.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesetextensions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualMachineScaleSetExtension } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, id VirtualMachineScaleSetId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, id Vir http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/extensions", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_delete.go b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_delete.go index 253997004cd..154aacdb1ce 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_delete.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachineScaleSetsClient) Delete(ctx context.Context, id VirtualMac http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_deleteinstances.go b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_deleteinstances.go index 0dcba2356d4..375063255ba 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_deleteinstances.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_deleteinstances.go @@ -56,8 +56,8 @@ func (c VirtualMachineScaleSetsClient) DeleteInstances(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/delete", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/delete", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go index 7e67ef43644..4236aa8a241 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUpdateD http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/forceRecoveryServiceFabricPlatformUpdateDomainWalk", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/forceRecoveryServiceFabricPlatformUpdateDomainWalk", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_get.go b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_get.go index 5f7d02e8817..1a1c806d33a 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_get.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetsClient) Get(ctx context.Context, id VirtualMachin http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_getosupgradehistory.go b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_getosupgradehistory.go index 66a38b27ed8..1702f705887 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_getosupgradehistory.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_getosupgradehistory.go @@ -23,6 +23,18 @@ type GetOSUpgradeHistoryCompleteResult struct { Items []UpgradeOperationHistoricalStatusInfo } +type GetOSUpgradeHistoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetOSUpgradeHistoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetOSUpgradeHistory ... func (c VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Context, id VirtualMachineScaleSetId) (result GetOSUpgradeHistoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetOSUpgradeHistoryCustomPager{}, Path: fmt.Sprintf("%s/osUpgradeHistory", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_list.go b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_list.go index 59d05f3c6eb..1eaed1d1e4c 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_list.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualMachineScaleSet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineScaleSetsClient) List(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachineScaleSets", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_listall.go b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_listall.go index 25329e8fb33..4dc2af1c444 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_listall.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []VirtualMachineScaleSet } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualMachineScaleSetsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineScaleSetsClient) ListAll(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachineScaleSets", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_listbylocation.go b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_listbylocation.go index 6ed65795a11..2a0ba069763 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_listbylocation.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []VirtualMachineScaleSet } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c VirtualMachineScaleSetsClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetsClient) ListByLocation(ctx context.Context, id Lo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/virtualMachineScaleSets", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_listskus.go b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_listskus.go index 9e88d19ff5a..fbedf5765e1 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_listskus.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_listskus.go @@ -23,6 +23,18 @@ type ListSkusCompleteResult struct { Items []VirtualMachineScaleSetSku } +type ListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSkus ... func (c VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, id VirtualMachineScaleSetId) (result ListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, id VirtualM http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_poweroff.go b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_poweroff.go index e4d57fa4c13..3b0e524f55b 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_poweroff.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesets/method_poweroff.go @@ -56,8 +56,8 @@ func (c VirtualMachineScaleSetsClient) PowerOff(ctx context.Context, id VirtualM http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/poweroff", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/poweroff", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesetvmextensions/method_get.go b/resource-manager/compute/2021-07-01/virtualmachinescalesetvmextensions/method_get.go index 43329beb794..734208e2c2b 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesetvmextensions/method_get.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesetvmextensions/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMExtensionsClient) Get(ctx context.Context, id Vi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesetvmextensions/method_list.go b/resource-manager/compute/2021-07-01/virtualmachinescalesetvmextensions/method_list.go index 09af94ba9a2..d9cdfbdcc60 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesetvmextensions/method_list.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesetvmextensions/method_list.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMExtensionsClient) List(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/extensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/extensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesetvmruncommands/method_get.go b/resource-manager/compute/2021-07-01/virtualmachinescalesetvmruncommands/method_get.go index e6f75652fb4..35fe308862d 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesetvmruncommands/method_get.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesetvmruncommands/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMRunCommandsClient) Get(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesetvmruncommands/method_list.go b/resource-manager/compute/2021-07-01/virtualmachinescalesetvmruncommands/method_list.go index 546867ed06b..d335e2247cf 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesetvmruncommands/method_list.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesetvmruncommands/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetVMRunCommandsClient) List(ctx context.Context, id VirtualMachineScaleSetVirtualMachineId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c VirtualMachineScaleSetVMRunCommandsClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runCommands", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/runCommands", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_delete.go b/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_delete.go index 243f7603272..70ab6260f49 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_delete.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachineScaleSetVMsClient) Delete(ctx context.Context, id VirtualM http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_get.go b/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_get.go index 7417756e222..54f1a9f63ea 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_get.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMsClient) Get(ctx context.Context, id VirtualMach http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_list.go b/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_list.go index a891e6ebf82..25828909629 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_list.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetVMsClient) List(ctx context.Context, id VirtualMachineScaleSetId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c VirtualMachineScaleSetVMsClient) List(ctx context.Context, id VirtualMac http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/virtualMachines", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/virtualMachines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_poweroff.go b/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_poweroff.go index cdee3237236..1b450b80bfa 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_poweroff.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_poweroff.go @@ -56,8 +56,8 @@ func (c VirtualMachineScaleSetVMsClient) PowerOff(ctx context.Context, id Virtua http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/poweroff", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/poweroff", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go b/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go index 5a8747c15bc..29eb32435dd 100644 --- a/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go +++ b/resource-manager/compute/2021-07-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMsClient) RetrieveBootDiagnosticsData(ctx context http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/availabilitysets/method_list.go b/resource-manager/compute/2022-03-01/availabilitysets/method_list.go index ee6cf2c24b6..f5a12a32b9e 100644 --- a/resource-manager/compute/2022-03-01/availabilitysets/method_list.go +++ b/resource-manager/compute/2022-03-01/availabilitysets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AvailabilitySet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AvailabilitySetsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AvailabilitySetsClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/availabilitySets", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/availabilitysets/method_listbysubscription.go b/resource-manager/compute/2022-03-01/availabilitysets/method_listbysubscription.go index f746e8adc1d..6de26336e6c 100644 --- a/resource-manager/compute/2022-03-01/availabilitysets/method_listbysubscription.go +++ b/resource-manager/compute/2022-03-01/availabilitysets/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AvailabilitySetsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AvailabilitySetsClient) ListBySubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/availabilitySets", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/availabilitySets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/capacityreservation/method_listbycapacityreservationgroup.go b/resource-manager/compute/2022-03-01/capacityreservation/method_listbycapacityreservationgroup.go index 719ac25a6da..2f8db2b36b9 100644 --- a/resource-manager/compute/2022-03-01/capacityreservation/method_listbycapacityreservationgroup.go +++ b/resource-manager/compute/2022-03-01/capacityreservation/method_listbycapacityreservationgroup.go @@ -23,6 +23,18 @@ type ListByCapacityReservationGroupCompleteResult struct { Items []CapacityReservation } +type ListByCapacityReservationGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCapacityReservationGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCapacityReservationGroup ... func (c CapacityReservationClient) ListByCapacityReservationGroup(ctx context.Context, id CapacityReservationGroupId) (result ListByCapacityReservationGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CapacityReservationClient) ListByCapacityReservationGroup(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCapacityReservationGroupCustomPager{}, Path: fmt.Sprintf("%s/capacityReservations", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/capacityreservationgroups/method_get.go b/resource-manager/compute/2022-03-01/capacityreservationgroups/method_get.go index 2627f1a818e..3aa39e689af 100644 --- a/resource-manager/compute/2022-03-01/capacityreservationgroups/method_get.go +++ b/resource-manager/compute/2022-03-01/capacityreservationgroups/method_get.go @@ -53,8 +53,8 @@ func (c CapacityReservationGroupsClient) Get(ctx context.Context, id CapacityRes http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbyresourcegroup.go b/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbyresourcegroup.go index bc8561f70b0..e3708c6a167 100644 --- a/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbyresourcegroup.go +++ b/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CapacityReservationGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c CapacityReservationGroupsClient) ListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbysubscription.go b/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbysubscription.go index c111b8c4621..810c49f03b4 100644 --- a/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbysubscription.go +++ b/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c CapacityReservationGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c CapacityReservationGroupsClient) ListBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/capacityreservations/method_get.go b/resource-manager/compute/2022-03-01/capacityreservations/method_get.go index 194fdeb7057..745d18a7fc3 100644 --- a/resource-manager/compute/2022-03-01/capacityreservations/method_get.go +++ b/resource-manager/compute/2022-03-01/capacityreservations/method_get.go @@ -53,8 +53,8 @@ func (c CapacityReservationsClient) Get(ctx context.Context, id CapacityReservat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/dedicatedhost/method_listbyhostgroup.go b/resource-manager/compute/2022-03-01/dedicatedhost/method_listbyhostgroup.go index 894156b3982..c4637f0a0c1 100644 --- a/resource-manager/compute/2022-03-01/dedicatedhost/method_listbyhostgroup.go +++ b/resource-manager/compute/2022-03-01/dedicatedhost/method_listbyhostgroup.go @@ -24,6 +24,18 @@ type ListByHostGroupCompleteResult struct { Items []DedicatedHost } +type ListByHostGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHostGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHostGroup ... func (c DedicatedHostClient) ListByHostGroup(ctx context.Context, id commonids.DedicatedHostGroupId) (result ListByHostGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DedicatedHostClient) ListByHostGroup(ctx context.Context, id commonids.D http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByHostGroupCustomPager{}, Path: fmt.Sprintf("%s/hosts", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/dedicatedhostgroups/method_get.go b/resource-manager/compute/2022-03-01/dedicatedhostgroups/method_get.go index ad403c28f60..7c5f6eba0af 100644 --- a/resource-manager/compute/2022-03-01/dedicatedhostgroups/method_get.go +++ b/resource-manager/compute/2022-03-01/dedicatedhostgroups/method_get.go @@ -54,8 +54,8 @@ func (c DedicatedHostGroupsClient) Get(ctx context.Context, id commonids.Dedicat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/dedicatedhostgroups/method_listbyresourcegroup.go b/resource-manager/compute/2022-03-01/dedicatedhostgroups/method_listbyresourcegroup.go index c1a3b6381fe..3fe766d2e65 100644 --- a/resource-manager/compute/2022-03-01/dedicatedhostgroups/method_listbyresourcegroup.go +++ b/resource-manager/compute/2022-03-01/dedicatedhostgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DedicatedHostGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DedicatedHostGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DedicatedHostGroupsClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/hostGroups", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/dedicatedhostgroups/method_listbysubscription.go b/resource-manager/compute/2022-03-01/dedicatedhostgroups/method_listbysubscription.go index 9aa8059fc1d..80e15ebf447 100644 --- a/resource-manager/compute/2022-03-01/dedicatedhostgroups/method_listbysubscription.go +++ b/resource-manager/compute/2022-03-01/dedicatedhostgroups/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DedicatedHostGroup } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DedicatedHostGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DedicatedHostGroupsClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/hostGroups", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/dedicatedhosts/method_get.go b/resource-manager/compute/2022-03-01/dedicatedhosts/method_get.go index c02d4212d71..63e85f0ce8b 100644 --- a/resource-manager/compute/2022-03-01/dedicatedhosts/method_get.go +++ b/resource-manager/compute/2022-03-01/dedicatedhosts/method_get.go @@ -54,8 +54,8 @@ func (c DedicatedHostsClient) Get(ctx context.Context, id commonids.DedicatedHos http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/images/method_get.go b/resource-manager/compute/2022-03-01/images/method_get.go index 26a1dc433c7..73320770a28 100644 --- a/resource-manager/compute/2022-03-01/images/method_get.go +++ b/resource-manager/compute/2022-03-01/images/method_get.go @@ -53,8 +53,8 @@ func (c ImagesClient) Get(ctx context.Context, id ImageId, options GetOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/images/method_list.go b/resource-manager/compute/2022-03-01/images/method_list.go index 3798c13116a..9a78161d8aa 100644 --- a/resource-manager/compute/2022-03-01/images/method_list.go +++ b/resource-manager/compute/2022-03-01/images/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Image } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ImagesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ImagesClient) List(ctx context.Context, id commonids.SubscriptionId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/images", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/images/method_listbyresourcegroup.go b/resource-manager/compute/2022-03-01/images/method_listbyresourcegroup.go index 2f3bbf763d1..3026c68a08f 100644 --- a/resource-manager/compute/2022-03-01/images/method_listbyresourcegroup.go +++ b/resource-manager/compute/2022-03-01/images/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Image } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ImagesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ImagesClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/images", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/proximityplacementgroups/method_get.go b/resource-manager/compute/2022-03-01/proximityplacementgroups/method_get.go index f4a86febc87..3e2a44fe371 100644 --- a/resource-manager/compute/2022-03-01/proximityplacementgroups/method_get.go +++ b/resource-manager/compute/2022-03-01/proximityplacementgroups/method_get.go @@ -53,8 +53,8 @@ func (c ProximityPlacementGroupsClient) Get(ctx context.Context, id ProximityPla http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/proximityplacementgroups/method_listbyresourcegroup.go b/resource-manager/compute/2022-03-01/proximityplacementgroups/method_listbyresourcegroup.go index 259a77fa399..1a30eaa36b4 100644 --- a/resource-manager/compute/2022-03-01/proximityplacementgroups/method_listbyresourcegroup.go +++ b/resource-manager/compute/2022-03-01/proximityplacementgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ProximityPlacementGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/proximityPlacementGroups", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/proximityplacementgroups/method_listbysubscription.go b/resource-manager/compute/2022-03-01/proximityplacementgroups/method_listbysubscription.go index 20491949b40..6cc0adf42da 100644 --- a/resource-manager/compute/2022-03-01/proximityplacementgroups/method_listbysubscription.go +++ b/resource-manager/compute/2022-03-01/proximityplacementgroups/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ProximityPlacementGroup } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ProximityPlacementGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProximityPlacementGroupsClient) ListBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/proximityPlacementGroups", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/restorepointcollections/method_get.go b/resource-manager/compute/2022-03-01/restorepointcollections/method_get.go index 2647f657fde..875f286c7fa 100644 --- a/resource-manager/compute/2022-03-01/restorepointcollections/method_get.go +++ b/resource-manager/compute/2022-03-01/restorepointcollections/method_get.go @@ -53,8 +53,8 @@ func (c RestorePointCollectionsClient) Get(ctx context.Context, id RestorePointC http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/restorepointcollections/method_list.go b/resource-manager/compute/2022-03-01/restorepointcollections/method_list.go index a67e6567058..ab48c476888 100644 --- a/resource-manager/compute/2022-03-01/restorepointcollections/method_list.go +++ b/resource-manager/compute/2022-03-01/restorepointcollections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []RestorePointCollection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RestorePointCollectionsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RestorePointCollectionsClient) List(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/restorePointCollections", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/restorepointcollections/method_listall.go b/resource-manager/compute/2022-03-01/restorepointcollections/method_listall.go index 50cdf2b0c34..a254de39170 100644 --- a/resource-manager/compute/2022-03-01/restorepointcollections/method_listall.go +++ b/resource-manager/compute/2022-03-01/restorepointcollections/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []RestorePointCollection } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c RestorePointCollectionsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RestorePointCollectionsClient) ListAll(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/restorePointCollections", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/restorepoints/method_get.go b/resource-manager/compute/2022-03-01/restorepoints/method_get.go index 1bc2cb0965d..1fb0a01b3f8 100644 --- a/resource-manager/compute/2022-03-01/restorepoints/method_get.go +++ b/resource-manager/compute/2022-03-01/restorepoints/method_get.go @@ -53,8 +53,8 @@ func (c RestorePointsClient) Get(ctx context.Context, id RestorePointId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/sshpublickeys/method_listbyresourcegroup.go b/resource-manager/compute/2022-03-01/sshpublickeys/method_listbyresourcegroup.go index ed018705d3d..506f8a33cd3 100644 --- a/resource-manager/compute/2022-03-01/sshpublickeys/method_listbyresourcegroup.go +++ b/resource-manager/compute/2022-03-01/sshpublickeys/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SshPublicKeyResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SshPublicKeysClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SshPublicKeysClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/sshPublicKeys", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/sshpublickeys/method_listbysubscription.go b/resource-manager/compute/2022-03-01/sshpublickeys/method_listbysubscription.go index e1a8864a747..60fe1490315 100644 --- a/resource-manager/compute/2022-03-01/sshpublickeys/method_listbysubscription.go +++ b/resource-manager/compute/2022-03-01/sshpublickeys/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SshPublicKeyResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SshPublicKeysClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SshPublicKeysClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/sshPublicKeys", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/virtualmachineextensionimages/method_listversions.go b/resource-manager/compute/2022-03-01/virtualmachineextensionimages/method_listversions.go index f6f91e7df60..ad463b163fd 100644 --- a/resource-manager/compute/2022-03-01/virtualmachineextensionimages/method_listversions.go +++ b/resource-manager/compute/2022-03-01/virtualmachineextensionimages/method_listversions.go @@ -61,8 +61,8 @@ func (c VirtualMachineExtensionImagesClient) ListVersions(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachineextensions/method_get.go b/resource-manager/compute/2022-03-01/virtualmachineextensions/method_get.go index 6397f7bc167..767c337cafb 100644 --- a/resource-manager/compute/2022-03-01/virtualmachineextensions/method_get.go +++ b/resource-manager/compute/2022-03-01/virtualmachineextensions/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineExtensionsClient) Get(ctx context.Context, id ExtensionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachineextensions/method_list.go b/resource-manager/compute/2022-03-01/virtualmachineextensions/method_list.go index 0267f64dcff..b5541f85116 100644 --- a/resource-manager/compute/2022-03-01/virtualmachineextensions/method_list.go +++ b/resource-manager/compute/2022-03-01/virtualmachineextensions/method_list.go @@ -53,8 +53,8 @@ func (c VirtualMachineExtensionsClient) List(ctx context.Context, id VirtualMach http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/extensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/extensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachineimages/method_edgezonelist.go b/resource-manager/compute/2022-03-01/virtualmachineimages/method_edgezonelist.go index fac941ae21e..ba17ca15382 100644 --- a/resource-manager/compute/2022-03-01/virtualmachineimages/method_edgezonelist.go +++ b/resource-manager/compute/2022-03-01/virtualmachineimages/method_edgezonelist.go @@ -61,8 +61,8 @@ func (c VirtualMachineImagesClient) EdgeZoneList(ctx context.Context, id OfferSk http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachineimages/method_list.go b/resource-manager/compute/2022-03-01/virtualmachineimages/method_list.go index d4b1b2f8e2d..2989d0c443a 100644 --- a/resource-manager/compute/2022-03-01/virtualmachineimages/method_list.go +++ b/resource-manager/compute/2022-03-01/virtualmachineimages/method_list.go @@ -61,8 +61,8 @@ func (c VirtualMachineImagesClient) List(ctx context.Context, id SkuId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachineimages/method_listbyedgezone.go b/resource-manager/compute/2022-03-01/virtualmachineimages/method_listbyedgezone.go index 6d0f7ef0a6d..2a0cde9ecfa 100644 --- a/resource-manager/compute/2022-03-01/virtualmachineimages/method_listbyedgezone.go +++ b/resource-manager/compute/2022-03-01/virtualmachineimages/method_listbyedgezone.go @@ -23,6 +23,18 @@ type ListByEdgeZoneCompleteResult struct { Items []VirtualMachineImageResource } +type ListByEdgeZoneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEdgeZoneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEdgeZone ... func (c VirtualMachineImagesClient) ListByEdgeZone(ctx context.Context, id EdgeZoneId) (result ListByEdgeZoneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineImagesClient) ListByEdgeZone(ctx context.Context, id EdgeZ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByEdgeZoneCustomPager{}, Path: fmt.Sprintf("%s/vmimages", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go b/resource-manager/compute/2022-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go index 7b4d2cc3699..c06971e26be 100644 --- a/resource-manager/compute/2022-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go +++ b/resource-manager/compute/2022-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go @@ -53,8 +53,8 @@ func (c VirtualMachineRunCommandsClient) GetByVirtualMachine(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachineruncommands/method_list.go b/resource-manager/compute/2022-03-01/virtualmachineruncommands/method_list.go index f9ec91c853a..6a0102e039f 100644 --- a/resource-manager/compute/2022-03-01/virtualmachineruncommands/method_list.go +++ b/resource-manager/compute/2022-03-01/virtualmachineruncommands/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RunCommandDocumentBase } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineRunCommandsClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineRunCommandsClient) List(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/runCommands", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go b/resource-manager/compute/2022-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go index 42e84b5ace4..d3cf5c6296b 100644 --- a/resource-manager/compute/2022-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go +++ b/resource-manager/compute/2022-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go @@ -50,6 +50,18 @@ func (o ListByVirtualMachineOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByVirtualMachineCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVirtualMachineCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVirtualMachine ... func (c VirtualMachineRunCommandsClient) ListByVirtualMachine(ctx context.Context, id VirtualMachineId, options ListByVirtualMachineOperationOptions) (result ListByVirtualMachineOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c VirtualMachineRunCommandsClient) ListByVirtualMachine(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runCommands", id.ID()), OptionsObject: options, + Pager: &ListByVirtualMachineCustomPager{}, + Path: fmt.Sprintf("%s/runCommands", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachines/method_deallocate.go b/resource-manager/compute/2022-03-01/virtualmachines/method_deallocate.go index 04bf9f442e8..ae7ee7a0d2b 100644 --- a/resource-manager/compute/2022-03-01/virtualmachines/method_deallocate.go +++ b/resource-manager/compute/2022-03-01/virtualmachines/method_deallocate.go @@ -56,8 +56,8 @@ func (c VirtualMachinesClient) Deallocate(ctx context.Context, id VirtualMachine http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/deallocate", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/deallocate", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachines/method_delete.go b/resource-manager/compute/2022-03-01/virtualmachines/method_delete.go index deff9337dd1..7809910a33a 100644 --- a/resource-manager/compute/2022-03-01/virtualmachines/method_delete.go +++ b/resource-manager/compute/2022-03-01/virtualmachines/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachinesClient) Delete(ctx context.Context, id VirtualMachineId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachines/method_get.go b/resource-manager/compute/2022-03-01/virtualmachines/method_get.go index c6812dce057..ca0e72e7b04 100644 --- a/resource-manager/compute/2022-03-01/virtualmachines/method_get.go +++ b/resource-manager/compute/2022-03-01/virtualmachines/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachinesClient) Get(ctx context.Context, id VirtualMachineId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachines/method_list.go b/resource-manager/compute/2022-03-01/virtualmachines/method_list.go index 494c6ddb14d..739d48eb829 100644 --- a/resource-manager/compute/2022-03-01/virtualmachines/method_list.go +++ b/resource-manager/compute/2022-03-01/virtualmachines/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachinesClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c VirtualMachinesClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachines/method_listall.go b/resource-manager/compute/2022-03-01/virtualmachines/method_listall.go index 69f278a3573..87a1958240a 100644 --- a/resource-manager/compute/2022-03-01/virtualmachines/method_listall.go +++ b/resource-manager/compute/2022-03-01/virtualmachines/method_listall.go @@ -55,6 +55,18 @@ func (o ListAllOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualMachinesClient) ListAll(ctx context.Context, id commonids.SubscriptionId, options ListAllOperationOptions) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c VirtualMachinesClient) ListAll(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), OptionsObject: options, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachines/method_listbylocation.go b/resource-manager/compute/2022-03-01/virtualmachines/method_listbylocation.go index 06778c05761..a06b8ffe0f2 100644 --- a/resource-manager/compute/2022-03-01/virtualmachines/method_listbylocation.go +++ b/resource-manager/compute/2022-03-01/virtualmachines/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []VirtualMachine } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c VirtualMachinesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachinesClient) ListByLocation(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/virtualMachines", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/virtualmachines/method_poweroff.go b/resource-manager/compute/2022-03-01/virtualmachines/method_poweroff.go index 3feeec83cf1..cd9da953583 100644 --- a/resource-manager/compute/2022-03-01/virtualmachines/method_poweroff.go +++ b/resource-manager/compute/2022-03-01/virtualmachines/method_poweroff.go @@ -56,8 +56,8 @@ func (c VirtualMachinesClient) PowerOff(ctx context.Context, id VirtualMachineId http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/powerOff", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/powerOff", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go b/resource-manager/compute/2022-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go index 6050bd7bafe..ef782af5c0a 100644 --- a/resource-manager/compute/2022-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go +++ b/resource-manager/compute/2022-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go @@ -53,8 +53,8 @@ func (c VirtualMachinesClient) RetrieveBootDiagnosticsData(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesetextensions/method_get.go b/resource-manager/compute/2022-03-01/virtualmachinescalesetextensions/method_get.go index 4be3f676e2f..805e9846e65 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesetextensions/method_get.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesetextensions/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, id Virt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesetextensions/method_list.go b/resource-manager/compute/2022-03-01/virtualmachinescalesetextensions/method_list.go index 21a2fe90c79..56536db416c 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesetextensions/method_list.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesetextensions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualMachineScaleSetExtension } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, id VirtualMachineScaleSetId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, id Vir http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/extensions", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_delete.go b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_delete.go index 253997004cd..154aacdb1ce 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_delete.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachineScaleSetsClient) Delete(ctx context.Context, id VirtualMac http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_deleteinstances.go b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_deleteinstances.go index 0dcba2356d4..375063255ba 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_deleteinstances.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_deleteinstances.go @@ -56,8 +56,8 @@ func (c VirtualMachineScaleSetsClient) DeleteInstances(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/delete", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/delete", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go index 9d54dfb6eff..9e2117d6a63 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go @@ -61,8 +61,8 @@ func (c VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUpdateD http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/forceRecoveryServiceFabricPlatformUpdateDomainWalk", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/forceRecoveryServiceFabricPlatformUpdateDomainWalk", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_get.go b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_get.go index 5f7d02e8817..1a1c806d33a 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_get.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetsClient) Get(ctx context.Context, id VirtualMachin http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_getosupgradehistory.go b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_getosupgradehistory.go index 66a38b27ed8..1702f705887 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_getosupgradehistory.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_getosupgradehistory.go @@ -23,6 +23,18 @@ type GetOSUpgradeHistoryCompleteResult struct { Items []UpgradeOperationHistoricalStatusInfo } +type GetOSUpgradeHistoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetOSUpgradeHistoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetOSUpgradeHistory ... func (c VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Context, id VirtualMachineScaleSetId) (result GetOSUpgradeHistoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetOSUpgradeHistoryCustomPager{}, Path: fmt.Sprintf("%s/osUpgradeHistory", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_list.go b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_list.go index 59d05f3c6eb..1eaed1d1e4c 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_list.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualMachineScaleSet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineScaleSetsClient) List(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachineScaleSets", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_listall.go b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_listall.go index 25329e8fb33..4dc2af1c444 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_listall.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []VirtualMachineScaleSet } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualMachineScaleSetsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineScaleSetsClient) ListAll(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachineScaleSets", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_listbylocation.go b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_listbylocation.go index 6ed65795a11..2a0ba069763 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_listbylocation.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []VirtualMachineScaleSet } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c VirtualMachineScaleSetsClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetsClient) ListByLocation(ctx context.Context, id Lo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/virtualMachineScaleSets", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_listskus.go b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_listskus.go index 9e88d19ff5a..fbedf5765e1 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_listskus.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_listskus.go @@ -23,6 +23,18 @@ type ListSkusCompleteResult struct { Items []VirtualMachineScaleSetSku } +type ListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSkus ... func (c VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, id VirtualMachineScaleSetId) (result ListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, id VirtualM http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_poweroff.go b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_poweroff.go index e4d57fa4c13..3b0e524f55b 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_poweroff.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesets/method_poweroff.go @@ -56,8 +56,8 @@ func (c VirtualMachineScaleSetsClient) PowerOff(ctx context.Context, id VirtualM http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/poweroff", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/poweroff", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesetvmextensions/method_get.go b/resource-manager/compute/2022-03-01/virtualmachinescalesetvmextensions/method_get.go index 43329beb794..734208e2c2b 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesetvmextensions/method_get.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesetvmextensions/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMExtensionsClient) Get(ctx context.Context, id Vi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesetvmextensions/method_list.go b/resource-manager/compute/2022-03-01/virtualmachinescalesetvmextensions/method_list.go index 09af94ba9a2..d9cdfbdcc60 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesetvmextensions/method_list.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesetvmextensions/method_list.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMExtensionsClient) List(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/extensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/extensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesetvmruncommands/method_get.go b/resource-manager/compute/2022-03-01/virtualmachinescalesetvmruncommands/method_get.go index e6f75652fb4..35fe308862d 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesetvmruncommands/method_get.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesetvmruncommands/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMRunCommandsClient) Get(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesetvmruncommands/method_list.go b/resource-manager/compute/2022-03-01/virtualmachinescalesetvmruncommands/method_list.go index 546867ed06b..d335e2247cf 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesetvmruncommands/method_list.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesetvmruncommands/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetVMRunCommandsClient) List(ctx context.Context, id VirtualMachineScaleSetVirtualMachineId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c VirtualMachineScaleSetVMRunCommandsClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runCommands", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/runCommands", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_delete.go b/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_delete.go index 243f7603272..70ab6260f49 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_delete.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachineScaleSetVMsClient) Delete(ctx context.Context, id VirtualM http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_get.go b/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_get.go index 7417756e222..54f1a9f63ea 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_get.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMsClient) Get(ctx context.Context, id VirtualMach http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_list.go b/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_list.go index a891e6ebf82..25828909629 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_list.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetVMsClient) List(ctx context.Context, id VirtualMachineScaleSetId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c VirtualMachineScaleSetVMsClient) List(ctx context.Context, id VirtualMac http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/virtualMachines", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/virtualMachines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_poweroff.go b/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_poweroff.go index cdee3237236..1b450b80bfa 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_poweroff.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_poweroff.go @@ -56,8 +56,8 @@ func (c VirtualMachineScaleSetVMsClient) PowerOff(ctx context.Context, id Virtua http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/poweroff", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/poweroff", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go b/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go index 5a8747c15bc..29eb32435dd 100644 --- a/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go +++ b/resource-manager/compute/2022-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMsClient) RetrieveBootDiagnosticsData(ctx context http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-02/diskaccesses/method_list.go b/resource-manager/compute/2022-03-02/diskaccesses/method_list.go index 2bdd682d07c..a4a95271826 100644 --- a/resource-manager/compute/2022-03-02/diskaccesses/method_list.go +++ b/resource-manager/compute/2022-03-02/diskaccesses/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DiskAccess } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DiskAccessesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiskAccessesClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/diskAccesses", id.ID()), } diff --git a/resource-manager/compute/2022-03-02/diskaccesses/method_listbyresourcegroup.go b/resource-manager/compute/2022-03-02/diskaccesses/method_listbyresourcegroup.go index 4b7bc13ff0a..a36d8fe8ed0 100644 --- a/resource-manager/compute/2022-03-02/diskaccesses/method_listbyresourcegroup.go +++ b/resource-manager/compute/2022-03-02/diskaccesses/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DiskAccess } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DiskAccessesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiskAccessesClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/diskAccesses", id.ID()), } diff --git a/resource-manager/compute/2022-03-02/diskaccesses/method_listprivateendpointconnections.go b/resource-manager/compute/2022-03-02/diskaccesses/method_listprivateendpointconnections.go index 1d5dffc2090..f3c0e618ab5 100644 --- a/resource-manager/compute/2022-03-02/diskaccesses/method_listprivateendpointconnections.go +++ b/resource-manager/compute/2022-03-02/diskaccesses/method_listprivateendpointconnections.go @@ -23,6 +23,18 @@ type ListPrivateEndpointConnectionsCompleteResult struct { Items []PrivateEndpointConnection } +type ListPrivateEndpointConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPrivateEndpointConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPrivateEndpointConnections ... func (c DiskAccessesClient) ListPrivateEndpointConnections(ctx context.Context, id DiskAccessId) (result ListPrivateEndpointConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiskAccessesClient) ListPrivateEndpointConnections(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPrivateEndpointConnectionsCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/compute/2022-03-02/diskencryptionsets/method_list.go b/resource-manager/compute/2022-03-02/diskencryptionsets/method_list.go index 9961e6a74db..211fc461d35 100644 --- a/resource-manager/compute/2022-03-02/diskencryptionsets/method_list.go +++ b/resource-manager/compute/2022-03-02/diskencryptionsets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DiskEncryptionSet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DiskEncryptionSetsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiskEncryptionSetsClient) List(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/diskEncryptionSets", id.ID()), } diff --git a/resource-manager/compute/2022-03-02/diskencryptionsets/method_listassociatedresources.go b/resource-manager/compute/2022-03-02/diskencryptionsets/method_listassociatedresources.go index cc209e29cb8..dae3192806d 100644 --- a/resource-manager/compute/2022-03-02/diskencryptionsets/method_listassociatedresources.go +++ b/resource-manager/compute/2022-03-02/diskencryptionsets/method_listassociatedresources.go @@ -24,6 +24,18 @@ type ListAssociatedResourcesCompleteResult struct { Items []string } +type ListAssociatedResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAssociatedResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAssociatedResources ... func (c DiskEncryptionSetsClient) ListAssociatedResources(ctx context.Context, id commonids.DiskEncryptionSetId) (result ListAssociatedResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiskEncryptionSetsClient) ListAssociatedResources(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAssociatedResourcesCustomPager{}, Path: fmt.Sprintf("%s/associatedResources", id.ID()), } diff --git a/resource-manager/compute/2022-03-02/diskencryptionsets/method_listbyresourcegroup.go b/resource-manager/compute/2022-03-02/diskencryptionsets/method_listbyresourcegroup.go index 47203ab6ab2..ca3680c08c1 100644 --- a/resource-manager/compute/2022-03-02/diskencryptionsets/method_listbyresourcegroup.go +++ b/resource-manager/compute/2022-03-02/diskencryptionsets/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DiskEncryptionSet } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DiskEncryptionSetsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiskEncryptionSetsClient) ListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/diskEncryptionSets", id.ID()), } diff --git a/resource-manager/compute/2022-03-02/disks/method_list.go b/resource-manager/compute/2022-03-02/disks/method_list.go index 806746ffd98..8db491490d2 100644 --- a/resource-manager/compute/2022-03-02/disks/method_list.go +++ b/resource-manager/compute/2022-03-02/disks/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Disk } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DisksClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DisksClient) List(ctx context.Context, id commonids.SubscriptionId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/disks", id.ID()), } diff --git a/resource-manager/compute/2022-03-02/disks/method_listbyresourcegroup.go b/resource-manager/compute/2022-03-02/disks/method_listbyresourcegroup.go index 783c0495191..a631b1afa01 100644 --- a/resource-manager/compute/2022-03-02/disks/method_listbyresourcegroup.go +++ b/resource-manager/compute/2022-03-02/disks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Disk } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DisksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DisksClient) ListByResourceGroup(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/disks", id.ID()), } diff --git a/resource-manager/compute/2022-03-02/incrementalrestorepoints/method_diskrestorepointlistbyrestorepoint.go b/resource-manager/compute/2022-03-02/incrementalrestorepoints/method_diskrestorepointlistbyrestorepoint.go index 9d4e5f04301..5311858ac38 100644 --- a/resource-manager/compute/2022-03-02/incrementalrestorepoints/method_diskrestorepointlistbyrestorepoint.go +++ b/resource-manager/compute/2022-03-02/incrementalrestorepoints/method_diskrestorepointlistbyrestorepoint.go @@ -23,6 +23,18 @@ type DiskRestorePointListByRestorePointCompleteResult struct { Items []DiskRestorePoint } +type DiskRestorePointListByRestorePointCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DiskRestorePointListByRestorePointCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DiskRestorePointListByRestorePoint ... func (c IncrementalRestorePointsClient) DiskRestorePointListByRestorePoint(ctx context.Context, id RestorePointId) (result DiskRestorePointListByRestorePointOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IncrementalRestorePointsClient) DiskRestorePointListByRestorePoint(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DiskRestorePointListByRestorePointCustomPager{}, Path: fmt.Sprintf("%s/diskRestorePoints", id.ID()), } diff --git a/resource-manager/compute/2022-03-02/snapshots/method_list.go b/resource-manager/compute/2022-03-02/snapshots/method_list.go index 17beb71e935..2447e070093 100644 --- a/resource-manager/compute/2022-03-02/snapshots/method_list.go +++ b/resource-manager/compute/2022-03-02/snapshots/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Snapshot } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/snapshots", id.ID()), } diff --git a/resource-manager/compute/2022-03-02/snapshots/method_listbyresourcegroup.go b/resource-manager/compute/2022-03-02/snapshots/method_listbyresourcegroup.go index 93a0c92d88a..963206a6ce0 100644 --- a/resource-manager/compute/2022-03-02/snapshots/method_listbyresourcegroup.go +++ b/resource-manager/compute/2022-03-02/snapshots/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Snapshot } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/snapshots", id.ID()), } diff --git a/resource-manager/compute/2022-03-03/communitygalleryimages/method_list.go b/resource-manager/compute/2022-03-03/communitygalleryimages/method_list.go index 3937ba40dc0..9d67bb2f4c6 100644 --- a/resource-manager/compute/2022-03-03/communitygalleryimages/method_list.go +++ b/resource-manager/compute/2022-03-03/communitygalleryimages/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CommunityGalleryImage } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CommunityGalleryImagesClient) List(ctx context.Context, id CommunityGalleryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CommunityGalleryImagesClient) List(ctx context.Context, id CommunityGall http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/images", id.ID()), } diff --git a/resource-manager/compute/2022-03-03/communitygalleryimageversions/method_list.go b/resource-manager/compute/2022-03-03/communitygalleryimageversions/method_list.go index f483f2c05e4..7be98cfceef 100644 --- a/resource-manager/compute/2022-03-03/communitygalleryimageversions/method_list.go +++ b/resource-manager/compute/2022-03-03/communitygalleryimageversions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CommunityGalleryImageVersion } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CommunityGalleryImageVersionsClient) List(ctx context.Context, id CommunityGalleryImageId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CommunityGalleryImageVersionsClient) List(ctx context.Context, id Commun http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/compute/2022-03-03/galleries/method_get.go b/resource-manager/compute/2022-03-03/galleries/method_get.go index 25b7c4780d1..b8f3b9be59a 100644 --- a/resource-manager/compute/2022-03-03/galleries/method_get.go +++ b/resource-manager/compute/2022-03-03/galleries/method_get.go @@ -58,8 +58,8 @@ func (c GalleriesClient) Get(ctx context.Context, id commonids.SharedImageGaller http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-03/galleries/method_list.go b/resource-manager/compute/2022-03-03/galleries/method_list.go index 781778d99a1..d6c84d1aaa8 100644 --- a/resource-manager/compute/2022-03-03/galleries/method_list.go +++ b/resource-manager/compute/2022-03-03/galleries/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Gallery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GalleriesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GalleriesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/galleries", id.ID()), } diff --git a/resource-manager/compute/2022-03-03/galleries/method_listbyresourcegroup.go b/resource-manager/compute/2022-03-03/galleries/method_listbyresourcegroup.go index 56f1d7c86cd..ec15c1ce97d 100644 --- a/resource-manager/compute/2022-03-03/galleries/method_listbyresourcegroup.go +++ b/resource-manager/compute/2022-03-03/galleries/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Gallery } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c GalleriesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GalleriesClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/galleries", id.ID()), } diff --git a/resource-manager/compute/2022-03-03/galleryapplications/method_listbygallery.go b/resource-manager/compute/2022-03-03/galleryapplications/method_listbygallery.go index 864305d5018..d2b6c2d76f0 100644 --- a/resource-manager/compute/2022-03-03/galleryapplications/method_listbygallery.go +++ b/resource-manager/compute/2022-03-03/galleryapplications/method_listbygallery.go @@ -24,6 +24,18 @@ type ListByGalleryCompleteResult struct { Items []GalleryApplication } +type ListByGalleryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGalleryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGallery ... func (c GalleryApplicationsClient) ListByGallery(ctx context.Context, id commonids.SharedImageGalleryId) (result ListByGalleryOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GalleryApplicationsClient) ListByGallery(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGalleryCustomPager{}, Path: fmt.Sprintf("%s/applications", id.ID()), } diff --git a/resource-manager/compute/2022-03-03/galleryapplicationversions/method_get.go b/resource-manager/compute/2022-03-03/galleryapplicationversions/method_get.go index 8ea78e545bc..fc382e13c39 100644 --- a/resource-manager/compute/2022-03-03/galleryapplicationversions/method_get.go +++ b/resource-manager/compute/2022-03-03/galleryapplicationversions/method_get.go @@ -53,8 +53,8 @@ func (c GalleryApplicationVersionsClient) Get(ctx context.Context, id Applicatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-03/galleryapplicationversions/method_listbygalleryapplication.go b/resource-manager/compute/2022-03-03/galleryapplicationversions/method_listbygalleryapplication.go index b022996026e..3c537e4d710 100644 --- a/resource-manager/compute/2022-03-03/galleryapplicationversions/method_listbygalleryapplication.go +++ b/resource-manager/compute/2022-03-03/galleryapplicationversions/method_listbygalleryapplication.go @@ -23,6 +23,18 @@ type ListByGalleryApplicationCompleteResult struct { Items []GalleryApplicationVersion } +type ListByGalleryApplicationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGalleryApplicationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGalleryApplication ... func (c GalleryApplicationVersionsClient) ListByGalleryApplication(ctx context.Context, id ApplicationId) (result ListByGalleryApplicationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GalleryApplicationVersionsClient) ListByGalleryApplication(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGalleryApplicationCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/compute/2022-03-03/galleryimages/method_listbygallery.go b/resource-manager/compute/2022-03-03/galleryimages/method_listbygallery.go index 150b27f4cc2..5ffc1598af0 100644 --- a/resource-manager/compute/2022-03-03/galleryimages/method_listbygallery.go +++ b/resource-manager/compute/2022-03-03/galleryimages/method_listbygallery.go @@ -24,6 +24,18 @@ type ListByGalleryCompleteResult struct { Items []GalleryImage } +type ListByGalleryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGalleryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGallery ... func (c GalleryImagesClient) ListByGallery(ctx context.Context, id commonids.SharedImageGalleryId) (result ListByGalleryOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GalleryImagesClient) ListByGallery(ctx context.Context, id commonids.Sha http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGalleryCustomPager{}, Path: fmt.Sprintf("%s/images", id.ID()), } diff --git a/resource-manager/compute/2022-03-03/galleryimageversions/method_get.go b/resource-manager/compute/2022-03-03/galleryimageversions/method_get.go index 3c1effc049e..9638bdc304d 100644 --- a/resource-manager/compute/2022-03-03/galleryimageversions/method_get.go +++ b/resource-manager/compute/2022-03-03/galleryimageversions/method_get.go @@ -53,8 +53,8 @@ func (c GalleryImageVersionsClient) Get(ctx context.Context, id ImageVersionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-03/galleryimageversions/method_listbygalleryimage.go b/resource-manager/compute/2022-03-03/galleryimageversions/method_listbygalleryimage.go index ef0f4305a88..a49ceeeb88a 100644 --- a/resource-manager/compute/2022-03-03/galleryimageversions/method_listbygalleryimage.go +++ b/resource-manager/compute/2022-03-03/galleryimageversions/method_listbygalleryimage.go @@ -23,6 +23,18 @@ type ListByGalleryImageCompleteResult struct { Items []GalleryImageVersion } +type ListByGalleryImageCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGalleryImageCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGalleryImage ... func (c GalleryImageVersionsClient) ListByGalleryImage(ctx context.Context, id GalleryImageId) (result ListByGalleryImageOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GalleryImageVersionsClient) ListByGalleryImage(ctx context.Context, id G http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGalleryImageCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/compute/2022-03-03/sharedgalleries/method_list.go b/resource-manager/compute/2022-03-03/sharedgalleries/method_list.go index 7a5a470c6c9..e3949cf2c22 100644 --- a/resource-manager/compute/2022-03-03/sharedgalleries/method_list.go +++ b/resource-manager/compute/2022-03-03/sharedgalleries/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SharedGalleriesClient) List(ctx context.Context, id LocationId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SharedGalleriesClient) List(ctx context.Context, id LocationId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sharedGalleries", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/sharedGalleries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-03/sharedgalleryimages/method_list.go b/resource-manager/compute/2022-03-03/sharedgalleryimages/method_list.go index b0df59c4034..2ea5dd5b351 100644 --- a/resource-manager/compute/2022-03-03/sharedgalleryimages/method_list.go +++ b/resource-manager/compute/2022-03-03/sharedgalleryimages/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SharedGalleryImagesClient) List(ctx context.Context, id SharedGalleryId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SharedGalleryImagesClient) List(ctx context.Context, id SharedGalleryId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/images", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/images", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2022-03-03/sharedgalleryimageversions/method_list.go b/resource-manager/compute/2022-03-03/sharedgalleryimageversions/method_list.go index e0047dc4dd2..71525072c3d 100644 --- a/resource-manager/compute/2022-03-03/sharedgalleryimageversions/method_list.go +++ b/resource-manager/compute/2022-03-03/sharedgalleryimageversions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SharedGalleryImageVersionsClient) List(ctx context.Context, id ImageId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SharedGalleryImageVersionsClient) List(ctx context.Context, id ImageId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/availabilitysets/method_list.go b/resource-manager/compute/2023-03-01/availabilitysets/method_list.go index ee6cf2c24b6..f5a12a32b9e 100644 --- a/resource-manager/compute/2023-03-01/availabilitysets/method_list.go +++ b/resource-manager/compute/2023-03-01/availabilitysets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AvailabilitySet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AvailabilitySetsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AvailabilitySetsClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/availabilitySets", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/availabilitysets/method_listbysubscription.go b/resource-manager/compute/2023-03-01/availabilitysets/method_listbysubscription.go index f746e8adc1d..6de26336e6c 100644 --- a/resource-manager/compute/2023-03-01/availabilitysets/method_listbysubscription.go +++ b/resource-manager/compute/2023-03-01/availabilitysets/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AvailabilitySetsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AvailabilitySetsClient) ListBySubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/availabilitySets", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/availabilitySets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/capacityreservation/method_listbycapacityreservationgroup.go b/resource-manager/compute/2023-03-01/capacityreservation/method_listbycapacityreservationgroup.go index 719ac25a6da..2f8db2b36b9 100644 --- a/resource-manager/compute/2023-03-01/capacityreservation/method_listbycapacityreservationgroup.go +++ b/resource-manager/compute/2023-03-01/capacityreservation/method_listbycapacityreservationgroup.go @@ -23,6 +23,18 @@ type ListByCapacityReservationGroupCompleteResult struct { Items []CapacityReservation } +type ListByCapacityReservationGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCapacityReservationGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCapacityReservationGroup ... func (c CapacityReservationClient) ListByCapacityReservationGroup(ctx context.Context, id CapacityReservationGroupId) (result ListByCapacityReservationGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CapacityReservationClient) ListByCapacityReservationGroup(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCapacityReservationGroupCustomPager{}, Path: fmt.Sprintf("%s/capacityReservations", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/capacityreservationgroups/method_get.go b/resource-manager/compute/2023-03-01/capacityreservationgroups/method_get.go index 2627f1a818e..3aa39e689af 100644 --- a/resource-manager/compute/2023-03-01/capacityreservationgroups/method_get.go +++ b/resource-manager/compute/2023-03-01/capacityreservationgroups/method_get.go @@ -53,8 +53,8 @@ func (c CapacityReservationGroupsClient) Get(ctx context.Context, id CapacityRes http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/capacityreservationgroups/method_listbyresourcegroup.go b/resource-manager/compute/2023-03-01/capacityreservationgroups/method_listbyresourcegroup.go index bc8561f70b0..e3708c6a167 100644 --- a/resource-manager/compute/2023-03-01/capacityreservationgroups/method_listbyresourcegroup.go +++ b/resource-manager/compute/2023-03-01/capacityreservationgroups/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CapacityReservationGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c CapacityReservationGroupsClient) ListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/capacityreservationgroups/method_listbysubscription.go b/resource-manager/compute/2023-03-01/capacityreservationgroups/method_listbysubscription.go index c111b8c4621..810c49f03b4 100644 --- a/resource-manager/compute/2023-03-01/capacityreservationgroups/method_listbysubscription.go +++ b/resource-manager/compute/2023-03-01/capacityreservationgroups/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c CapacityReservationGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c CapacityReservationGroupsClient) ListBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/capacityreservations/method_get.go b/resource-manager/compute/2023-03-01/capacityreservations/method_get.go index 194fdeb7057..745d18a7fc3 100644 --- a/resource-manager/compute/2023-03-01/capacityreservations/method_get.go +++ b/resource-manager/compute/2023-03-01/capacityreservations/method_get.go @@ -53,8 +53,8 @@ func (c CapacityReservationsClient) Get(ctx context.Context, id CapacityReservat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/dedicatedhost/method_listbyhostgroup.go b/resource-manager/compute/2023-03-01/dedicatedhost/method_listbyhostgroup.go index 894156b3982..c4637f0a0c1 100644 --- a/resource-manager/compute/2023-03-01/dedicatedhost/method_listbyhostgroup.go +++ b/resource-manager/compute/2023-03-01/dedicatedhost/method_listbyhostgroup.go @@ -24,6 +24,18 @@ type ListByHostGroupCompleteResult struct { Items []DedicatedHost } +type ListByHostGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHostGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHostGroup ... func (c DedicatedHostClient) ListByHostGroup(ctx context.Context, id commonids.DedicatedHostGroupId) (result ListByHostGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DedicatedHostClient) ListByHostGroup(ctx context.Context, id commonids.D http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByHostGroupCustomPager{}, Path: fmt.Sprintf("%s/hosts", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/dedicatedhostgroups/method_get.go b/resource-manager/compute/2023-03-01/dedicatedhostgroups/method_get.go index ad403c28f60..7c5f6eba0af 100644 --- a/resource-manager/compute/2023-03-01/dedicatedhostgroups/method_get.go +++ b/resource-manager/compute/2023-03-01/dedicatedhostgroups/method_get.go @@ -54,8 +54,8 @@ func (c DedicatedHostGroupsClient) Get(ctx context.Context, id commonids.Dedicat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/dedicatedhostgroups/method_listbyresourcegroup.go b/resource-manager/compute/2023-03-01/dedicatedhostgroups/method_listbyresourcegroup.go index c1a3b6381fe..3fe766d2e65 100644 --- a/resource-manager/compute/2023-03-01/dedicatedhostgroups/method_listbyresourcegroup.go +++ b/resource-manager/compute/2023-03-01/dedicatedhostgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DedicatedHostGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DedicatedHostGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DedicatedHostGroupsClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/hostGroups", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/dedicatedhostgroups/method_listbysubscription.go b/resource-manager/compute/2023-03-01/dedicatedhostgroups/method_listbysubscription.go index 9aa8059fc1d..80e15ebf447 100644 --- a/resource-manager/compute/2023-03-01/dedicatedhostgroups/method_listbysubscription.go +++ b/resource-manager/compute/2023-03-01/dedicatedhostgroups/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DedicatedHostGroup } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DedicatedHostGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DedicatedHostGroupsClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/hostGroups", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/dedicatedhosts/method_get.go b/resource-manager/compute/2023-03-01/dedicatedhosts/method_get.go index c02d4212d71..63e85f0ce8b 100644 --- a/resource-manager/compute/2023-03-01/dedicatedhosts/method_get.go +++ b/resource-manager/compute/2023-03-01/dedicatedhosts/method_get.go @@ -54,8 +54,8 @@ func (c DedicatedHostsClient) Get(ctx context.Context, id commonids.DedicatedHos http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/images/method_get.go b/resource-manager/compute/2023-03-01/images/method_get.go index 26a1dc433c7..73320770a28 100644 --- a/resource-manager/compute/2023-03-01/images/method_get.go +++ b/resource-manager/compute/2023-03-01/images/method_get.go @@ -53,8 +53,8 @@ func (c ImagesClient) Get(ctx context.Context, id ImageId, options GetOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/images/method_list.go b/resource-manager/compute/2023-03-01/images/method_list.go index 3798c13116a..9a78161d8aa 100644 --- a/resource-manager/compute/2023-03-01/images/method_list.go +++ b/resource-manager/compute/2023-03-01/images/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Image } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ImagesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ImagesClient) List(ctx context.Context, id commonids.SubscriptionId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/images", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/images/method_listbyresourcegroup.go b/resource-manager/compute/2023-03-01/images/method_listbyresourcegroup.go index 2f3bbf763d1..3026c68a08f 100644 --- a/resource-manager/compute/2023-03-01/images/method_listbyresourcegroup.go +++ b/resource-manager/compute/2023-03-01/images/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Image } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ImagesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ImagesClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/images", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/proximityplacementgroups/method_get.go b/resource-manager/compute/2023-03-01/proximityplacementgroups/method_get.go index f4a86febc87..3e2a44fe371 100644 --- a/resource-manager/compute/2023-03-01/proximityplacementgroups/method_get.go +++ b/resource-manager/compute/2023-03-01/proximityplacementgroups/method_get.go @@ -53,8 +53,8 @@ func (c ProximityPlacementGroupsClient) Get(ctx context.Context, id ProximityPla http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/proximityplacementgroups/method_listbyresourcegroup.go b/resource-manager/compute/2023-03-01/proximityplacementgroups/method_listbyresourcegroup.go index 259a77fa399..1a30eaa36b4 100644 --- a/resource-manager/compute/2023-03-01/proximityplacementgroups/method_listbyresourcegroup.go +++ b/resource-manager/compute/2023-03-01/proximityplacementgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ProximityPlacementGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/proximityPlacementGroups", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/proximityplacementgroups/method_listbysubscription.go b/resource-manager/compute/2023-03-01/proximityplacementgroups/method_listbysubscription.go index 20491949b40..6cc0adf42da 100644 --- a/resource-manager/compute/2023-03-01/proximityplacementgroups/method_listbysubscription.go +++ b/resource-manager/compute/2023-03-01/proximityplacementgroups/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ProximityPlacementGroup } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ProximityPlacementGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProximityPlacementGroupsClient) ListBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/proximityPlacementGroups", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/restorepointcollections/method_get.go b/resource-manager/compute/2023-03-01/restorepointcollections/method_get.go index 2647f657fde..875f286c7fa 100644 --- a/resource-manager/compute/2023-03-01/restorepointcollections/method_get.go +++ b/resource-manager/compute/2023-03-01/restorepointcollections/method_get.go @@ -53,8 +53,8 @@ func (c RestorePointCollectionsClient) Get(ctx context.Context, id RestorePointC http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/restorepointcollections/method_list.go b/resource-manager/compute/2023-03-01/restorepointcollections/method_list.go index a67e6567058..ab48c476888 100644 --- a/resource-manager/compute/2023-03-01/restorepointcollections/method_list.go +++ b/resource-manager/compute/2023-03-01/restorepointcollections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []RestorePointCollection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RestorePointCollectionsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RestorePointCollectionsClient) List(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/restorePointCollections", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/restorepointcollections/method_listall.go b/resource-manager/compute/2023-03-01/restorepointcollections/method_listall.go index 50cdf2b0c34..a254de39170 100644 --- a/resource-manager/compute/2023-03-01/restorepointcollections/method_listall.go +++ b/resource-manager/compute/2023-03-01/restorepointcollections/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []RestorePointCollection } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c RestorePointCollectionsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RestorePointCollectionsClient) ListAll(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/restorePointCollections", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/restorepoints/method_get.go b/resource-manager/compute/2023-03-01/restorepoints/method_get.go index 1bc2cb0965d..1fb0a01b3f8 100644 --- a/resource-manager/compute/2023-03-01/restorepoints/method_get.go +++ b/resource-manager/compute/2023-03-01/restorepoints/method_get.go @@ -53,8 +53,8 @@ func (c RestorePointsClient) Get(ctx context.Context, id RestorePointId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/sshpublickeys/method_listbyresourcegroup.go b/resource-manager/compute/2023-03-01/sshpublickeys/method_listbyresourcegroup.go index ed018705d3d..506f8a33cd3 100644 --- a/resource-manager/compute/2023-03-01/sshpublickeys/method_listbyresourcegroup.go +++ b/resource-manager/compute/2023-03-01/sshpublickeys/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SshPublicKeyResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SshPublicKeysClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SshPublicKeysClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/sshPublicKeys", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/sshpublickeys/method_listbysubscription.go b/resource-manager/compute/2023-03-01/sshpublickeys/method_listbysubscription.go index e1a8864a747..60fe1490315 100644 --- a/resource-manager/compute/2023-03-01/sshpublickeys/method_listbysubscription.go +++ b/resource-manager/compute/2023-03-01/sshpublickeys/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SshPublicKeyResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SshPublicKeysClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SshPublicKeysClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/sshPublicKeys", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/virtualmachineextensionimages/method_listversions.go b/resource-manager/compute/2023-03-01/virtualmachineextensionimages/method_listversions.go index f6f91e7df60..ad463b163fd 100644 --- a/resource-manager/compute/2023-03-01/virtualmachineextensionimages/method_listversions.go +++ b/resource-manager/compute/2023-03-01/virtualmachineextensionimages/method_listversions.go @@ -61,8 +61,8 @@ func (c VirtualMachineExtensionImagesClient) ListVersions(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachineextensions/method_get.go b/resource-manager/compute/2023-03-01/virtualmachineextensions/method_get.go index 6397f7bc167..767c337cafb 100644 --- a/resource-manager/compute/2023-03-01/virtualmachineextensions/method_get.go +++ b/resource-manager/compute/2023-03-01/virtualmachineextensions/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineExtensionsClient) Get(ctx context.Context, id ExtensionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachineextensions/method_list.go b/resource-manager/compute/2023-03-01/virtualmachineextensions/method_list.go index 0267f64dcff..b5541f85116 100644 --- a/resource-manager/compute/2023-03-01/virtualmachineextensions/method_list.go +++ b/resource-manager/compute/2023-03-01/virtualmachineextensions/method_list.go @@ -53,8 +53,8 @@ func (c VirtualMachineExtensionsClient) List(ctx context.Context, id VirtualMach http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/extensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/extensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachineimages/method_edgezonelist.go b/resource-manager/compute/2023-03-01/virtualmachineimages/method_edgezonelist.go index fac941ae21e..ba17ca15382 100644 --- a/resource-manager/compute/2023-03-01/virtualmachineimages/method_edgezonelist.go +++ b/resource-manager/compute/2023-03-01/virtualmachineimages/method_edgezonelist.go @@ -61,8 +61,8 @@ func (c VirtualMachineImagesClient) EdgeZoneList(ctx context.Context, id OfferSk http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachineimages/method_list.go b/resource-manager/compute/2023-03-01/virtualmachineimages/method_list.go index d4b1b2f8e2d..2989d0c443a 100644 --- a/resource-manager/compute/2023-03-01/virtualmachineimages/method_list.go +++ b/resource-manager/compute/2023-03-01/virtualmachineimages/method_list.go @@ -61,8 +61,8 @@ func (c VirtualMachineImagesClient) List(ctx context.Context, id SkuId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachineimages/method_listbyedgezone.go b/resource-manager/compute/2023-03-01/virtualmachineimages/method_listbyedgezone.go index 6d0f7ef0a6d..2a0cde9ecfa 100644 --- a/resource-manager/compute/2023-03-01/virtualmachineimages/method_listbyedgezone.go +++ b/resource-manager/compute/2023-03-01/virtualmachineimages/method_listbyedgezone.go @@ -23,6 +23,18 @@ type ListByEdgeZoneCompleteResult struct { Items []VirtualMachineImageResource } +type ListByEdgeZoneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEdgeZoneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEdgeZone ... func (c VirtualMachineImagesClient) ListByEdgeZone(ctx context.Context, id EdgeZoneId) (result ListByEdgeZoneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineImagesClient) ListByEdgeZone(ctx context.Context, id EdgeZ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByEdgeZoneCustomPager{}, Path: fmt.Sprintf("%s/vmimages", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go b/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go index 7b4d2cc3699..c06971e26be 100644 --- a/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go +++ b/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go @@ -53,8 +53,8 @@ func (c VirtualMachineRunCommandsClient) GetByVirtualMachine(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_list.go b/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_list.go index f9ec91c853a..6a0102e039f 100644 --- a/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_list.go +++ b/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RunCommandDocumentBase } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineRunCommandsClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineRunCommandsClient) List(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/runCommands", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go b/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go index 42e84b5ace4..d3cf5c6296b 100644 --- a/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go +++ b/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go @@ -50,6 +50,18 @@ func (o ListByVirtualMachineOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByVirtualMachineCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVirtualMachineCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVirtualMachine ... func (c VirtualMachineRunCommandsClient) ListByVirtualMachine(ctx context.Context, id VirtualMachineId, options ListByVirtualMachineOperationOptions) (result ListByVirtualMachineOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c VirtualMachineRunCommandsClient) ListByVirtualMachine(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runCommands", id.ID()), OptionsObject: options, + Pager: &ListByVirtualMachineCustomPager{}, + Path: fmt.Sprintf("%s/runCommands", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachines/method_deallocate.go b/resource-manager/compute/2023-03-01/virtualmachines/method_deallocate.go index 04bf9f442e8..ae7ee7a0d2b 100644 --- a/resource-manager/compute/2023-03-01/virtualmachines/method_deallocate.go +++ b/resource-manager/compute/2023-03-01/virtualmachines/method_deallocate.go @@ -56,8 +56,8 @@ func (c VirtualMachinesClient) Deallocate(ctx context.Context, id VirtualMachine http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/deallocate", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/deallocate", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachines/method_delete.go b/resource-manager/compute/2023-03-01/virtualmachines/method_delete.go index deff9337dd1..7809910a33a 100644 --- a/resource-manager/compute/2023-03-01/virtualmachines/method_delete.go +++ b/resource-manager/compute/2023-03-01/virtualmachines/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachinesClient) Delete(ctx context.Context, id VirtualMachineId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachines/method_get.go b/resource-manager/compute/2023-03-01/virtualmachines/method_get.go index c6812dce057..ca0e72e7b04 100644 --- a/resource-manager/compute/2023-03-01/virtualmachines/method_get.go +++ b/resource-manager/compute/2023-03-01/virtualmachines/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachinesClient) Get(ctx context.Context, id VirtualMachineId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachines/method_list.go b/resource-manager/compute/2023-03-01/virtualmachines/method_list.go index 12f8f11ff8c..824fde5beb2 100644 --- a/resource-manager/compute/2023-03-01/virtualmachines/method_list.go +++ b/resource-manager/compute/2023-03-01/virtualmachines/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachinesClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c VirtualMachinesClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachines/method_listall.go b/resource-manager/compute/2023-03-01/virtualmachines/method_listall.go index da54931abf4..30caaba2f04 100644 --- a/resource-manager/compute/2023-03-01/virtualmachines/method_listall.go +++ b/resource-manager/compute/2023-03-01/virtualmachines/method_listall.go @@ -59,6 +59,18 @@ func (o ListAllOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualMachinesClient) ListAll(ctx context.Context, id commonids.SubscriptionId, options ListAllOperationOptions) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c VirtualMachinesClient) ListAll(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), OptionsObject: options, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachines/method_listbylocation.go b/resource-manager/compute/2023-03-01/virtualmachines/method_listbylocation.go index 06778c05761..a06b8ffe0f2 100644 --- a/resource-manager/compute/2023-03-01/virtualmachines/method_listbylocation.go +++ b/resource-manager/compute/2023-03-01/virtualmachines/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []VirtualMachine } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c VirtualMachinesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachinesClient) ListByLocation(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/virtualMachines", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/virtualmachines/method_poweroff.go b/resource-manager/compute/2023-03-01/virtualmachines/method_poweroff.go index 3feeec83cf1..cd9da953583 100644 --- a/resource-manager/compute/2023-03-01/virtualmachines/method_poweroff.go +++ b/resource-manager/compute/2023-03-01/virtualmachines/method_poweroff.go @@ -56,8 +56,8 @@ func (c VirtualMachinesClient) PowerOff(ctx context.Context, id VirtualMachineId http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/powerOff", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/powerOff", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go b/resource-manager/compute/2023-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go index 6050bd7bafe..ef782af5c0a 100644 --- a/resource-manager/compute/2023-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go +++ b/resource-manager/compute/2023-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go @@ -53,8 +53,8 @@ func (c VirtualMachinesClient) RetrieveBootDiagnosticsData(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesetextensions/method_get.go b/resource-manager/compute/2023-03-01/virtualmachinescalesetextensions/method_get.go index 4be3f676e2f..805e9846e65 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesetextensions/method_get.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesetextensions/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, id Virt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesetextensions/method_list.go b/resource-manager/compute/2023-03-01/virtualmachinescalesetextensions/method_list.go index 21a2fe90c79..56536db416c 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesetextensions/method_list.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesetextensions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualMachineScaleSetExtension } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, id VirtualMachineScaleSetId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, id Vir http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/extensions", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_deallocate.go b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_deallocate.go index 8d98d8d000d..45110630048 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_deallocate.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_deallocate.go @@ -56,8 +56,8 @@ func (c VirtualMachineScaleSetsClient) Deallocate(ctx context.Context, id Virtua http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/deallocate", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/deallocate", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_delete.go b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_delete.go index 253997004cd..154aacdb1ce 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_delete.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachineScaleSetsClient) Delete(ctx context.Context, id VirtualMac http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_deleteinstances.go b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_deleteinstances.go index 0dcba2356d4..375063255ba 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_deleteinstances.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_deleteinstances.go @@ -56,8 +56,8 @@ func (c VirtualMachineScaleSetsClient) DeleteInstances(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/delete", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/delete", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go index 9d54dfb6eff..9e2117d6a63 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go @@ -61,8 +61,8 @@ func (c VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUpdateD http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/forceRecoveryServiceFabricPlatformUpdateDomainWalk", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/forceRecoveryServiceFabricPlatformUpdateDomainWalk", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_get.go b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_get.go index 5f7d02e8817..1a1c806d33a 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_get.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetsClient) Get(ctx context.Context, id VirtualMachin http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_getosupgradehistory.go b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_getosupgradehistory.go index 66a38b27ed8..1702f705887 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_getosupgradehistory.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_getosupgradehistory.go @@ -23,6 +23,18 @@ type GetOSUpgradeHistoryCompleteResult struct { Items []UpgradeOperationHistoricalStatusInfo } +type GetOSUpgradeHistoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetOSUpgradeHistoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetOSUpgradeHistory ... func (c VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Context, id VirtualMachineScaleSetId) (result GetOSUpgradeHistoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetOSUpgradeHistoryCustomPager{}, Path: fmt.Sprintf("%s/osUpgradeHistory", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_list.go b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_list.go index 59d05f3c6eb..1eaed1d1e4c 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_list.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualMachineScaleSet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineScaleSetsClient) List(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachineScaleSets", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_listall.go b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_listall.go index 25329e8fb33..4dc2af1c444 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_listall.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []VirtualMachineScaleSet } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualMachineScaleSetsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineScaleSetsClient) ListAll(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachineScaleSets", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_listbylocation.go b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_listbylocation.go index 6ed65795a11..2a0ba069763 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_listbylocation.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []VirtualMachineScaleSet } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c VirtualMachineScaleSetsClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetsClient) ListByLocation(ctx context.Context, id Lo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/virtualMachineScaleSets", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_listskus.go b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_listskus.go index 9e88d19ff5a..fbedf5765e1 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_listskus.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_listskus.go @@ -23,6 +23,18 @@ type ListSkusCompleteResult struct { Items []VirtualMachineScaleSetSku } +type ListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSkus ... func (c VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, id VirtualMachineScaleSetId) (result ListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, id VirtualM http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_poweroff.go b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_poweroff.go index e4d57fa4c13..3b0e524f55b 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_poweroff.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesets/method_poweroff.go @@ -56,8 +56,8 @@ func (c VirtualMachineScaleSetsClient) PowerOff(ctx context.Context, id VirtualM http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/poweroff", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/poweroff", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesetvmextensions/method_get.go b/resource-manager/compute/2023-03-01/virtualmachinescalesetvmextensions/method_get.go index 43329beb794..734208e2c2b 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesetvmextensions/method_get.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesetvmextensions/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMExtensionsClient) Get(ctx context.Context, id Vi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesetvmextensions/method_list.go b/resource-manager/compute/2023-03-01/virtualmachinescalesetvmextensions/method_list.go index 09af94ba9a2..d9cdfbdcc60 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesetvmextensions/method_list.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesetvmextensions/method_list.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMExtensionsClient) List(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/extensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/extensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesetvmruncommands/method_get.go b/resource-manager/compute/2023-03-01/virtualmachinescalesetvmruncommands/method_get.go index e6f75652fb4..35fe308862d 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesetvmruncommands/method_get.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesetvmruncommands/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMRunCommandsClient) Get(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesetvmruncommands/method_list.go b/resource-manager/compute/2023-03-01/virtualmachinescalesetvmruncommands/method_list.go index 546867ed06b..d335e2247cf 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesetvmruncommands/method_list.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesetvmruncommands/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetVMRunCommandsClient) List(ctx context.Context, id VirtualMachineScaleSetVirtualMachineId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c VirtualMachineScaleSetVMRunCommandsClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runCommands", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/runCommands", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_delete.go b/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_delete.go index 243f7603272..70ab6260f49 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_delete.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachineScaleSetVMsClient) Delete(ctx context.Context, id VirtualM http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_get.go b/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_get.go index 7417756e222..54f1a9f63ea 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_get.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMsClient) Get(ctx context.Context, id VirtualMach http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_list.go b/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_list.go index a891e6ebf82..25828909629 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_list.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetVMsClient) List(ctx context.Context, id VirtualMachineScaleSetId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c VirtualMachineScaleSetVMsClient) List(ctx context.Context, id VirtualMac http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/virtualMachines", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/virtualMachines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_poweroff.go b/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_poweroff.go index cdee3237236..1b450b80bfa 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_poweroff.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_poweroff.go @@ -56,8 +56,8 @@ func (c VirtualMachineScaleSetVMsClient) PowerOff(ctx context.Context, id Virtua http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/poweroff", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/poweroff", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go b/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go index 5a8747c15bc..29eb32435dd 100644 --- a/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go +++ b/resource-manager/compute/2023-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMsClient) RetrieveBootDiagnosticsData(ctx context http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-04-02/diskaccesses/method_list.go b/resource-manager/compute/2023-04-02/diskaccesses/method_list.go index 2bdd682d07c..a4a95271826 100644 --- a/resource-manager/compute/2023-04-02/diskaccesses/method_list.go +++ b/resource-manager/compute/2023-04-02/diskaccesses/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DiskAccess } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DiskAccessesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiskAccessesClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/diskAccesses", id.ID()), } diff --git a/resource-manager/compute/2023-04-02/diskaccesses/method_listbyresourcegroup.go b/resource-manager/compute/2023-04-02/diskaccesses/method_listbyresourcegroup.go index 4b7bc13ff0a..a36d8fe8ed0 100644 --- a/resource-manager/compute/2023-04-02/diskaccesses/method_listbyresourcegroup.go +++ b/resource-manager/compute/2023-04-02/diskaccesses/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DiskAccess } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DiskAccessesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiskAccessesClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/diskAccesses", id.ID()), } diff --git a/resource-manager/compute/2023-04-02/diskaccesses/method_listprivateendpointconnections.go b/resource-manager/compute/2023-04-02/diskaccesses/method_listprivateendpointconnections.go index 1d5dffc2090..f3c0e618ab5 100644 --- a/resource-manager/compute/2023-04-02/diskaccesses/method_listprivateendpointconnections.go +++ b/resource-manager/compute/2023-04-02/diskaccesses/method_listprivateendpointconnections.go @@ -23,6 +23,18 @@ type ListPrivateEndpointConnectionsCompleteResult struct { Items []PrivateEndpointConnection } +type ListPrivateEndpointConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPrivateEndpointConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPrivateEndpointConnections ... func (c DiskAccessesClient) ListPrivateEndpointConnections(ctx context.Context, id DiskAccessId) (result ListPrivateEndpointConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiskAccessesClient) ListPrivateEndpointConnections(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPrivateEndpointConnectionsCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/compute/2023-04-02/diskencryptionsets/method_list.go b/resource-manager/compute/2023-04-02/diskencryptionsets/method_list.go index 9961e6a74db..211fc461d35 100644 --- a/resource-manager/compute/2023-04-02/diskencryptionsets/method_list.go +++ b/resource-manager/compute/2023-04-02/diskencryptionsets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DiskEncryptionSet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DiskEncryptionSetsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiskEncryptionSetsClient) List(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/diskEncryptionSets", id.ID()), } diff --git a/resource-manager/compute/2023-04-02/diskencryptionsets/method_listassociatedresources.go b/resource-manager/compute/2023-04-02/diskencryptionsets/method_listassociatedresources.go index cc209e29cb8..dae3192806d 100644 --- a/resource-manager/compute/2023-04-02/diskencryptionsets/method_listassociatedresources.go +++ b/resource-manager/compute/2023-04-02/diskencryptionsets/method_listassociatedresources.go @@ -24,6 +24,18 @@ type ListAssociatedResourcesCompleteResult struct { Items []string } +type ListAssociatedResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAssociatedResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAssociatedResources ... func (c DiskEncryptionSetsClient) ListAssociatedResources(ctx context.Context, id commonids.DiskEncryptionSetId) (result ListAssociatedResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiskEncryptionSetsClient) ListAssociatedResources(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAssociatedResourcesCustomPager{}, Path: fmt.Sprintf("%s/associatedResources", id.ID()), } diff --git a/resource-manager/compute/2023-04-02/diskencryptionsets/method_listbyresourcegroup.go b/resource-manager/compute/2023-04-02/diskencryptionsets/method_listbyresourcegroup.go index 47203ab6ab2..ca3680c08c1 100644 --- a/resource-manager/compute/2023-04-02/diskencryptionsets/method_listbyresourcegroup.go +++ b/resource-manager/compute/2023-04-02/diskencryptionsets/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DiskEncryptionSet } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DiskEncryptionSetsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiskEncryptionSetsClient) ListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/diskEncryptionSets", id.ID()), } diff --git a/resource-manager/compute/2023-04-02/disks/method_list.go b/resource-manager/compute/2023-04-02/disks/method_list.go index 806746ffd98..8db491490d2 100644 --- a/resource-manager/compute/2023-04-02/disks/method_list.go +++ b/resource-manager/compute/2023-04-02/disks/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Disk } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DisksClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DisksClient) List(ctx context.Context, id commonids.SubscriptionId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/disks", id.ID()), } diff --git a/resource-manager/compute/2023-04-02/disks/method_listbyresourcegroup.go b/resource-manager/compute/2023-04-02/disks/method_listbyresourcegroup.go index 783c0495191..a631b1afa01 100644 --- a/resource-manager/compute/2023-04-02/disks/method_listbyresourcegroup.go +++ b/resource-manager/compute/2023-04-02/disks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Disk } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DisksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DisksClient) ListByResourceGroup(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/disks", id.ID()), } diff --git a/resource-manager/compute/2023-04-02/incrementalrestorepoints/method_diskrestorepointlistbyrestorepoint.go b/resource-manager/compute/2023-04-02/incrementalrestorepoints/method_diskrestorepointlistbyrestorepoint.go index 9d4e5f04301..5311858ac38 100644 --- a/resource-manager/compute/2023-04-02/incrementalrestorepoints/method_diskrestorepointlistbyrestorepoint.go +++ b/resource-manager/compute/2023-04-02/incrementalrestorepoints/method_diskrestorepointlistbyrestorepoint.go @@ -23,6 +23,18 @@ type DiskRestorePointListByRestorePointCompleteResult struct { Items []DiskRestorePoint } +type DiskRestorePointListByRestorePointCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DiskRestorePointListByRestorePointCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DiskRestorePointListByRestorePoint ... func (c IncrementalRestorePointsClient) DiskRestorePointListByRestorePoint(ctx context.Context, id RestorePointId) (result DiskRestorePointListByRestorePointOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IncrementalRestorePointsClient) DiskRestorePointListByRestorePoint(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DiskRestorePointListByRestorePointCustomPager{}, Path: fmt.Sprintf("%s/diskRestorePoints", id.ID()), } diff --git a/resource-manager/compute/2023-04-02/snapshots/method_list.go b/resource-manager/compute/2023-04-02/snapshots/method_list.go index 17beb71e935..2447e070093 100644 --- a/resource-manager/compute/2023-04-02/snapshots/method_list.go +++ b/resource-manager/compute/2023-04-02/snapshots/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Snapshot } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/snapshots", id.ID()), } diff --git a/resource-manager/compute/2023-04-02/snapshots/method_listbyresourcegroup.go b/resource-manager/compute/2023-04-02/snapshots/method_listbyresourcegroup.go index 93a0c92d88a..963206a6ce0 100644 --- a/resource-manager/compute/2023-04-02/snapshots/method_listbyresourcegroup.go +++ b/resource-manager/compute/2023-04-02/snapshots/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Snapshot } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/snapshots", id.ID()), } diff --git a/resource-manager/compute/2023-07-03/communitygalleryimages/method_list.go b/resource-manager/compute/2023-07-03/communitygalleryimages/method_list.go index 3937ba40dc0..9d67bb2f4c6 100644 --- a/resource-manager/compute/2023-07-03/communitygalleryimages/method_list.go +++ b/resource-manager/compute/2023-07-03/communitygalleryimages/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CommunityGalleryImage } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CommunityGalleryImagesClient) List(ctx context.Context, id CommunityGalleryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CommunityGalleryImagesClient) List(ctx context.Context, id CommunityGall http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/images", id.ID()), } diff --git a/resource-manager/compute/2023-07-03/communitygalleryimageversions/method_list.go b/resource-manager/compute/2023-07-03/communitygalleryimageversions/method_list.go index f483f2c05e4..7be98cfceef 100644 --- a/resource-manager/compute/2023-07-03/communitygalleryimageversions/method_list.go +++ b/resource-manager/compute/2023-07-03/communitygalleryimageversions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CommunityGalleryImageVersion } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CommunityGalleryImageVersionsClient) List(ctx context.Context, id CommunityGalleryImageId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CommunityGalleryImageVersionsClient) List(ctx context.Context, id Commun http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/compute/2023-07-03/galleries/method_get.go b/resource-manager/compute/2023-07-03/galleries/method_get.go index 25b7c4780d1..b8f3b9be59a 100644 --- a/resource-manager/compute/2023-07-03/galleries/method_get.go +++ b/resource-manager/compute/2023-07-03/galleries/method_get.go @@ -58,8 +58,8 @@ func (c GalleriesClient) Get(ctx context.Context, id commonids.SharedImageGaller http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-07-03/galleries/method_list.go b/resource-manager/compute/2023-07-03/galleries/method_list.go index 781778d99a1..d6c84d1aaa8 100644 --- a/resource-manager/compute/2023-07-03/galleries/method_list.go +++ b/resource-manager/compute/2023-07-03/galleries/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Gallery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GalleriesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GalleriesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/galleries", id.ID()), } diff --git a/resource-manager/compute/2023-07-03/galleries/method_listbyresourcegroup.go b/resource-manager/compute/2023-07-03/galleries/method_listbyresourcegroup.go index 56f1d7c86cd..ec15c1ce97d 100644 --- a/resource-manager/compute/2023-07-03/galleries/method_listbyresourcegroup.go +++ b/resource-manager/compute/2023-07-03/galleries/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Gallery } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c GalleriesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GalleriesClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/galleries", id.ID()), } diff --git a/resource-manager/compute/2023-07-03/galleryapplications/method_listbygallery.go b/resource-manager/compute/2023-07-03/galleryapplications/method_listbygallery.go index 864305d5018..d2b6c2d76f0 100644 --- a/resource-manager/compute/2023-07-03/galleryapplications/method_listbygallery.go +++ b/resource-manager/compute/2023-07-03/galleryapplications/method_listbygallery.go @@ -24,6 +24,18 @@ type ListByGalleryCompleteResult struct { Items []GalleryApplication } +type ListByGalleryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGalleryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGallery ... func (c GalleryApplicationsClient) ListByGallery(ctx context.Context, id commonids.SharedImageGalleryId) (result ListByGalleryOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GalleryApplicationsClient) ListByGallery(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGalleryCustomPager{}, Path: fmt.Sprintf("%s/applications", id.ID()), } diff --git a/resource-manager/compute/2023-07-03/galleryapplicationversions/method_get.go b/resource-manager/compute/2023-07-03/galleryapplicationversions/method_get.go index 8ea78e545bc..fc382e13c39 100644 --- a/resource-manager/compute/2023-07-03/galleryapplicationversions/method_get.go +++ b/resource-manager/compute/2023-07-03/galleryapplicationversions/method_get.go @@ -53,8 +53,8 @@ func (c GalleryApplicationVersionsClient) Get(ctx context.Context, id Applicatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-07-03/galleryapplicationversions/method_listbygalleryapplication.go b/resource-manager/compute/2023-07-03/galleryapplicationversions/method_listbygalleryapplication.go index b022996026e..3c537e4d710 100644 --- a/resource-manager/compute/2023-07-03/galleryapplicationversions/method_listbygalleryapplication.go +++ b/resource-manager/compute/2023-07-03/galleryapplicationversions/method_listbygalleryapplication.go @@ -23,6 +23,18 @@ type ListByGalleryApplicationCompleteResult struct { Items []GalleryApplicationVersion } +type ListByGalleryApplicationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGalleryApplicationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGalleryApplication ... func (c GalleryApplicationVersionsClient) ListByGalleryApplication(ctx context.Context, id ApplicationId) (result ListByGalleryApplicationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GalleryApplicationVersionsClient) ListByGalleryApplication(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGalleryApplicationCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/compute/2023-07-03/galleryimages/method_listbygallery.go b/resource-manager/compute/2023-07-03/galleryimages/method_listbygallery.go index 150b27f4cc2..5ffc1598af0 100644 --- a/resource-manager/compute/2023-07-03/galleryimages/method_listbygallery.go +++ b/resource-manager/compute/2023-07-03/galleryimages/method_listbygallery.go @@ -24,6 +24,18 @@ type ListByGalleryCompleteResult struct { Items []GalleryImage } +type ListByGalleryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGalleryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGallery ... func (c GalleryImagesClient) ListByGallery(ctx context.Context, id commonids.SharedImageGalleryId) (result ListByGalleryOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GalleryImagesClient) ListByGallery(ctx context.Context, id commonids.Sha http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGalleryCustomPager{}, Path: fmt.Sprintf("%s/images", id.ID()), } diff --git a/resource-manager/compute/2023-07-03/galleryimageversions/method_get.go b/resource-manager/compute/2023-07-03/galleryimageversions/method_get.go index 3c1effc049e..9638bdc304d 100644 --- a/resource-manager/compute/2023-07-03/galleryimageversions/method_get.go +++ b/resource-manager/compute/2023-07-03/galleryimageversions/method_get.go @@ -53,8 +53,8 @@ func (c GalleryImageVersionsClient) Get(ctx context.Context, id ImageVersionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-07-03/galleryimageversions/method_listbygalleryimage.go b/resource-manager/compute/2023-07-03/galleryimageversions/method_listbygalleryimage.go index ef0f4305a88..a49ceeeb88a 100644 --- a/resource-manager/compute/2023-07-03/galleryimageversions/method_listbygalleryimage.go +++ b/resource-manager/compute/2023-07-03/galleryimageversions/method_listbygalleryimage.go @@ -23,6 +23,18 @@ type ListByGalleryImageCompleteResult struct { Items []GalleryImageVersion } +type ListByGalleryImageCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGalleryImageCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGalleryImage ... func (c GalleryImageVersionsClient) ListByGalleryImage(ctx context.Context, id GalleryImageId) (result ListByGalleryImageOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GalleryImageVersionsClient) ListByGalleryImage(ctx context.Context, id G http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGalleryImageCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/compute/2023-07-03/sharedgalleries/method_list.go b/resource-manager/compute/2023-07-03/sharedgalleries/method_list.go index 5f31915ac42..b9c8f6b4af1 100644 --- a/resource-manager/compute/2023-07-03/sharedgalleries/method_list.go +++ b/resource-manager/compute/2023-07-03/sharedgalleries/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SharedGalleriesClient) List(ctx context.Context, id LocationId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SharedGalleriesClient) List(ctx context.Context, id LocationId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sharedGalleries", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/sharedGalleries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-07-03/sharedgalleryimages/method_list.go b/resource-manager/compute/2023-07-03/sharedgalleryimages/method_list.go index b0df59c4034..2ea5dd5b351 100644 --- a/resource-manager/compute/2023-07-03/sharedgalleryimages/method_list.go +++ b/resource-manager/compute/2023-07-03/sharedgalleryimages/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SharedGalleryImagesClient) List(ctx context.Context, id SharedGalleryId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SharedGalleryImagesClient) List(ctx context.Context, id SharedGalleryId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/images", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/images", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2023-07-03/sharedgalleryimageversions/method_list.go b/resource-manager/compute/2023-07-03/sharedgalleryimageversions/method_list.go index e0047dc4dd2..71525072c3d 100644 --- a/resource-manager/compute/2023-07-03/sharedgalleryimageversions/method_list.go +++ b/resource-manager/compute/2023-07-03/sharedgalleryimageversions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SharedGalleryImageVersionsClient) List(ctx context.Context, id ImageId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SharedGalleryImageVersionsClient) List(ctx context.Context, id ImageId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/availabilitysets/method_list.go b/resource-manager/compute/2024-03-01/availabilitysets/method_list.go index ee6cf2c24b6..f5a12a32b9e 100644 --- a/resource-manager/compute/2024-03-01/availabilitysets/method_list.go +++ b/resource-manager/compute/2024-03-01/availabilitysets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AvailabilitySet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AvailabilitySetsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AvailabilitySetsClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/availabilitySets", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/availabilitysets/method_listbysubscription.go b/resource-manager/compute/2024-03-01/availabilitysets/method_listbysubscription.go index f746e8adc1d..6de26336e6c 100644 --- a/resource-manager/compute/2024-03-01/availabilitysets/method_listbysubscription.go +++ b/resource-manager/compute/2024-03-01/availabilitysets/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AvailabilitySetsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AvailabilitySetsClient) ListBySubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/availabilitySets", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/availabilitySets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/capacityreservation/method_listbycapacityreservationgroup.go b/resource-manager/compute/2024-03-01/capacityreservation/method_listbycapacityreservationgroup.go index 719ac25a6da..2f8db2b36b9 100644 --- a/resource-manager/compute/2024-03-01/capacityreservation/method_listbycapacityreservationgroup.go +++ b/resource-manager/compute/2024-03-01/capacityreservation/method_listbycapacityreservationgroup.go @@ -23,6 +23,18 @@ type ListByCapacityReservationGroupCompleteResult struct { Items []CapacityReservation } +type ListByCapacityReservationGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCapacityReservationGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCapacityReservationGroup ... func (c CapacityReservationClient) ListByCapacityReservationGroup(ctx context.Context, id CapacityReservationGroupId) (result ListByCapacityReservationGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CapacityReservationClient) ListByCapacityReservationGroup(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCapacityReservationGroupCustomPager{}, Path: fmt.Sprintf("%s/capacityReservations", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/capacityreservationgroups/method_get.go b/resource-manager/compute/2024-03-01/capacityreservationgroups/method_get.go index 2627f1a818e..3aa39e689af 100644 --- a/resource-manager/compute/2024-03-01/capacityreservationgroups/method_get.go +++ b/resource-manager/compute/2024-03-01/capacityreservationgroups/method_get.go @@ -53,8 +53,8 @@ func (c CapacityReservationGroupsClient) Get(ctx context.Context, id CapacityRes http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/capacityreservationgroups/method_listbyresourcegroup.go b/resource-manager/compute/2024-03-01/capacityreservationgroups/method_listbyresourcegroup.go index bc8561f70b0..e3708c6a167 100644 --- a/resource-manager/compute/2024-03-01/capacityreservationgroups/method_listbyresourcegroup.go +++ b/resource-manager/compute/2024-03-01/capacityreservationgroups/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CapacityReservationGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c CapacityReservationGroupsClient) ListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/capacityreservationgroups/method_listbysubscription.go b/resource-manager/compute/2024-03-01/capacityreservationgroups/method_listbysubscription.go index d480eeae480..8e4768628ac 100644 --- a/resource-manager/compute/2024-03-01/capacityreservationgroups/method_listbysubscription.go +++ b/resource-manager/compute/2024-03-01/capacityreservationgroups/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c CapacityReservationGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c CapacityReservationGroupsClient) ListBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/capacityReservationGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/capacityreservations/method_get.go b/resource-manager/compute/2024-03-01/capacityreservations/method_get.go index 194fdeb7057..745d18a7fc3 100644 --- a/resource-manager/compute/2024-03-01/capacityreservations/method_get.go +++ b/resource-manager/compute/2024-03-01/capacityreservations/method_get.go @@ -53,8 +53,8 @@ func (c CapacityReservationsClient) Get(ctx context.Context, id CapacityReservat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/dedicatedhost/method_listbyhostgroup.go b/resource-manager/compute/2024-03-01/dedicatedhost/method_listbyhostgroup.go index 894156b3982..c4637f0a0c1 100644 --- a/resource-manager/compute/2024-03-01/dedicatedhost/method_listbyhostgroup.go +++ b/resource-manager/compute/2024-03-01/dedicatedhost/method_listbyhostgroup.go @@ -24,6 +24,18 @@ type ListByHostGroupCompleteResult struct { Items []DedicatedHost } +type ListByHostGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHostGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHostGroup ... func (c DedicatedHostClient) ListByHostGroup(ctx context.Context, id commonids.DedicatedHostGroupId) (result ListByHostGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DedicatedHostClient) ListByHostGroup(ctx context.Context, id commonids.D http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByHostGroupCustomPager{}, Path: fmt.Sprintf("%s/hosts", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_get.go b/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_get.go index ad403c28f60..7c5f6eba0af 100644 --- a/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_get.go +++ b/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_get.go @@ -54,8 +54,8 @@ func (c DedicatedHostGroupsClient) Get(ctx context.Context, id commonids.Dedicat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_listbyresourcegroup.go b/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_listbyresourcegroup.go index c1a3b6381fe..3fe766d2e65 100644 --- a/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_listbyresourcegroup.go +++ b/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DedicatedHostGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DedicatedHostGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DedicatedHostGroupsClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/hostGroups", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_listbysubscription.go b/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_listbysubscription.go index 9aa8059fc1d..80e15ebf447 100644 --- a/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_listbysubscription.go +++ b/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DedicatedHostGroup } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DedicatedHostGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DedicatedHostGroupsClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/hostGroups", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/dedicatedhosts/method_get.go b/resource-manager/compute/2024-03-01/dedicatedhosts/method_get.go index c02d4212d71..63e85f0ce8b 100644 --- a/resource-manager/compute/2024-03-01/dedicatedhosts/method_get.go +++ b/resource-manager/compute/2024-03-01/dedicatedhosts/method_get.go @@ -54,8 +54,8 @@ func (c DedicatedHostsClient) Get(ctx context.Context, id commonids.DedicatedHos http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/images/method_get.go b/resource-manager/compute/2024-03-01/images/method_get.go index 26a1dc433c7..73320770a28 100644 --- a/resource-manager/compute/2024-03-01/images/method_get.go +++ b/resource-manager/compute/2024-03-01/images/method_get.go @@ -53,8 +53,8 @@ func (c ImagesClient) Get(ctx context.Context, id ImageId, options GetOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/images/method_list.go b/resource-manager/compute/2024-03-01/images/method_list.go index 3798c13116a..9a78161d8aa 100644 --- a/resource-manager/compute/2024-03-01/images/method_list.go +++ b/resource-manager/compute/2024-03-01/images/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Image } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ImagesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ImagesClient) List(ctx context.Context, id commonids.SubscriptionId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/images", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/images/method_listbyresourcegroup.go b/resource-manager/compute/2024-03-01/images/method_listbyresourcegroup.go index 2f3bbf763d1..3026c68a08f 100644 --- a/resource-manager/compute/2024-03-01/images/method_listbyresourcegroup.go +++ b/resource-manager/compute/2024-03-01/images/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Image } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ImagesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ImagesClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/images", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/proximityplacementgroups/method_get.go b/resource-manager/compute/2024-03-01/proximityplacementgroups/method_get.go index f4a86febc87..3e2a44fe371 100644 --- a/resource-manager/compute/2024-03-01/proximityplacementgroups/method_get.go +++ b/resource-manager/compute/2024-03-01/proximityplacementgroups/method_get.go @@ -53,8 +53,8 @@ func (c ProximityPlacementGroupsClient) Get(ctx context.Context, id ProximityPla http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/proximityplacementgroups/method_listbyresourcegroup.go b/resource-manager/compute/2024-03-01/proximityplacementgroups/method_listbyresourcegroup.go index 259a77fa399..1a30eaa36b4 100644 --- a/resource-manager/compute/2024-03-01/proximityplacementgroups/method_listbyresourcegroup.go +++ b/resource-manager/compute/2024-03-01/proximityplacementgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ProximityPlacementGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProximityPlacementGroupsClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/proximityPlacementGroups", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/proximityplacementgroups/method_listbysubscription.go b/resource-manager/compute/2024-03-01/proximityplacementgroups/method_listbysubscription.go index 20491949b40..6cc0adf42da 100644 --- a/resource-manager/compute/2024-03-01/proximityplacementgroups/method_listbysubscription.go +++ b/resource-manager/compute/2024-03-01/proximityplacementgroups/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ProximityPlacementGroup } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ProximityPlacementGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProximityPlacementGroupsClient) ListBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/proximityPlacementGroups", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/restorepointcollections/method_get.go b/resource-manager/compute/2024-03-01/restorepointcollections/method_get.go index 2647f657fde..875f286c7fa 100644 --- a/resource-manager/compute/2024-03-01/restorepointcollections/method_get.go +++ b/resource-manager/compute/2024-03-01/restorepointcollections/method_get.go @@ -53,8 +53,8 @@ func (c RestorePointCollectionsClient) Get(ctx context.Context, id RestorePointC http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/restorepointcollections/method_list.go b/resource-manager/compute/2024-03-01/restorepointcollections/method_list.go index a67e6567058..ab48c476888 100644 --- a/resource-manager/compute/2024-03-01/restorepointcollections/method_list.go +++ b/resource-manager/compute/2024-03-01/restorepointcollections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []RestorePointCollection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RestorePointCollectionsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RestorePointCollectionsClient) List(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/restorePointCollections", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/restorepointcollections/method_listall.go b/resource-manager/compute/2024-03-01/restorepointcollections/method_listall.go index 50cdf2b0c34..a254de39170 100644 --- a/resource-manager/compute/2024-03-01/restorepointcollections/method_listall.go +++ b/resource-manager/compute/2024-03-01/restorepointcollections/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []RestorePointCollection } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c RestorePointCollectionsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RestorePointCollectionsClient) ListAll(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/restorePointCollections", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/restorepoints/method_get.go b/resource-manager/compute/2024-03-01/restorepoints/method_get.go index 1bc2cb0965d..1fb0a01b3f8 100644 --- a/resource-manager/compute/2024-03-01/restorepoints/method_get.go +++ b/resource-manager/compute/2024-03-01/restorepoints/method_get.go @@ -53,8 +53,8 @@ func (c RestorePointsClient) Get(ctx context.Context, id RestorePointId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/sshpublickeys/method_listbyresourcegroup.go b/resource-manager/compute/2024-03-01/sshpublickeys/method_listbyresourcegroup.go index ed018705d3d..506f8a33cd3 100644 --- a/resource-manager/compute/2024-03-01/sshpublickeys/method_listbyresourcegroup.go +++ b/resource-manager/compute/2024-03-01/sshpublickeys/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SshPublicKeyResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SshPublicKeysClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SshPublicKeysClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/sshPublicKeys", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/sshpublickeys/method_listbysubscription.go b/resource-manager/compute/2024-03-01/sshpublickeys/method_listbysubscription.go index e1a8864a747..60fe1490315 100644 --- a/resource-manager/compute/2024-03-01/sshpublickeys/method_listbysubscription.go +++ b/resource-manager/compute/2024-03-01/sshpublickeys/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SshPublicKeyResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SshPublicKeysClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SshPublicKeysClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/sshPublicKeys", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/virtualmachineextensionimages/method_listversions.go b/resource-manager/compute/2024-03-01/virtualmachineextensionimages/method_listversions.go index f6f91e7df60..ad463b163fd 100644 --- a/resource-manager/compute/2024-03-01/virtualmachineextensionimages/method_listversions.go +++ b/resource-manager/compute/2024-03-01/virtualmachineextensionimages/method_listversions.go @@ -61,8 +61,8 @@ func (c VirtualMachineExtensionImagesClient) ListVersions(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachineextensions/method_get.go b/resource-manager/compute/2024-03-01/virtualmachineextensions/method_get.go index 6397f7bc167..767c337cafb 100644 --- a/resource-manager/compute/2024-03-01/virtualmachineextensions/method_get.go +++ b/resource-manager/compute/2024-03-01/virtualmachineextensions/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineExtensionsClient) Get(ctx context.Context, id ExtensionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachineextensions/method_list.go b/resource-manager/compute/2024-03-01/virtualmachineextensions/method_list.go index 0267f64dcff..b5541f85116 100644 --- a/resource-manager/compute/2024-03-01/virtualmachineextensions/method_list.go +++ b/resource-manager/compute/2024-03-01/virtualmachineextensions/method_list.go @@ -53,8 +53,8 @@ func (c VirtualMachineExtensionsClient) List(ctx context.Context, id VirtualMach http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/extensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/extensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelist.go b/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelist.go index fac941ae21e..ba17ca15382 100644 --- a/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelist.go +++ b/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelist.go @@ -61,8 +61,8 @@ func (c VirtualMachineImagesClient) EdgeZoneList(ctx context.Context, id OfferSk http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachineimages/method_list.go b/resource-manager/compute/2024-03-01/virtualmachineimages/method_list.go index d4b1b2f8e2d..2989d0c443a 100644 --- a/resource-manager/compute/2024-03-01/virtualmachineimages/method_list.go +++ b/resource-manager/compute/2024-03-01/virtualmachineimages/method_list.go @@ -61,8 +61,8 @@ func (c VirtualMachineImagesClient) List(ctx context.Context, id SkuId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachineimages/method_listbyedgezone.go b/resource-manager/compute/2024-03-01/virtualmachineimages/method_listbyedgezone.go index 6d0f7ef0a6d..2a0cde9ecfa 100644 --- a/resource-manager/compute/2024-03-01/virtualmachineimages/method_listbyedgezone.go +++ b/resource-manager/compute/2024-03-01/virtualmachineimages/method_listbyedgezone.go @@ -23,6 +23,18 @@ type ListByEdgeZoneCompleteResult struct { Items []VirtualMachineImageResource } +type ListByEdgeZoneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEdgeZoneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEdgeZone ... func (c VirtualMachineImagesClient) ListByEdgeZone(ctx context.Context, id EdgeZoneId) (result ListByEdgeZoneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineImagesClient) ListByEdgeZone(ctx context.Context, id EdgeZ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByEdgeZoneCustomPager{}, Path: fmt.Sprintf("%s/vmimages", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go b/resource-manager/compute/2024-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go index 7b4d2cc3699..c06971e26be 100644 --- a/resource-manager/compute/2024-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go +++ b/resource-manager/compute/2024-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go @@ -53,8 +53,8 @@ func (c VirtualMachineRunCommandsClient) GetByVirtualMachine(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachineruncommands/method_list.go b/resource-manager/compute/2024-03-01/virtualmachineruncommands/method_list.go index f9ec91c853a..6a0102e039f 100644 --- a/resource-manager/compute/2024-03-01/virtualmachineruncommands/method_list.go +++ b/resource-manager/compute/2024-03-01/virtualmachineruncommands/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RunCommandDocumentBase } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineRunCommandsClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineRunCommandsClient) List(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/runCommands", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go b/resource-manager/compute/2024-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go index 42e84b5ace4..d3cf5c6296b 100644 --- a/resource-manager/compute/2024-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go +++ b/resource-manager/compute/2024-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go @@ -50,6 +50,18 @@ func (o ListByVirtualMachineOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByVirtualMachineCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVirtualMachineCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVirtualMachine ... func (c VirtualMachineRunCommandsClient) ListByVirtualMachine(ctx context.Context, id VirtualMachineId, options ListByVirtualMachineOperationOptions) (result ListByVirtualMachineOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c VirtualMachineRunCommandsClient) ListByVirtualMachine(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runCommands", id.ID()), OptionsObject: options, + Pager: &ListByVirtualMachineCustomPager{}, + Path: fmt.Sprintf("%s/runCommands", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachines/method_createorupdate.go b/resource-manager/compute/2024-03-01/virtualmachines/method_createorupdate.go index 71b92296994..120d8edf9af 100644 --- a/resource-manager/compute/2024-03-01/virtualmachines/method_createorupdate.go +++ b/resource-manager/compute/2024-03-01/virtualmachines/method_createorupdate.go @@ -61,8 +61,8 @@ func (c VirtualMachinesClient) CreateOrUpdate(ctx context.Context, id VirtualMac http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachines/method_deallocate.go b/resource-manager/compute/2024-03-01/virtualmachines/method_deallocate.go index 04bf9f442e8..ae7ee7a0d2b 100644 --- a/resource-manager/compute/2024-03-01/virtualmachines/method_deallocate.go +++ b/resource-manager/compute/2024-03-01/virtualmachines/method_deallocate.go @@ -56,8 +56,8 @@ func (c VirtualMachinesClient) Deallocate(ctx context.Context, id VirtualMachine http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/deallocate", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/deallocate", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachines/method_delete.go b/resource-manager/compute/2024-03-01/virtualmachines/method_delete.go index deff9337dd1..7809910a33a 100644 --- a/resource-manager/compute/2024-03-01/virtualmachines/method_delete.go +++ b/resource-manager/compute/2024-03-01/virtualmachines/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachinesClient) Delete(ctx context.Context, id VirtualMachineId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachines/method_get.go b/resource-manager/compute/2024-03-01/virtualmachines/method_get.go index c6812dce057..ca0e72e7b04 100644 --- a/resource-manager/compute/2024-03-01/virtualmachines/method_get.go +++ b/resource-manager/compute/2024-03-01/virtualmachines/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachinesClient) Get(ctx context.Context, id VirtualMachineId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachines/method_list.go b/resource-manager/compute/2024-03-01/virtualmachines/method_list.go index 12f8f11ff8c..824fde5beb2 100644 --- a/resource-manager/compute/2024-03-01/virtualmachines/method_list.go +++ b/resource-manager/compute/2024-03-01/virtualmachines/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachinesClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c VirtualMachinesClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachines/method_listall.go b/resource-manager/compute/2024-03-01/virtualmachines/method_listall.go index da54931abf4..30caaba2f04 100644 --- a/resource-manager/compute/2024-03-01/virtualmachines/method_listall.go +++ b/resource-manager/compute/2024-03-01/virtualmachines/method_listall.go @@ -59,6 +59,18 @@ func (o ListAllOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualMachinesClient) ListAll(ctx context.Context, id commonids.SubscriptionId, options ListAllOperationOptions) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c VirtualMachinesClient) ListAll(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), OptionsObject: options, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachines/method_listbylocation.go b/resource-manager/compute/2024-03-01/virtualmachines/method_listbylocation.go index 06778c05761..a06b8ffe0f2 100644 --- a/resource-manager/compute/2024-03-01/virtualmachines/method_listbylocation.go +++ b/resource-manager/compute/2024-03-01/virtualmachines/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []VirtualMachine } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c VirtualMachinesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachinesClient) ListByLocation(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/virtualMachines", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/virtualmachines/method_poweroff.go b/resource-manager/compute/2024-03-01/virtualmachines/method_poweroff.go index 3feeec83cf1..cd9da953583 100644 --- a/resource-manager/compute/2024-03-01/virtualmachines/method_poweroff.go +++ b/resource-manager/compute/2024-03-01/virtualmachines/method_poweroff.go @@ -56,8 +56,8 @@ func (c VirtualMachinesClient) PowerOff(ctx context.Context, id VirtualMachineId http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/powerOff", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/powerOff", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go b/resource-manager/compute/2024-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go index 6050bd7bafe..ef782af5c0a 100644 --- a/resource-manager/compute/2024-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go +++ b/resource-manager/compute/2024-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go @@ -53,8 +53,8 @@ func (c VirtualMachinesClient) RetrieveBootDiagnosticsData(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachines/method_update.go b/resource-manager/compute/2024-03-01/virtualmachines/method_update.go index ea3f47c96dc..89a435a1566 100644 --- a/resource-manager/compute/2024-03-01/virtualmachines/method_update.go +++ b/resource-manager/compute/2024-03-01/virtualmachines/method_update.go @@ -60,8 +60,8 @@ func (c VirtualMachinesClient) Update(ctx context.Context, id VirtualMachineId, http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/method_get.go b/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/method_get.go index 4be3f676e2f..805e9846e65 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/method_get.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, id Virt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/method_list.go b/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/method_list.go index 21a2fe90c79..56536db416c 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/method_list.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualMachineScaleSetExtension } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, id VirtualMachineScaleSetId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetExtensionsClient) List(ctx context.Context, id Vir http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/extensions", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_createorupdate.go b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_createorupdate.go index 54ba4feae26..75e8e97e63f 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_createorupdate.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_createorupdate.go @@ -61,8 +61,8 @@ func (c VirtualMachineScaleSetsClient) CreateOrUpdate(ctx context.Context, id Vi http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_deallocate.go b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_deallocate.go index 8d98d8d000d..45110630048 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_deallocate.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_deallocate.go @@ -56,8 +56,8 @@ func (c VirtualMachineScaleSetsClient) Deallocate(ctx context.Context, id Virtua http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/deallocate", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/deallocate", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_delete.go b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_delete.go index 253997004cd..154aacdb1ce 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_delete.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachineScaleSetsClient) Delete(ctx context.Context, id VirtualMac http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_deleteinstances.go b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_deleteinstances.go index 0dcba2356d4..375063255ba 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_deleteinstances.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_deleteinstances.go @@ -56,8 +56,8 @@ func (c VirtualMachineScaleSetsClient) DeleteInstances(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/delete", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/delete", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go index 9d54dfb6eff..9e2117d6a63 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go @@ -61,8 +61,8 @@ func (c VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUpdateD http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/forceRecoveryServiceFabricPlatformUpdateDomainWalk", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/forceRecoveryServiceFabricPlatformUpdateDomainWalk", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_get.go b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_get.go index 5f7d02e8817..1a1c806d33a 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_get.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetsClient) Get(ctx context.Context, id VirtualMachin http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_getosupgradehistory.go b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_getosupgradehistory.go index 66a38b27ed8..1702f705887 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_getosupgradehistory.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_getosupgradehistory.go @@ -23,6 +23,18 @@ type GetOSUpgradeHistoryCompleteResult struct { Items []UpgradeOperationHistoricalStatusInfo } +type GetOSUpgradeHistoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetOSUpgradeHistoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetOSUpgradeHistory ... func (c VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Context, id VirtualMachineScaleSetId) (result GetOSUpgradeHistoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetsClient) GetOSUpgradeHistory(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetOSUpgradeHistoryCustomPager{}, Path: fmt.Sprintf("%s/osUpgradeHistory", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_list.go b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_list.go index 59d05f3c6eb..1eaed1d1e4c 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_list.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualMachineScaleSet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineScaleSetsClient) List(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachineScaleSets", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_listall.go b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_listall.go index 25329e8fb33..4dc2af1c444 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_listall.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []VirtualMachineScaleSet } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualMachineScaleSetsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineScaleSetsClient) ListAll(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Compute/virtualMachineScaleSets", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_listbylocation.go b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_listbylocation.go index 6ed65795a11..2a0ba069763 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_listbylocation.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []VirtualMachineScaleSet } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c VirtualMachineScaleSetsClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetsClient) ListByLocation(ctx context.Context, id Lo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/virtualMachineScaleSets", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_listskus.go b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_listskus.go index 9e88d19ff5a..fbedf5765e1 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_listskus.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_listskus.go @@ -23,6 +23,18 @@ type ListSkusCompleteResult struct { Items []VirtualMachineScaleSetSku } +type ListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSkus ... func (c VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, id VirtualMachineScaleSetId) (result ListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineScaleSetsClient) ListSkus(ctx context.Context, id VirtualM http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_poweroff.go b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_poweroff.go index e4d57fa4c13..3b0e524f55b 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_poweroff.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_poweroff.go @@ -56,8 +56,8 @@ func (c VirtualMachineScaleSetsClient) PowerOff(ctx context.Context, id VirtualM http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/poweroff", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/poweroff", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_update.go b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_update.go index d76d8813402..4a22fdf65cf 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_update.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesets/method_update.go @@ -60,8 +60,8 @@ func (c VirtualMachineScaleSetsClient) Update(ctx context.Context, id VirtualMac http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesetvmextensions/method_get.go b/resource-manager/compute/2024-03-01/virtualmachinescalesetvmextensions/method_get.go index 43329beb794..734208e2c2b 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesetvmextensions/method_get.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesetvmextensions/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMExtensionsClient) Get(ctx context.Context, id Vi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesetvmextensions/method_list.go b/resource-manager/compute/2024-03-01/virtualmachinescalesetvmextensions/method_list.go index 09af94ba9a2..d9cdfbdcc60 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesetvmextensions/method_list.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesetvmextensions/method_list.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMExtensionsClient) List(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/extensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/extensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesetvmruncommands/method_get.go b/resource-manager/compute/2024-03-01/virtualmachinescalesetvmruncommands/method_get.go index e6f75652fb4..35fe308862d 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesetvmruncommands/method_get.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesetvmruncommands/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMRunCommandsClient) Get(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesetvmruncommands/method_list.go b/resource-manager/compute/2024-03-01/virtualmachinescalesetvmruncommands/method_list.go index 546867ed06b..d335e2247cf 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesetvmruncommands/method_list.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesetvmruncommands/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetVMRunCommandsClient) List(ctx context.Context, id VirtualMachineScaleSetVirtualMachineId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c VirtualMachineScaleSetVMRunCommandsClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runCommands", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/runCommands", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_delete.go b/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_delete.go index 243f7603272..70ab6260f49 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_delete.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachineScaleSetVMsClient) Delete(ctx context.Context, id VirtualM http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_get.go b/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_get.go index 7417756e222..54f1a9f63ea 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_get.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMsClient) Get(ctx context.Context, id VirtualMach http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_list.go b/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_list.go index a891e6ebf82..25828909629 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_list.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineScaleSetVMsClient) List(ctx context.Context, id VirtualMachineScaleSetId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c VirtualMachineScaleSetVMsClient) List(ctx context.Context, id VirtualMac http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/virtualMachines", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/virtualMachines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_poweroff.go b/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_poweroff.go index cdee3237236..1b450b80bfa 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_poweroff.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_poweroff.go @@ -56,8 +56,8 @@ func (c VirtualMachineScaleSetVMsClient) PowerOff(ctx context.Context, id Virtua http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/poweroff", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/poweroff", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go b/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go index 5a8747c15bc..29eb32435dd 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go @@ -53,8 +53,8 @@ func (c VirtualMachineScaleSetVMsClient) RetrieveBootDiagnosticsData(ctx context http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/retrieveBootDiagnosticsData", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_update.go b/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_update.go index 6c573533708..c63bdf8b2cd 100644 --- a/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_update.go +++ b/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_update.go @@ -61,8 +61,8 @@ func (c VirtualMachineScaleSetVMsClient) Update(ctx context.Context, id VirtualM http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbyresourcegroup.go b/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbyresourcegroup.go index 312d1a67afd..01152022317 100644 --- a/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbyresourcegroup.go +++ b/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbyresourcegroup.go @@ -51,6 +51,18 @@ func (o LedgerListByResourceGroupOperationOptions) ToQuery() *client.QueryParams return &out } +type LedgerListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LedgerListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LedgerListByResourceGroup ... func (c ConfidentialLedgerClient) LedgerListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options LedgerListByResourceGroupOperationOptions) (result LedgerListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ConfidentialLedgerClient) LedgerListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.ConfidentialLedger/ledgers", id.ID()), OptionsObject: options, + Pager: &LedgerListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.ConfidentialLedger/ledgers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbysubscription.go b/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbysubscription.go index b163ba7fc0d..a74fc3e73a6 100644 --- a/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbysubscription.go +++ b/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbysubscription.go @@ -51,6 +51,18 @@ func (o LedgerListBySubscriptionOperationOptions) ToQuery() *client.QueryParams return &out } +type LedgerListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LedgerListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LedgerListBySubscription ... func (c ConfidentialLedgerClient) LedgerListBySubscription(ctx context.Context, id commonids.SubscriptionId, options LedgerListBySubscriptionOperationOptions) (result LedgerListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ConfidentialLedgerClient) LedgerListBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.ConfidentialLedger/ledgers", id.ID()), OptionsObject: options, + Pager: &LedgerListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.ConfidentialLedger/ledgers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/clusters/method_delete.go b/resource-manager/connectedvmware/2022-01-10-preview/clusters/method_delete.go index b135bc37328..4bafe4f34f0 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/clusters/method_delete.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/clusters/method_delete.go @@ -57,8 +57,8 @@ func (c ClustersClient) Delete(ctx context.Context, id ClusterId, options Delete http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/clusters/method_list.go b/resource-manager/connectedvmware/2022-01-10-preview/clusters/method_list.go index 44e1ebcf30f..b3b144a4940 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/clusters/method_list.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/clusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/clusters", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/clusters/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2022-01-10-preview/clusters/method_listbyresourcegroup.go index cb96b616259..a9e5f707c2c 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/clusters/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/clusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/clusters", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/datastores/method_delete.go b/resource-manager/connectedvmware/2022-01-10-preview/datastores/method_delete.go index 110aad8b00b..299de11dc57 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/datastores/method_delete.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/datastores/method_delete.go @@ -57,8 +57,8 @@ func (c DataStoresClient) Delete(ctx context.Context, id DataStoreId, options De http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/datastores/method_list.go b/resource-manager/connectedvmware/2022-01-10-preview/datastores/method_list.go index ebc50fbee4c..5ac8d6037d8 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/datastores/method_list.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/datastores/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Datastore } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataStoresClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataStoresClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/dataStores", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/datastores/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2022-01-10-preview/datastores/method_listbyresourcegroup.go index 593d54bb085..edbcb406951 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/datastores/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/datastores/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Datastore } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DataStoresClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataStoresClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/dataStores", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/guestagents/method_listbyvm.go b/resource-manager/connectedvmware/2022-01-10-preview/guestagents/method_listbyvm.go index d39827318a8..1a47e1ed3b8 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/guestagents/method_listbyvm.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/guestagents/method_listbyvm.go @@ -23,6 +23,18 @@ type ListByVMCompleteResult struct { Items []GuestAgent } +type ListByVMCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVMCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVM ... func (c GuestAgentsClient) ListByVM(ctx context.Context, id VirtualMachineId) (result ListByVMOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GuestAgentsClient) ListByVM(ctx context.Context, id VirtualMachineId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVMCustomPager{}, Path: fmt.Sprintf("%s/guestAgents", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/hosts/method_delete.go b/resource-manager/connectedvmware/2022-01-10-preview/hosts/method_delete.go index 8da7fe57253..9a7b641d869 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/hosts/method_delete.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/hosts/method_delete.go @@ -57,8 +57,8 @@ func (c HostsClient) Delete(ctx context.Context, id HostId, options DeleteOperat http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/hosts/method_list.go b/resource-manager/connectedvmware/2022-01-10-preview/hosts/method_list.go index bde0b792a9e..0558184bdf3 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/hosts/method_list.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/hosts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Host } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c HostsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HostsClient) List(ctx context.Context, id commonids.SubscriptionId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/hosts", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/hosts/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2022-01-10-preview/hosts/method_listbyresourcegroup.go index e7c40020b71..cd757a9c89c 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/hosts/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/hosts/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Host } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c HostsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HostsClient) ListByResourceGroup(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/hosts", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/hybrididentitymetadata/method_listbyvm.go b/resource-manager/connectedvmware/2022-01-10-preview/hybrididentitymetadata/method_listbyvm.go index 1f32ed76888..0e1e9bfac7f 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/hybrididentitymetadata/method_listbyvm.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/hybrididentitymetadata/method_listbyvm.go @@ -23,6 +23,18 @@ type ListByVMCompleteResult struct { Items []HybridIdentityMetadata } +type ListByVMCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVMCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVM ... func (c HybridIdentityMetadataClient) ListByVM(ctx context.Context, id VirtualMachineId) (result ListByVMOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HybridIdentityMetadataClient) ListByVM(ctx context.Context, id VirtualMa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVMCustomPager{}, Path: fmt.Sprintf("%s/hybridIdentityMetadata", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/inventoryitems/method_listbyvcenter.go b/resource-manager/connectedvmware/2022-01-10-preview/inventoryitems/method_listbyvcenter.go index 003cae016c7..3122632e8d0 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/inventoryitems/method_listbyvcenter.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/inventoryitems/method_listbyvcenter.go @@ -23,6 +23,18 @@ type ListByVCenterCompleteResult struct { Items []InventoryItem } +type ListByVCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVCenter ... func (c InventoryItemsClient) ListByVCenter(ctx context.Context, id VCenterId) (result ListByVCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c InventoryItemsClient) ListByVCenter(ctx context.Context, id VCenterId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVCenterCustomPager{}, Path: fmt.Sprintf("%s/inventoryItems", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/machineextensions/method_list.go b/resource-manager/connectedvmware/2022-01-10-preview/machineextensions/method_list.go index c624f39d6d8..e7b571e829d 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/machineextensions/method_list.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/machineextensions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MachineExtensionsClient) List(ctx context.Context, id VirtualMachineId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c MachineExtensionsClient) List(ctx context.Context, id VirtualMachineId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/extensions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/extensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/method_delete.go b/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/method_delete.go index 2658dafaec0..63f60c2259f 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/method_delete.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/method_delete.go @@ -57,8 +57,8 @@ func (c ResourcePoolsClient) Delete(ctx context.Context, id ResourcePoolId, opti http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/method_list.go b/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/method_list.go index c0404974aa1..aa42bde190b 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/method_list.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ResourcePool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourcePoolsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourcePoolsClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/resourcePools", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/method_listbyresourcegroup.go index f384a997e75..4f2abec2e05 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/resourcepools/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ResourcePool } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ResourcePoolsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourcePoolsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/resourcePools", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/vcenters/method_delete.go b/resource-manager/connectedvmware/2022-01-10-preview/vcenters/method_delete.go index 84e20463573..c4941732776 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/vcenters/method_delete.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/vcenters/method_delete.go @@ -57,8 +57,8 @@ func (c VCentersClient) Delete(ctx context.Context, id VCenterId, options Delete http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/vcenters/method_list.go b/resource-manager/connectedvmware/2022-01-10-preview/vcenters/method_list.go index 7d45692cdda..14ef7158caa 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/vcenters/method_list.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/vcenters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VCenter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VCentersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VCentersClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/vCenters", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/vcenters/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2022-01-10-preview/vcenters/method_listbyresourcegroup.go index 579db8b3978..acb4b378880 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/vcenters/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/vcenters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VCenter } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VCentersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VCentersClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/vCenters", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/method_delete.go b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/method_delete.go index 583ff4498a2..f6674483828 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/method_delete.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/method_delete.go @@ -61,8 +61,8 @@ func (c VirtualMachinesClient) Delete(ctx context.Context, id VirtualMachineId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/method_list.go b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/method_list.go index 2ceb7dfc565..2985a0f16cb 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/method_list.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualMachine } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachinesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachinesClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/method_listbyresourcegroup.go index 946d8a1b49d..4ef9d56dc0b 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualMachine } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualMachinesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachinesClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/method_delete.go b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/method_delete.go index fd4c13d2e02..d77b5e05ab1 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/method_delete.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachineTemplatesClient) Delete(ctx context.Context, id VirtualMac http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/method_list.go b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/method_list.go index b0c0e9806d7..9b0960f8fb3 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/method_list.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualMachineTemplate } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineTemplatesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineTemplatesClient) List(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/method_listbyresourcegroup.go index b7c0afbd4c6..31ae185626d 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/virtualmachinetemplates/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualMachineTemplate } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualMachineTemplatesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineTemplatesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/method_delete.go b/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/method_delete.go index 18adc6a2100..53c2f55721a 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/method_delete.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualNetworksClient) Delete(ctx context.Context, id VirtualNetworkId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/method_list.go b/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/method_list.go index 56692cce7fc..f9c0663f630 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/method_list.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetwork } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworksClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks", id.ID()), } diff --git a/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/method_listbyresourcegroup.go index e1bc8ce3e14..156278fb71d 100644 --- a/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2022-01-10-preview/virtualnetworks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualNetwork } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualNetworksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/clusters/method_delete.go b/resource-manager/connectedvmware/2023-10-01/clusters/method_delete.go index b135bc37328..4bafe4f34f0 100644 --- a/resource-manager/connectedvmware/2023-10-01/clusters/method_delete.go +++ b/resource-manager/connectedvmware/2023-10-01/clusters/method_delete.go @@ -57,8 +57,8 @@ func (c ClustersClient) Delete(ctx context.Context, id ClusterId, options Delete http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-10-01/clusters/method_list.go b/resource-manager/connectedvmware/2023-10-01/clusters/method_list.go index 44e1ebcf30f..b3b144a4940 100644 --- a/resource-manager/connectedvmware/2023-10-01/clusters/method_list.go +++ b/resource-manager/connectedvmware/2023-10-01/clusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/clusters", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/clusters/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2023-10-01/clusters/method_listbyresourcegroup.go index cb96b616259..a9e5f707c2c 100644 --- a/resource-manager/connectedvmware/2023-10-01/clusters/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2023-10-01/clusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/clusters", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/datastores/method_delete.go b/resource-manager/connectedvmware/2023-10-01/datastores/method_delete.go index 110aad8b00b..299de11dc57 100644 --- a/resource-manager/connectedvmware/2023-10-01/datastores/method_delete.go +++ b/resource-manager/connectedvmware/2023-10-01/datastores/method_delete.go @@ -57,8 +57,8 @@ func (c DataStoresClient) Delete(ctx context.Context, id DataStoreId, options De http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-10-01/datastores/method_list.go b/resource-manager/connectedvmware/2023-10-01/datastores/method_list.go index ebc50fbee4c..5ac8d6037d8 100644 --- a/resource-manager/connectedvmware/2023-10-01/datastores/method_list.go +++ b/resource-manager/connectedvmware/2023-10-01/datastores/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Datastore } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataStoresClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataStoresClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/dataStores", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/datastores/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2023-10-01/datastores/method_listbyresourcegroup.go index 593d54bb085..edbcb406951 100644 --- a/resource-manager/connectedvmware/2023-10-01/datastores/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2023-10-01/datastores/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Datastore } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DataStoresClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataStoresClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/dataStores", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/hosts/method_delete.go b/resource-manager/connectedvmware/2023-10-01/hosts/method_delete.go index 8da7fe57253..9a7b641d869 100644 --- a/resource-manager/connectedvmware/2023-10-01/hosts/method_delete.go +++ b/resource-manager/connectedvmware/2023-10-01/hosts/method_delete.go @@ -57,8 +57,8 @@ func (c HostsClient) Delete(ctx context.Context, id HostId, options DeleteOperat http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-10-01/hosts/method_list.go b/resource-manager/connectedvmware/2023-10-01/hosts/method_list.go index bde0b792a9e..0558184bdf3 100644 --- a/resource-manager/connectedvmware/2023-10-01/hosts/method_list.go +++ b/resource-manager/connectedvmware/2023-10-01/hosts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Host } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c HostsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HostsClient) List(ctx context.Context, id commonids.SubscriptionId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/hosts", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/hosts/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2023-10-01/hosts/method_listbyresourcegroup.go index e7c40020b71..cd757a9c89c 100644 --- a/resource-manager/connectedvmware/2023-10-01/hosts/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2023-10-01/hosts/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Host } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c HostsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HostsClient) ListByResourceGroup(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/hosts", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/inventoryitems/method_listbyvcenter.go b/resource-manager/connectedvmware/2023-10-01/inventoryitems/method_listbyvcenter.go index 003cae016c7..3122632e8d0 100644 --- a/resource-manager/connectedvmware/2023-10-01/inventoryitems/method_listbyvcenter.go +++ b/resource-manager/connectedvmware/2023-10-01/inventoryitems/method_listbyvcenter.go @@ -23,6 +23,18 @@ type ListByVCenterCompleteResult struct { Items []InventoryItem } +type ListByVCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVCenter ... func (c InventoryItemsClient) ListByVCenter(ctx context.Context, id VCenterId) (result ListByVCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c InventoryItemsClient) ListByVCenter(ctx context.Context, id VCenterId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVCenterCustomPager{}, Path: fmt.Sprintf("%s/inventoryItems", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/resourcepools/method_delete.go b/resource-manager/connectedvmware/2023-10-01/resourcepools/method_delete.go index 2658dafaec0..63f60c2259f 100644 --- a/resource-manager/connectedvmware/2023-10-01/resourcepools/method_delete.go +++ b/resource-manager/connectedvmware/2023-10-01/resourcepools/method_delete.go @@ -57,8 +57,8 @@ func (c ResourcePoolsClient) Delete(ctx context.Context, id ResourcePoolId, opti http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-10-01/resourcepools/method_list.go b/resource-manager/connectedvmware/2023-10-01/resourcepools/method_list.go index c0404974aa1..aa42bde190b 100644 --- a/resource-manager/connectedvmware/2023-10-01/resourcepools/method_list.go +++ b/resource-manager/connectedvmware/2023-10-01/resourcepools/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ResourcePool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourcePoolsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourcePoolsClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/resourcePools", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/resourcepools/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2023-10-01/resourcepools/method_listbyresourcegroup.go index f384a997e75..4f2abec2e05 100644 --- a/resource-manager/connectedvmware/2023-10-01/resourcepools/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2023-10-01/resourcepools/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ResourcePool } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ResourcePoolsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourcePoolsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/resourcePools", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/vcenters/method_delete.go b/resource-manager/connectedvmware/2023-10-01/vcenters/method_delete.go index 84e20463573..c4941732776 100644 --- a/resource-manager/connectedvmware/2023-10-01/vcenters/method_delete.go +++ b/resource-manager/connectedvmware/2023-10-01/vcenters/method_delete.go @@ -57,8 +57,8 @@ func (c VCentersClient) Delete(ctx context.Context, id VCenterId, options Delete http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-10-01/vcenters/method_list.go b/resource-manager/connectedvmware/2023-10-01/vcenters/method_list.go index 7d45692cdda..14ef7158caa 100644 --- a/resource-manager/connectedvmware/2023-10-01/vcenters/method_list.go +++ b/resource-manager/connectedvmware/2023-10-01/vcenters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VCenter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VCentersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VCentersClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/vCenters", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/vcenters/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2023-10-01/vcenters/method_listbyresourcegroup.go index 579db8b3978..acb4b378880 100644 --- a/resource-manager/connectedvmware/2023-10-01/vcenters/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2023-10-01/vcenters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VCenter } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VCentersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VCentersClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/vCenters", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/virtualmachineinstances/method_delete.go b/resource-manager/connectedvmware/2023-10-01/virtualmachineinstances/method_delete.go index 9e6b59648f4..520968d448b 100644 --- a/resource-manager/connectedvmware/2023-10-01/virtualmachineinstances/method_delete.go +++ b/resource-manager/connectedvmware/2023-10-01/virtualmachineinstances/method_delete.go @@ -61,8 +61,8 @@ func (c VirtualMachineInstancesClient) Delete(ctx context.Context, id commonids. http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-10-01/virtualmachineinstances/method_list.go b/resource-manager/connectedvmware/2023-10-01/virtualmachineinstances/method_list.go index 895910d5031..78a50a8f40d 100644 --- a/resource-manager/connectedvmware/2023-10-01/virtualmachineinstances/method_list.go +++ b/resource-manager/connectedvmware/2023-10-01/virtualmachineinstances/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualMachineInstance } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineInstancesClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineInstancesClient) List(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/method_delete.go b/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/method_delete.go index fd4c13d2e02..d77b5e05ab1 100644 --- a/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/method_delete.go +++ b/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachineTemplatesClient) Delete(ctx context.Context, id VirtualMac http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/method_list.go b/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/method_list.go index b0c0e9806d7..9b0960f8fb3 100644 --- a/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/method_list.go +++ b/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualMachineTemplate } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineTemplatesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineTemplatesClient) List(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/method_listbyresourcegroup.go index b7c0afbd4c6..31ae185626d 100644 --- a/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2023-10-01/virtualmachinetemplates/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualMachineTemplate } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualMachineTemplatesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineTemplatesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/virtualnetworks/method_delete.go b/resource-manager/connectedvmware/2023-10-01/virtualnetworks/method_delete.go index 18adc6a2100..53c2f55721a 100644 --- a/resource-manager/connectedvmware/2023-10-01/virtualnetworks/method_delete.go +++ b/resource-manager/connectedvmware/2023-10-01/virtualnetworks/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualNetworksClient) Delete(ctx context.Context, id VirtualNetworkId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-10-01/virtualnetworks/method_list.go b/resource-manager/connectedvmware/2023-10-01/virtualnetworks/method_list.go index 56692cce7fc..f9c0663f630 100644 --- a/resource-manager/connectedvmware/2023-10-01/virtualnetworks/method_list.go +++ b/resource-manager/connectedvmware/2023-10-01/virtualnetworks/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetwork } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworksClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/virtualnetworks/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2023-10-01/virtualnetworks/method_listbyresourcegroup.go index e1bc8ce3e14..156278fb71d 100644 --- a/resource-manager/connectedvmware/2023-10-01/virtualnetworks/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2023-10-01/virtualnetworks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualNetwork } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualNetworksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/vminstanceguestagents/method_list.go b/resource-manager/connectedvmware/2023-10-01/vminstanceguestagents/method_list.go index c07b29d21f5..89c3e0d70e1 100644 --- a/resource-manager/connectedvmware/2023-10-01/vminstanceguestagents/method_list.go +++ b/resource-manager/connectedvmware/2023-10-01/vminstanceguestagents/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []GuestAgent } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VMInstanceGuestAgentsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VMInstanceGuestAgentsClient) List(ctx context.Context, id commonids.Scop http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/guestAgents", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-10-01/vminstancehybrididentitymetadata/method_list.go b/resource-manager/connectedvmware/2023-10-01/vminstancehybrididentitymetadata/method_list.go index f64db83f1d5..775d647ddb3 100644 --- a/resource-manager/connectedvmware/2023-10-01/vminstancehybrididentitymetadata/method_list.go +++ b/resource-manager/connectedvmware/2023-10-01/vminstancehybrididentitymetadata/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VMInstanceHybridIdentityMetadata } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VMInstanceHybridIdentityMetadataClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VMInstanceHybridIdentityMetadataClient) List(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/hybridIdentityMetadata", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/clusters/method_delete.go b/resource-manager/connectedvmware/2023-12-01/clusters/method_delete.go index b135bc37328..4bafe4f34f0 100644 --- a/resource-manager/connectedvmware/2023-12-01/clusters/method_delete.go +++ b/resource-manager/connectedvmware/2023-12-01/clusters/method_delete.go @@ -57,8 +57,8 @@ func (c ClustersClient) Delete(ctx context.Context, id ClusterId, options Delete http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-12-01/clusters/method_list.go b/resource-manager/connectedvmware/2023-12-01/clusters/method_list.go index 44e1ebcf30f..b3b144a4940 100644 --- a/resource-manager/connectedvmware/2023-12-01/clusters/method_list.go +++ b/resource-manager/connectedvmware/2023-12-01/clusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/clusters", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/clusters/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2023-12-01/clusters/method_listbyresourcegroup.go index cb96b616259..a9e5f707c2c 100644 --- a/resource-manager/connectedvmware/2023-12-01/clusters/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2023-12-01/clusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/clusters", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/datastores/method_delete.go b/resource-manager/connectedvmware/2023-12-01/datastores/method_delete.go index 110aad8b00b..299de11dc57 100644 --- a/resource-manager/connectedvmware/2023-12-01/datastores/method_delete.go +++ b/resource-manager/connectedvmware/2023-12-01/datastores/method_delete.go @@ -57,8 +57,8 @@ func (c DataStoresClient) Delete(ctx context.Context, id DataStoreId, options De http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-12-01/datastores/method_list.go b/resource-manager/connectedvmware/2023-12-01/datastores/method_list.go index ebc50fbee4c..5ac8d6037d8 100644 --- a/resource-manager/connectedvmware/2023-12-01/datastores/method_list.go +++ b/resource-manager/connectedvmware/2023-12-01/datastores/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Datastore } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataStoresClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataStoresClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/dataStores", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/datastores/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2023-12-01/datastores/method_listbyresourcegroup.go index 593d54bb085..edbcb406951 100644 --- a/resource-manager/connectedvmware/2023-12-01/datastores/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2023-12-01/datastores/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Datastore } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DataStoresClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataStoresClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/dataStores", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/hosts/method_delete.go b/resource-manager/connectedvmware/2023-12-01/hosts/method_delete.go index 8da7fe57253..9a7b641d869 100644 --- a/resource-manager/connectedvmware/2023-12-01/hosts/method_delete.go +++ b/resource-manager/connectedvmware/2023-12-01/hosts/method_delete.go @@ -57,8 +57,8 @@ func (c HostsClient) Delete(ctx context.Context, id HostId, options DeleteOperat http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-12-01/hosts/method_list.go b/resource-manager/connectedvmware/2023-12-01/hosts/method_list.go index bde0b792a9e..0558184bdf3 100644 --- a/resource-manager/connectedvmware/2023-12-01/hosts/method_list.go +++ b/resource-manager/connectedvmware/2023-12-01/hosts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Host } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c HostsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HostsClient) List(ctx context.Context, id commonids.SubscriptionId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/hosts", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/hosts/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2023-12-01/hosts/method_listbyresourcegroup.go index e7c40020b71..cd757a9c89c 100644 --- a/resource-manager/connectedvmware/2023-12-01/hosts/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2023-12-01/hosts/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Host } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c HostsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HostsClient) ListByResourceGroup(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/hosts", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/inventoryitems/method_listbyvcenter.go b/resource-manager/connectedvmware/2023-12-01/inventoryitems/method_listbyvcenter.go index 003cae016c7..3122632e8d0 100644 --- a/resource-manager/connectedvmware/2023-12-01/inventoryitems/method_listbyvcenter.go +++ b/resource-manager/connectedvmware/2023-12-01/inventoryitems/method_listbyvcenter.go @@ -23,6 +23,18 @@ type ListByVCenterCompleteResult struct { Items []InventoryItem } +type ListByVCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVCenter ... func (c InventoryItemsClient) ListByVCenter(ctx context.Context, id VCenterId) (result ListByVCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c InventoryItemsClient) ListByVCenter(ctx context.Context, id VCenterId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVCenterCustomPager{}, Path: fmt.Sprintf("%s/inventoryItems", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/resourcepools/method_delete.go b/resource-manager/connectedvmware/2023-12-01/resourcepools/method_delete.go index 2658dafaec0..63f60c2259f 100644 --- a/resource-manager/connectedvmware/2023-12-01/resourcepools/method_delete.go +++ b/resource-manager/connectedvmware/2023-12-01/resourcepools/method_delete.go @@ -57,8 +57,8 @@ func (c ResourcePoolsClient) Delete(ctx context.Context, id ResourcePoolId, opti http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-12-01/resourcepools/method_list.go b/resource-manager/connectedvmware/2023-12-01/resourcepools/method_list.go index c0404974aa1..aa42bde190b 100644 --- a/resource-manager/connectedvmware/2023-12-01/resourcepools/method_list.go +++ b/resource-manager/connectedvmware/2023-12-01/resourcepools/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ResourcePool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourcePoolsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourcePoolsClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/resourcePools", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/resourcepools/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2023-12-01/resourcepools/method_listbyresourcegroup.go index f384a997e75..4f2abec2e05 100644 --- a/resource-manager/connectedvmware/2023-12-01/resourcepools/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2023-12-01/resourcepools/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ResourcePool } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ResourcePoolsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourcePoolsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/resourcePools", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/vcenters/method_delete.go b/resource-manager/connectedvmware/2023-12-01/vcenters/method_delete.go index 84e20463573..c4941732776 100644 --- a/resource-manager/connectedvmware/2023-12-01/vcenters/method_delete.go +++ b/resource-manager/connectedvmware/2023-12-01/vcenters/method_delete.go @@ -57,8 +57,8 @@ func (c VCentersClient) Delete(ctx context.Context, id VCenterId, options Delete http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-12-01/vcenters/method_list.go b/resource-manager/connectedvmware/2023-12-01/vcenters/method_list.go index 7d45692cdda..14ef7158caa 100644 --- a/resource-manager/connectedvmware/2023-12-01/vcenters/method_list.go +++ b/resource-manager/connectedvmware/2023-12-01/vcenters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VCenter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VCentersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VCentersClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/vCenters", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/vcenters/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2023-12-01/vcenters/method_listbyresourcegroup.go index 579db8b3978..acb4b378880 100644 --- a/resource-manager/connectedvmware/2023-12-01/vcenters/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2023-12-01/vcenters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VCenter } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VCentersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VCentersClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/vCenters", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/virtualmachineinstances/method_delete.go b/resource-manager/connectedvmware/2023-12-01/virtualmachineinstances/method_delete.go index 9e6b59648f4..520968d448b 100644 --- a/resource-manager/connectedvmware/2023-12-01/virtualmachineinstances/method_delete.go +++ b/resource-manager/connectedvmware/2023-12-01/virtualmachineinstances/method_delete.go @@ -61,8 +61,8 @@ func (c VirtualMachineInstancesClient) Delete(ctx context.Context, id commonids. http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-12-01/virtualmachineinstances/method_list.go b/resource-manager/connectedvmware/2023-12-01/virtualmachineinstances/method_list.go index 895910d5031..78a50a8f40d 100644 --- a/resource-manager/connectedvmware/2023-12-01/virtualmachineinstances/method_list.go +++ b/resource-manager/connectedvmware/2023-12-01/virtualmachineinstances/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualMachineInstance } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineInstancesClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineInstancesClient) List(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/virtualmachinetemplates/method_delete.go b/resource-manager/connectedvmware/2023-12-01/virtualmachinetemplates/method_delete.go index fd4c13d2e02..d77b5e05ab1 100644 --- a/resource-manager/connectedvmware/2023-12-01/virtualmachinetemplates/method_delete.go +++ b/resource-manager/connectedvmware/2023-12-01/virtualmachinetemplates/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualMachineTemplatesClient) Delete(ctx context.Context, id VirtualMac http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-12-01/virtualmachinetemplates/method_list.go b/resource-manager/connectedvmware/2023-12-01/virtualmachinetemplates/method_list.go index b0c0e9806d7..9b0960f8fb3 100644 --- a/resource-manager/connectedvmware/2023-12-01/virtualmachinetemplates/method_list.go +++ b/resource-manager/connectedvmware/2023-12-01/virtualmachinetemplates/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualMachineTemplate } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineTemplatesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineTemplatesClient) List(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/virtualmachinetemplates/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2023-12-01/virtualmachinetemplates/method_listbyresourcegroup.go index b7c0afbd4c6..31ae185626d 100644 --- a/resource-manager/connectedvmware/2023-12-01/virtualmachinetemplates/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2023-12-01/virtualmachinetemplates/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualMachineTemplate } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualMachineTemplatesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineTemplatesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/virtualnetworks/method_delete.go b/resource-manager/connectedvmware/2023-12-01/virtualnetworks/method_delete.go index 18adc6a2100..53c2f55721a 100644 --- a/resource-manager/connectedvmware/2023-12-01/virtualnetworks/method_delete.go +++ b/resource-manager/connectedvmware/2023-12-01/virtualnetworks/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualNetworksClient) Delete(ctx context.Context, id VirtualNetworkId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/connectedvmware/2023-12-01/virtualnetworks/method_list.go b/resource-manager/connectedvmware/2023-12-01/virtualnetworks/method_list.go index 56692cce7fc..f9c0663f630 100644 --- a/resource-manager/connectedvmware/2023-12-01/virtualnetworks/method_list.go +++ b/resource-manager/connectedvmware/2023-12-01/virtualnetworks/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetwork } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworksClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/virtualnetworks/method_listbyresourcegroup.go b/resource-manager/connectedvmware/2023-12-01/virtualnetworks/method_listbyresourcegroup.go index e1bc8ce3e14..156278fb71d 100644 --- a/resource-manager/connectedvmware/2023-12-01/virtualnetworks/method_listbyresourcegroup.go +++ b/resource-manager/connectedvmware/2023-12-01/virtualnetworks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualNetwork } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualNetworksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/vminstanceguestagents/method_list.go b/resource-manager/connectedvmware/2023-12-01/vminstanceguestagents/method_list.go index c07b29d21f5..89c3e0d70e1 100644 --- a/resource-manager/connectedvmware/2023-12-01/vminstanceguestagents/method_list.go +++ b/resource-manager/connectedvmware/2023-12-01/vminstanceguestagents/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []GuestAgent } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VMInstanceGuestAgentsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VMInstanceGuestAgentsClient) List(ctx context.Context, id commonids.Scop http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/guestAgents", id.ID()), } diff --git a/resource-manager/connectedvmware/2023-12-01/vminstancehybrididentitymetadata/method_list.go b/resource-manager/connectedvmware/2023-12-01/vminstancehybrididentitymetadata/method_list.go index f64db83f1d5..775d647ddb3 100644 --- a/resource-manager/connectedvmware/2023-12-01/vminstancehybrididentitymetadata/method_list.go +++ b/resource-manager/connectedvmware/2023-12-01/vminstancehybrididentitymetadata/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VMInstanceHybridIdentityMetadata } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VMInstanceHybridIdentityMetadataClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VMInstanceHybridIdentityMetadataClient) List(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default/hybridIdentityMetadata", id.ID()), } diff --git a/resource-manager/consumption/2019-10-01/aggregatedcost/method_getbymanagementgroup.go b/resource-manager/consumption/2019-10-01/aggregatedcost/method_getbymanagementgroup.go index c9840759399..5f5030bcf40 100644 --- a/resource-manager/consumption/2019-10-01/aggregatedcost/method_getbymanagementgroup.go +++ b/resource-manager/consumption/2019-10-01/aggregatedcost/method_getbymanagementgroup.go @@ -54,8 +54,8 @@ func (c AggregatedCostClient) GetByManagementGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/aggregatedcost", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/aggregatedcost", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/budgets/method_list.go b/resource-manager/consumption/2019-10-01/budgets/method_list.go index b4ab21012f7..f0c7b1e51bd 100644 --- a/resource-manager/consumption/2019-10-01/budgets/method_list.go +++ b/resource-manager/consumption/2019-10-01/budgets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Budget } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/budgets", id.ID()), } diff --git a/resource-manager/consumption/2019-10-01/charges/method_list.go b/resource-manager/consumption/2019-10-01/charges/method_list.go index 4685fa04cf5..e5691031026 100644 --- a/resource-manager/consumption/2019-10-01/charges/method_list.go +++ b/resource-manager/consumption/2019-10-01/charges/method_list.go @@ -66,8 +66,8 @@ func (c ChargesClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/charges", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/charges", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/events/method_list.go b/resource-manager/consumption/2019-10-01/events/method_list.go index 7949d358ba0..f3c0e13cb07 100644 --- a/resource-manager/consumption/2019-10-01/events/method_list.go +++ b/resource-manager/consumption/2019-10-01/events/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EventsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c EventsClient) List(ctx context.Context, id commonids.ScopeId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/forecasts/method_list.go b/resource-manager/consumption/2019-10-01/forecasts/method_list.go index 73acb440a9b..5af81124423 100644 --- a/resource-manager/consumption/2019-10-01/forecasts/method_list.go +++ b/resource-manager/consumption/2019-10-01/forecasts/method_list.go @@ -54,8 +54,8 @@ func (c ForecastsClient) List(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/forecasts", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/forecasts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/lots/method_list.go b/resource-manager/consumption/2019-10-01/lots/method_list.go index f94134d071e..f104b89e2be 100644 --- a/resource-manager/consumption/2019-10-01/lots/method_list.go +++ b/resource-manager/consumption/2019-10-01/lots/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []LotSummary } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LotsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LotsClient) List(ctx context.Context, id commonids.ScopeId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), } diff --git a/resource-manager/consumption/2019-10-01/marketplaces/method_list.go b/resource-manager/consumption/2019-10-01/marketplaces/method_list.go index b8f0b380a60..16ac7b3b8ab 100644 --- a/resource-manager/consumption/2019-10-01/marketplaces/method_list.go +++ b/resource-manager/consumption/2019-10-01/marketplaces/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MarketplacesClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c MarketplacesClient) List(ctx context.Context, id commonids.ScopeId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/marketplaces", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/marketplaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/pricesheet/method_get.go b/resource-manager/consumption/2019-10-01/pricesheet/method_get.go index 82367e27d78..52dfa7ce731 100644 --- a/resource-manager/consumption/2019-10-01/pricesheet/method_get.go +++ b/resource-manager/consumption/2019-10-01/pricesheet/method_get.go @@ -58,8 +58,8 @@ func (c PriceSheetClient) Get(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/pricesheet/method_getbybillingperiod.go b/resource-manager/consumption/2019-10-01/pricesheet/method_getbybillingperiod.go index d698a3317ac..6b9d73036be 100644 --- a/resource-manager/consumption/2019-10-01/pricesheet/method_getbybillingperiod.go +++ b/resource-manager/consumption/2019-10-01/pricesheet/method_getbybillingperiod.go @@ -57,8 +57,8 @@ func (c PriceSheetClient) GetByBillingPeriod(ctx context.Context, id BillingPeri http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/reservationdetails/method_reservationsdetailslist.go b/resource-manager/consumption/2019-10-01/reservationdetails/method_reservationsdetailslist.go index e578390be56..6fb07ab02f5 100644 --- a/resource-manager/consumption/2019-10-01/reservationdetails/method_reservationsdetailslist.go +++ b/resource-manager/consumption/2019-10-01/reservationdetails/method_reservationsdetailslist.go @@ -67,6 +67,18 @@ func (o ReservationsDetailsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ReservationsDetailsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsList ... func (c ReservationDetailsClient) ReservationsDetailsList(ctx context.Context, id commonids.ScopeId, options ReservationsDetailsListOperationOptions) (result ReservationsDetailsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -75,8 +87,9 @@ func (c ReservationDetailsClient) ReservationsDetailsList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go b/resource-manager/consumption/2019-10-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go index aac4b7fb598..aa1795dac26 100644 --- a/resource-manager/consumption/2019-10-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go +++ b/resource-manager/consumption/2019-10-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go @@ -50,6 +50,18 @@ func (o ReservationsDetailsListByReservationOrderOperationOptions) ToQuery() *cl return &out } +type ReservationsDetailsListByReservationOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListByReservationOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsListByReservationOrder ... func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrder(ctx context.Context, id ReservationOrderId, options ReservationsDetailsListByReservationOrderOperationOptions) (result ReservationsDetailsListByReservationOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrder(ctx http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListByReservationOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go b/resource-manager/consumption/2019-10-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go index 74929755441..2c7c1d40261 100644 --- a/resource-manager/consumption/2019-10-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go +++ b/resource-manager/consumption/2019-10-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go @@ -50,6 +50,18 @@ func (o ReservationsDetailsListByReservationOrderAndReservationOperationOptions) return &out } +type ReservationsDetailsListByReservationOrderAndReservationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListByReservationOrderAndReservationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsListByReservationOrderAndReservation ... func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndReservation(ctx context.Context, id ReservationId, options ReservationsDetailsListByReservationOrderAndReservationOperationOptions) (result ReservationsDetailsListByReservationOrderAndReservationOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndRe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListByReservationOrderAndReservationCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/reservationrecommendationdetails/method_get.go b/resource-manager/consumption/2019-10-01/reservationrecommendationdetails/method_get.go index 86e96297e5a..9bde40fd925 100644 --- a/resource-manager/consumption/2019-10-01/reservationrecommendationdetails/method_get.go +++ b/resource-manager/consumption/2019-10-01/reservationrecommendationdetails/method_get.go @@ -71,8 +71,8 @@ func (c ReservationRecommendationDetailsClient) Get(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendationDetails", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/reservationrecommendations/method_list.go b/resource-manager/consumption/2019-10-01/reservationrecommendations/method_list.go index 23ed85ba9aa..fff4b3070f7 100644 --- a/resource-manager/consumption/2019-10-01/reservationrecommendations/method_list.go +++ b/resource-manager/consumption/2019-10-01/reservationrecommendations/method_list.go @@ -52,6 +52,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReservationRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -61,8 +73,9 @@ func (c ReservationRecommendationsClient) List(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/reservationsummaries/method_reservationssummarieslist.go b/resource-manager/consumption/2019-10-01/reservationsummaries/method_reservationssummarieslist.go index 2b7bf099779..635bc11f2bb 100644 --- a/resource-manager/consumption/2019-10-01/reservationsummaries/method_reservationssummarieslist.go +++ b/resource-manager/consumption/2019-10-01/reservationsummaries/method_reservationssummarieslist.go @@ -71,6 +71,18 @@ func (o ReservationsSummariesListOperationOptions) ToQuery() *client.QueryParams return &out } +type ReservationsSummariesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesList ... func (c ReservationSummariesClient) ReservationsSummariesList(ctx context.Context, id commonids.ScopeId, options ReservationsSummariesListOperationOptions) (result ReservationsSummariesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -79,8 +91,9 @@ func (c ReservationSummariesClient) ReservationsSummariesList(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go b/resource-manager/consumption/2019-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go index 1136947832c..ba4e96ea155 100644 --- a/resource-manager/consumption/2019-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go +++ b/resource-manager/consumption/2019-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go @@ -54,6 +54,18 @@ func (o ReservationsSummariesListByReservationOrderOperationOptions) ToQuery() * return &out } +type ReservationsSummariesListByReservationOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListByReservationOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesListByReservationOrder ... func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrder(ctx context.Context, id ReservationOrderId, options ReservationsSummariesListByReservationOrderOperationOptions) (result ReservationsSummariesListByReservationOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrder( http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListByReservationOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go b/resource-manager/consumption/2019-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go index 62de45b5437..6fe1b80343d 100644 --- a/resource-manager/consumption/2019-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go +++ b/resource-manager/consumption/2019-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go @@ -54,6 +54,18 @@ func (o ReservationsSummariesListByReservationOrderAndReservationOperationOption return &out } +type ReservationsSummariesListByReservationOrderAndReservationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListByReservationOrderAndReservationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesListByReservationOrderAndReservation ... func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderAndReservation(ctx context.Context, id ReservationId, options ReservationsSummariesListByReservationOrderAndReservationOperationOptions) (result ReservationsSummariesListByReservationOrderAndReservationOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderA http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListByReservationOrderAndReservationCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/reservationtransactions/method_list.go b/resource-manager/consumption/2019-10-01/reservationtransactions/method_list.go index a93f4cff443..ba84b770cba 100644 --- a/resource-manager/consumption/2019-10-01/reservationtransactions/method_list.go +++ b/resource-manager/consumption/2019-10-01/reservationtransactions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReservationTransactionsClient) List(ctx context.Context, id BillingAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationTransactionsClient) List(ctx context.Context, id BillingAccou http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2019-10-01/reservationtransactions/method_listbybillingprofile.go b/resource-manager/consumption/2019-10-01/reservationtransactions/method_listbybillingprofile.go index b2c7ea22d7f..3f0a1a80b38 100644 --- a/resource-manager/consumption/2019-10-01/reservationtransactions/method_listbybillingprofile.go +++ b/resource-manager/consumption/2019-10-01/reservationtransactions/method_listbybillingprofile.go @@ -50,6 +50,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c ReservationTransactionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationTransactionsClient) ListByBillingProfile(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/aggregatedcost/method_getbymanagementgroup.go b/resource-manager/consumption/2021-10-01/aggregatedcost/method_getbymanagementgroup.go index c9840759399..5f5030bcf40 100644 --- a/resource-manager/consumption/2021-10-01/aggregatedcost/method_getbymanagementgroup.go +++ b/resource-manager/consumption/2021-10-01/aggregatedcost/method_getbymanagementgroup.go @@ -54,8 +54,8 @@ func (c AggregatedCostClient) GetByManagementGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/aggregatedcost", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/aggregatedcost", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/budgets/method_list.go b/resource-manager/consumption/2021-10-01/budgets/method_list.go index b4ab21012f7..f0c7b1e51bd 100644 --- a/resource-manager/consumption/2021-10-01/budgets/method_list.go +++ b/resource-manager/consumption/2021-10-01/budgets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Budget } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/budgets", id.ID()), } diff --git a/resource-manager/consumption/2021-10-01/charges/method_list.go b/resource-manager/consumption/2021-10-01/charges/method_list.go index 4685fa04cf5..e5691031026 100644 --- a/resource-manager/consumption/2021-10-01/charges/method_list.go +++ b/resource-manager/consumption/2021-10-01/charges/method_list.go @@ -66,8 +66,8 @@ func (c ChargesClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/charges", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/charges", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/events/method_listbybillingaccount.go b/resource-manager/consumption/2021-10-01/events/method_listbybillingaccount.go index 0f41eb455e2..bc739678dcf 100644 --- a/resource-manager/consumption/2021-10-01/events/method_listbybillingaccount.go +++ b/resource-manager/consumption/2021-10-01/events/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c EventsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c EventsClient) ListByBillingAccount(ctx context.Context, id BillingAccoun http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/events/method_listbybillingprofile.go b/resource-manager/consumption/2021-10-01/events/method_listbybillingprofile.go index d57233dbeb5..d4e4d2d8933 100644 --- a/resource-manager/consumption/2021-10-01/events/method_listbybillingprofile.go +++ b/resource-manager/consumption/2021-10-01/events/method_listbybillingprofile.go @@ -54,6 +54,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c EventsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventsClient) ListByBillingProfile(ctx context.Context, id BillingProfil http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/lots/method_listbybillingaccount.go b/resource-manager/consumption/2021-10-01/lots/method_listbybillingaccount.go index 8e86a581456..71679325bb1 100644 --- a/resource-manager/consumption/2021-10-01/lots/method_listbybillingaccount.go +++ b/resource-manager/consumption/2021-10-01/lots/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c LotsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c LotsClient) ListByBillingAccount(ctx context.Context, id BillingAccountI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/lots/method_listbybillingprofile.go b/resource-manager/consumption/2021-10-01/lots/method_listbybillingprofile.go index 135439b830e..6438d7dc5d1 100644 --- a/resource-manager/consumption/2021-10-01/lots/method_listbybillingprofile.go +++ b/resource-manager/consumption/2021-10-01/lots/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []LotSummary } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c LotsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LotsClient) ListByBillingProfile(ctx context.Context, id BillingProfileI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), } diff --git a/resource-manager/consumption/2021-10-01/lots/method_listbycustomer.go b/resource-manager/consumption/2021-10-01/lots/method_listbycustomer.go index d49f28db36a..f3697ec4834 100644 --- a/resource-manager/consumption/2021-10-01/lots/method_listbycustomer.go +++ b/resource-manager/consumption/2021-10-01/lots/method_listbycustomer.go @@ -50,6 +50,18 @@ func (o ListByCustomerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c LotsClient) ListByCustomer(ctx context.Context, id CustomerId, options ListByCustomerOperationOptions) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c LotsClient) ListByCustomer(ctx context.Context, id CustomerId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), OptionsObject: options, + Pager: &ListByCustomerCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/marketplaces/method_list.go b/resource-manager/consumption/2021-10-01/marketplaces/method_list.go index 42cfb439c90..473fc8b7ca4 100644 --- a/resource-manager/consumption/2021-10-01/marketplaces/method_list.go +++ b/resource-manager/consumption/2021-10-01/marketplaces/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MarketplacesClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -64,8 +76,9 @@ func (c MarketplacesClient) List(ctx context.Context, id commonids.ScopeId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/marketplaces", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/marketplaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/pricesheet/method_get.go b/resource-manager/consumption/2021-10-01/pricesheet/method_get.go index 82367e27d78..52dfa7ce731 100644 --- a/resource-manager/consumption/2021-10-01/pricesheet/method_get.go +++ b/resource-manager/consumption/2021-10-01/pricesheet/method_get.go @@ -58,8 +58,8 @@ func (c PriceSheetClient) Get(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/pricesheet/method_getbybillingperiod.go b/resource-manager/consumption/2021-10-01/pricesheet/method_getbybillingperiod.go index d698a3317ac..6b9d73036be 100644 --- a/resource-manager/consumption/2021-10-01/pricesheet/method_getbybillingperiod.go +++ b/resource-manager/consumption/2021-10-01/pricesheet/method_getbybillingperiod.go @@ -57,8 +57,8 @@ func (c PriceSheetClient) GetByBillingPeriod(ctx context.Context, id BillingPeri http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/reservationdetails/method_reservationsdetailslist.go b/resource-manager/consumption/2021-10-01/reservationdetails/method_reservationsdetailslist.go index e578390be56..6fb07ab02f5 100644 --- a/resource-manager/consumption/2021-10-01/reservationdetails/method_reservationsdetailslist.go +++ b/resource-manager/consumption/2021-10-01/reservationdetails/method_reservationsdetailslist.go @@ -67,6 +67,18 @@ func (o ReservationsDetailsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ReservationsDetailsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsList ... func (c ReservationDetailsClient) ReservationsDetailsList(ctx context.Context, id commonids.ScopeId, options ReservationsDetailsListOperationOptions) (result ReservationsDetailsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -75,8 +87,9 @@ func (c ReservationDetailsClient) ReservationsDetailsList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go b/resource-manager/consumption/2021-10-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go index aac4b7fb598..aa1795dac26 100644 --- a/resource-manager/consumption/2021-10-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go +++ b/resource-manager/consumption/2021-10-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go @@ -50,6 +50,18 @@ func (o ReservationsDetailsListByReservationOrderOperationOptions) ToQuery() *cl return &out } +type ReservationsDetailsListByReservationOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListByReservationOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsListByReservationOrder ... func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrder(ctx context.Context, id ReservationOrderId, options ReservationsDetailsListByReservationOrderOperationOptions) (result ReservationsDetailsListByReservationOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrder(ctx http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListByReservationOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go b/resource-manager/consumption/2021-10-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go index 74929755441..2c7c1d40261 100644 --- a/resource-manager/consumption/2021-10-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go +++ b/resource-manager/consumption/2021-10-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go @@ -50,6 +50,18 @@ func (o ReservationsDetailsListByReservationOrderAndReservationOperationOptions) return &out } +type ReservationsDetailsListByReservationOrderAndReservationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListByReservationOrderAndReservationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsListByReservationOrderAndReservation ... func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndReservation(ctx context.Context, id ReservationId, options ReservationsDetailsListByReservationOrderAndReservationOperationOptions) (result ReservationsDetailsListByReservationOrderAndReservationOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndRe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListByReservationOrderAndReservationCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/reservationrecommendationdetails/method_get.go b/resource-manager/consumption/2021-10-01/reservationrecommendationdetails/method_get.go index 86e96297e5a..9bde40fd925 100644 --- a/resource-manager/consumption/2021-10-01/reservationrecommendationdetails/method_get.go +++ b/resource-manager/consumption/2021-10-01/reservationrecommendationdetails/method_get.go @@ -71,8 +71,8 @@ func (c ReservationRecommendationDetailsClient) Get(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendationDetails", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/reservationrecommendations/method_list.go b/resource-manager/consumption/2021-10-01/reservationrecommendations/method_list.go index 23ed85ba9aa..fff4b3070f7 100644 --- a/resource-manager/consumption/2021-10-01/reservationrecommendations/method_list.go +++ b/resource-manager/consumption/2021-10-01/reservationrecommendations/method_list.go @@ -52,6 +52,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReservationRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -61,8 +73,9 @@ func (c ReservationRecommendationsClient) List(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/reservationsummaries/method_reservationssummarieslist.go b/resource-manager/consumption/2021-10-01/reservationsummaries/method_reservationssummarieslist.go index 2b7bf099779..635bc11f2bb 100644 --- a/resource-manager/consumption/2021-10-01/reservationsummaries/method_reservationssummarieslist.go +++ b/resource-manager/consumption/2021-10-01/reservationsummaries/method_reservationssummarieslist.go @@ -71,6 +71,18 @@ func (o ReservationsSummariesListOperationOptions) ToQuery() *client.QueryParams return &out } +type ReservationsSummariesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesList ... func (c ReservationSummariesClient) ReservationsSummariesList(ctx context.Context, id commonids.ScopeId, options ReservationsSummariesListOperationOptions) (result ReservationsSummariesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -79,8 +91,9 @@ func (c ReservationSummariesClient) ReservationsSummariesList(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go b/resource-manager/consumption/2021-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go index 1136947832c..ba4e96ea155 100644 --- a/resource-manager/consumption/2021-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go +++ b/resource-manager/consumption/2021-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go @@ -54,6 +54,18 @@ func (o ReservationsSummariesListByReservationOrderOperationOptions) ToQuery() * return &out } +type ReservationsSummariesListByReservationOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListByReservationOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesListByReservationOrder ... func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrder(ctx context.Context, id ReservationOrderId, options ReservationsSummariesListByReservationOrderOperationOptions) (result ReservationsSummariesListByReservationOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrder( http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListByReservationOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go b/resource-manager/consumption/2021-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go index 62de45b5437..6fe1b80343d 100644 --- a/resource-manager/consumption/2021-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go +++ b/resource-manager/consumption/2021-10-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go @@ -54,6 +54,18 @@ func (o ReservationsSummariesListByReservationOrderAndReservationOperationOption return &out } +type ReservationsSummariesListByReservationOrderAndReservationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListByReservationOrderAndReservationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesListByReservationOrderAndReservation ... func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderAndReservation(ctx context.Context, id ReservationId, options ReservationsSummariesListByReservationOrderAndReservationOperationOptions) (result ReservationsSummariesListByReservationOrderAndReservationOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderA http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListByReservationOrderAndReservationCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/reservationtransactions/method_list.go b/resource-manager/consumption/2021-10-01/reservationtransactions/method_list.go index a93f4cff443..ba84b770cba 100644 --- a/resource-manager/consumption/2021-10-01/reservationtransactions/method_list.go +++ b/resource-manager/consumption/2021-10-01/reservationtransactions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReservationTransactionsClient) List(ctx context.Context, id BillingAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationTransactionsClient) List(ctx context.Context, id BillingAccou http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2021-10-01/reservationtransactions/method_listbybillingprofile.go b/resource-manager/consumption/2021-10-01/reservationtransactions/method_listbybillingprofile.go index b2c7ea22d7f..3f0a1a80b38 100644 --- a/resource-manager/consumption/2021-10-01/reservationtransactions/method_listbybillingprofile.go +++ b/resource-manager/consumption/2021-10-01/reservationtransactions/method_listbybillingprofile.go @@ -50,6 +50,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c ReservationTransactionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationTransactionsClient) ListByBillingProfile(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/aggregatedcost/method_getbymanagementgroup.go b/resource-manager/consumption/2022-09-01/aggregatedcost/method_getbymanagementgroup.go index c9840759399..5f5030bcf40 100644 --- a/resource-manager/consumption/2022-09-01/aggregatedcost/method_getbymanagementgroup.go +++ b/resource-manager/consumption/2022-09-01/aggregatedcost/method_getbymanagementgroup.go @@ -54,8 +54,8 @@ func (c AggregatedCostClient) GetByManagementGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/aggregatedcost", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/aggregatedcost", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/budgets/method_list.go b/resource-manager/consumption/2022-09-01/budgets/method_list.go index b4ab21012f7..f0c7b1e51bd 100644 --- a/resource-manager/consumption/2022-09-01/budgets/method_list.go +++ b/resource-manager/consumption/2022-09-01/budgets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Budget } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/budgets", id.ID()), } diff --git a/resource-manager/consumption/2022-09-01/charges/method_list.go b/resource-manager/consumption/2022-09-01/charges/method_list.go index 4685fa04cf5..e5691031026 100644 --- a/resource-manager/consumption/2022-09-01/charges/method_list.go +++ b/resource-manager/consumption/2022-09-01/charges/method_list.go @@ -66,8 +66,8 @@ func (c ChargesClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/charges", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/charges", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/events/method_listbybillingaccount.go b/resource-manager/consumption/2022-09-01/events/method_listbybillingaccount.go index 0f41eb455e2..bc739678dcf 100644 --- a/resource-manager/consumption/2022-09-01/events/method_listbybillingaccount.go +++ b/resource-manager/consumption/2022-09-01/events/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c EventsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c EventsClient) ListByBillingAccount(ctx context.Context, id BillingAccoun http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/events/method_listbybillingprofile.go b/resource-manager/consumption/2022-09-01/events/method_listbybillingprofile.go index d57233dbeb5..d4e4d2d8933 100644 --- a/resource-manager/consumption/2022-09-01/events/method_listbybillingprofile.go +++ b/resource-manager/consumption/2022-09-01/events/method_listbybillingprofile.go @@ -54,6 +54,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c EventsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventsClient) ListByBillingProfile(ctx context.Context, id BillingProfil http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/lots/method_listbybillingaccount.go b/resource-manager/consumption/2022-09-01/lots/method_listbybillingaccount.go index 8e86a581456..71679325bb1 100644 --- a/resource-manager/consumption/2022-09-01/lots/method_listbybillingaccount.go +++ b/resource-manager/consumption/2022-09-01/lots/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c LotsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c LotsClient) ListByBillingAccount(ctx context.Context, id BillingAccountI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/lots/method_listbybillingprofile.go b/resource-manager/consumption/2022-09-01/lots/method_listbybillingprofile.go index 135439b830e..6438d7dc5d1 100644 --- a/resource-manager/consumption/2022-09-01/lots/method_listbybillingprofile.go +++ b/resource-manager/consumption/2022-09-01/lots/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []LotSummary } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c LotsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LotsClient) ListByBillingProfile(ctx context.Context, id BillingProfileI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), } diff --git a/resource-manager/consumption/2022-09-01/lots/method_listbycustomer.go b/resource-manager/consumption/2022-09-01/lots/method_listbycustomer.go index d49f28db36a..f3697ec4834 100644 --- a/resource-manager/consumption/2022-09-01/lots/method_listbycustomer.go +++ b/resource-manager/consumption/2022-09-01/lots/method_listbycustomer.go @@ -50,6 +50,18 @@ func (o ListByCustomerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c LotsClient) ListByCustomer(ctx context.Context, id CustomerId, options ListByCustomerOperationOptions) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c LotsClient) ListByCustomer(ctx context.Context, id CustomerId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), OptionsObject: options, + Pager: &ListByCustomerCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/marketplaces/method_list.go b/resource-manager/consumption/2022-09-01/marketplaces/method_list.go index 42cfb439c90..473fc8b7ca4 100644 --- a/resource-manager/consumption/2022-09-01/marketplaces/method_list.go +++ b/resource-manager/consumption/2022-09-01/marketplaces/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MarketplacesClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -64,8 +76,9 @@ func (c MarketplacesClient) List(ctx context.Context, id commonids.ScopeId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/marketplaces", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/marketplaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/pricesheet/method_get.go b/resource-manager/consumption/2022-09-01/pricesheet/method_get.go index 82367e27d78..52dfa7ce731 100644 --- a/resource-manager/consumption/2022-09-01/pricesheet/method_get.go +++ b/resource-manager/consumption/2022-09-01/pricesheet/method_get.go @@ -58,8 +58,8 @@ func (c PriceSheetClient) Get(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/pricesheet/method_getbybillingperiod.go b/resource-manager/consumption/2022-09-01/pricesheet/method_getbybillingperiod.go index d698a3317ac..6b9d73036be 100644 --- a/resource-manager/consumption/2022-09-01/pricesheet/method_getbybillingperiod.go +++ b/resource-manager/consumption/2022-09-01/pricesheet/method_getbybillingperiod.go @@ -57,8 +57,8 @@ func (c PriceSheetClient) GetByBillingPeriod(ctx context.Context, id BillingPeri http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/reservationdetails/method_reservationsdetailslist.go b/resource-manager/consumption/2022-09-01/reservationdetails/method_reservationsdetailslist.go index e578390be56..6fb07ab02f5 100644 --- a/resource-manager/consumption/2022-09-01/reservationdetails/method_reservationsdetailslist.go +++ b/resource-manager/consumption/2022-09-01/reservationdetails/method_reservationsdetailslist.go @@ -67,6 +67,18 @@ func (o ReservationsDetailsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ReservationsDetailsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsList ... func (c ReservationDetailsClient) ReservationsDetailsList(ctx context.Context, id commonids.ScopeId, options ReservationsDetailsListOperationOptions) (result ReservationsDetailsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -75,8 +87,9 @@ func (c ReservationDetailsClient) ReservationsDetailsList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go b/resource-manager/consumption/2022-09-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go index aac4b7fb598..aa1795dac26 100644 --- a/resource-manager/consumption/2022-09-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go +++ b/resource-manager/consumption/2022-09-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go @@ -50,6 +50,18 @@ func (o ReservationsDetailsListByReservationOrderOperationOptions) ToQuery() *cl return &out } +type ReservationsDetailsListByReservationOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListByReservationOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsListByReservationOrder ... func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrder(ctx context.Context, id ReservationOrderId, options ReservationsDetailsListByReservationOrderOperationOptions) (result ReservationsDetailsListByReservationOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrder(ctx http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListByReservationOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go b/resource-manager/consumption/2022-09-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go index 74929755441..2c7c1d40261 100644 --- a/resource-manager/consumption/2022-09-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go +++ b/resource-manager/consumption/2022-09-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go @@ -50,6 +50,18 @@ func (o ReservationsDetailsListByReservationOrderAndReservationOperationOptions) return &out } +type ReservationsDetailsListByReservationOrderAndReservationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListByReservationOrderAndReservationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsListByReservationOrderAndReservation ... func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndReservation(ctx context.Context, id ReservationId, options ReservationsDetailsListByReservationOrderAndReservationOperationOptions) (result ReservationsDetailsListByReservationOrderAndReservationOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndRe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListByReservationOrderAndReservationCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/reservationrecommendationdetails/method_get.go b/resource-manager/consumption/2022-09-01/reservationrecommendationdetails/method_get.go index 86e96297e5a..9bde40fd925 100644 --- a/resource-manager/consumption/2022-09-01/reservationrecommendationdetails/method_get.go +++ b/resource-manager/consumption/2022-09-01/reservationrecommendationdetails/method_get.go @@ -71,8 +71,8 @@ func (c ReservationRecommendationDetailsClient) Get(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendationDetails", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/reservationrecommendations/method_list.go b/resource-manager/consumption/2022-09-01/reservationrecommendations/method_list.go index 23ed85ba9aa..fff4b3070f7 100644 --- a/resource-manager/consumption/2022-09-01/reservationrecommendations/method_list.go +++ b/resource-manager/consumption/2022-09-01/reservationrecommendations/method_list.go @@ -52,6 +52,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReservationRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -61,8 +73,9 @@ func (c ReservationRecommendationsClient) List(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/reservationsummaries/method_reservationssummarieslist.go b/resource-manager/consumption/2022-09-01/reservationsummaries/method_reservationssummarieslist.go index 2b7bf099779..635bc11f2bb 100644 --- a/resource-manager/consumption/2022-09-01/reservationsummaries/method_reservationssummarieslist.go +++ b/resource-manager/consumption/2022-09-01/reservationsummaries/method_reservationssummarieslist.go @@ -71,6 +71,18 @@ func (o ReservationsSummariesListOperationOptions) ToQuery() *client.QueryParams return &out } +type ReservationsSummariesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesList ... func (c ReservationSummariesClient) ReservationsSummariesList(ctx context.Context, id commonids.ScopeId, options ReservationsSummariesListOperationOptions) (result ReservationsSummariesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -79,8 +91,9 @@ func (c ReservationSummariesClient) ReservationsSummariesList(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go b/resource-manager/consumption/2022-09-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go index 1136947832c..ba4e96ea155 100644 --- a/resource-manager/consumption/2022-09-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go +++ b/resource-manager/consumption/2022-09-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go @@ -54,6 +54,18 @@ func (o ReservationsSummariesListByReservationOrderOperationOptions) ToQuery() * return &out } +type ReservationsSummariesListByReservationOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListByReservationOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesListByReservationOrder ... func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrder(ctx context.Context, id ReservationOrderId, options ReservationsSummariesListByReservationOrderOperationOptions) (result ReservationsSummariesListByReservationOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrder( http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListByReservationOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go b/resource-manager/consumption/2022-09-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go index 62de45b5437..6fe1b80343d 100644 --- a/resource-manager/consumption/2022-09-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go +++ b/resource-manager/consumption/2022-09-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go @@ -54,6 +54,18 @@ func (o ReservationsSummariesListByReservationOrderAndReservationOperationOption return &out } +type ReservationsSummariesListByReservationOrderAndReservationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListByReservationOrderAndReservationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesListByReservationOrderAndReservation ... func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderAndReservation(ctx context.Context, id ReservationId, options ReservationsSummariesListByReservationOrderAndReservationOperationOptions) (result ReservationsSummariesListByReservationOrderAndReservationOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderA http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListByReservationOrderAndReservationCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/reservationtransactions/method_list.go b/resource-manager/consumption/2022-09-01/reservationtransactions/method_list.go index a93f4cff443..ba84b770cba 100644 --- a/resource-manager/consumption/2022-09-01/reservationtransactions/method_list.go +++ b/resource-manager/consumption/2022-09-01/reservationtransactions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReservationTransactionsClient) List(ctx context.Context, id BillingAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationTransactionsClient) List(ctx context.Context, id BillingAccou http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2022-09-01/reservationtransactions/method_listbybillingprofile.go b/resource-manager/consumption/2022-09-01/reservationtransactions/method_listbybillingprofile.go index b2c7ea22d7f..3f0a1a80b38 100644 --- a/resource-manager/consumption/2022-09-01/reservationtransactions/method_listbybillingprofile.go +++ b/resource-manager/consumption/2022-09-01/reservationtransactions/method_listbybillingprofile.go @@ -50,6 +50,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c ReservationTransactionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationTransactionsClient) ListByBillingProfile(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/aggregatedcost/method_getbymanagementgroup.go b/resource-manager/consumption/2023-05-01/aggregatedcost/method_getbymanagementgroup.go index c9840759399..5f5030bcf40 100644 --- a/resource-manager/consumption/2023-05-01/aggregatedcost/method_getbymanagementgroup.go +++ b/resource-manager/consumption/2023-05-01/aggregatedcost/method_getbymanagementgroup.go @@ -54,8 +54,8 @@ func (c AggregatedCostClient) GetByManagementGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/aggregatedcost", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/aggregatedcost", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/budgets/method_list.go b/resource-manager/consumption/2023-05-01/budgets/method_list.go index b4ab21012f7..f0c7b1e51bd 100644 --- a/resource-manager/consumption/2023-05-01/budgets/method_list.go +++ b/resource-manager/consumption/2023-05-01/budgets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Budget } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/budgets", id.ID()), } diff --git a/resource-manager/consumption/2023-05-01/charges/method_list.go b/resource-manager/consumption/2023-05-01/charges/method_list.go index 4685fa04cf5..e5691031026 100644 --- a/resource-manager/consumption/2023-05-01/charges/method_list.go +++ b/resource-manager/consumption/2023-05-01/charges/method_list.go @@ -66,8 +66,8 @@ func (c ChargesClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/charges", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/charges", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/events/method_listbybillingaccount.go b/resource-manager/consumption/2023-05-01/events/method_listbybillingaccount.go index 0f41eb455e2..bc739678dcf 100644 --- a/resource-manager/consumption/2023-05-01/events/method_listbybillingaccount.go +++ b/resource-manager/consumption/2023-05-01/events/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c EventsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c EventsClient) ListByBillingAccount(ctx context.Context, id BillingAccoun http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/events/method_listbybillingprofile.go b/resource-manager/consumption/2023-05-01/events/method_listbybillingprofile.go index d57233dbeb5..d4e4d2d8933 100644 --- a/resource-manager/consumption/2023-05-01/events/method_listbybillingprofile.go +++ b/resource-manager/consumption/2023-05-01/events/method_listbybillingprofile.go @@ -54,6 +54,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c EventsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventsClient) ListByBillingProfile(ctx context.Context, id BillingProfil http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/lots/method_listbybillingaccount.go b/resource-manager/consumption/2023-05-01/lots/method_listbybillingaccount.go index 8e86a581456..71679325bb1 100644 --- a/resource-manager/consumption/2023-05-01/lots/method_listbybillingaccount.go +++ b/resource-manager/consumption/2023-05-01/lots/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c LotsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c LotsClient) ListByBillingAccount(ctx context.Context, id BillingAccountI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/lots/method_listbybillingprofile.go b/resource-manager/consumption/2023-05-01/lots/method_listbybillingprofile.go index 135439b830e..6438d7dc5d1 100644 --- a/resource-manager/consumption/2023-05-01/lots/method_listbybillingprofile.go +++ b/resource-manager/consumption/2023-05-01/lots/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []LotSummary } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c LotsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LotsClient) ListByBillingProfile(ctx context.Context, id BillingProfileI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), } diff --git a/resource-manager/consumption/2023-05-01/lots/method_listbycustomer.go b/resource-manager/consumption/2023-05-01/lots/method_listbycustomer.go index d49f28db36a..f3697ec4834 100644 --- a/resource-manager/consumption/2023-05-01/lots/method_listbycustomer.go +++ b/resource-manager/consumption/2023-05-01/lots/method_listbycustomer.go @@ -50,6 +50,18 @@ func (o ListByCustomerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c LotsClient) ListByCustomer(ctx context.Context, id CustomerId, options ListByCustomerOperationOptions) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c LotsClient) ListByCustomer(ctx context.Context, id CustomerId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), OptionsObject: options, + Pager: &ListByCustomerCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/marketplaces/method_list.go b/resource-manager/consumption/2023-05-01/marketplaces/method_list.go index 42cfb439c90..473fc8b7ca4 100644 --- a/resource-manager/consumption/2023-05-01/marketplaces/method_list.go +++ b/resource-manager/consumption/2023-05-01/marketplaces/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MarketplacesClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -64,8 +76,9 @@ func (c MarketplacesClient) List(ctx context.Context, id commonids.ScopeId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/marketplaces", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/marketplaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/pricesheet/method_get.go b/resource-manager/consumption/2023-05-01/pricesheet/method_get.go index 82367e27d78..52dfa7ce731 100644 --- a/resource-manager/consumption/2023-05-01/pricesheet/method_get.go +++ b/resource-manager/consumption/2023-05-01/pricesheet/method_get.go @@ -58,8 +58,8 @@ func (c PriceSheetClient) Get(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/pricesheet/method_getbybillingperiod.go b/resource-manager/consumption/2023-05-01/pricesheet/method_getbybillingperiod.go index d698a3317ac..6b9d73036be 100644 --- a/resource-manager/consumption/2023-05-01/pricesheet/method_getbybillingperiod.go +++ b/resource-manager/consumption/2023-05-01/pricesheet/method_getbybillingperiod.go @@ -57,8 +57,8 @@ func (c PriceSheetClient) GetByBillingPeriod(ctx context.Context, id BillingPeri http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/reservationdetails/method_reservationsdetailslist.go b/resource-manager/consumption/2023-05-01/reservationdetails/method_reservationsdetailslist.go index e578390be56..6fb07ab02f5 100644 --- a/resource-manager/consumption/2023-05-01/reservationdetails/method_reservationsdetailslist.go +++ b/resource-manager/consumption/2023-05-01/reservationdetails/method_reservationsdetailslist.go @@ -67,6 +67,18 @@ func (o ReservationsDetailsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ReservationsDetailsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsList ... func (c ReservationDetailsClient) ReservationsDetailsList(ctx context.Context, id commonids.ScopeId, options ReservationsDetailsListOperationOptions) (result ReservationsDetailsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -75,8 +87,9 @@ func (c ReservationDetailsClient) ReservationsDetailsList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go b/resource-manager/consumption/2023-05-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go index aac4b7fb598..aa1795dac26 100644 --- a/resource-manager/consumption/2023-05-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go +++ b/resource-manager/consumption/2023-05-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go @@ -50,6 +50,18 @@ func (o ReservationsDetailsListByReservationOrderOperationOptions) ToQuery() *cl return &out } +type ReservationsDetailsListByReservationOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListByReservationOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsListByReservationOrder ... func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrder(ctx context.Context, id ReservationOrderId, options ReservationsDetailsListByReservationOrderOperationOptions) (result ReservationsDetailsListByReservationOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrder(ctx http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListByReservationOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go b/resource-manager/consumption/2023-05-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go index 74929755441..2c7c1d40261 100644 --- a/resource-manager/consumption/2023-05-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go +++ b/resource-manager/consumption/2023-05-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go @@ -50,6 +50,18 @@ func (o ReservationsDetailsListByReservationOrderAndReservationOperationOptions) return &out } +type ReservationsDetailsListByReservationOrderAndReservationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListByReservationOrderAndReservationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsListByReservationOrderAndReservation ... func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndReservation(ctx context.Context, id ReservationId, options ReservationsDetailsListByReservationOrderAndReservationOperationOptions) (result ReservationsDetailsListByReservationOrderAndReservationOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndRe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListByReservationOrderAndReservationCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/reservationrecommendationdetails/method_get.go b/resource-manager/consumption/2023-05-01/reservationrecommendationdetails/method_get.go index a4976fa5497..d34c15eb2cb 100644 --- a/resource-manager/consumption/2023-05-01/reservationrecommendationdetails/method_get.go +++ b/resource-manager/consumption/2023-05-01/reservationrecommendationdetails/method_get.go @@ -75,8 +75,8 @@ func (c ReservationRecommendationDetailsClient) Get(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendationDetails", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/reservationrecommendations/method_list.go b/resource-manager/consumption/2023-05-01/reservationrecommendations/method_list.go index 23ed85ba9aa..fff4b3070f7 100644 --- a/resource-manager/consumption/2023-05-01/reservationrecommendations/method_list.go +++ b/resource-manager/consumption/2023-05-01/reservationrecommendations/method_list.go @@ -52,6 +52,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReservationRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -61,8 +73,9 @@ func (c ReservationRecommendationsClient) List(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/reservationsummaries/method_reservationssummarieslist.go b/resource-manager/consumption/2023-05-01/reservationsummaries/method_reservationssummarieslist.go index 2b7bf099779..635bc11f2bb 100644 --- a/resource-manager/consumption/2023-05-01/reservationsummaries/method_reservationssummarieslist.go +++ b/resource-manager/consumption/2023-05-01/reservationsummaries/method_reservationssummarieslist.go @@ -71,6 +71,18 @@ func (o ReservationsSummariesListOperationOptions) ToQuery() *client.QueryParams return &out } +type ReservationsSummariesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesList ... func (c ReservationSummariesClient) ReservationsSummariesList(ctx context.Context, id commonids.ScopeId, options ReservationsSummariesListOperationOptions) (result ReservationsSummariesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -79,8 +91,9 @@ func (c ReservationSummariesClient) ReservationsSummariesList(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go b/resource-manager/consumption/2023-05-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go index 1136947832c..ba4e96ea155 100644 --- a/resource-manager/consumption/2023-05-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go +++ b/resource-manager/consumption/2023-05-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go @@ -54,6 +54,18 @@ func (o ReservationsSummariesListByReservationOrderOperationOptions) ToQuery() * return &out } +type ReservationsSummariesListByReservationOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListByReservationOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesListByReservationOrder ... func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrder(ctx context.Context, id ReservationOrderId, options ReservationsSummariesListByReservationOrderOperationOptions) (result ReservationsSummariesListByReservationOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrder( http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListByReservationOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go b/resource-manager/consumption/2023-05-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go index 62de45b5437..6fe1b80343d 100644 --- a/resource-manager/consumption/2023-05-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go +++ b/resource-manager/consumption/2023-05-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go @@ -54,6 +54,18 @@ func (o ReservationsSummariesListByReservationOrderAndReservationOperationOption return &out } +type ReservationsSummariesListByReservationOrderAndReservationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListByReservationOrderAndReservationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesListByReservationOrderAndReservation ... func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderAndReservation(ctx context.Context, id ReservationId, options ReservationsSummariesListByReservationOrderAndReservationOperationOptions) (result ReservationsSummariesListByReservationOrderAndReservationOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderA http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListByReservationOrderAndReservationCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/reservationtransactions/method_list.go b/resource-manager/consumption/2023-05-01/reservationtransactions/method_list.go index e3fc187f15b..2e66d1e6bcb 100644 --- a/resource-manager/consumption/2023-05-01/reservationtransactions/method_list.go +++ b/resource-manager/consumption/2023-05-01/reservationtransactions/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReservationTransactionsClient) List(ctx context.Context, id BillingAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReservationTransactionsClient) List(ctx context.Context, id BillingAccou http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-05-01/reservationtransactions/method_listbybillingprofile.go b/resource-manager/consumption/2023-05-01/reservationtransactions/method_listbybillingprofile.go index b2c7ea22d7f..3f0a1a80b38 100644 --- a/resource-manager/consumption/2023-05-01/reservationtransactions/method_listbybillingprofile.go +++ b/resource-manager/consumption/2023-05-01/reservationtransactions/method_listbybillingprofile.go @@ -50,6 +50,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c ReservationTransactionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationTransactionsClient) ListByBillingProfile(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/aggregatedcost/method_getbymanagementgroup.go b/resource-manager/consumption/2023-11-01/aggregatedcost/method_getbymanagementgroup.go index c9840759399..5f5030bcf40 100644 --- a/resource-manager/consumption/2023-11-01/aggregatedcost/method_getbymanagementgroup.go +++ b/resource-manager/consumption/2023-11-01/aggregatedcost/method_getbymanagementgroup.go @@ -54,8 +54,8 @@ func (c AggregatedCostClient) GetByManagementGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/aggregatedcost", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/aggregatedcost", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/budgets/method_list.go b/resource-manager/consumption/2023-11-01/budgets/method_list.go index b4ab21012f7..f0c7b1e51bd 100644 --- a/resource-manager/consumption/2023-11-01/budgets/method_list.go +++ b/resource-manager/consumption/2023-11-01/budgets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Budget } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/budgets", id.ID()), } diff --git a/resource-manager/consumption/2023-11-01/charges/method_list.go b/resource-manager/consumption/2023-11-01/charges/method_list.go index 4685fa04cf5..e5691031026 100644 --- a/resource-manager/consumption/2023-11-01/charges/method_list.go +++ b/resource-manager/consumption/2023-11-01/charges/method_list.go @@ -66,8 +66,8 @@ func (c ChargesClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/charges", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/charges", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/events/method_listbybillingaccount.go b/resource-manager/consumption/2023-11-01/events/method_listbybillingaccount.go index 0f41eb455e2..bc739678dcf 100644 --- a/resource-manager/consumption/2023-11-01/events/method_listbybillingaccount.go +++ b/resource-manager/consumption/2023-11-01/events/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c EventsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c EventsClient) ListByBillingAccount(ctx context.Context, id BillingAccoun http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/events/method_listbybillingprofile.go b/resource-manager/consumption/2023-11-01/events/method_listbybillingprofile.go index d57233dbeb5..d4e4d2d8933 100644 --- a/resource-manager/consumption/2023-11-01/events/method_listbybillingprofile.go +++ b/resource-manager/consumption/2023-11-01/events/method_listbybillingprofile.go @@ -54,6 +54,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c EventsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventsClient) ListByBillingProfile(ctx context.Context, id BillingProfil http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/events", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/lots/method_listbybillingaccount.go b/resource-manager/consumption/2023-11-01/lots/method_listbybillingaccount.go index 8e86a581456..71679325bb1 100644 --- a/resource-manager/consumption/2023-11-01/lots/method_listbybillingaccount.go +++ b/resource-manager/consumption/2023-11-01/lots/method_listbybillingaccount.go @@ -50,6 +50,18 @@ func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccount ... func (c LotsClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, options ListByBillingAccountOperationOptions) (result ListByBillingAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c LotsClient) ListByBillingAccount(ctx context.Context, id BillingAccountI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/lots/method_listbybillingprofile.go b/resource-manager/consumption/2023-11-01/lots/method_listbybillingprofile.go index 135439b830e..6438d7dc5d1 100644 --- a/resource-manager/consumption/2023-11-01/lots/method_listbybillingprofile.go +++ b/resource-manager/consumption/2023-11-01/lots/method_listbybillingprofile.go @@ -23,6 +23,18 @@ type ListByBillingProfileCompleteResult struct { Items []LotSummary } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c LotsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LotsClient) ListByBillingProfile(ctx context.Context, id BillingProfileI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBillingProfileCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), } diff --git a/resource-manager/consumption/2023-11-01/lots/method_listbycustomer.go b/resource-manager/consumption/2023-11-01/lots/method_listbycustomer.go index d49f28db36a..f3697ec4834 100644 --- a/resource-manager/consumption/2023-11-01/lots/method_listbycustomer.go +++ b/resource-manager/consumption/2023-11-01/lots/method_listbycustomer.go @@ -50,6 +50,18 @@ func (o ListByCustomerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByCustomerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCustomerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCustomer ... func (c LotsClient) ListByCustomer(ctx context.Context, id CustomerId, options ListByCustomerOperationOptions) (result ListByCustomerOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c LotsClient) ListByCustomer(ctx context.Context, id CustomerId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), OptionsObject: options, + Pager: &ListByCustomerCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/lots", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/marketplaces/method_list.go b/resource-manager/consumption/2023-11-01/marketplaces/method_list.go index 42cfb439c90..473fc8b7ca4 100644 --- a/resource-manager/consumption/2023-11-01/marketplaces/method_list.go +++ b/resource-manager/consumption/2023-11-01/marketplaces/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MarketplacesClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -64,8 +76,9 @@ func (c MarketplacesClient) List(ctx context.Context, id commonids.ScopeId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/marketplaces", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/marketplaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/pricesheet/method_get.go b/resource-manager/consumption/2023-11-01/pricesheet/method_get.go index 82367e27d78..52dfa7ce731 100644 --- a/resource-manager/consumption/2023-11-01/pricesheet/method_get.go +++ b/resource-manager/consumption/2023-11-01/pricesheet/method_get.go @@ -58,8 +58,8 @@ func (c PriceSheetClient) Get(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/pricesheet/method_getbybillingperiod.go b/resource-manager/consumption/2023-11-01/pricesheet/method_getbybillingperiod.go index d698a3317ac..6b9d73036be 100644 --- a/resource-manager/consumption/2023-11-01/pricesheet/method_getbybillingperiod.go +++ b/resource-manager/consumption/2023-11-01/pricesheet/method_getbybillingperiod.go @@ -57,8 +57,8 @@ func (c PriceSheetClient) GetByBillingPeriod(ctx context.Context, id BillingPeri http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/pricesheets/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/reservationdetails/method_reservationsdetailslist.go b/resource-manager/consumption/2023-11-01/reservationdetails/method_reservationsdetailslist.go index e578390be56..6fb07ab02f5 100644 --- a/resource-manager/consumption/2023-11-01/reservationdetails/method_reservationsdetailslist.go +++ b/resource-manager/consumption/2023-11-01/reservationdetails/method_reservationsdetailslist.go @@ -67,6 +67,18 @@ func (o ReservationsDetailsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ReservationsDetailsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsList ... func (c ReservationDetailsClient) ReservationsDetailsList(ctx context.Context, id commonids.ScopeId, options ReservationsDetailsListOperationOptions) (result ReservationsDetailsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -75,8 +87,9 @@ func (c ReservationDetailsClient) ReservationsDetailsList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go b/resource-manager/consumption/2023-11-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go index aac4b7fb598..aa1795dac26 100644 --- a/resource-manager/consumption/2023-11-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go +++ b/resource-manager/consumption/2023-11-01/reservationdetails/method_reservationsdetailslistbyreservationorder.go @@ -50,6 +50,18 @@ func (o ReservationsDetailsListByReservationOrderOperationOptions) ToQuery() *cl return &out } +type ReservationsDetailsListByReservationOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListByReservationOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsListByReservationOrder ... func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrder(ctx context.Context, id ReservationOrderId, options ReservationsDetailsListByReservationOrderOperationOptions) (result ReservationsDetailsListByReservationOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrder(ctx http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListByReservationOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go b/resource-manager/consumption/2023-11-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go index 74929755441..2c7c1d40261 100644 --- a/resource-manager/consumption/2023-11-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go +++ b/resource-manager/consumption/2023-11-01/reservationdetails/method_reservationsdetailslistbyreservationorderandreservation.go @@ -50,6 +50,18 @@ func (o ReservationsDetailsListByReservationOrderAndReservationOperationOptions) return &out } +type ReservationsDetailsListByReservationOrderAndReservationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsDetailsListByReservationOrderAndReservationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsDetailsListByReservationOrderAndReservation ... func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndReservation(ctx context.Context, id ReservationId, options ReservationsDetailsListByReservationOrderAndReservationOperationOptions) (result ReservationsDetailsListByReservationOrderAndReservationOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationDetailsClient) ReservationsDetailsListByReservationOrderAndRe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), OptionsObject: options, + Pager: &ReservationsDetailsListByReservationOrderAndReservationCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/reservationrecommendationdetails/method_get.go b/resource-manager/consumption/2023-11-01/reservationrecommendationdetails/method_get.go index a4976fa5497..d34c15eb2cb 100644 --- a/resource-manager/consumption/2023-11-01/reservationrecommendationdetails/method_get.go +++ b/resource-manager/consumption/2023-11-01/reservationrecommendationdetails/method_get.go @@ -75,8 +75,8 @@ func (c ReservationRecommendationDetailsClient) Get(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendationDetails", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/reservationrecommendations/method_list.go b/resource-manager/consumption/2023-11-01/reservationrecommendations/method_list.go index 23ed85ba9aa..fff4b3070f7 100644 --- a/resource-manager/consumption/2023-11-01/reservationrecommendations/method_list.go +++ b/resource-manager/consumption/2023-11-01/reservationrecommendations/method_list.go @@ -52,6 +52,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReservationRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -61,8 +73,9 @@ func (c ReservationRecommendationsClient) List(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationRecommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/reservationsummaries/method_reservationssummarieslist.go b/resource-manager/consumption/2023-11-01/reservationsummaries/method_reservationssummarieslist.go index 2b7bf099779..635bc11f2bb 100644 --- a/resource-manager/consumption/2023-11-01/reservationsummaries/method_reservationssummarieslist.go +++ b/resource-manager/consumption/2023-11-01/reservationsummaries/method_reservationssummarieslist.go @@ -71,6 +71,18 @@ func (o ReservationsSummariesListOperationOptions) ToQuery() *client.QueryParams return &out } +type ReservationsSummariesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesList ... func (c ReservationSummariesClient) ReservationsSummariesList(ctx context.Context, id commonids.ScopeId, options ReservationsSummariesListOperationOptions) (result ReservationsSummariesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -79,8 +91,9 @@ func (c ReservationSummariesClient) ReservationsSummariesList(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go b/resource-manager/consumption/2023-11-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go index 1136947832c..ba4e96ea155 100644 --- a/resource-manager/consumption/2023-11-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go +++ b/resource-manager/consumption/2023-11-01/reservationsummaries/method_reservationssummarieslistbyreservationorder.go @@ -54,6 +54,18 @@ func (o ReservationsSummariesListByReservationOrderOperationOptions) ToQuery() * return &out } +type ReservationsSummariesListByReservationOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListByReservationOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesListByReservationOrder ... func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrder(ctx context.Context, id ReservationOrderId, options ReservationsSummariesListByReservationOrderOperationOptions) (result ReservationsSummariesListByReservationOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrder( http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListByReservationOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go b/resource-manager/consumption/2023-11-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go index 62de45b5437..6fe1b80343d 100644 --- a/resource-manager/consumption/2023-11-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go +++ b/resource-manager/consumption/2023-11-01/reservationsummaries/method_reservationssummarieslistbyreservationorderandreservation.go @@ -54,6 +54,18 @@ func (o ReservationsSummariesListByReservationOrderAndReservationOperationOption return &out } +type ReservationsSummariesListByReservationOrderAndReservationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReservationsSummariesListByReservationOrderAndReservationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReservationsSummariesListByReservationOrderAndReservation ... func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderAndReservation(ctx context.Context, id ReservationId, options ReservationsSummariesListByReservationOrderAndReservationOperationOptions) (result ReservationsSummariesListByReservationOrderAndReservationOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReservationSummariesClient) ReservationsSummariesListByReservationOrderA http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), OptionsObject: options, + Pager: &ReservationsSummariesListByReservationOrderAndReservationCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/reservationtransactions/method_list.go b/resource-manager/consumption/2023-11-01/reservationtransactions/method_list.go index e3fc187f15b..2e66d1e6bcb 100644 --- a/resource-manager/consumption/2023-11-01/reservationtransactions/method_list.go +++ b/resource-manager/consumption/2023-11-01/reservationtransactions/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReservationTransactionsClient) List(ctx context.Context, id BillingAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReservationTransactionsClient) List(ctx context.Context, id BillingAccou http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/consumption/2023-11-01/reservationtransactions/method_listbybillingprofile.go b/resource-manager/consumption/2023-11-01/reservationtransactions/method_listbybillingprofile.go index b2c7ea22d7f..3f0a1a80b38 100644 --- a/resource-manager/consumption/2023-11-01/reservationtransactions/method_listbybillingprofile.go +++ b/resource-manager/consumption/2023-11-01/reservationtransactions/method_listbybillingprofile.go @@ -50,6 +50,18 @@ func (o ListByBillingProfileOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfile ... func (c ReservationTransactionsClient) ListByBillingProfile(ctx context.Context, id BillingProfileId, options ListByBillingProfileOperationOptions) (result ListByBillingProfileOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReservationTransactionsClient) ListByBillingProfile(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Consumption/reservationTransactions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerapps/2023-05-01/availableworkloadprofiles/method_get.go b/resource-manager/containerapps/2023-05-01/availableworkloadprofiles/method_get.go index ebfbfc4e099..c7880a83d42 100644 --- a/resource-manager/containerapps/2023-05-01/availableworkloadprofiles/method_get.go +++ b/resource-manager/containerapps/2023-05-01/availableworkloadprofiles/method_get.go @@ -23,6 +23,18 @@ type GetCompleteResult struct { Items []AvailableWorkloadProfile } +type GetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Get ... func (c AvailableWorkloadProfilesClient) Get(ctx context.Context, id LocationId) (result GetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableWorkloadProfilesClient) Get(ctx context.Context, id LocationId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetCustomPager{}, Path: fmt.Sprintf("%s/availableManagedEnvironmentsWorkloadProfileTypes", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificateslist.go b/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificateslist.go index 3a570b4e5e5..1e365b2daa4 100644 --- a/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificateslist.go +++ b/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificateslist.go @@ -23,6 +23,18 @@ type ConnectedEnvironmentsCertificatesListCompleteResult struct { Items []Certificate } +type ConnectedEnvironmentsCertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConnectedEnvironmentsCertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConnectedEnvironmentsCertificatesList ... func (c CertificatesClient) ConnectedEnvironmentsCertificatesList(ctx context.Context, id ConnectedEnvironmentId) (result ConnectedEnvironmentsCertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificatesClient) ConnectedEnvironmentsCertificatesList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConnectedEnvironmentsCertificatesListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/certificates/method_list.go b/resource-manager/containerapps/2023-05-01/certificates/method_list.go index d7cf3b6d541..5e49c826299 100644 --- a/resource-manager/containerapps/2023-05-01/certificates/method_list.go +++ b/resource-manager/containerapps/2023-05-01/certificates/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Certificate } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CertificatesClient) List(ctx context.Context, id ManagedEnvironmentId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificatesClient) List(ctx context.Context, id ManagedEnvironmentId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/connectedenvironments/method_certificateslist.go b/resource-manager/containerapps/2023-05-01/connectedenvironments/method_certificateslist.go index 6c7e390d772..e19892bc42c 100644 --- a/resource-manager/containerapps/2023-05-01/connectedenvironments/method_certificateslist.go +++ b/resource-manager/containerapps/2023-05-01/connectedenvironments/method_certificateslist.go @@ -23,6 +23,18 @@ type CertificatesListCompleteResult struct { Items []Certificate } +type CertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CertificatesList ... func (c ConnectedEnvironmentsClient) CertificatesList(ctx context.Context, id ConnectedEnvironmentId) (result CertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectedEnvironmentsClient) CertificatesList(ctx context.Context, id Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CertificatesListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/connectedenvironments/method_listbyresourcegroup.go b/resource-manager/containerapps/2023-05-01/connectedenvironments/method_listbyresourcegroup.go index e7380f1a318..28e1ba40913 100644 --- a/resource-manager/containerapps/2023-05-01/connectedenvironments/method_listbyresourcegroup.go +++ b/resource-manager/containerapps/2023-05-01/connectedenvironments/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ConnectedEnvironment } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ConnectedEnvironmentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConnectedEnvironmentsClient) ListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/connectedEnvironments", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/connectedenvironments/method_listbysubscription.go b/resource-manager/containerapps/2023-05-01/connectedenvironments/method_listbysubscription.go index 5ad97a7d24b..2ad0dd55aa9 100644 --- a/resource-manager/containerapps/2023-05-01/connectedenvironments/method_listbysubscription.go +++ b/resource-manager/containerapps/2023-05-01/connectedenvironments/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ConnectedEnvironment } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ConnectedEnvironmentsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConnectedEnvironmentsClient) ListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/connectedEnvironments", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistdetectors.go b/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistdetectors.go index 75b735cf21f..987ae49a3b1 100644 --- a/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistdetectors.go +++ b/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistdetectors.go @@ -23,6 +23,18 @@ type DiagnosticsListDetectorsCompleteResult struct { Items []Diagnostics } +type DiagnosticsListDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DiagnosticsListDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DiagnosticsListDetectors ... func (c ContainerAppsClient) DiagnosticsListDetectors(ctx context.Context, id ContainerAppId) (result DiagnosticsListDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContainerAppsClient) DiagnosticsListDetectors(ctx context.Context, id Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DiagnosticsListDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions.go b/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions.go index 1795a1ad4d0..996b89e3a7c 100644 --- a/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions.go +++ b/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions.go @@ -50,6 +50,18 @@ func (o DiagnosticsListRevisionsOperationOptions) ToQuery() *client.QueryParams return &out } +type DiagnosticsListRevisionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DiagnosticsListRevisionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DiagnosticsListRevisions ... func (c ContainerAppsClient) DiagnosticsListRevisions(ctx context.Context, id ContainerAppId, options DiagnosticsListRevisionsOperationOptions) (result DiagnosticsListRevisionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ContainerAppsClient) DiagnosticsListRevisions(ctx context.Context, id Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/detectorProperties/revisionsApi/revisions", id.ID()), OptionsObject: options, + Pager: &DiagnosticsListRevisionsCustomPager{}, + Path: fmt.Sprintf("%s/detectorProperties/revisionsApi/revisions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerapps/2023-05-01/containerapps/method_listbyresourcegroup.go b/resource-manager/containerapps/2023-05-01/containerapps/method_listbyresourcegroup.go index be43f7d2775..1b2010cc343 100644 --- a/resource-manager/containerapps/2023-05-01/containerapps/method_listbyresourcegroup.go +++ b/resource-manager/containerapps/2023-05-01/containerapps/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ContainerApp } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ContainerAppsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ContainerAppsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/containerApps", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/containerapps/method_listbysubscription.go b/resource-manager/containerapps/2023-05-01/containerapps/method_listbysubscription.go index c71fe0ecd2d..e80ef0ec67e 100644 --- a/resource-manager/containerapps/2023-05-01/containerapps/method_listbysubscription.go +++ b/resource-manager/containerapps/2023-05-01/containerapps/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ContainerApp } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ContainerAppsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ContainerAppsClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/containerApps", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/containerapps/method_listcustomhostnameanalysis.go b/resource-manager/containerapps/2023-05-01/containerapps/method_listcustomhostnameanalysis.go index 396d1751905..be6a76b9e53 100644 --- a/resource-manager/containerapps/2023-05-01/containerapps/method_listcustomhostnameanalysis.go +++ b/resource-manager/containerapps/2023-05-01/containerapps/method_listcustomhostnameanalysis.go @@ -53,8 +53,8 @@ func (c ContainerAppsClient) ListCustomHostNameAnalysis(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listCustomHostNameAnalysis", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listCustomHostNameAnalysis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerapps/2023-05-01/containerappsauthconfigs/method_listbycontainerapp.go b/resource-manager/containerapps/2023-05-01/containerappsauthconfigs/method_listbycontainerapp.go index 8104935b4fa..c096c07c5d5 100644 --- a/resource-manager/containerapps/2023-05-01/containerappsauthconfigs/method_listbycontainerapp.go +++ b/resource-manager/containerapps/2023-05-01/containerappsauthconfigs/method_listbycontainerapp.go @@ -23,6 +23,18 @@ type ListByContainerAppCompleteResult struct { Items []AuthConfig } +type ListByContainerAppCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByContainerAppCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByContainerApp ... func (c ContainerAppsAuthConfigsClient) ListByContainerApp(ctx context.Context, id ContainerAppId) (result ListByContainerAppOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContainerAppsAuthConfigsClient) ListByContainerApp(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByContainerAppCustomPager{}, Path: fmt.Sprintf("%s/authConfigs", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_listrevisions.go b/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_listrevisions.go index 9242e42bcf8..1ba89167188 100644 --- a/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_listrevisions.go +++ b/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_listrevisions.go @@ -50,6 +50,18 @@ func (o ListRevisionsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListRevisionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRevisionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRevisions ... func (c ContainerAppsRevisionsClient) ListRevisions(ctx context.Context, id ContainerAppId, options ListRevisionsOperationOptions) (result ListRevisionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ContainerAppsRevisionsClient) ListRevisions(ctx context.Context, id Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/revisions", id.ID()), OptionsObject: options, + Pager: &ListRevisionsCustomPager{}, + Path: fmt.Sprintf("%s/revisions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerapps/2023-05-01/containerappssourcecontrols/method_listbycontainerapp.go b/resource-manager/containerapps/2023-05-01/containerappssourcecontrols/method_listbycontainerapp.go index ddf363cb016..ad3d60ca029 100644 --- a/resource-manager/containerapps/2023-05-01/containerappssourcecontrols/method_listbycontainerapp.go +++ b/resource-manager/containerapps/2023-05-01/containerappssourcecontrols/method_listbycontainerapp.go @@ -23,6 +23,18 @@ type ListByContainerAppCompleteResult struct { Items []SourceControl } +type ListByContainerAppCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByContainerAppCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByContainerApp ... func (c ContainerAppsSourceControlsClient) ListByContainerApp(ctx context.Context, id ContainerAppId) (result ListByContainerAppOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContainerAppsSourceControlsClient) ListByContainerApp(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByContainerAppCustomPager{}, Path: fmt.Sprintf("%s/sourceControls", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslist.go b/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslist.go index 99ecbbdfa0a..b0bd3cbd16b 100644 --- a/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslist.go +++ b/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslist.go @@ -23,6 +23,18 @@ type ConnectedEnvironmentsDaprComponentsListCompleteResult struct { Items []DaprComponent } +type ConnectedEnvironmentsDaprComponentsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConnectedEnvironmentsDaprComponentsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConnectedEnvironmentsDaprComponentsList ... func (c DaprComponentsClient) ConnectedEnvironmentsDaprComponentsList(ctx context.Context, id ConnectedEnvironmentId) (result ConnectedEnvironmentsDaprComponentsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DaprComponentsClient) ConnectedEnvironmentsDaprComponentsList(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConnectedEnvironmentsDaprComponentsListCustomPager{}, Path: fmt.Sprintf("%s/daprComponents", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/daprcomponents/method_list.go b/resource-manager/containerapps/2023-05-01/daprcomponents/method_list.go index 439eff5f1ce..69e55736217 100644 --- a/resource-manager/containerapps/2023-05-01/daprcomponents/method_list.go +++ b/resource-manager/containerapps/2023-05-01/daprcomponents/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []DaprComponent } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DaprComponentsClient) List(ctx context.Context, id ManagedEnvironmentId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DaprComponentsClient) List(ctx context.Context, id ManagedEnvironmentId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/daprComponents", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/diagnostics/method_containerappsdiagnosticslistdetectors.go b/resource-manager/containerapps/2023-05-01/diagnostics/method_containerappsdiagnosticslistdetectors.go index 04a5e415708..9a66dd775d5 100644 --- a/resource-manager/containerapps/2023-05-01/diagnostics/method_containerappsdiagnosticslistdetectors.go +++ b/resource-manager/containerapps/2023-05-01/diagnostics/method_containerappsdiagnosticslistdetectors.go @@ -23,6 +23,18 @@ type ContainerAppsDiagnosticsListDetectorsCompleteResult struct { Items []Diagnostics } +type ContainerAppsDiagnosticsListDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ContainerAppsDiagnosticsListDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ContainerAppsDiagnosticsListDetectors ... func (c DiagnosticsClient) ContainerAppsDiagnosticsListDetectors(ctx context.Context, id ContainerAppId) (result ContainerAppsDiagnosticsListDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ContainerAppsDiagnosticsListDetectors(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ContainerAppsDiagnosticsListDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/diagnostics/method_containerappsdiagnosticslistrevisions.go b/resource-manager/containerapps/2023-05-01/diagnostics/method_containerappsdiagnosticslistrevisions.go index 08daf0b0ac2..f37c117df81 100644 --- a/resource-manager/containerapps/2023-05-01/diagnostics/method_containerappsdiagnosticslistrevisions.go +++ b/resource-manager/containerapps/2023-05-01/diagnostics/method_containerappsdiagnosticslistrevisions.go @@ -50,6 +50,18 @@ func (o ContainerAppsDiagnosticsListRevisionsOperationOptions) ToQuery() *client return &out } +type ContainerAppsDiagnosticsListRevisionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ContainerAppsDiagnosticsListRevisionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ContainerAppsDiagnosticsListRevisions ... func (c DiagnosticsClient) ContainerAppsDiagnosticsListRevisions(ctx context.Context, id ContainerAppId, options ContainerAppsDiagnosticsListRevisionsOperationOptions) (result ContainerAppsDiagnosticsListRevisionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DiagnosticsClient) ContainerAppsDiagnosticsListRevisions(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/detectorProperties/revisionsApi/revisions", id.ID()), OptionsObject: options, + Pager: &ContainerAppsDiagnosticsListRevisionsCustomPager{}, + Path: fmt.Sprintf("%s/detectorProperties/revisionsApi/revisions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerapps/2023-05-01/diagnostics/method_managedenvironmentdiagnosticslistdetectors.go b/resource-manager/containerapps/2023-05-01/diagnostics/method_managedenvironmentdiagnosticslistdetectors.go index 6142518ec35..f172ca2d567 100644 --- a/resource-manager/containerapps/2023-05-01/diagnostics/method_managedenvironmentdiagnosticslistdetectors.go +++ b/resource-manager/containerapps/2023-05-01/diagnostics/method_managedenvironmentdiagnosticslistdetectors.go @@ -23,6 +23,18 @@ type ManagedEnvironmentDiagnosticsListDetectorsCompleteResult struct { Items []Diagnostics } +type ManagedEnvironmentDiagnosticsListDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ManagedEnvironmentDiagnosticsListDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ManagedEnvironmentDiagnosticsListDetectors ... func (c DiagnosticsClient) ManagedEnvironmentDiagnosticsListDetectors(ctx context.Context, id ManagedEnvironmentId) (result ManagedEnvironmentDiagnosticsListDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ManagedEnvironmentDiagnosticsListDetectors(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ManagedEnvironmentDiagnosticsListDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/jobs/method_executionslist.go b/resource-manager/containerapps/2023-05-01/jobs/method_executionslist.go index b1a45cea162..8032ccc4ee2 100644 --- a/resource-manager/containerapps/2023-05-01/jobs/method_executionslist.go +++ b/resource-manager/containerapps/2023-05-01/jobs/method_executionslist.go @@ -50,6 +50,18 @@ func (o ExecutionsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ExecutionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExecutionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExecutionsList ... func (c JobsClient) ExecutionsList(ctx context.Context, id JobId, options ExecutionsListOperationOptions) (result ExecutionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c JobsClient) ExecutionsList(ctx context.Context, id JobId, options Execut http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/executions", id.ID()), OptionsObject: options, + Pager: &ExecutionsListCustomPager{}, + Path: fmt.Sprintf("%s/executions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerapps/2023-05-01/jobs/method_listbyresourcegroup.go b/resource-manager/containerapps/2023-05-01/jobs/method_listbyresourcegroup.go index 79bd61257ab..0596f8a764b 100644 --- a/resource-manager/containerapps/2023-05-01/jobs/method_listbyresourcegroup.go +++ b/resource-manager/containerapps/2023-05-01/jobs/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Job } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c JobsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c JobsClient) ListByResourceGroup(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/jobs", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/jobs/method_listbysubscription.go b/resource-manager/containerapps/2023-05-01/jobs/method_listbysubscription.go index 942e68367f6..682abb825f0 100644 --- a/resource-manager/containerapps/2023-05-01/jobs/method_listbysubscription.go +++ b/resource-manager/containerapps/2023-05-01/jobs/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Job } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c JobsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c JobsClient) ListBySubscription(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/jobs", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/jobs/method_stopmultipleexecutions.go b/resource-manager/containerapps/2023-05-01/jobs/method_stopmultipleexecutions.go index 8f8ea6da61b..415f7ddca74 100644 --- a/resource-manager/containerapps/2023-05-01/jobs/method_stopmultipleexecutions.go +++ b/resource-manager/containerapps/2023-05-01/jobs/method_stopmultipleexecutions.go @@ -26,6 +26,18 @@ type StopMultipleExecutionsCompleteResult struct { Items []JobExecution } +type StopMultipleExecutionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *StopMultipleExecutionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StopMultipleExecutions ... func (c JobsClient) StopMultipleExecutions(ctx context.Context, id JobId) (result StopMultipleExecutionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c JobsClient) StopMultipleExecutions(ctx context.Context, id JobId) (resul http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &StopMultipleExecutionsCustomPager{}, Path: fmt.Sprintf("%s/stop", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/managedcertificates/method_list.go b/resource-manager/containerapps/2023-05-01/managedcertificates/method_list.go index e28a0716fd3..d0b02d0a3ee 100644 --- a/resource-manager/containerapps/2023-05-01/managedcertificates/method_list.go +++ b/resource-manager/containerapps/2023-05-01/managedcertificates/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ManagedCertificate } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedCertificatesClient) List(ctx context.Context, id ManagedEnvironmentId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedCertificatesClient) List(ctx context.Context, id ManagedEnvironme http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/managedCertificates", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificateslist.go b/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificateslist.go index eb983b146e2..5190bc30812 100644 --- a/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificateslist.go +++ b/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificateslist.go @@ -23,6 +23,18 @@ type CertificatesListCompleteResult struct { Items []Certificate } +type CertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CertificatesList ... func (c ManagedEnvironmentsClient) CertificatesList(ctx context.Context, id ManagedEnvironmentId) (result CertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedEnvironmentsClient) CertificatesList(ctx context.Context, id Mana http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CertificatesListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/managedenvironments/method_listbyresourcegroup.go b/resource-manager/containerapps/2023-05-01/managedenvironments/method_listbyresourcegroup.go index 225e258396c..6cfee3f3fe3 100644 --- a/resource-manager/containerapps/2023-05-01/managedenvironments/method_listbyresourcegroup.go +++ b/resource-manager/containerapps/2023-05-01/managedenvironments/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedEnvironment } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedEnvironmentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedEnvironmentsClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/managedEnvironments", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/managedenvironments/method_listbysubscription.go b/resource-manager/containerapps/2023-05-01/managedenvironments/method_listbysubscription.go index 8201dff608f..3d61d3c8895 100644 --- a/resource-manager/containerapps/2023-05-01/managedenvironments/method_listbysubscription.go +++ b/resource-manager/containerapps/2023-05-01/managedenvironments/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ManagedEnvironment } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ManagedEnvironmentsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedEnvironmentsClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/managedEnvironments", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/managedenvironments/method_listworkloadprofilestates.go b/resource-manager/containerapps/2023-05-01/managedenvironments/method_listworkloadprofilestates.go index 2b597683682..efbaceb1ea8 100644 --- a/resource-manager/containerapps/2023-05-01/managedenvironments/method_listworkloadprofilestates.go +++ b/resource-manager/containerapps/2023-05-01/managedenvironments/method_listworkloadprofilestates.go @@ -23,6 +23,18 @@ type ListWorkloadProfileStatesCompleteResult struct { Items []WorkloadProfileStates } +type ListWorkloadProfileStatesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWorkloadProfileStatesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWorkloadProfileStates ... func (c ManagedEnvironmentsClient) ListWorkloadProfileStates(ctx context.Context, id ManagedEnvironmentId) (result ListWorkloadProfileStatesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedEnvironmentsClient) ListWorkloadProfileStates(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWorkloadProfileStatesCustomPager{}, Path: fmt.Sprintf("%s/workloadProfileStates", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificateslist.go b/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificateslist.go index deaf5e5b5e5..857aea4250e 100644 --- a/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificateslist.go +++ b/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificateslist.go @@ -23,6 +23,18 @@ type ManagedCertificatesListCompleteResult struct { Items []ManagedCertificate } +type ManagedCertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ManagedCertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ManagedCertificatesList ... func (c ManagedEnvironmentsClient) ManagedCertificatesList(ctx context.Context, id ManagedEnvironmentId) (result ManagedCertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedEnvironmentsClient) ManagedCertificatesList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ManagedCertificatesListCustomPager{}, Path: fmt.Sprintf("%s/managedCertificates", id.ID()), } diff --git a/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticslistdetectors.go b/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticslistdetectors.go index 6990488afc7..eaa37d6d08b 100644 --- a/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticslistdetectors.go +++ b/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticslistdetectors.go @@ -23,6 +23,18 @@ type ManagedEnvironmentDiagnosticsListDetectorsCompleteResult struct { Items []Diagnostics } +type ManagedEnvironmentDiagnosticsListDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ManagedEnvironmentDiagnosticsListDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ManagedEnvironmentDiagnosticsListDetectors ... func (c ManagedEnvironmentsClient) ManagedEnvironmentDiagnosticsListDetectors(ctx context.Context, id ManagedEnvironmentId) (result ManagedEnvironmentDiagnosticsListDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedEnvironmentsClient) ManagedEnvironmentDiagnosticsListDetectors(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ManagedEnvironmentDiagnosticsListDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/availableworkloadprofiles/method_get.go b/resource-manager/containerapps/2024-03-01/availableworkloadprofiles/method_get.go index ebfbfc4e099..c7880a83d42 100644 --- a/resource-manager/containerapps/2024-03-01/availableworkloadprofiles/method_get.go +++ b/resource-manager/containerapps/2024-03-01/availableworkloadprofiles/method_get.go @@ -23,6 +23,18 @@ type GetCompleteResult struct { Items []AvailableWorkloadProfile } +type GetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Get ... func (c AvailableWorkloadProfilesClient) Get(ctx context.Context, id LocationId) (result GetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableWorkloadProfilesClient) Get(ctx context.Context, id LocationId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetCustomPager{}, Path: fmt.Sprintf("%s/availableManagedEnvironmentsWorkloadProfileTypes", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/certificates/method_connectedenvironmentscertificateslist.go b/resource-manager/containerapps/2024-03-01/certificates/method_connectedenvironmentscertificateslist.go index 3a570b4e5e5..1e365b2daa4 100644 --- a/resource-manager/containerapps/2024-03-01/certificates/method_connectedenvironmentscertificateslist.go +++ b/resource-manager/containerapps/2024-03-01/certificates/method_connectedenvironmentscertificateslist.go @@ -23,6 +23,18 @@ type ConnectedEnvironmentsCertificatesListCompleteResult struct { Items []Certificate } +type ConnectedEnvironmentsCertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConnectedEnvironmentsCertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConnectedEnvironmentsCertificatesList ... func (c CertificatesClient) ConnectedEnvironmentsCertificatesList(ctx context.Context, id ConnectedEnvironmentId) (result ConnectedEnvironmentsCertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificatesClient) ConnectedEnvironmentsCertificatesList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConnectedEnvironmentsCertificatesListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/certificates/method_list.go b/resource-manager/containerapps/2024-03-01/certificates/method_list.go index d7cf3b6d541..5e49c826299 100644 --- a/resource-manager/containerapps/2024-03-01/certificates/method_list.go +++ b/resource-manager/containerapps/2024-03-01/certificates/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Certificate } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CertificatesClient) List(ctx context.Context, id ManagedEnvironmentId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificatesClient) List(ctx context.Context, id ManagedEnvironmentId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/connectedenvironments/method_certificateslist.go b/resource-manager/containerapps/2024-03-01/connectedenvironments/method_certificateslist.go index 6c7e390d772..e19892bc42c 100644 --- a/resource-manager/containerapps/2024-03-01/connectedenvironments/method_certificateslist.go +++ b/resource-manager/containerapps/2024-03-01/connectedenvironments/method_certificateslist.go @@ -23,6 +23,18 @@ type CertificatesListCompleteResult struct { Items []Certificate } +type CertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CertificatesList ... func (c ConnectedEnvironmentsClient) CertificatesList(ctx context.Context, id ConnectedEnvironmentId) (result CertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectedEnvironmentsClient) CertificatesList(ctx context.Context, id Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CertificatesListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/connectedenvironments/method_listbyresourcegroup.go b/resource-manager/containerapps/2024-03-01/connectedenvironments/method_listbyresourcegroup.go index e7380f1a318..28e1ba40913 100644 --- a/resource-manager/containerapps/2024-03-01/connectedenvironments/method_listbyresourcegroup.go +++ b/resource-manager/containerapps/2024-03-01/connectedenvironments/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ConnectedEnvironment } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ConnectedEnvironmentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConnectedEnvironmentsClient) ListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/connectedEnvironments", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/connectedenvironments/method_listbysubscription.go b/resource-manager/containerapps/2024-03-01/connectedenvironments/method_listbysubscription.go index 5ad97a7d24b..2ad0dd55aa9 100644 --- a/resource-manager/containerapps/2024-03-01/connectedenvironments/method_listbysubscription.go +++ b/resource-manager/containerapps/2024-03-01/connectedenvironments/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ConnectedEnvironment } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ConnectedEnvironmentsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConnectedEnvironmentsClient) ListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/connectedEnvironments", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistdetectors.go b/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistdetectors.go index 75b735cf21f..987ae49a3b1 100644 --- a/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistdetectors.go +++ b/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistdetectors.go @@ -23,6 +23,18 @@ type DiagnosticsListDetectorsCompleteResult struct { Items []Diagnostics } +type DiagnosticsListDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DiagnosticsListDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DiagnosticsListDetectors ... func (c ContainerAppsClient) DiagnosticsListDetectors(ctx context.Context, id ContainerAppId) (result DiagnosticsListDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContainerAppsClient) DiagnosticsListDetectors(ctx context.Context, id Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DiagnosticsListDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistrevisions.go b/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistrevisions.go index 1795a1ad4d0..996b89e3a7c 100644 --- a/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistrevisions.go +++ b/resource-manager/containerapps/2024-03-01/containerapps/method_diagnosticslistrevisions.go @@ -50,6 +50,18 @@ func (o DiagnosticsListRevisionsOperationOptions) ToQuery() *client.QueryParams return &out } +type DiagnosticsListRevisionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DiagnosticsListRevisionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DiagnosticsListRevisions ... func (c ContainerAppsClient) DiagnosticsListRevisions(ctx context.Context, id ContainerAppId, options DiagnosticsListRevisionsOperationOptions) (result DiagnosticsListRevisionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ContainerAppsClient) DiagnosticsListRevisions(ctx context.Context, id Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/detectorProperties/revisionsApi/revisions", id.ID()), OptionsObject: options, + Pager: &DiagnosticsListRevisionsCustomPager{}, + Path: fmt.Sprintf("%s/detectorProperties/revisionsApi/revisions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerapps/2024-03-01/containerapps/method_listbyresourcegroup.go b/resource-manager/containerapps/2024-03-01/containerapps/method_listbyresourcegroup.go index be43f7d2775..1b2010cc343 100644 --- a/resource-manager/containerapps/2024-03-01/containerapps/method_listbyresourcegroup.go +++ b/resource-manager/containerapps/2024-03-01/containerapps/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ContainerApp } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ContainerAppsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ContainerAppsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/containerApps", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/containerapps/method_listbysubscription.go b/resource-manager/containerapps/2024-03-01/containerapps/method_listbysubscription.go index c71fe0ecd2d..e80ef0ec67e 100644 --- a/resource-manager/containerapps/2024-03-01/containerapps/method_listbysubscription.go +++ b/resource-manager/containerapps/2024-03-01/containerapps/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ContainerApp } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ContainerAppsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ContainerAppsClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/containerApps", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/containerapps/method_listcustomhostnameanalysis.go b/resource-manager/containerapps/2024-03-01/containerapps/method_listcustomhostnameanalysis.go index 396d1751905..be6a76b9e53 100644 --- a/resource-manager/containerapps/2024-03-01/containerapps/method_listcustomhostnameanalysis.go +++ b/resource-manager/containerapps/2024-03-01/containerapps/method_listcustomhostnameanalysis.go @@ -53,8 +53,8 @@ func (c ContainerAppsClient) ListCustomHostNameAnalysis(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listCustomHostNameAnalysis", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listCustomHostNameAnalysis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerapps/2024-03-01/containerappsauthconfigs/method_listbycontainerapp.go b/resource-manager/containerapps/2024-03-01/containerappsauthconfigs/method_listbycontainerapp.go index 8104935b4fa..c096c07c5d5 100644 --- a/resource-manager/containerapps/2024-03-01/containerappsauthconfigs/method_listbycontainerapp.go +++ b/resource-manager/containerapps/2024-03-01/containerappsauthconfigs/method_listbycontainerapp.go @@ -23,6 +23,18 @@ type ListByContainerAppCompleteResult struct { Items []AuthConfig } +type ListByContainerAppCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByContainerAppCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByContainerApp ... func (c ContainerAppsAuthConfigsClient) ListByContainerApp(ctx context.Context, id ContainerAppId) (result ListByContainerAppOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContainerAppsAuthConfigsClient) ListByContainerApp(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByContainerAppCustomPager{}, Path: fmt.Sprintf("%s/authConfigs", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/containerappsrevisions/method_listrevisions.go b/resource-manager/containerapps/2024-03-01/containerappsrevisions/method_listrevisions.go index 9242e42bcf8..1ba89167188 100644 --- a/resource-manager/containerapps/2024-03-01/containerappsrevisions/method_listrevisions.go +++ b/resource-manager/containerapps/2024-03-01/containerappsrevisions/method_listrevisions.go @@ -50,6 +50,18 @@ func (o ListRevisionsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListRevisionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRevisionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRevisions ... func (c ContainerAppsRevisionsClient) ListRevisions(ctx context.Context, id ContainerAppId, options ListRevisionsOperationOptions) (result ListRevisionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ContainerAppsRevisionsClient) ListRevisions(ctx context.Context, id Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/revisions", id.ID()), OptionsObject: options, + Pager: &ListRevisionsCustomPager{}, + Path: fmt.Sprintf("%s/revisions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerapps/2024-03-01/containerappssourcecontrols/method_listbycontainerapp.go b/resource-manager/containerapps/2024-03-01/containerappssourcecontrols/method_listbycontainerapp.go index ddf363cb016..ad3d60ca029 100644 --- a/resource-manager/containerapps/2024-03-01/containerappssourcecontrols/method_listbycontainerapp.go +++ b/resource-manager/containerapps/2024-03-01/containerappssourcecontrols/method_listbycontainerapp.go @@ -23,6 +23,18 @@ type ListByContainerAppCompleteResult struct { Items []SourceControl } +type ListByContainerAppCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByContainerAppCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByContainerApp ... func (c ContainerAppsSourceControlsClient) ListByContainerApp(ctx context.Context, id ContainerAppId) (result ListByContainerAppOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContainerAppsSourceControlsClient) ListByContainerApp(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByContainerAppCustomPager{}, Path: fmt.Sprintf("%s/sourceControls", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/daprcomponents/method_connectedenvironmentsdaprcomponentslist.go b/resource-manager/containerapps/2024-03-01/daprcomponents/method_connectedenvironmentsdaprcomponentslist.go index 99ecbbdfa0a..b0bd3cbd16b 100644 --- a/resource-manager/containerapps/2024-03-01/daprcomponents/method_connectedenvironmentsdaprcomponentslist.go +++ b/resource-manager/containerapps/2024-03-01/daprcomponents/method_connectedenvironmentsdaprcomponentslist.go @@ -23,6 +23,18 @@ type ConnectedEnvironmentsDaprComponentsListCompleteResult struct { Items []DaprComponent } +type ConnectedEnvironmentsDaprComponentsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConnectedEnvironmentsDaprComponentsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConnectedEnvironmentsDaprComponentsList ... func (c DaprComponentsClient) ConnectedEnvironmentsDaprComponentsList(ctx context.Context, id ConnectedEnvironmentId) (result ConnectedEnvironmentsDaprComponentsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DaprComponentsClient) ConnectedEnvironmentsDaprComponentsList(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConnectedEnvironmentsDaprComponentsListCustomPager{}, Path: fmt.Sprintf("%s/daprComponents", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/daprcomponents/method_list.go b/resource-manager/containerapps/2024-03-01/daprcomponents/method_list.go index 439eff5f1ce..69e55736217 100644 --- a/resource-manager/containerapps/2024-03-01/daprcomponents/method_list.go +++ b/resource-manager/containerapps/2024-03-01/daprcomponents/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []DaprComponent } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DaprComponentsClient) List(ctx context.Context, id ManagedEnvironmentId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DaprComponentsClient) List(ctx context.Context, id ManagedEnvironmentId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/daprComponents", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/diagnostics/method_containerappsdiagnosticslistdetectors.go b/resource-manager/containerapps/2024-03-01/diagnostics/method_containerappsdiagnosticslistdetectors.go index 04a5e415708..9a66dd775d5 100644 --- a/resource-manager/containerapps/2024-03-01/diagnostics/method_containerappsdiagnosticslistdetectors.go +++ b/resource-manager/containerapps/2024-03-01/diagnostics/method_containerappsdiagnosticslistdetectors.go @@ -23,6 +23,18 @@ type ContainerAppsDiagnosticsListDetectorsCompleteResult struct { Items []Diagnostics } +type ContainerAppsDiagnosticsListDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ContainerAppsDiagnosticsListDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ContainerAppsDiagnosticsListDetectors ... func (c DiagnosticsClient) ContainerAppsDiagnosticsListDetectors(ctx context.Context, id ContainerAppId) (result ContainerAppsDiagnosticsListDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ContainerAppsDiagnosticsListDetectors(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ContainerAppsDiagnosticsListDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/diagnostics/method_containerappsdiagnosticslistrevisions.go b/resource-manager/containerapps/2024-03-01/diagnostics/method_containerappsdiagnosticslistrevisions.go index 08daf0b0ac2..f37c117df81 100644 --- a/resource-manager/containerapps/2024-03-01/diagnostics/method_containerappsdiagnosticslistrevisions.go +++ b/resource-manager/containerapps/2024-03-01/diagnostics/method_containerappsdiagnosticslistrevisions.go @@ -50,6 +50,18 @@ func (o ContainerAppsDiagnosticsListRevisionsOperationOptions) ToQuery() *client return &out } +type ContainerAppsDiagnosticsListRevisionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ContainerAppsDiagnosticsListRevisionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ContainerAppsDiagnosticsListRevisions ... func (c DiagnosticsClient) ContainerAppsDiagnosticsListRevisions(ctx context.Context, id ContainerAppId, options ContainerAppsDiagnosticsListRevisionsOperationOptions) (result ContainerAppsDiagnosticsListRevisionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DiagnosticsClient) ContainerAppsDiagnosticsListRevisions(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/detectorProperties/revisionsApi/revisions", id.ID()), OptionsObject: options, + Pager: &ContainerAppsDiagnosticsListRevisionsCustomPager{}, + Path: fmt.Sprintf("%s/detectorProperties/revisionsApi/revisions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerapps/2024-03-01/diagnostics/method_jobslistdetectors.go b/resource-manager/containerapps/2024-03-01/diagnostics/method_jobslistdetectors.go index dab67bc0db9..3e8e418b987 100644 --- a/resource-manager/containerapps/2024-03-01/diagnostics/method_jobslistdetectors.go +++ b/resource-manager/containerapps/2024-03-01/diagnostics/method_jobslistdetectors.go @@ -23,6 +23,18 @@ type JobsListDetectorsCompleteResult struct { Items []Diagnostics } +type JobsListDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *JobsListDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // JobsListDetectors ... func (c DiagnosticsClient) JobsListDetectors(ctx context.Context, id JobId) (result JobsListDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) JobsListDetectors(ctx context.Context, id JobId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &JobsListDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/diagnostics/method_managedenvironmentdiagnosticslistdetectors.go b/resource-manager/containerapps/2024-03-01/diagnostics/method_managedenvironmentdiagnosticslistdetectors.go index 6142518ec35..f172ca2d567 100644 --- a/resource-manager/containerapps/2024-03-01/diagnostics/method_managedenvironmentdiagnosticslistdetectors.go +++ b/resource-manager/containerapps/2024-03-01/diagnostics/method_managedenvironmentdiagnosticslistdetectors.go @@ -23,6 +23,18 @@ type ManagedEnvironmentDiagnosticsListDetectorsCompleteResult struct { Items []Diagnostics } +type ManagedEnvironmentDiagnosticsListDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ManagedEnvironmentDiagnosticsListDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ManagedEnvironmentDiagnosticsListDetectors ... func (c DiagnosticsClient) ManagedEnvironmentDiagnosticsListDetectors(ctx context.Context, id ManagedEnvironmentId) (result ManagedEnvironmentDiagnosticsListDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ManagedEnvironmentDiagnosticsListDetectors(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ManagedEnvironmentDiagnosticsListDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/jobs/method_executionslist.go b/resource-manager/containerapps/2024-03-01/jobs/method_executionslist.go index b1a45cea162..8032ccc4ee2 100644 --- a/resource-manager/containerapps/2024-03-01/jobs/method_executionslist.go +++ b/resource-manager/containerapps/2024-03-01/jobs/method_executionslist.go @@ -50,6 +50,18 @@ func (o ExecutionsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ExecutionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExecutionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExecutionsList ... func (c JobsClient) ExecutionsList(ctx context.Context, id JobId, options ExecutionsListOperationOptions) (result ExecutionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c JobsClient) ExecutionsList(ctx context.Context, id JobId, options Execut http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/executions", id.ID()), OptionsObject: options, + Pager: &ExecutionsListCustomPager{}, + Path: fmt.Sprintf("%s/executions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerapps/2024-03-01/jobs/method_listbyresourcegroup.go b/resource-manager/containerapps/2024-03-01/jobs/method_listbyresourcegroup.go index 79bd61257ab..0596f8a764b 100644 --- a/resource-manager/containerapps/2024-03-01/jobs/method_listbyresourcegroup.go +++ b/resource-manager/containerapps/2024-03-01/jobs/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Job } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c JobsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c JobsClient) ListByResourceGroup(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/jobs", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/jobs/method_listbysubscription.go b/resource-manager/containerapps/2024-03-01/jobs/method_listbysubscription.go index 942e68367f6..682abb825f0 100644 --- a/resource-manager/containerapps/2024-03-01/jobs/method_listbysubscription.go +++ b/resource-manager/containerapps/2024-03-01/jobs/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Job } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c JobsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c JobsClient) ListBySubscription(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/jobs", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/jobs/method_listdetectors.go b/resource-manager/containerapps/2024-03-01/jobs/method_listdetectors.go index 90559a84453..ce52fa3e8b6 100644 --- a/resource-manager/containerapps/2024-03-01/jobs/method_listdetectors.go +++ b/resource-manager/containerapps/2024-03-01/jobs/method_listdetectors.go @@ -23,6 +23,18 @@ type ListDetectorsCompleteResult struct { Items []Diagnostics } +type ListDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDetectors ... func (c JobsClient) ListDetectors(ctx context.Context, id JobId) (result ListDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobsClient) ListDetectors(ctx context.Context, id JobId) (result ListDet http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/jobs/method_stopmultipleexecutions.go b/resource-manager/containerapps/2024-03-01/jobs/method_stopmultipleexecutions.go index 8f8ea6da61b..415f7ddca74 100644 --- a/resource-manager/containerapps/2024-03-01/jobs/method_stopmultipleexecutions.go +++ b/resource-manager/containerapps/2024-03-01/jobs/method_stopmultipleexecutions.go @@ -26,6 +26,18 @@ type StopMultipleExecutionsCompleteResult struct { Items []JobExecution } +type StopMultipleExecutionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *StopMultipleExecutionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StopMultipleExecutions ... func (c JobsClient) StopMultipleExecutions(ctx context.Context, id JobId) (result StopMultipleExecutionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c JobsClient) StopMultipleExecutions(ctx context.Context, id JobId) (resul http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &StopMultipleExecutionsCustomPager{}, Path: fmt.Sprintf("%s/stop", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/managedcertificates/method_list.go b/resource-manager/containerapps/2024-03-01/managedcertificates/method_list.go index e28a0716fd3..d0b02d0a3ee 100644 --- a/resource-manager/containerapps/2024-03-01/managedcertificates/method_list.go +++ b/resource-manager/containerapps/2024-03-01/managedcertificates/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ManagedCertificate } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedCertificatesClient) List(ctx context.Context, id ManagedEnvironmentId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedCertificatesClient) List(ctx context.Context, id ManagedEnvironme http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/managedCertificates", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificateslist.go b/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificateslist.go index eb983b146e2..5190bc30812 100644 --- a/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificateslist.go +++ b/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificateslist.go @@ -23,6 +23,18 @@ type CertificatesListCompleteResult struct { Items []Certificate } +type CertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CertificatesList ... func (c ManagedEnvironmentsClient) CertificatesList(ctx context.Context, id ManagedEnvironmentId) (result CertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedEnvironmentsClient) CertificatesList(ctx context.Context, id Mana http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CertificatesListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/managedenvironments/method_listbyresourcegroup.go b/resource-manager/containerapps/2024-03-01/managedenvironments/method_listbyresourcegroup.go index 225e258396c..6cfee3f3fe3 100644 --- a/resource-manager/containerapps/2024-03-01/managedenvironments/method_listbyresourcegroup.go +++ b/resource-manager/containerapps/2024-03-01/managedenvironments/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedEnvironment } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedEnvironmentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedEnvironmentsClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/managedEnvironments", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/managedenvironments/method_listbysubscription.go b/resource-manager/containerapps/2024-03-01/managedenvironments/method_listbysubscription.go index 8201dff608f..3d61d3c8895 100644 --- a/resource-manager/containerapps/2024-03-01/managedenvironments/method_listbysubscription.go +++ b/resource-manager/containerapps/2024-03-01/managedenvironments/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ManagedEnvironment } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ManagedEnvironmentsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedEnvironmentsClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.App/managedEnvironments", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/managedenvironments/method_listworkloadprofilestates.go b/resource-manager/containerapps/2024-03-01/managedenvironments/method_listworkloadprofilestates.go index 2b597683682..efbaceb1ea8 100644 --- a/resource-manager/containerapps/2024-03-01/managedenvironments/method_listworkloadprofilestates.go +++ b/resource-manager/containerapps/2024-03-01/managedenvironments/method_listworkloadprofilestates.go @@ -23,6 +23,18 @@ type ListWorkloadProfileStatesCompleteResult struct { Items []WorkloadProfileStates } +type ListWorkloadProfileStatesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWorkloadProfileStatesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWorkloadProfileStates ... func (c ManagedEnvironmentsClient) ListWorkloadProfileStates(ctx context.Context, id ManagedEnvironmentId) (result ListWorkloadProfileStatesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedEnvironmentsClient) ListWorkloadProfileStates(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWorkloadProfileStatesCustomPager{}, Path: fmt.Sprintf("%s/workloadProfileStates", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedcertificateslist.go b/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedcertificateslist.go index deaf5e5b5e5..857aea4250e 100644 --- a/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedcertificateslist.go +++ b/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedcertificateslist.go @@ -23,6 +23,18 @@ type ManagedCertificatesListCompleteResult struct { Items []ManagedCertificate } +type ManagedCertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ManagedCertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ManagedCertificatesList ... func (c ManagedEnvironmentsClient) ManagedCertificatesList(ctx context.Context, id ManagedEnvironmentId) (result ManagedCertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedEnvironmentsClient) ManagedCertificatesList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ManagedCertificatesListCustomPager{}, Path: fmt.Sprintf("%s/managedCertificates", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedenvironmentdiagnosticslistdetectors.go b/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedenvironmentdiagnosticslistdetectors.go index 6990488afc7..eaa37d6d08b 100644 --- a/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedenvironmentdiagnosticslistdetectors.go +++ b/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedenvironmentdiagnosticslistdetectors.go @@ -23,6 +23,18 @@ type ManagedEnvironmentDiagnosticsListDetectorsCompleteResult struct { Items []Diagnostics } +type ManagedEnvironmentDiagnosticsListDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ManagedEnvironmentDiagnosticsListDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ManagedEnvironmentDiagnosticsListDetectors ... func (c ManagedEnvironmentsClient) ManagedEnvironmentDiagnosticsListDetectors(ctx context.Context, id ManagedEnvironmentId) (result ManagedEnvironmentDiagnosticsListDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedEnvironmentsClient) ManagedEnvironmentDiagnosticsListDetectors(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ManagedEnvironmentDiagnosticsListDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/usages/method_list.go b/resource-manager/containerapps/2024-03-01/usages/method_list.go index 6f4166f6dfc..76d13699e0c 100644 --- a/resource-manager/containerapps/2024-03-01/usages/method_list.go +++ b/resource-manager/containerapps/2024-03-01/usages/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Usage } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UsagesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UsagesClient) List(ctx context.Context, id LocationId) (result ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/containerapps/2024-03-01/usages/method_managedenvironmentusageslist.go b/resource-manager/containerapps/2024-03-01/usages/method_managedenvironmentusageslist.go index 02200a4ad1e..fe03f6b8740 100644 --- a/resource-manager/containerapps/2024-03-01/usages/method_managedenvironmentusageslist.go +++ b/resource-manager/containerapps/2024-03-01/usages/method_managedenvironmentusageslist.go @@ -23,6 +23,18 @@ type ManagedEnvironmentUsagesListCompleteResult struct { Items []Usage } +type ManagedEnvironmentUsagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ManagedEnvironmentUsagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ManagedEnvironmentUsagesList ... func (c UsagesClient) ManagedEnvironmentUsagesList(ctx context.Context, id ManagedEnvironmentId) (result ManagedEnvironmentUsagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UsagesClient) ManagedEnvironmentUsagesList(ctx context.Context, id Manag http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ManagedEnvironmentUsagesListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslist.go b/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslist.go index 8d0936fed63..047012d6ec4 100644 --- a/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslist.go +++ b/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslist.go @@ -24,6 +24,18 @@ type ContainerGroupsListCompleteResult struct { Items []ContainerGroup } +type ContainerGroupsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ContainerGroupsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ContainerGroupsList ... func (c ContainerInstanceClient) ContainerGroupsList(ctx context.Context, id commonids.SubscriptionId) (result ContainerGroupsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ContainerInstanceClient) ContainerGroupsList(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ContainerGroupsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerInstance/containerGroups", id.ID()), } diff --git a/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslistbyresourcegroup.go b/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslistbyresourcegroup.go index 05f20916f64..7305e6dc579 100644 --- a/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslistbyresourcegroup.go +++ b/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ContainerGroupsListByResourceGroupCompleteResult struct { Items []ContainerGroup } +type ContainerGroupsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ContainerGroupsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ContainerGroupsListByResourceGroup ... func (c ContainerInstanceClient) ContainerGroupsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ContainerGroupsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ContainerInstanceClient) ContainerGroupsListByResourceGroup(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ContainerGroupsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerInstance/containerGroups", id.ID()), } diff --git a/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs.go b/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs.go index 1f7dba6249a..510df9c13d2 100644 --- a/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs.go +++ b/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs.go @@ -57,8 +57,8 @@ func (c ContainerInstanceClient) ContainersListLogs(ctx context.Context, id Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/logs", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/logs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcachedimages.go b/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcachedimages.go index b9cea419f95..ca7204c1dd7 100644 --- a/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcachedimages.go +++ b/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcachedimages.go @@ -23,6 +23,18 @@ type LocationListCachedImagesCompleteResult struct { Items []CachedImages } +type LocationListCachedImagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LocationListCachedImagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LocationListCachedImages ... func (c ContainerInstanceClient) LocationListCachedImages(ctx context.Context, id LocationId) (result LocationListCachedImagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContainerInstanceClient) LocationListCachedImages(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LocationListCachedImagesCustomPager{}, Path: fmt.Sprintf("%s/cachedImages", id.ID()), } diff --git a/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcapabilities.go b/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcapabilities.go index 71e1a558eab..86cce2b8494 100644 --- a/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcapabilities.go +++ b/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistcapabilities.go @@ -23,6 +23,18 @@ type LocationListCapabilitiesCompleteResult struct { Items []Capabilities } +type LocationListCapabilitiesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LocationListCapabilitiesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LocationListCapabilities ... func (c ContainerInstanceClient) LocationListCapabilities(ctx context.Context, id LocationId) (result LocationListCapabilitiesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContainerInstanceClient) LocationListCapabilities(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LocationListCapabilitiesCustomPager{}, Path: fmt.Sprintf("%s/capabilities", id.ID()), } diff --git a/resource-manager/containerregistry/2019-06-01-preview/agentpools/method_list.go b/resource-manager/containerregistry/2019-06-01-preview/agentpools/method_list.go index 2ff2013616f..916f6458a8b 100644 --- a/resource-manager/containerregistry/2019-06-01-preview/agentpools/method_list.go +++ b/resource-manager/containerregistry/2019-06-01-preview/agentpools/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []AgentPool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AgentPoolsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AgentPoolsClient) List(ctx context.Context, id RegistryId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/agentPools", id.ID()), } diff --git a/resource-manager/containerregistry/2019-06-01-preview/runs/method_list.go b/resource-manager/containerregistry/2019-06-01-preview/runs/method_list.go index 20f012a1cd9..8e4d9bf8c33 100644 --- a/resource-manager/containerregistry/2019-06-01-preview/runs/method_list.go +++ b/resource-manager/containerregistry/2019-06-01-preview/runs/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RunsClient) List(ctx context.Context, id RegistryId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c RunsClient) List(ctx context.Context, id RegistryId, options ListOperati http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/runs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerregistry/2019-06-01-preview/taskruns/method_list.go b/resource-manager/containerregistry/2019-06-01-preview/taskruns/method_list.go index 19165525bb8..b5b91412abf 100644 --- a/resource-manager/containerregistry/2019-06-01-preview/taskruns/method_list.go +++ b/resource-manager/containerregistry/2019-06-01-preview/taskruns/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []TaskRun } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TaskRunsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TaskRunsClient) List(ctx context.Context, id RegistryId) (result ListOpe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/taskRuns", id.ID()), } diff --git a/resource-manager/containerregistry/2019-06-01-preview/tasks/method_list.go b/resource-manager/containerregistry/2019-06-01-preview/tasks/method_list.go index a2b65a65713..5e9dd9b6f50 100644 --- a/resource-manager/containerregistry/2019-06-01-preview/tasks/method_list.go +++ b/resource-manager/containerregistry/2019-06-01-preview/tasks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Task } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TasksClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TasksClient) List(ctx context.Context, id RegistryId) (result ListOperat http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/tasks", id.ID()), } diff --git a/resource-manager/containerregistry/2021-08-01-preview/connectedregistries/method_list.go b/resource-manager/containerregistry/2021-08-01-preview/connectedregistries/method_list.go index a8ee40bb959..cd37a551ab1 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/connectedregistries/method_list.go +++ b/resource-manager/containerregistry/2021-08-01-preview/connectedregistries/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ConnectedRegistriesClient) List(ctx context.Context, id RegistryId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ConnectedRegistriesClient) List(ctx context.Context, id RegistryId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/connectedRegistries", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/connectedRegistries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerregistry/2021-08-01-preview/exportpipelines/method_list.go b/resource-manager/containerregistry/2021-08-01-preview/exportpipelines/method_list.go index f8913126591..69b38c5ad45 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/exportpipelines/method_list.go +++ b/resource-manager/containerregistry/2021-08-01-preview/exportpipelines/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExportPipeline } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExportPipelinesClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExportPipelinesClient) List(ctx context.Context, id RegistryId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/exportPipelines", id.ID()), } diff --git a/resource-manager/containerregistry/2021-08-01-preview/importpipelines/method_list.go b/resource-manager/containerregistry/2021-08-01-preview/importpipelines/method_list.go index 57187f12fde..01c65aef568 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/importpipelines/method_list.go +++ b/resource-manager/containerregistry/2021-08-01-preview/importpipelines/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ImportPipeline } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ImportPipelinesClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ImportPipelinesClient) List(ctx context.Context, id RegistryId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/importPipelines", id.ID()), } diff --git a/resource-manager/containerregistry/2021-08-01-preview/pipelineruns/method_list.go b/resource-manager/containerregistry/2021-08-01-preview/pipelineruns/method_list.go index f5b3b557561..f4121f68882 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/pipelineruns/method_list.go +++ b/resource-manager/containerregistry/2021-08-01-preview/pipelineruns/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PipelineRun } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PipelineRunsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PipelineRunsClient) List(ctx context.Context, id RegistryId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/pipelineRuns", id.ID()), } diff --git a/resource-manager/containerregistry/2021-08-01-preview/privateendpointconnections/method_list.go b/resource-manager/containerregistry/2021-08-01-preview/privateendpointconnections/method_list.go index 94b7d148d1b..257f7c9fb89 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/privateendpointconnections/method_list.go +++ b/resource-manager/containerregistry/2021-08-01-preview/privateendpointconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id RegistryI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/containerregistry/2021-08-01-preview/registries/method_list.go b/resource-manager/containerregistry/2021-08-01-preview/registries/method_list.go index 961aaf2c7bf..0c9d895db4e 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/registries/method_list.go +++ b/resource-manager/containerregistry/2021-08-01-preview/registries/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Registry } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RegistriesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RegistriesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerRegistry/registries", id.ID()), } diff --git a/resource-manager/containerregistry/2021-08-01-preview/registries/method_listbyresourcegroup.go b/resource-manager/containerregistry/2021-08-01-preview/registries/method_listbyresourcegroup.go index 1a215677f36..ba9e98edfc1 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/registries/method_listbyresourcegroup.go +++ b/resource-manager/containerregistry/2021-08-01-preview/registries/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Registry } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c RegistriesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RegistriesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerRegistry/registries", id.ID()), } diff --git a/resource-manager/containerregistry/2021-08-01-preview/registries/method_listprivatelinkresources.go b/resource-manager/containerregistry/2021-08-01-preview/registries/method_listprivatelinkresources.go index 7be91b00f74..96d44cfd991 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/registries/method_listprivatelinkresources.go +++ b/resource-manager/containerregistry/2021-08-01-preview/registries/method_listprivatelinkresources.go @@ -23,6 +23,18 @@ type ListPrivateLinkResourcesCompleteResult struct { Items []PrivateLinkResource } +type ListPrivateLinkResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPrivateLinkResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPrivateLinkResources ... func (c RegistriesClient) ListPrivateLinkResources(ctx context.Context, id RegistryId) (result ListPrivateLinkResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RegistriesClient) ListPrivateLinkResources(ctx context.Context, id Regis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPrivateLinkResourcesCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/containerregistry/2021-08-01-preview/replications/method_list.go b/resource-manager/containerregistry/2021-08-01-preview/replications/method_list.go index f5db0fdf74d..b2a62f6087f 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/replications/method_list.go +++ b/resource-manager/containerregistry/2021-08-01-preview/replications/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Replication } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationsClient) List(ctx context.Context, id RegistryId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replications", id.ID()), } diff --git a/resource-manager/containerregistry/2021-08-01-preview/scopemaps/method_list.go b/resource-manager/containerregistry/2021-08-01-preview/scopemaps/method_list.go index 48be95c1650..6946f908ba2 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/scopemaps/method_list.go +++ b/resource-manager/containerregistry/2021-08-01-preview/scopemaps/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ScopeMap } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScopeMapsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScopeMapsClient) List(ctx context.Context, id RegistryId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/scopeMaps", id.ID()), } diff --git a/resource-manager/containerregistry/2021-08-01-preview/tokens/method_list.go b/resource-manager/containerregistry/2021-08-01-preview/tokens/method_list.go index f9ffd969d2e..fddf1b402cb 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/tokens/method_list.go +++ b/resource-manager/containerregistry/2021-08-01-preview/tokens/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Token } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TokensClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TokensClient) List(ctx context.Context, id RegistryId) (result ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/tokens", id.ID()), } diff --git a/resource-manager/containerregistry/2021-08-01-preview/webhooks/method_list.go b/resource-manager/containerregistry/2021-08-01-preview/webhooks/method_list.go index 9ba55132e68..9f1e715304c 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/webhooks/method_list.go +++ b/resource-manager/containerregistry/2021-08-01-preview/webhooks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Webhook } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WebHooksClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebHooksClient) List(ctx context.Context, id RegistryId) (result ListOpe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/webHooks", id.ID()), } diff --git a/resource-manager/containerregistry/2021-08-01-preview/webhooks/method_listevents.go b/resource-manager/containerregistry/2021-08-01-preview/webhooks/method_listevents.go index 6a1012044eb..c43b2895799 100644 --- a/resource-manager/containerregistry/2021-08-01-preview/webhooks/method_listevents.go +++ b/resource-manager/containerregistry/2021-08-01-preview/webhooks/method_listevents.go @@ -23,6 +23,18 @@ type ListEventsCompleteResult struct { Items []Event } +type ListEventsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListEventsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListEvents ... func (c WebHooksClient) ListEvents(ctx context.Context, id WebHookId) (result ListEventsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebHooksClient) ListEvents(ctx context.Context, id WebHookId) (result Li http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListEventsCustomPager{}, Path: fmt.Sprintf("%s/listEvents", id.ID()), } diff --git a/resource-manager/containerregistry/2022-12-01/privateendpointconnections/method_list.go b/resource-manager/containerregistry/2022-12-01/privateendpointconnections/method_list.go index 94b7d148d1b..257f7c9fb89 100644 --- a/resource-manager/containerregistry/2022-12-01/privateendpointconnections/method_list.go +++ b/resource-manager/containerregistry/2022-12-01/privateendpointconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id RegistryI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/containerregistry/2022-12-01/registries/method_list.go b/resource-manager/containerregistry/2022-12-01/registries/method_list.go index 961aaf2c7bf..0c9d895db4e 100644 --- a/resource-manager/containerregistry/2022-12-01/registries/method_list.go +++ b/resource-manager/containerregistry/2022-12-01/registries/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Registry } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RegistriesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RegistriesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerRegistry/registries", id.ID()), } diff --git a/resource-manager/containerregistry/2022-12-01/registries/method_listbyresourcegroup.go b/resource-manager/containerregistry/2022-12-01/registries/method_listbyresourcegroup.go index 1a215677f36..ba9e98edfc1 100644 --- a/resource-manager/containerregistry/2022-12-01/registries/method_listbyresourcegroup.go +++ b/resource-manager/containerregistry/2022-12-01/registries/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Registry } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c RegistriesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RegistriesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerRegistry/registries", id.ID()), } diff --git a/resource-manager/containerregistry/2022-12-01/registries/method_listprivatelinkresources.go b/resource-manager/containerregistry/2022-12-01/registries/method_listprivatelinkresources.go index 7be91b00f74..96d44cfd991 100644 --- a/resource-manager/containerregistry/2022-12-01/registries/method_listprivatelinkresources.go +++ b/resource-manager/containerregistry/2022-12-01/registries/method_listprivatelinkresources.go @@ -23,6 +23,18 @@ type ListPrivateLinkResourcesCompleteResult struct { Items []PrivateLinkResource } +type ListPrivateLinkResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPrivateLinkResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPrivateLinkResources ... func (c RegistriesClient) ListPrivateLinkResources(ctx context.Context, id RegistryId) (result ListPrivateLinkResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RegistriesClient) ListPrivateLinkResources(ctx context.Context, id Regis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPrivateLinkResourcesCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/containerregistry/2022-12-01/replications/method_list.go b/resource-manager/containerregistry/2022-12-01/replications/method_list.go index f5db0fdf74d..b2a62f6087f 100644 --- a/resource-manager/containerregistry/2022-12-01/replications/method_list.go +++ b/resource-manager/containerregistry/2022-12-01/replications/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Replication } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationsClient) List(ctx context.Context, id RegistryId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replications", id.ID()), } diff --git a/resource-manager/containerregistry/2022-12-01/scopemaps/method_list.go b/resource-manager/containerregistry/2022-12-01/scopemaps/method_list.go index 48be95c1650..6946f908ba2 100644 --- a/resource-manager/containerregistry/2022-12-01/scopemaps/method_list.go +++ b/resource-manager/containerregistry/2022-12-01/scopemaps/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ScopeMap } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScopeMapsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScopeMapsClient) List(ctx context.Context, id RegistryId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/scopeMaps", id.ID()), } diff --git a/resource-manager/containerregistry/2022-12-01/tokens/method_list.go b/resource-manager/containerregistry/2022-12-01/tokens/method_list.go index f9ffd969d2e..fddf1b402cb 100644 --- a/resource-manager/containerregistry/2022-12-01/tokens/method_list.go +++ b/resource-manager/containerregistry/2022-12-01/tokens/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Token } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TokensClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TokensClient) List(ctx context.Context, id RegistryId) (result ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/tokens", id.ID()), } diff --git a/resource-manager/containerregistry/2022-12-01/webhooks/method_list.go b/resource-manager/containerregistry/2022-12-01/webhooks/method_list.go index 9ba55132e68..9f1e715304c 100644 --- a/resource-manager/containerregistry/2022-12-01/webhooks/method_list.go +++ b/resource-manager/containerregistry/2022-12-01/webhooks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Webhook } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WebHooksClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebHooksClient) List(ctx context.Context, id RegistryId) (result ListOpe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/webHooks", id.ID()), } diff --git a/resource-manager/containerregistry/2022-12-01/webhooks/method_listevents.go b/resource-manager/containerregistry/2022-12-01/webhooks/method_listevents.go index 6a1012044eb..c43b2895799 100644 --- a/resource-manager/containerregistry/2022-12-01/webhooks/method_listevents.go +++ b/resource-manager/containerregistry/2022-12-01/webhooks/method_listevents.go @@ -23,6 +23,18 @@ type ListEventsCompleteResult struct { Items []Event } +type ListEventsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListEventsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListEvents ... func (c WebHooksClient) ListEvents(ctx context.Context, id WebHookId) (result ListEventsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebHooksClient) ListEvents(ctx context.Context, id WebHookId) (result Li http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListEventsCustomPager{}, Path: fmt.Sprintf("%s/listEvents", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/archives/method_list.go b/resource-manager/containerregistry/2023-06-01-preview/archives/method_list.go index decfbd026d3..81b5f43645f 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/archives/method_list.go +++ b/resource-manager/containerregistry/2023-06-01-preview/archives/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Archive } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ArchivesClient) List(ctx context.Context, id PackageId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ArchivesClient) List(ctx context.Context, id PackageId) (result ListOper http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/archives", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_list.go b/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_list.go index 58fb263eda8..69dbd3cc144 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_list.go +++ b/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ArchiveVersion } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ArchiveVersionsClient) List(ctx context.Context, id ArchiveId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ArchiveVersionsClient) List(ctx context.Context, id ArchiveId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_list.go b/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_list.go index 6a864d4d8c6..9b1c49d2f20 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_list.go +++ b/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CacheRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CacheRulesClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CacheRulesClient) List(ctx context.Context, id RegistryId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/cacheRules", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_list.go b/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_list.go index a8ee40bb959..cd37a551ab1 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_list.go +++ b/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ConnectedRegistriesClient) List(ctx context.Context, id RegistryId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ConnectedRegistriesClient) List(ctx context.Context, id RegistryId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/connectedRegistries", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/connectedRegistries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_list.go b/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_list.go index 6887df87cf0..56fadc1e618 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_list.go +++ b/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CredentialSet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CredentialSetsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CredentialSetsClient) List(ctx context.Context, id RegistryId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/credentialSets", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_list.go b/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_list.go index f8913126591..69b38c5ad45 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_list.go +++ b/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExportPipeline } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExportPipelinesClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExportPipelinesClient) List(ctx context.Context, id RegistryId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/exportPipelines", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_list.go b/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_list.go index 57187f12fde..01c65aef568 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_list.go +++ b/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ImportPipeline } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ImportPipelinesClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ImportPipelinesClient) List(ctx context.Context, id RegistryId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/importPipelines", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_list.go b/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_list.go index f5b3b557561..f4121f68882 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_list.go +++ b/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PipelineRun } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PipelineRunsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PipelineRunsClient) List(ctx context.Context, id RegistryId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/pipelineRuns", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_list.go b/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_list.go index 94b7d148d1b..257f7c9fb89 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_list.go +++ b/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id RegistryI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/registries/method_list.go b/resource-manager/containerregistry/2023-06-01-preview/registries/method_list.go index 961aaf2c7bf..0c9d895db4e 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/registries/method_list.go +++ b/resource-manager/containerregistry/2023-06-01-preview/registries/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Registry } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RegistriesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RegistriesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerRegistry/registries", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/registries/method_listbyresourcegroup.go b/resource-manager/containerregistry/2023-06-01-preview/registries/method_listbyresourcegroup.go index 1a215677f36..ba9e98edfc1 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/registries/method_listbyresourcegroup.go +++ b/resource-manager/containerregistry/2023-06-01-preview/registries/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Registry } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c RegistriesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RegistriesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerRegistry/registries", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/registries/method_listprivatelinkresources.go b/resource-manager/containerregistry/2023-06-01-preview/registries/method_listprivatelinkresources.go index 7be91b00f74..96d44cfd991 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/registries/method_listprivatelinkresources.go +++ b/resource-manager/containerregistry/2023-06-01-preview/registries/method_listprivatelinkresources.go @@ -23,6 +23,18 @@ type ListPrivateLinkResourcesCompleteResult struct { Items []PrivateLinkResource } +type ListPrivateLinkResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPrivateLinkResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPrivateLinkResources ... func (c RegistriesClient) ListPrivateLinkResources(ctx context.Context, id RegistryId) (result ListPrivateLinkResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RegistriesClient) ListPrivateLinkResources(ctx context.Context, id Regis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPrivateLinkResourcesCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/replications/method_list.go b/resource-manager/containerregistry/2023-06-01-preview/replications/method_list.go index f5db0fdf74d..b2a62f6087f 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/replications/method_list.go +++ b/resource-manager/containerregistry/2023-06-01-preview/replications/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Replication } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationsClient) List(ctx context.Context, id RegistryId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replications", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_list.go b/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_list.go index 48be95c1650..6946f908ba2 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_list.go +++ b/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ScopeMap } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScopeMapsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScopeMapsClient) List(ctx context.Context, id RegistryId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/scopeMaps", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/tokens/method_list.go b/resource-manager/containerregistry/2023-06-01-preview/tokens/method_list.go index f9ffd969d2e..fddf1b402cb 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/tokens/method_list.go +++ b/resource-manager/containerregistry/2023-06-01-preview/tokens/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Token } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TokensClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TokensClient) List(ctx context.Context, id RegistryId) (result ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/tokens", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_list.go b/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_list.go index 9ba55132e68..9f1e715304c 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_list.go +++ b/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Webhook } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WebHooksClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebHooksClient) List(ctx context.Context, id RegistryId) (result ListOpe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/webHooks", id.ID()), } diff --git a/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_listevents.go b/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_listevents.go index 6a1012044eb..c43b2895799 100644 --- a/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_listevents.go +++ b/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_listevents.go @@ -23,6 +23,18 @@ type ListEventsCompleteResult struct { Items []Event } +type ListEventsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListEventsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListEvents ... func (c WebHooksClient) ListEvents(ctx context.Context, id WebHookId) (result ListEventsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebHooksClient) ListEvents(ctx context.Context, id WebHookId) (result Li http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListEventsCustomPager{}, Path: fmt.Sprintf("%s/listEvents", id.ID()), } diff --git a/resource-manager/containerregistry/2023-07-01/cacherules/method_list.go b/resource-manager/containerregistry/2023-07-01/cacherules/method_list.go index 6a864d4d8c6..9b1c49d2f20 100644 --- a/resource-manager/containerregistry/2023-07-01/cacherules/method_list.go +++ b/resource-manager/containerregistry/2023-07-01/cacherules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CacheRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CacheRulesClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CacheRulesClient) List(ctx context.Context, id RegistryId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/cacheRules", id.ID()), } diff --git a/resource-manager/containerregistry/2023-07-01/credentialsets/method_list.go b/resource-manager/containerregistry/2023-07-01/credentialsets/method_list.go index 6887df87cf0..56fadc1e618 100644 --- a/resource-manager/containerregistry/2023-07-01/credentialsets/method_list.go +++ b/resource-manager/containerregistry/2023-07-01/credentialsets/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CredentialSet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CredentialSetsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CredentialSetsClient) List(ctx context.Context, id RegistryId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/credentialSets", id.ID()), } diff --git a/resource-manager/containerregistry/2023-07-01/privateendpointconnections/method_list.go b/resource-manager/containerregistry/2023-07-01/privateendpointconnections/method_list.go index 94b7d148d1b..257f7c9fb89 100644 --- a/resource-manager/containerregistry/2023-07-01/privateendpointconnections/method_list.go +++ b/resource-manager/containerregistry/2023-07-01/privateendpointconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id RegistryI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/containerregistry/2023-07-01/registries/method_list.go b/resource-manager/containerregistry/2023-07-01/registries/method_list.go index 961aaf2c7bf..0c9d895db4e 100644 --- a/resource-manager/containerregistry/2023-07-01/registries/method_list.go +++ b/resource-manager/containerregistry/2023-07-01/registries/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Registry } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RegistriesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RegistriesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerRegistry/registries", id.ID()), } diff --git a/resource-manager/containerregistry/2023-07-01/registries/method_listbyresourcegroup.go b/resource-manager/containerregistry/2023-07-01/registries/method_listbyresourcegroup.go index 1a215677f36..ba9e98edfc1 100644 --- a/resource-manager/containerregistry/2023-07-01/registries/method_listbyresourcegroup.go +++ b/resource-manager/containerregistry/2023-07-01/registries/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Registry } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c RegistriesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RegistriesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerRegistry/registries", id.ID()), } diff --git a/resource-manager/containerregistry/2023-07-01/registries/method_listprivatelinkresources.go b/resource-manager/containerregistry/2023-07-01/registries/method_listprivatelinkresources.go index 7be91b00f74..96d44cfd991 100644 --- a/resource-manager/containerregistry/2023-07-01/registries/method_listprivatelinkresources.go +++ b/resource-manager/containerregistry/2023-07-01/registries/method_listprivatelinkresources.go @@ -23,6 +23,18 @@ type ListPrivateLinkResourcesCompleteResult struct { Items []PrivateLinkResource } +type ListPrivateLinkResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPrivateLinkResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPrivateLinkResources ... func (c RegistriesClient) ListPrivateLinkResources(ctx context.Context, id RegistryId) (result ListPrivateLinkResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RegistriesClient) ListPrivateLinkResources(ctx context.Context, id Regis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPrivateLinkResourcesCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/containerregistry/2023-07-01/replications/method_list.go b/resource-manager/containerregistry/2023-07-01/replications/method_list.go index f5db0fdf74d..b2a62f6087f 100644 --- a/resource-manager/containerregistry/2023-07-01/replications/method_list.go +++ b/resource-manager/containerregistry/2023-07-01/replications/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Replication } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationsClient) List(ctx context.Context, id RegistryId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replications", id.ID()), } diff --git a/resource-manager/containerregistry/2023-07-01/scopemaps/method_list.go b/resource-manager/containerregistry/2023-07-01/scopemaps/method_list.go index 48be95c1650..6946f908ba2 100644 --- a/resource-manager/containerregistry/2023-07-01/scopemaps/method_list.go +++ b/resource-manager/containerregistry/2023-07-01/scopemaps/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ScopeMap } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScopeMapsClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScopeMapsClient) List(ctx context.Context, id RegistryId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/scopeMaps", id.ID()), } diff --git a/resource-manager/containerregistry/2023-07-01/tokens/method_list.go b/resource-manager/containerregistry/2023-07-01/tokens/method_list.go index f9ffd969d2e..fddf1b402cb 100644 --- a/resource-manager/containerregistry/2023-07-01/tokens/method_list.go +++ b/resource-manager/containerregistry/2023-07-01/tokens/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Token } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TokensClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TokensClient) List(ctx context.Context, id RegistryId) (result ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/tokens", id.ID()), } diff --git a/resource-manager/containerregistry/2023-07-01/webhooks/method_list.go b/resource-manager/containerregistry/2023-07-01/webhooks/method_list.go index 9ba55132e68..9f1e715304c 100644 --- a/resource-manager/containerregistry/2023-07-01/webhooks/method_list.go +++ b/resource-manager/containerregistry/2023-07-01/webhooks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Webhook } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WebHooksClient) List(ctx context.Context, id RegistryId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebHooksClient) List(ctx context.Context, id RegistryId) (result ListOpe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/webHooks", id.ID()), } diff --git a/resource-manager/containerregistry/2023-07-01/webhooks/method_listevents.go b/resource-manager/containerregistry/2023-07-01/webhooks/method_listevents.go index 6a1012044eb..c43b2895799 100644 --- a/resource-manager/containerregistry/2023-07-01/webhooks/method_listevents.go +++ b/resource-manager/containerregistry/2023-07-01/webhooks/method_listevents.go @@ -23,6 +23,18 @@ type ListEventsCompleteResult struct { Items []Event } +type ListEventsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListEventsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListEvents ... func (c WebHooksClient) ListEvents(ctx context.Context, id WebHookId) (result ListEventsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebHooksClient) ListEvents(ctx context.Context, id WebHookId) (result Li http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListEventsCustomPager{}, Path: fmt.Sprintf("%s/listEvents", id.ID()), } diff --git a/resource-manager/containerservice/2019-08-01/agentpools/method_list.go b/resource-manager/containerservice/2019-08-01/agentpools/method_list.go index 0605599b57b..63350a29f6d 100644 --- a/resource-manager/containerservice/2019-08-01/agentpools/method_list.go +++ b/resource-manager/containerservice/2019-08-01/agentpools/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AgentPool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AgentPoolsClient) List(ctx context.Context, id commonids.KubernetesClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AgentPoolsClient) List(ctx context.Context, id commonids.KubernetesClust http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/agentPools", id.ID()), } diff --git a/resource-manager/containerservice/2019-08-01/containerservices/method_listorchestrators.go b/resource-manager/containerservice/2019-08-01/containerservices/method_listorchestrators.go index b5c35e2fb4c..9940d416c04 100644 --- a/resource-manager/containerservice/2019-08-01/containerservices/method_listorchestrators.go +++ b/resource-manager/containerservice/2019-08-01/containerservices/method_listorchestrators.go @@ -53,8 +53,8 @@ func (c ContainerServicesClient) ListOrchestrators(ctx context.Context, id Locat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/orchestrators", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/orchestrators", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2019-08-01/managedclusters/method_list.go b/resource-manager/containerservice/2019-08-01/managedclusters/method_list.go index ff3a6de380d..026d6c9e193 100644 --- a/resource-manager/containerservice/2019-08-01/managedclusters/method_list.go +++ b/resource-manager/containerservice/2019-08-01/managedclusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ManagedCluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusters", id.ID()), } diff --git a/resource-manager/containerservice/2019-08-01/managedclusters/method_listbyresourcegroup.go b/resource-manager/containerservice/2019-08-01/managedclusters/method_listbyresourcegroup.go index 3e1179070c9..3243b394520 100644 --- a/resource-manager/containerservice/2019-08-01/managedclusters/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2019-08-01/managedclusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedCluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusters", id.ID()), } diff --git a/resource-manager/containerservice/2023-03-02-preview/agentpools/method_delete.go b/resource-manager/containerservice/2023-03-02-preview/agentpools/method_delete.go index d628abea0ea..4943dd2d43e 100644 --- a/resource-manager/containerservice/2023-03-02-preview/agentpools/method_delete.go +++ b/resource-manager/containerservice/2023-03-02-preview/agentpools/method_delete.go @@ -56,8 +56,8 @@ func (c AgentPoolsClient) Delete(ctx context.Context, id AgentPoolId, options De http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-03-02-preview/agentpools/method_list.go b/resource-manager/containerservice/2023-03-02-preview/agentpools/method_list.go index 0605599b57b..63350a29f6d 100644 --- a/resource-manager/containerservice/2023-03-02-preview/agentpools/method_list.go +++ b/resource-manager/containerservice/2023-03-02-preview/agentpools/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AgentPool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AgentPoolsClient) List(ctx context.Context, id commonids.KubernetesClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AgentPoolsClient) List(ctx context.Context, id commonids.KubernetesClust http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/agentPools", id.ID()), } diff --git a/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/method_listbymanagedcluster.go b/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/method_listbymanagedcluster.go index 1c56b7e90a3..f87e9032ed5 100644 --- a/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/method_listbymanagedcluster.go +++ b/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/method_listbymanagedcluster.go @@ -24,6 +24,18 @@ type ListByManagedClusterCompleteResult struct { Items []MaintenanceConfiguration } +type ListByManagedClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedCluster ... func (c MaintenanceConfigurationsClient) ListByManagedCluster(ctx context.Context, id commonids.KubernetesClusterId) (result ListByManagedClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MaintenanceConfigurationsClient) ListByManagedCluster(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedClusterCustomPager{}, Path: fmt.Sprintf("%s/maintenanceConfigurations", id.ID()), } diff --git a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_delete.go b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_delete.go index 53bf6a9ac7c..d7cee216475 100644 --- a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_delete.go +++ b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_delete.go @@ -57,8 +57,8 @@ func (c ManagedClustersClient) Delete(ctx context.Context, id commonids.Kubernet http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getosoptions.go b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getosoptions.go index 8f4f629fc4d..f255b25649c 100644 --- a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getosoptions.go +++ b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getosoptions.go @@ -53,8 +53,8 @@ func (c ManagedClustersClient) GetOSOptions(ctx context.Context, id LocationId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/osOptions/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/osOptions/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_list.go b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_list.go index ff3a6de380d..026d6c9e193 100644 --- a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_list.go +++ b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ManagedCluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusters", id.ID()), } diff --git a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listbyresourcegroup.go b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listbyresourcegroup.go index 3e1179070c9..3243b394520 100644 --- a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedCluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusters", id.ID()), } diff --git a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusteradmincredentials.go b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusteradmincredentials.go index ffd25c8f6ec..c1281445462 100644 --- a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusteradmincredentials.go +++ b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusteradmincredentials.go @@ -54,8 +54,8 @@ func (c ManagedClustersClient) ListClusterAdminCredentials(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterAdminCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterAdminCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclustermonitoringusercredentials.go b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclustermonitoringusercredentials.go index 085c52f9396..17ffc52bd4c 100644 --- a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclustermonitoringusercredentials.go +++ b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclustermonitoringusercredentials.go @@ -54,8 +54,8 @@ func (c ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterMonitoringUserCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterMonitoringUserCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusterusercredentials.go b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusterusercredentials.go index b0a714473bd..20feffa4418 100644 --- a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusterusercredentials.go +++ b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusterusercredentials.go @@ -58,8 +58,8 @@ func (c ManagedClustersClient) ListClusterUserCredentials(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterUserCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterUserCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listoutboundnetworkdependenciesendpoints.go b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listoutboundnetworkdependenciesendpoints.go index 3618a5a0b9d..21283e57ea3 100644 --- a/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listoutboundnetworkdependenciesendpoints.go @@ -24,6 +24,18 @@ type ListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesEndpoints ... func (c ManagedClustersClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.KubernetesClusterId) (result ListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListOutboundNetworkDependenciesEndpoints(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_list.go b/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_list.go index e7c7db0b135..ffd7508eb04 100644 --- a/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_list.go +++ b/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ManagedClusterSnapshot } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedClusterSnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClusterSnapshotsClient) List(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusterSnapshots", id.ID()), } diff --git a/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_listbyresourcegroup.go b/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_listbyresourcegroup.go index 3a902b1b225..0e1a05580b4 100644 --- a/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedClusterSnapshot } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedClusterSnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClusterSnapshotsClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusterSnapshots", id.ID()), } diff --git a/resource-manager/containerservice/2023-03-02-preview/snapshots/method_list.go b/resource-manager/containerservice/2023-03-02-preview/snapshots/method_list.go index 907fd6aaebe..340f60c09b1 100644 --- a/resource-manager/containerservice/2023-03-02-preview/snapshots/method_list.go +++ b/resource-manager/containerservice/2023-03-02-preview/snapshots/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Snapshot } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/snapshots", id.ID()), } diff --git a/resource-manager/containerservice/2023-03-02-preview/snapshots/method_listbyresourcegroup.go b/resource-manager/containerservice/2023-03-02-preview/snapshots/method_listbyresourcegroup.go index a16a05588b5..fb276c706e9 100644 --- a/resource-manager/containerservice/2023-03-02-preview/snapshots/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2023-03-02-preview/snapshots/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Snapshot } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/snapshots", id.ID()), } diff --git a/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_rolebindingslist.go b/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_rolebindingslist.go index d57d06bbc25..8c24b744a5d 100644 --- a/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_rolebindingslist.go +++ b/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_rolebindingslist.go @@ -24,6 +24,18 @@ type RoleBindingsListCompleteResult struct { Items []TrustedAccessRoleBinding } +type RoleBindingsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RoleBindingsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RoleBindingsList ... func (c TrustedAccessClient) RoleBindingsList(ctx context.Context, id commonids.KubernetesClusterId) (result RoleBindingsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TrustedAccessClient) RoleBindingsList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RoleBindingsListCustomPager{}, Path: fmt.Sprintf("%s/trustedAccessRoleBindings", id.ID()), } diff --git a/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_roleslist.go b/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_roleslist.go index 278827a7199..211cbf901bc 100644 --- a/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_roleslist.go +++ b/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_roleslist.go @@ -23,6 +23,18 @@ type RolesListCompleteResult struct { Items []TrustedAccessRole } +type RolesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RolesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RolesList ... func (c TrustedAccessClient) RolesList(ctx context.Context, id LocationId) (result RolesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TrustedAccessClient) RolesList(ctx context.Context, id LocationId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RolesListCustomPager{}, Path: fmt.Sprintf("%s/trustedAccessRoles", id.ID()), } diff --git a/resource-manager/containerservice/2023-06-02-preview/agentpools/method_delete.go b/resource-manager/containerservice/2023-06-02-preview/agentpools/method_delete.go index d628abea0ea..4943dd2d43e 100644 --- a/resource-manager/containerservice/2023-06-02-preview/agentpools/method_delete.go +++ b/resource-manager/containerservice/2023-06-02-preview/agentpools/method_delete.go @@ -56,8 +56,8 @@ func (c AgentPoolsClient) Delete(ctx context.Context, id AgentPoolId, options De http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-06-02-preview/agentpools/method_list.go b/resource-manager/containerservice/2023-06-02-preview/agentpools/method_list.go index 0605599b57b..63350a29f6d 100644 --- a/resource-manager/containerservice/2023-06-02-preview/agentpools/method_list.go +++ b/resource-manager/containerservice/2023-06-02-preview/agentpools/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AgentPool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AgentPoolsClient) List(ctx context.Context, id commonids.KubernetesClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AgentPoolsClient) List(ctx context.Context, id commonids.KubernetesClust http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/agentPools", id.ID()), } diff --git a/resource-manager/containerservice/2023-06-02-preview/maintenanceconfigurations/method_listbymanagedcluster.go b/resource-manager/containerservice/2023-06-02-preview/maintenanceconfigurations/method_listbymanagedcluster.go index 1c56b7e90a3..f87e9032ed5 100644 --- a/resource-manager/containerservice/2023-06-02-preview/maintenanceconfigurations/method_listbymanagedcluster.go +++ b/resource-manager/containerservice/2023-06-02-preview/maintenanceconfigurations/method_listbymanagedcluster.go @@ -24,6 +24,18 @@ type ListByManagedClusterCompleteResult struct { Items []MaintenanceConfiguration } +type ListByManagedClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedCluster ... func (c MaintenanceConfigurationsClient) ListByManagedCluster(ctx context.Context, id commonids.KubernetesClusterId) (result ListByManagedClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MaintenanceConfigurationsClient) ListByManagedCluster(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedClusterCustomPager{}, Path: fmt.Sprintf("%s/maintenanceConfigurations", id.ID()), } diff --git a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_delete.go b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_delete.go index 53bf6a9ac7c..d7cee216475 100644 --- a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_delete.go +++ b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_delete.go @@ -57,8 +57,8 @@ func (c ManagedClustersClient) Delete(ctx context.Context, id commonids.Kubernet http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_getosoptions.go b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_getosoptions.go index 8f4f629fc4d..f255b25649c 100644 --- a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_getosoptions.go +++ b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_getosoptions.go @@ -53,8 +53,8 @@ func (c ManagedClustersClient) GetOSOptions(ctx context.Context, id LocationId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/osOptions/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/osOptions/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_list.go b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_list.go index ff3a6de380d..026d6c9e193 100644 --- a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_list.go +++ b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ManagedCluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusters", id.ID()), } diff --git a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listbyresourcegroup.go b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listbyresourcegroup.go index 3e1179070c9..3243b394520 100644 --- a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedCluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusters", id.ID()), } diff --git a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listclusteradmincredentials.go b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listclusteradmincredentials.go index ffd25c8f6ec..c1281445462 100644 --- a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listclusteradmincredentials.go +++ b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listclusteradmincredentials.go @@ -54,8 +54,8 @@ func (c ManagedClustersClient) ListClusterAdminCredentials(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterAdminCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterAdminCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listclustermonitoringusercredentials.go b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listclustermonitoringusercredentials.go index 085c52f9396..17ffc52bd4c 100644 --- a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listclustermonitoringusercredentials.go +++ b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listclustermonitoringusercredentials.go @@ -54,8 +54,8 @@ func (c ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterMonitoringUserCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterMonitoringUserCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listclusterusercredentials.go b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listclusterusercredentials.go index b0a714473bd..20feffa4418 100644 --- a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listclusterusercredentials.go +++ b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listclusterusercredentials.go @@ -58,8 +58,8 @@ func (c ManagedClustersClient) ListClusterUserCredentials(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterUserCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterUserCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listmeshrevisionprofiles.go b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listmeshrevisionprofiles.go index 5d4369abceb..0172addb23c 100644 --- a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listmeshrevisionprofiles.go +++ b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listmeshrevisionprofiles.go @@ -23,6 +23,18 @@ type ListMeshRevisionProfilesCompleteResult struct { Items []MeshRevisionProfile } +type ListMeshRevisionProfilesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMeshRevisionProfilesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMeshRevisionProfiles ... func (c ManagedClustersClient) ListMeshRevisionProfiles(ctx context.Context, id LocationId) (result ListMeshRevisionProfilesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedClustersClient) ListMeshRevisionProfiles(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMeshRevisionProfilesCustomPager{}, Path: fmt.Sprintf("%s/meshRevisionProfiles", id.ID()), } diff --git a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listmeshupgradeprofiles.go b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listmeshupgradeprofiles.go index e167f9c1329..b73c93f81a9 100644 --- a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listmeshupgradeprofiles.go +++ b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listmeshupgradeprofiles.go @@ -24,6 +24,18 @@ type ListMeshUpgradeProfilesCompleteResult struct { Items []MeshUpgradeProfile } +type ListMeshUpgradeProfilesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMeshUpgradeProfilesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMeshUpgradeProfiles ... func (c ManagedClustersClient) ListMeshUpgradeProfiles(ctx context.Context, id commonids.KubernetesClusterId) (result ListMeshUpgradeProfilesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListMeshUpgradeProfiles(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMeshUpgradeProfilesCustomPager{}, Path: fmt.Sprintf("%s/meshUpgradeProfiles", id.ID()), } diff --git a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listoutboundnetworkdependenciesendpoints.go b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listoutboundnetworkdependenciesendpoints.go index 3618a5a0b9d..21283e57ea3 100644 --- a/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/containerservice/2023-06-02-preview/managedclusters/method_listoutboundnetworkdependenciesendpoints.go @@ -24,6 +24,18 @@ type ListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesEndpoints ... func (c ManagedClustersClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.KubernetesClusterId) (result ListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListOutboundNetworkDependenciesEndpoints(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/containerservice/2023-06-02-preview/managedclustersnapshots/method_list.go b/resource-manager/containerservice/2023-06-02-preview/managedclustersnapshots/method_list.go index e7c7db0b135..ffd7508eb04 100644 --- a/resource-manager/containerservice/2023-06-02-preview/managedclustersnapshots/method_list.go +++ b/resource-manager/containerservice/2023-06-02-preview/managedclustersnapshots/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ManagedClusterSnapshot } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedClusterSnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClusterSnapshotsClient) List(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusterSnapshots", id.ID()), } diff --git a/resource-manager/containerservice/2023-06-02-preview/managedclustersnapshots/method_listbyresourcegroup.go b/resource-manager/containerservice/2023-06-02-preview/managedclustersnapshots/method_listbyresourcegroup.go index 3a902b1b225..0e1a05580b4 100644 --- a/resource-manager/containerservice/2023-06-02-preview/managedclustersnapshots/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2023-06-02-preview/managedclustersnapshots/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedClusterSnapshot } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedClusterSnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClusterSnapshotsClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusterSnapshots", id.ID()), } diff --git a/resource-manager/containerservice/2023-06-02-preview/snapshots/method_list.go b/resource-manager/containerservice/2023-06-02-preview/snapshots/method_list.go index 907fd6aaebe..340f60c09b1 100644 --- a/resource-manager/containerservice/2023-06-02-preview/snapshots/method_list.go +++ b/resource-manager/containerservice/2023-06-02-preview/snapshots/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Snapshot } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/snapshots", id.ID()), } diff --git a/resource-manager/containerservice/2023-06-02-preview/snapshots/method_listbyresourcegroup.go b/resource-manager/containerservice/2023-06-02-preview/snapshots/method_listbyresourcegroup.go index a16a05588b5..fb276c706e9 100644 --- a/resource-manager/containerservice/2023-06-02-preview/snapshots/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2023-06-02-preview/snapshots/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Snapshot } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/snapshots", id.ID()), } diff --git a/resource-manager/containerservice/2023-06-02-preview/trustedaccess/method_rolebindingslist.go b/resource-manager/containerservice/2023-06-02-preview/trustedaccess/method_rolebindingslist.go index d57d06bbc25..8c24b744a5d 100644 --- a/resource-manager/containerservice/2023-06-02-preview/trustedaccess/method_rolebindingslist.go +++ b/resource-manager/containerservice/2023-06-02-preview/trustedaccess/method_rolebindingslist.go @@ -24,6 +24,18 @@ type RoleBindingsListCompleteResult struct { Items []TrustedAccessRoleBinding } +type RoleBindingsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RoleBindingsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RoleBindingsList ... func (c TrustedAccessClient) RoleBindingsList(ctx context.Context, id commonids.KubernetesClusterId) (result RoleBindingsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TrustedAccessClient) RoleBindingsList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RoleBindingsListCustomPager{}, Path: fmt.Sprintf("%s/trustedAccessRoleBindings", id.ID()), } diff --git a/resource-manager/containerservice/2023-06-02-preview/trustedaccess/method_roleslist.go b/resource-manager/containerservice/2023-06-02-preview/trustedaccess/method_roleslist.go index 278827a7199..211cbf901bc 100644 --- a/resource-manager/containerservice/2023-06-02-preview/trustedaccess/method_roleslist.go +++ b/resource-manager/containerservice/2023-06-02-preview/trustedaccess/method_roleslist.go @@ -23,6 +23,18 @@ type RolesListCompleteResult struct { Items []TrustedAccessRole } +type RolesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RolesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RolesList ... func (c TrustedAccessClient) RolesList(ctx context.Context, id LocationId) (result RolesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TrustedAccessClient) RolesList(ctx context.Context, id LocationId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RolesListCustomPager{}, Path: fmt.Sprintf("%s/trustedAccessRoles", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/agentpools/method_delete.go b/resource-manager/containerservice/2023-09-02-preview/agentpools/method_delete.go index d628abea0ea..4943dd2d43e 100644 --- a/resource-manager/containerservice/2023-09-02-preview/agentpools/method_delete.go +++ b/resource-manager/containerservice/2023-09-02-preview/agentpools/method_delete.go @@ -56,8 +56,8 @@ func (c AgentPoolsClient) Delete(ctx context.Context, id AgentPoolId, options De http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-09-02-preview/agentpools/method_list.go b/resource-manager/containerservice/2023-09-02-preview/agentpools/method_list.go index 0605599b57b..63350a29f6d 100644 --- a/resource-manager/containerservice/2023-09-02-preview/agentpools/method_list.go +++ b/resource-manager/containerservice/2023-09-02-preview/agentpools/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AgentPool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AgentPoolsClient) List(ctx context.Context, id commonids.KubernetesClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AgentPoolsClient) List(ctx context.Context, id commonids.KubernetesClust http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/agentPools", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/machines/method_list.go b/resource-manager/containerservice/2023-09-02-preview/machines/method_list.go index 395b39b0062..949d16fc5e3 100644 --- a/resource-manager/containerservice/2023-09-02-preview/machines/method_list.go +++ b/resource-manager/containerservice/2023-09-02-preview/machines/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Machine } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MachinesClient) List(ctx context.Context, id AgentPoolId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MachinesClient) List(ctx context.Context, id AgentPoolId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/machines", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/maintenanceconfigurations/method_listbymanagedcluster.go b/resource-manager/containerservice/2023-09-02-preview/maintenanceconfigurations/method_listbymanagedcluster.go index 1c56b7e90a3..f87e9032ed5 100644 --- a/resource-manager/containerservice/2023-09-02-preview/maintenanceconfigurations/method_listbymanagedcluster.go +++ b/resource-manager/containerservice/2023-09-02-preview/maintenanceconfigurations/method_listbymanagedcluster.go @@ -24,6 +24,18 @@ type ListByManagedClusterCompleteResult struct { Items []MaintenanceConfiguration } +type ListByManagedClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedCluster ... func (c MaintenanceConfigurationsClient) ListByManagedCluster(ctx context.Context, id commonids.KubernetesClusterId) (result ListByManagedClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MaintenanceConfigurationsClient) ListByManagedCluster(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedClusterCustomPager{}, Path: fmt.Sprintf("%s/maintenanceConfigurations", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_delete.go b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_delete.go index 53bf6a9ac7c..d7cee216475 100644 --- a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_delete.go +++ b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_delete.go @@ -57,8 +57,8 @@ func (c ManagedClustersClient) Delete(ctx context.Context, id commonids.Kubernet http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_getosoptions.go b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_getosoptions.go index 8f4f629fc4d..f255b25649c 100644 --- a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_getosoptions.go +++ b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_getosoptions.go @@ -53,8 +53,8 @@ func (c ManagedClustersClient) GetOSOptions(ctx context.Context, id LocationId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/osOptions/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/osOptions/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_list.go b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_list.go index ff3a6de380d..026d6c9e193 100644 --- a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_list.go +++ b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ManagedCluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusters", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listbyresourcegroup.go b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listbyresourcegroup.go index 3e1179070c9..3243b394520 100644 --- a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedCluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusters", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listclusteradmincredentials.go b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listclusteradmincredentials.go index ffd25c8f6ec..c1281445462 100644 --- a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listclusteradmincredentials.go +++ b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listclusteradmincredentials.go @@ -54,8 +54,8 @@ func (c ManagedClustersClient) ListClusterAdminCredentials(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterAdminCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterAdminCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listclustermonitoringusercredentials.go b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listclustermonitoringusercredentials.go index 085c52f9396..17ffc52bd4c 100644 --- a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listclustermonitoringusercredentials.go +++ b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listclustermonitoringusercredentials.go @@ -54,8 +54,8 @@ func (c ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterMonitoringUserCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterMonitoringUserCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listclusterusercredentials.go b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listclusterusercredentials.go index b0a714473bd..20feffa4418 100644 --- a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listclusterusercredentials.go +++ b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listclusterusercredentials.go @@ -58,8 +58,8 @@ func (c ManagedClustersClient) ListClusterUserCredentials(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterUserCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterUserCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listguardrailsversions.go b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listguardrailsversions.go index 3e60ac7f426..62283580a6c 100644 --- a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listguardrailsversions.go +++ b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listguardrailsversions.go @@ -23,6 +23,18 @@ type ListGuardrailsVersionsCompleteResult struct { Items []GuardrailsAvailableVersion } +type ListGuardrailsVersionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListGuardrailsVersionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListGuardrailsVersions ... func (c ManagedClustersClient) ListGuardrailsVersions(ctx context.Context, id LocationId) (result ListGuardrailsVersionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedClustersClient) ListGuardrailsVersions(ctx context.Context, id Lo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListGuardrailsVersionsCustomPager{}, Path: fmt.Sprintf("%s/guardrailsVersions", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listmeshrevisionprofiles.go b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listmeshrevisionprofiles.go index 5d4369abceb..0172addb23c 100644 --- a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listmeshrevisionprofiles.go +++ b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listmeshrevisionprofiles.go @@ -23,6 +23,18 @@ type ListMeshRevisionProfilesCompleteResult struct { Items []MeshRevisionProfile } +type ListMeshRevisionProfilesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMeshRevisionProfilesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMeshRevisionProfiles ... func (c ManagedClustersClient) ListMeshRevisionProfiles(ctx context.Context, id LocationId) (result ListMeshRevisionProfilesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedClustersClient) ListMeshRevisionProfiles(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMeshRevisionProfilesCustomPager{}, Path: fmt.Sprintf("%s/meshRevisionProfiles", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listmeshupgradeprofiles.go b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listmeshupgradeprofiles.go index e167f9c1329..b73c93f81a9 100644 --- a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listmeshupgradeprofiles.go +++ b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listmeshupgradeprofiles.go @@ -24,6 +24,18 @@ type ListMeshUpgradeProfilesCompleteResult struct { Items []MeshUpgradeProfile } +type ListMeshUpgradeProfilesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMeshUpgradeProfilesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMeshUpgradeProfiles ... func (c ManagedClustersClient) ListMeshUpgradeProfiles(ctx context.Context, id commonids.KubernetesClusterId) (result ListMeshUpgradeProfilesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListMeshUpgradeProfiles(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMeshUpgradeProfilesCustomPager{}, Path: fmt.Sprintf("%s/meshUpgradeProfiles", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listoutboundnetworkdependenciesendpoints.go b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listoutboundnetworkdependenciesendpoints.go index 3618a5a0b9d..21283e57ea3 100644 --- a/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/containerservice/2023-09-02-preview/managedclusters/method_listoutboundnetworkdependenciesendpoints.go @@ -24,6 +24,18 @@ type ListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesEndpoints ... func (c ManagedClustersClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.KubernetesClusterId) (result ListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListOutboundNetworkDependenciesEndpoints(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/managedclustersnapshots/method_list.go b/resource-manager/containerservice/2023-09-02-preview/managedclustersnapshots/method_list.go index e7c7db0b135..ffd7508eb04 100644 --- a/resource-manager/containerservice/2023-09-02-preview/managedclustersnapshots/method_list.go +++ b/resource-manager/containerservice/2023-09-02-preview/managedclustersnapshots/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ManagedClusterSnapshot } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedClusterSnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClusterSnapshotsClient) List(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusterSnapshots", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/managedclustersnapshots/method_listbyresourcegroup.go b/resource-manager/containerservice/2023-09-02-preview/managedclustersnapshots/method_listbyresourcegroup.go index 3a902b1b225..0e1a05580b4 100644 --- a/resource-manager/containerservice/2023-09-02-preview/managedclustersnapshots/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2023-09-02-preview/managedclustersnapshots/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedClusterSnapshot } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedClusterSnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClusterSnapshotsClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusterSnapshots", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/snapshots/method_list.go b/resource-manager/containerservice/2023-09-02-preview/snapshots/method_list.go index 907fd6aaebe..340f60c09b1 100644 --- a/resource-manager/containerservice/2023-09-02-preview/snapshots/method_list.go +++ b/resource-manager/containerservice/2023-09-02-preview/snapshots/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Snapshot } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/snapshots", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/snapshots/method_listbyresourcegroup.go b/resource-manager/containerservice/2023-09-02-preview/snapshots/method_listbyresourcegroup.go index a16a05588b5..fb276c706e9 100644 --- a/resource-manager/containerservice/2023-09-02-preview/snapshots/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2023-09-02-preview/snapshots/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Snapshot } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/snapshots", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/trustedaccess/method_rolebindingslist.go b/resource-manager/containerservice/2023-09-02-preview/trustedaccess/method_rolebindingslist.go index d57d06bbc25..8c24b744a5d 100644 --- a/resource-manager/containerservice/2023-09-02-preview/trustedaccess/method_rolebindingslist.go +++ b/resource-manager/containerservice/2023-09-02-preview/trustedaccess/method_rolebindingslist.go @@ -24,6 +24,18 @@ type RoleBindingsListCompleteResult struct { Items []TrustedAccessRoleBinding } +type RoleBindingsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RoleBindingsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RoleBindingsList ... func (c TrustedAccessClient) RoleBindingsList(ctx context.Context, id commonids.KubernetesClusterId) (result RoleBindingsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TrustedAccessClient) RoleBindingsList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RoleBindingsListCustomPager{}, Path: fmt.Sprintf("%s/trustedAccessRoleBindings", id.ID()), } diff --git a/resource-manager/containerservice/2023-09-02-preview/trustedaccess/method_roleslist.go b/resource-manager/containerservice/2023-09-02-preview/trustedaccess/method_roleslist.go index 278827a7199..211cbf901bc 100644 --- a/resource-manager/containerservice/2023-09-02-preview/trustedaccess/method_roleslist.go +++ b/resource-manager/containerservice/2023-09-02-preview/trustedaccess/method_roleslist.go @@ -23,6 +23,18 @@ type RolesListCompleteResult struct { Items []TrustedAccessRole } +type RolesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RolesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RolesList ... func (c TrustedAccessClient) RolesList(ctx context.Context, id LocationId) (result RolesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TrustedAccessClient) RolesList(ctx context.Context, id LocationId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RolesListCustomPager{}, Path: fmt.Sprintf("%s/trustedAccessRoles", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-01/agentpools/method_list.go b/resource-manager/containerservice/2023-10-01/agentpools/method_list.go index 0605599b57b..63350a29f6d 100644 --- a/resource-manager/containerservice/2023-10-01/agentpools/method_list.go +++ b/resource-manager/containerservice/2023-10-01/agentpools/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AgentPool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AgentPoolsClient) List(ctx context.Context, id commonids.KubernetesClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AgentPoolsClient) List(ctx context.Context, id commonids.KubernetesClust http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/agentPools", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-01/maintenanceconfigurations/method_listbymanagedcluster.go b/resource-manager/containerservice/2023-10-01/maintenanceconfigurations/method_listbymanagedcluster.go index 1c56b7e90a3..f87e9032ed5 100644 --- a/resource-manager/containerservice/2023-10-01/maintenanceconfigurations/method_listbymanagedcluster.go +++ b/resource-manager/containerservice/2023-10-01/maintenanceconfigurations/method_listbymanagedcluster.go @@ -24,6 +24,18 @@ type ListByManagedClusterCompleteResult struct { Items []MaintenanceConfiguration } +type ListByManagedClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedCluster ... func (c MaintenanceConfigurationsClient) ListByManagedCluster(ctx context.Context, id commonids.KubernetesClusterId) (result ListByManagedClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MaintenanceConfigurationsClient) ListByManagedCluster(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedClusterCustomPager{}, Path: fmt.Sprintf("%s/maintenanceConfigurations", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-01/managedclusters/method_getosoptions.go b/resource-manager/containerservice/2023-10-01/managedclusters/method_getosoptions.go index 8f4f629fc4d..f255b25649c 100644 --- a/resource-manager/containerservice/2023-10-01/managedclusters/method_getosoptions.go +++ b/resource-manager/containerservice/2023-10-01/managedclusters/method_getosoptions.go @@ -53,8 +53,8 @@ func (c ManagedClustersClient) GetOSOptions(ctx context.Context, id LocationId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/osOptions/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/osOptions/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-01/managedclusters/method_list.go b/resource-manager/containerservice/2023-10-01/managedclusters/method_list.go index ff3a6de380d..026d6c9e193 100644 --- a/resource-manager/containerservice/2023-10-01/managedclusters/method_list.go +++ b/resource-manager/containerservice/2023-10-01/managedclusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ManagedCluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusters", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-01/managedclusters/method_listbyresourcegroup.go b/resource-manager/containerservice/2023-10-01/managedclusters/method_listbyresourcegroup.go index 3e1179070c9..3243b394520 100644 --- a/resource-manager/containerservice/2023-10-01/managedclusters/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2023-10-01/managedclusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedCluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusters", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-01/managedclusters/method_listclusteradmincredentials.go b/resource-manager/containerservice/2023-10-01/managedclusters/method_listclusteradmincredentials.go index ffd25c8f6ec..c1281445462 100644 --- a/resource-manager/containerservice/2023-10-01/managedclusters/method_listclusteradmincredentials.go +++ b/resource-manager/containerservice/2023-10-01/managedclusters/method_listclusteradmincredentials.go @@ -54,8 +54,8 @@ func (c ManagedClustersClient) ListClusterAdminCredentials(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterAdminCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterAdminCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-01/managedclusters/method_listclustermonitoringusercredentials.go b/resource-manager/containerservice/2023-10-01/managedclusters/method_listclustermonitoringusercredentials.go index 085c52f9396..17ffc52bd4c 100644 --- a/resource-manager/containerservice/2023-10-01/managedclusters/method_listclustermonitoringusercredentials.go +++ b/resource-manager/containerservice/2023-10-01/managedclusters/method_listclustermonitoringusercredentials.go @@ -54,8 +54,8 @@ func (c ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterMonitoringUserCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterMonitoringUserCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-01/managedclusters/method_listclusterusercredentials.go b/resource-manager/containerservice/2023-10-01/managedclusters/method_listclusterusercredentials.go index b0a714473bd..20feffa4418 100644 --- a/resource-manager/containerservice/2023-10-01/managedclusters/method_listclusterusercredentials.go +++ b/resource-manager/containerservice/2023-10-01/managedclusters/method_listclusterusercredentials.go @@ -58,8 +58,8 @@ func (c ManagedClustersClient) ListClusterUserCredentials(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterUserCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterUserCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-01/managedclusters/method_listmeshrevisionprofiles.go b/resource-manager/containerservice/2023-10-01/managedclusters/method_listmeshrevisionprofiles.go index 5d4369abceb..0172addb23c 100644 --- a/resource-manager/containerservice/2023-10-01/managedclusters/method_listmeshrevisionprofiles.go +++ b/resource-manager/containerservice/2023-10-01/managedclusters/method_listmeshrevisionprofiles.go @@ -23,6 +23,18 @@ type ListMeshRevisionProfilesCompleteResult struct { Items []MeshRevisionProfile } +type ListMeshRevisionProfilesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMeshRevisionProfilesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMeshRevisionProfiles ... func (c ManagedClustersClient) ListMeshRevisionProfiles(ctx context.Context, id LocationId) (result ListMeshRevisionProfilesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedClustersClient) ListMeshRevisionProfiles(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMeshRevisionProfilesCustomPager{}, Path: fmt.Sprintf("%s/meshRevisionProfiles", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-01/managedclusters/method_listmeshupgradeprofiles.go b/resource-manager/containerservice/2023-10-01/managedclusters/method_listmeshupgradeprofiles.go index e167f9c1329..b73c93f81a9 100644 --- a/resource-manager/containerservice/2023-10-01/managedclusters/method_listmeshupgradeprofiles.go +++ b/resource-manager/containerservice/2023-10-01/managedclusters/method_listmeshupgradeprofiles.go @@ -24,6 +24,18 @@ type ListMeshUpgradeProfilesCompleteResult struct { Items []MeshUpgradeProfile } +type ListMeshUpgradeProfilesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMeshUpgradeProfilesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMeshUpgradeProfiles ... func (c ManagedClustersClient) ListMeshUpgradeProfiles(ctx context.Context, id commonids.KubernetesClusterId) (result ListMeshUpgradeProfilesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListMeshUpgradeProfiles(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMeshUpgradeProfilesCustomPager{}, Path: fmt.Sprintf("%s/meshUpgradeProfiles", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-01/managedclusters/method_listoutboundnetworkdependenciesendpoints.go b/resource-manager/containerservice/2023-10-01/managedclusters/method_listoutboundnetworkdependenciesendpoints.go index 3618a5a0b9d..21283e57ea3 100644 --- a/resource-manager/containerservice/2023-10-01/managedclusters/method_listoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/containerservice/2023-10-01/managedclusters/method_listoutboundnetworkdependenciesendpoints.go @@ -24,6 +24,18 @@ type ListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesEndpoints ... func (c ManagedClustersClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.KubernetesClusterId) (result ListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListOutboundNetworkDependenciesEndpoints(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-01/snapshots/method_list.go b/resource-manager/containerservice/2023-10-01/snapshots/method_list.go index 907fd6aaebe..340f60c09b1 100644 --- a/resource-manager/containerservice/2023-10-01/snapshots/method_list.go +++ b/resource-manager/containerservice/2023-10-01/snapshots/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Snapshot } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/snapshots", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-01/snapshots/method_listbyresourcegroup.go b/resource-manager/containerservice/2023-10-01/snapshots/method_listbyresourcegroup.go index a16a05588b5..fb276c706e9 100644 --- a/resource-manager/containerservice/2023-10-01/snapshots/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2023-10-01/snapshots/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Snapshot } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/snapshots", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-01/trustedaccess/method_rolebindingslist.go b/resource-manager/containerservice/2023-10-01/trustedaccess/method_rolebindingslist.go index d57d06bbc25..8c24b744a5d 100644 --- a/resource-manager/containerservice/2023-10-01/trustedaccess/method_rolebindingslist.go +++ b/resource-manager/containerservice/2023-10-01/trustedaccess/method_rolebindingslist.go @@ -24,6 +24,18 @@ type RoleBindingsListCompleteResult struct { Items []TrustedAccessRoleBinding } +type RoleBindingsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RoleBindingsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RoleBindingsList ... func (c TrustedAccessClient) RoleBindingsList(ctx context.Context, id commonids.KubernetesClusterId) (result RoleBindingsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TrustedAccessClient) RoleBindingsList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RoleBindingsListCustomPager{}, Path: fmt.Sprintf("%s/trustedAccessRoleBindings", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-01/trustedaccess/method_roleslist.go b/resource-manager/containerservice/2023-10-01/trustedaccess/method_roleslist.go index 278827a7199..211cbf901bc 100644 --- a/resource-manager/containerservice/2023-10-01/trustedaccess/method_roleslist.go +++ b/resource-manager/containerservice/2023-10-01/trustedaccess/method_roleslist.go @@ -23,6 +23,18 @@ type RolesListCompleteResult struct { Items []TrustedAccessRole } +type RolesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RolesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RolesList ... func (c TrustedAccessClient) RolesList(ctx context.Context, id LocationId) (result RolesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TrustedAccessClient) RolesList(ctx context.Context, id LocationId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RolesListCustomPager{}, Path: fmt.Sprintf("%s/trustedAccessRoles", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-15/fleetmembers/method_create.go b/resource-manager/containerservice/2023-10-15/fleetmembers/method_create.go index 1a5991834f7..9262ed20170 100644 --- a/resource-manager/containerservice/2023-10-15/fleetmembers/method_create.go +++ b/resource-manager/containerservice/2023-10-15/fleetmembers/method_create.go @@ -61,8 +61,8 @@ func (c FleetMembersClient) Create(ctx context.Context, id MemberId, input Fleet http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-15/fleetmembers/method_delete.go b/resource-manager/containerservice/2023-10-15/fleetmembers/method_delete.go index 7006a5abe50..9a1357f94b5 100644 --- a/resource-manager/containerservice/2023-10-15/fleetmembers/method_delete.go +++ b/resource-manager/containerservice/2023-10-15/fleetmembers/method_delete.go @@ -57,8 +57,8 @@ func (c FleetMembersClient) Delete(ctx context.Context, id MemberId, options Del http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-15/fleetmembers/method_listbyfleet.go b/resource-manager/containerservice/2023-10-15/fleetmembers/method_listbyfleet.go index bf0b7a6447f..127d9027a53 100644 --- a/resource-manager/containerservice/2023-10-15/fleetmembers/method_listbyfleet.go +++ b/resource-manager/containerservice/2023-10-15/fleetmembers/method_listbyfleet.go @@ -23,6 +23,18 @@ type ListByFleetCompleteResult struct { Items []FleetMember } +type ListByFleetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFleetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFleet ... func (c FleetMembersClient) ListByFleet(ctx context.Context, id FleetId) (result ListByFleetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FleetMembersClient) ListByFleet(ctx context.Context, id FleetId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFleetCustomPager{}, Path: fmt.Sprintf("%s/members", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-15/fleetmembers/method_update.go b/resource-manager/containerservice/2023-10-15/fleetmembers/method_update.go index 117dbdfd148..d3cf5af1fcd 100644 --- a/resource-manager/containerservice/2023-10-15/fleetmembers/method_update.go +++ b/resource-manager/containerservice/2023-10-15/fleetmembers/method_update.go @@ -57,8 +57,8 @@ func (c FleetMembersClient) Update(ctx context.Context, id MemberId, input Fleet http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-15/fleets/method_createorupdate.go b/resource-manager/containerservice/2023-10-15/fleets/method_createorupdate.go index 1903621e2e5..f2a4ae483c0 100644 --- a/resource-manager/containerservice/2023-10-15/fleets/method_createorupdate.go +++ b/resource-manager/containerservice/2023-10-15/fleets/method_createorupdate.go @@ -61,8 +61,8 @@ func (c FleetsClient) CreateOrUpdate(ctx context.Context, id FleetId, input Flee http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-15/fleets/method_delete.go b/resource-manager/containerservice/2023-10-15/fleets/method_delete.go index af583413da9..f8ce48096f6 100644 --- a/resource-manager/containerservice/2023-10-15/fleets/method_delete.go +++ b/resource-manager/containerservice/2023-10-15/fleets/method_delete.go @@ -57,8 +57,8 @@ func (c FleetsClient) Delete(ctx context.Context, id FleetId, options DeleteOper http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-15/fleets/method_listbyresourcegroup.go b/resource-manager/containerservice/2023-10-15/fleets/method_listbyresourcegroup.go index 2deb8231294..76b6eb0c6c8 100644 --- a/resource-manager/containerservice/2023-10-15/fleets/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2023-10-15/fleets/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Fleet } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c FleetsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FleetsClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/fleets", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-15/fleets/method_listbysubscription.go b/resource-manager/containerservice/2023-10-15/fleets/method_listbysubscription.go index 0bd4fb89804..7e87f873463 100644 --- a/resource-manager/containerservice/2023-10-15/fleets/method_listbysubscription.go +++ b/resource-manager/containerservice/2023-10-15/fleets/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Fleet } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c FleetsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FleetsClient) ListBySubscription(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/fleets", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-15/fleets/method_update.go b/resource-manager/containerservice/2023-10-15/fleets/method_update.go index 1de05dfae66..c227554999a 100644 --- a/resource-manager/containerservice/2023-10-15/fleets/method_update.go +++ b/resource-manager/containerservice/2023-10-15/fleets/method_update.go @@ -57,8 +57,8 @@ func (c FleetsClient) Update(ctx context.Context, id FleetId, input FleetPatch, http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-15/fleetupdatestrategies/method_createorupdate.go b/resource-manager/containerservice/2023-10-15/fleetupdatestrategies/method_createorupdate.go index 2b2860734ad..e8bbc761205 100644 --- a/resource-manager/containerservice/2023-10-15/fleetupdatestrategies/method_createorupdate.go +++ b/resource-manager/containerservice/2023-10-15/fleetupdatestrategies/method_createorupdate.go @@ -61,8 +61,8 @@ func (c FleetUpdateStrategiesClient) CreateOrUpdate(ctx context.Context, id Upda http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-15/fleetupdatestrategies/method_delete.go b/resource-manager/containerservice/2023-10-15/fleetupdatestrategies/method_delete.go index 430496199d5..c825765bfe6 100644 --- a/resource-manager/containerservice/2023-10-15/fleetupdatestrategies/method_delete.go +++ b/resource-manager/containerservice/2023-10-15/fleetupdatestrategies/method_delete.go @@ -57,8 +57,8 @@ func (c FleetUpdateStrategiesClient) Delete(ctx context.Context, id UpdateStrate http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-15/fleetupdatestrategies/method_listbyfleet.go b/resource-manager/containerservice/2023-10-15/fleetupdatestrategies/method_listbyfleet.go index 12cb2b38ab9..e69590c5c6b 100644 --- a/resource-manager/containerservice/2023-10-15/fleetupdatestrategies/method_listbyfleet.go +++ b/resource-manager/containerservice/2023-10-15/fleetupdatestrategies/method_listbyfleet.go @@ -23,6 +23,18 @@ type ListByFleetCompleteResult struct { Items []FleetUpdateStrategy } +type ListByFleetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFleetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFleet ... func (c FleetUpdateStrategiesClient) ListByFleet(ctx context.Context, id FleetId) (result ListByFleetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FleetUpdateStrategiesClient) ListByFleet(ctx context.Context, id FleetId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFleetCustomPager{}, Path: fmt.Sprintf("%s/updateStrategies", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-15/updateruns/method_createorupdate.go b/resource-manager/containerservice/2023-10-15/updateruns/method_createorupdate.go index 1b8012b44a0..77b246d571a 100644 --- a/resource-manager/containerservice/2023-10-15/updateruns/method_createorupdate.go +++ b/resource-manager/containerservice/2023-10-15/updateruns/method_createorupdate.go @@ -61,8 +61,8 @@ func (c UpdateRunsClient) CreateOrUpdate(ctx context.Context, id UpdateRunId, in http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-15/updateruns/method_delete.go b/resource-manager/containerservice/2023-10-15/updateruns/method_delete.go index 9f04055a3af..5987e76eb41 100644 --- a/resource-manager/containerservice/2023-10-15/updateruns/method_delete.go +++ b/resource-manager/containerservice/2023-10-15/updateruns/method_delete.go @@ -57,8 +57,8 @@ func (c UpdateRunsClient) Delete(ctx context.Context, id UpdateRunId, options De http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-15/updateruns/method_listbyfleet.go b/resource-manager/containerservice/2023-10-15/updateruns/method_listbyfleet.go index 0152acdf9ba..04c86d9f063 100644 --- a/resource-manager/containerservice/2023-10-15/updateruns/method_listbyfleet.go +++ b/resource-manager/containerservice/2023-10-15/updateruns/method_listbyfleet.go @@ -23,6 +23,18 @@ type ListByFleetCompleteResult struct { Items []UpdateRun } +type ListByFleetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFleetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFleet ... func (c UpdateRunsClient) ListByFleet(ctx context.Context, id FleetId) (result ListByFleetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UpdateRunsClient) ListByFleet(ctx context.Context, id FleetId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFleetCustomPager{}, Path: fmt.Sprintf("%s/updateRuns", id.ID()), } diff --git a/resource-manager/containerservice/2023-10-15/updateruns/method_start.go b/resource-manager/containerservice/2023-10-15/updateruns/method_start.go index a11200b431a..618fd2ad6f6 100644 --- a/resource-manager/containerservice/2023-10-15/updateruns/method_start.go +++ b/resource-manager/containerservice/2023-10-15/updateruns/method_start.go @@ -57,8 +57,8 @@ func (c UpdateRunsClient) Start(ctx context.Context, id UpdateRunId, options Sta http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/start", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/start", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2023-10-15/updateruns/method_stop.go b/resource-manager/containerservice/2023-10-15/updateruns/method_stop.go index 43953872960..507884b05e8 100644 --- a/resource-manager/containerservice/2023-10-15/updateruns/method_stop.go +++ b/resource-manager/containerservice/2023-10-15/updateruns/method_stop.go @@ -57,8 +57,8 @@ func (c UpdateRunsClient) Stop(ctx context.Context, id UpdateRunId, options Stop http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/stop", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/stop", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2024-01-01/agentpools/method_list.go b/resource-manager/containerservice/2024-01-01/agentpools/method_list.go index 0605599b57b..63350a29f6d 100644 --- a/resource-manager/containerservice/2024-01-01/agentpools/method_list.go +++ b/resource-manager/containerservice/2024-01-01/agentpools/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AgentPool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AgentPoolsClient) List(ctx context.Context, id commonids.KubernetesClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AgentPoolsClient) List(ctx context.Context, id commonids.KubernetesClust http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/agentPools", id.ID()), } diff --git a/resource-manager/containerservice/2024-01-01/maintenanceconfigurations/method_listbymanagedcluster.go b/resource-manager/containerservice/2024-01-01/maintenanceconfigurations/method_listbymanagedcluster.go index 1c56b7e90a3..f87e9032ed5 100644 --- a/resource-manager/containerservice/2024-01-01/maintenanceconfigurations/method_listbymanagedcluster.go +++ b/resource-manager/containerservice/2024-01-01/maintenanceconfigurations/method_listbymanagedcluster.go @@ -24,6 +24,18 @@ type ListByManagedClusterCompleteResult struct { Items []MaintenanceConfiguration } +type ListByManagedClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedCluster ... func (c MaintenanceConfigurationsClient) ListByManagedCluster(ctx context.Context, id commonids.KubernetesClusterId) (result ListByManagedClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MaintenanceConfigurationsClient) ListByManagedCluster(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedClusterCustomPager{}, Path: fmt.Sprintf("%s/maintenanceConfigurations", id.ID()), } diff --git a/resource-manager/containerservice/2024-01-01/managedclusters/method_getosoptions.go b/resource-manager/containerservice/2024-01-01/managedclusters/method_getosoptions.go index 8f4f629fc4d..f255b25649c 100644 --- a/resource-manager/containerservice/2024-01-01/managedclusters/method_getosoptions.go +++ b/resource-manager/containerservice/2024-01-01/managedclusters/method_getosoptions.go @@ -53,8 +53,8 @@ func (c ManagedClustersClient) GetOSOptions(ctx context.Context, id LocationId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/osOptions/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/osOptions/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2024-01-01/managedclusters/method_list.go b/resource-manager/containerservice/2024-01-01/managedclusters/method_list.go index ff3a6de380d..026d6c9e193 100644 --- a/resource-manager/containerservice/2024-01-01/managedclusters/method_list.go +++ b/resource-manager/containerservice/2024-01-01/managedclusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ManagedCluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusters", id.ID()), } diff --git a/resource-manager/containerservice/2024-01-01/managedclusters/method_listbyresourcegroup.go b/resource-manager/containerservice/2024-01-01/managedclusters/method_listbyresourcegroup.go index 3e1179070c9..3243b394520 100644 --- a/resource-manager/containerservice/2024-01-01/managedclusters/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2024-01-01/managedclusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedCluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusters", id.ID()), } diff --git a/resource-manager/containerservice/2024-01-01/managedclusters/method_listclusteradmincredentials.go b/resource-manager/containerservice/2024-01-01/managedclusters/method_listclusteradmincredentials.go index ffd25c8f6ec..c1281445462 100644 --- a/resource-manager/containerservice/2024-01-01/managedclusters/method_listclusteradmincredentials.go +++ b/resource-manager/containerservice/2024-01-01/managedclusters/method_listclusteradmincredentials.go @@ -54,8 +54,8 @@ func (c ManagedClustersClient) ListClusterAdminCredentials(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterAdminCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterAdminCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2024-01-01/managedclusters/method_listclustermonitoringusercredentials.go b/resource-manager/containerservice/2024-01-01/managedclusters/method_listclustermonitoringusercredentials.go index 085c52f9396..17ffc52bd4c 100644 --- a/resource-manager/containerservice/2024-01-01/managedclusters/method_listclustermonitoringusercredentials.go +++ b/resource-manager/containerservice/2024-01-01/managedclusters/method_listclustermonitoringusercredentials.go @@ -54,8 +54,8 @@ func (c ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterMonitoringUserCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterMonitoringUserCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2024-01-01/managedclusters/method_listclusterusercredentials.go b/resource-manager/containerservice/2024-01-01/managedclusters/method_listclusterusercredentials.go index b0a714473bd..20feffa4418 100644 --- a/resource-manager/containerservice/2024-01-01/managedclusters/method_listclusterusercredentials.go +++ b/resource-manager/containerservice/2024-01-01/managedclusters/method_listclusterusercredentials.go @@ -58,8 +58,8 @@ func (c ManagedClustersClient) ListClusterUserCredentials(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterUserCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterUserCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2024-01-01/managedclusters/method_listmeshrevisionprofiles.go b/resource-manager/containerservice/2024-01-01/managedclusters/method_listmeshrevisionprofiles.go index 5d4369abceb..0172addb23c 100644 --- a/resource-manager/containerservice/2024-01-01/managedclusters/method_listmeshrevisionprofiles.go +++ b/resource-manager/containerservice/2024-01-01/managedclusters/method_listmeshrevisionprofiles.go @@ -23,6 +23,18 @@ type ListMeshRevisionProfilesCompleteResult struct { Items []MeshRevisionProfile } +type ListMeshRevisionProfilesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMeshRevisionProfilesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMeshRevisionProfiles ... func (c ManagedClustersClient) ListMeshRevisionProfiles(ctx context.Context, id LocationId) (result ListMeshRevisionProfilesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedClustersClient) ListMeshRevisionProfiles(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMeshRevisionProfilesCustomPager{}, Path: fmt.Sprintf("%s/meshRevisionProfiles", id.ID()), } diff --git a/resource-manager/containerservice/2024-01-01/managedclusters/method_listmeshupgradeprofiles.go b/resource-manager/containerservice/2024-01-01/managedclusters/method_listmeshupgradeprofiles.go index e167f9c1329..b73c93f81a9 100644 --- a/resource-manager/containerservice/2024-01-01/managedclusters/method_listmeshupgradeprofiles.go +++ b/resource-manager/containerservice/2024-01-01/managedclusters/method_listmeshupgradeprofiles.go @@ -24,6 +24,18 @@ type ListMeshUpgradeProfilesCompleteResult struct { Items []MeshUpgradeProfile } +type ListMeshUpgradeProfilesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMeshUpgradeProfilesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMeshUpgradeProfiles ... func (c ManagedClustersClient) ListMeshUpgradeProfiles(ctx context.Context, id commonids.KubernetesClusterId) (result ListMeshUpgradeProfilesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListMeshUpgradeProfiles(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMeshUpgradeProfilesCustomPager{}, Path: fmt.Sprintf("%s/meshUpgradeProfiles", id.ID()), } diff --git a/resource-manager/containerservice/2024-01-01/managedclusters/method_listoutboundnetworkdependenciesendpoints.go b/resource-manager/containerservice/2024-01-01/managedclusters/method_listoutboundnetworkdependenciesendpoints.go index 3618a5a0b9d..21283e57ea3 100644 --- a/resource-manager/containerservice/2024-01-01/managedclusters/method_listoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/containerservice/2024-01-01/managedclusters/method_listoutboundnetworkdependenciesendpoints.go @@ -24,6 +24,18 @@ type ListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesEndpoints ... func (c ManagedClustersClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.KubernetesClusterId) (result ListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListOutboundNetworkDependenciesEndpoints(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/containerservice/2024-01-01/snapshots/method_list.go b/resource-manager/containerservice/2024-01-01/snapshots/method_list.go index 907fd6aaebe..340f60c09b1 100644 --- a/resource-manager/containerservice/2024-01-01/snapshots/method_list.go +++ b/resource-manager/containerservice/2024-01-01/snapshots/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Snapshot } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/snapshots", id.ID()), } diff --git a/resource-manager/containerservice/2024-01-01/snapshots/method_listbyresourcegroup.go b/resource-manager/containerservice/2024-01-01/snapshots/method_listbyresourcegroup.go index a16a05588b5..fb276c706e9 100644 --- a/resource-manager/containerservice/2024-01-01/snapshots/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2024-01-01/snapshots/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Snapshot } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/snapshots", id.ID()), } diff --git a/resource-manager/containerservice/2024-01-01/trustedaccess/method_rolebindingslist.go b/resource-manager/containerservice/2024-01-01/trustedaccess/method_rolebindingslist.go index d57d06bbc25..8c24b744a5d 100644 --- a/resource-manager/containerservice/2024-01-01/trustedaccess/method_rolebindingslist.go +++ b/resource-manager/containerservice/2024-01-01/trustedaccess/method_rolebindingslist.go @@ -24,6 +24,18 @@ type RoleBindingsListCompleteResult struct { Items []TrustedAccessRoleBinding } +type RoleBindingsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RoleBindingsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RoleBindingsList ... func (c TrustedAccessClient) RoleBindingsList(ctx context.Context, id commonids.KubernetesClusterId) (result RoleBindingsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TrustedAccessClient) RoleBindingsList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RoleBindingsListCustomPager{}, Path: fmt.Sprintf("%s/trustedAccessRoleBindings", id.ID()), } diff --git a/resource-manager/containerservice/2024-01-01/trustedaccess/method_roleslist.go b/resource-manager/containerservice/2024-01-01/trustedaccess/method_roleslist.go index 278827a7199..211cbf901bc 100644 --- a/resource-manager/containerservice/2024-01-01/trustedaccess/method_roleslist.go +++ b/resource-manager/containerservice/2024-01-01/trustedaccess/method_roleslist.go @@ -23,6 +23,18 @@ type RolesListCompleteResult struct { Items []TrustedAccessRole } +type RolesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RolesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RolesList ... func (c TrustedAccessClient) RolesList(ctx context.Context, id LocationId) (result RolesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TrustedAccessClient) RolesList(ctx context.Context, id LocationId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RolesListCustomPager{}, Path: fmt.Sprintf("%s/trustedAccessRoles", id.ID()), } diff --git a/resource-manager/containerservice/2024-02-01/agentpools/method_list.go b/resource-manager/containerservice/2024-02-01/agentpools/method_list.go index 0605599b57b..63350a29f6d 100644 --- a/resource-manager/containerservice/2024-02-01/agentpools/method_list.go +++ b/resource-manager/containerservice/2024-02-01/agentpools/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AgentPool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AgentPoolsClient) List(ctx context.Context, id commonids.KubernetesClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AgentPoolsClient) List(ctx context.Context, id commonids.KubernetesClust http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/agentPools", id.ID()), } diff --git a/resource-manager/containerservice/2024-02-01/maintenanceconfigurations/method_listbymanagedcluster.go b/resource-manager/containerservice/2024-02-01/maintenanceconfigurations/method_listbymanagedcluster.go index 1c56b7e90a3..f87e9032ed5 100644 --- a/resource-manager/containerservice/2024-02-01/maintenanceconfigurations/method_listbymanagedcluster.go +++ b/resource-manager/containerservice/2024-02-01/maintenanceconfigurations/method_listbymanagedcluster.go @@ -24,6 +24,18 @@ type ListByManagedClusterCompleteResult struct { Items []MaintenanceConfiguration } +type ListByManagedClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedCluster ... func (c MaintenanceConfigurationsClient) ListByManagedCluster(ctx context.Context, id commonids.KubernetesClusterId) (result ListByManagedClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MaintenanceConfigurationsClient) ListByManagedCluster(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedClusterCustomPager{}, Path: fmt.Sprintf("%s/maintenanceConfigurations", id.ID()), } diff --git a/resource-manager/containerservice/2024-02-01/managedclusters/method_getosoptions.go b/resource-manager/containerservice/2024-02-01/managedclusters/method_getosoptions.go index 8f4f629fc4d..f255b25649c 100644 --- a/resource-manager/containerservice/2024-02-01/managedclusters/method_getosoptions.go +++ b/resource-manager/containerservice/2024-02-01/managedclusters/method_getosoptions.go @@ -53,8 +53,8 @@ func (c ManagedClustersClient) GetOSOptions(ctx context.Context, id LocationId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/osOptions/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/osOptions/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2024-02-01/managedclusters/method_list.go b/resource-manager/containerservice/2024-02-01/managedclusters/method_list.go index ff3a6de380d..026d6c9e193 100644 --- a/resource-manager/containerservice/2024-02-01/managedclusters/method_list.go +++ b/resource-manager/containerservice/2024-02-01/managedclusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ManagedCluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusters", id.ID()), } diff --git a/resource-manager/containerservice/2024-02-01/managedclusters/method_listbyresourcegroup.go b/resource-manager/containerservice/2024-02-01/managedclusters/method_listbyresourcegroup.go index 3e1179070c9..3243b394520 100644 --- a/resource-manager/containerservice/2024-02-01/managedclusters/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2024-02-01/managedclusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedCluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/managedClusters", id.ID()), } diff --git a/resource-manager/containerservice/2024-02-01/managedclusters/method_listclusteradmincredentials.go b/resource-manager/containerservice/2024-02-01/managedclusters/method_listclusteradmincredentials.go index ffd25c8f6ec..c1281445462 100644 --- a/resource-manager/containerservice/2024-02-01/managedclusters/method_listclusteradmincredentials.go +++ b/resource-manager/containerservice/2024-02-01/managedclusters/method_listclusteradmincredentials.go @@ -54,8 +54,8 @@ func (c ManagedClustersClient) ListClusterAdminCredentials(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterAdminCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterAdminCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2024-02-01/managedclusters/method_listclustermonitoringusercredentials.go b/resource-manager/containerservice/2024-02-01/managedclusters/method_listclustermonitoringusercredentials.go index 085c52f9396..17ffc52bd4c 100644 --- a/resource-manager/containerservice/2024-02-01/managedclusters/method_listclustermonitoringusercredentials.go +++ b/resource-manager/containerservice/2024-02-01/managedclusters/method_listclustermonitoringusercredentials.go @@ -54,8 +54,8 @@ func (c ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterMonitoringUserCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterMonitoringUserCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2024-02-01/managedclusters/method_listclusterusercredentials.go b/resource-manager/containerservice/2024-02-01/managedclusters/method_listclusterusercredentials.go index b0a714473bd..20feffa4418 100644 --- a/resource-manager/containerservice/2024-02-01/managedclusters/method_listclusterusercredentials.go +++ b/resource-manager/containerservice/2024-02-01/managedclusters/method_listclusterusercredentials.go @@ -58,8 +58,8 @@ func (c ManagedClustersClient) ListClusterUserCredentials(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listClusterUserCredential", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listClusterUserCredential", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/containerservice/2024-02-01/managedclusters/method_listmeshrevisionprofiles.go b/resource-manager/containerservice/2024-02-01/managedclusters/method_listmeshrevisionprofiles.go index 5d4369abceb..0172addb23c 100644 --- a/resource-manager/containerservice/2024-02-01/managedclusters/method_listmeshrevisionprofiles.go +++ b/resource-manager/containerservice/2024-02-01/managedclusters/method_listmeshrevisionprofiles.go @@ -23,6 +23,18 @@ type ListMeshRevisionProfilesCompleteResult struct { Items []MeshRevisionProfile } +type ListMeshRevisionProfilesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMeshRevisionProfilesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMeshRevisionProfiles ... func (c ManagedClustersClient) ListMeshRevisionProfiles(ctx context.Context, id LocationId) (result ListMeshRevisionProfilesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedClustersClient) ListMeshRevisionProfiles(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMeshRevisionProfilesCustomPager{}, Path: fmt.Sprintf("%s/meshRevisionProfiles", id.ID()), } diff --git a/resource-manager/containerservice/2024-02-01/managedclusters/method_listmeshupgradeprofiles.go b/resource-manager/containerservice/2024-02-01/managedclusters/method_listmeshupgradeprofiles.go index e167f9c1329..b73c93f81a9 100644 --- a/resource-manager/containerservice/2024-02-01/managedclusters/method_listmeshupgradeprofiles.go +++ b/resource-manager/containerservice/2024-02-01/managedclusters/method_listmeshupgradeprofiles.go @@ -24,6 +24,18 @@ type ListMeshUpgradeProfilesCompleteResult struct { Items []MeshUpgradeProfile } +type ListMeshUpgradeProfilesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMeshUpgradeProfilesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMeshUpgradeProfiles ... func (c ManagedClustersClient) ListMeshUpgradeProfiles(ctx context.Context, id commonids.KubernetesClusterId) (result ListMeshUpgradeProfilesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListMeshUpgradeProfiles(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMeshUpgradeProfilesCustomPager{}, Path: fmt.Sprintf("%s/meshUpgradeProfiles", id.ID()), } diff --git a/resource-manager/containerservice/2024-02-01/managedclusters/method_listoutboundnetworkdependenciesendpoints.go b/resource-manager/containerservice/2024-02-01/managedclusters/method_listoutboundnetworkdependenciesendpoints.go index 3618a5a0b9d..21283e57ea3 100644 --- a/resource-manager/containerservice/2024-02-01/managedclusters/method_listoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/containerservice/2024-02-01/managedclusters/method_listoutboundnetworkdependenciesendpoints.go @@ -24,6 +24,18 @@ type ListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesEndpoints ... func (c ManagedClustersClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.KubernetesClusterId) (result ListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClustersClient) ListOutboundNetworkDependenciesEndpoints(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/containerservice/2024-02-01/snapshots/method_list.go b/resource-manager/containerservice/2024-02-01/snapshots/method_list.go index 907fd6aaebe..340f60c09b1 100644 --- a/resource-manager/containerservice/2024-02-01/snapshots/method_list.go +++ b/resource-manager/containerservice/2024-02-01/snapshots/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Snapshot } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/snapshots", id.ID()), } diff --git a/resource-manager/containerservice/2024-02-01/snapshots/method_listbyresourcegroup.go b/resource-manager/containerservice/2024-02-01/snapshots/method_listbyresourcegroup.go index a16a05588b5..fb276c706e9 100644 --- a/resource-manager/containerservice/2024-02-01/snapshots/method_listbyresourcegroup.go +++ b/resource-manager/containerservice/2024-02-01/snapshots/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Snapshot } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SnapshotsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ContainerService/snapshots", id.ID()), } diff --git a/resource-manager/containerservice/2024-02-01/trustedaccess/method_rolebindingslist.go b/resource-manager/containerservice/2024-02-01/trustedaccess/method_rolebindingslist.go index d57d06bbc25..8c24b744a5d 100644 --- a/resource-manager/containerservice/2024-02-01/trustedaccess/method_rolebindingslist.go +++ b/resource-manager/containerservice/2024-02-01/trustedaccess/method_rolebindingslist.go @@ -24,6 +24,18 @@ type RoleBindingsListCompleteResult struct { Items []TrustedAccessRoleBinding } +type RoleBindingsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RoleBindingsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RoleBindingsList ... func (c TrustedAccessClient) RoleBindingsList(ctx context.Context, id commonids.KubernetesClusterId) (result RoleBindingsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TrustedAccessClient) RoleBindingsList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RoleBindingsListCustomPager{}, Path: fmt.Sprintf("%s/trustedAccessRoleBindings", id.ID()), } diff --git a/resource-manager/containerservice/2024-02-01/trustedaccess/method_roleslist.go b/resource-manager/containerservice/2024-02-01/trustedaccess/method_roleslist.go index 278827a7199..211cbf901bc 100644 --- a/resource-manager/containerservice/2024-02-01/trustedaccess/method_roleslist.go +++ b/resource-manager/containerservice/2024-02-01/trustedaccess/method_roleslist.go @@ -23,6 +23,18 @@ type RolesListCompleteResult struct { Items []TrustedAccessRole } +type RolesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RolesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RolesList ... func (c TrustedAccessClient) RolesList(ctx context.Context, id LocationId) (result RolesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TrustedAccessClient) RolesList(ctx context.Context, id LocationId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RolesListCustomPager{}, Path: fmt.Sprintf("%s/trustedAccessRoles", id.ID()), } diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistmetrics.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistmetrics.go index 5ff8c4038bc..8747f3a471c 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistmetrics.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionListMetrics(ctx context.Context, id Collection http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistusages.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistusages.go index 85966e2d6d4..eaf8390c6a0 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistusages.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionListUsages(ctx context.Context, id CollectionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistmetrics.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistmetrics.go index 77f5f35fb50..9b26ee59ba2 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistmetrics.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionListMetrics(ctx context.Context, id C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistusages.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistusages.go index e0f102e2adc..1df08750fb2 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistusages.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionListUsages(ctx context.Context, id Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go index d3112d41ce2..725fbc82bf2 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionRegionListMetrics(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionregionlistmetrics.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionregionlistmetrics.go index 54500a93d2c..335458e0b4b 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionregionlistmetrics.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionRegionListMetrics(ctx context.Context, id Data http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go index 266e1739dcf..16c5eb70c05 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountRegionListMetrics(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistmetrics.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistmetrics.go index 4aaecb2a379..42ea855bbe4 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistmetrics.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountsListMetrics(ctx context.Context, id Data http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistusages.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistusages.go index b26a8d8eb25..fd740072dd9 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistusages.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountsListUsages(ctx context.Context, id Datab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistmetrics.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistmetrics.go index 38271520e97..22284462c5b 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistmetrics.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseListMetrics(ctx context.Context, id DatabaseId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistusages.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistusages.go index 66d54d5f964..46d21b5a89d 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistusages.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseListUsages(ctx context.Context, id DatabaseId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go index ec822ac16c7..123d59fc3cd 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PartitionKeyRangeIdListMetrics(ctx context.Context, id P http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go index 01471ce0ce7..0ef6c622f7f 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PartitionKeyRangeIdRegionListMetrics(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilelistmetrics.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilelistmetrics.go index 097b51259a3..3815628c1f6 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilelistmetrics.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilelistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileListMetrics(ctx context.Context, id DatabaseAc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go index cae7712a74d..ee2c78f33da 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileSourceTargetListMetrics(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentiletargetlistmetrics.go b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentiletargetlistmetrics.go index ad2b654c84b..8f757b3beba 100644 --- a/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentiletargetlistmetrics.go +++ b/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentiletargetlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileTargetListMetrics(ctx context.Context, id Targ http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablemongodbcollectionslist.go b/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablemongodbcollectionslist.go index 0f4a6d02672..78be84805fd 100644 --- a/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablemongodbcollectionslist.go +++ b/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablemongodbcollectionslist.go @@ -53,8 +53,8 @@ func (c RestorablesClient) RestorableMongodbCollectionsList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableMongodbCollections", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableMongodbCollections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablemongodbresourceslist.go b/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablemongodbresourceslist.go index 9aec0fe07ed..aa8793d9088 100644 --- a/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablemongodbresourceslist.go +++ b/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablemongodbresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableMongodbResourcesList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableMongodbResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableMongodbResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablesqlcontainerslist.go b/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablesqlcontainerslist.go index aa5c7a185d6..8e5272abbd7 100644 --- a/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablesqlcontainerslist.go +++ b/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablesqlcontainerslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableSqlContainersList(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableSqlContainers", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableSqlContainers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablesqlresourceslist.go b/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablesqlresourceslist.go index 41dd2e3d4de..0447b113b2e 100644 --- a/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablesqlresourceslist.go +++ b/resource-manager/cosmosdb/2022-05-15/restorables/method_restorablesqlresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableSqlResourcesList(ctx context.Context, id Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableSqlResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableSqlResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionlistmetrics.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionlistmetrics.go index 5ff8c4038bc..8747f3a471c 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionlistmetrics.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionListMetrics(ctx context.Context, id Collection http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionlistusages.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionlistusages.go index 85966e2d6d4..eaf8390c6a0 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionlistusages.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionlistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionListUsages(ctx context.Context, id CollectionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionpartitionlistmetrics.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionpartitionlistmetrics.go index 77f5f35fb50..9b26ee59ba2 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionpartitionlistmetrics.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionpartitionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionListMetrics(ctx context.Context, id C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionpartitionlistusages.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionpartitionlistusages.go index e0f102e2adc..1df08750fb2 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionpartitionlistusages.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionpartitionlistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionListUsages(ctx context.Context, id Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionpartitionregionlistmetrics.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionpartitionregionlistmetrics.go index d3112d41ce2..725fbc82bf2 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionpartitionregionlistmetrics.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionpartitionregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionRegionListMetrics(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionregionlistmetrics.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionregionlistmetrics.go index 54500a93d2c..335458e0b4b 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionregionlistmetrics.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_collectionregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionRegionListMetrics(ctx context.Context, id Data http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaseaccountregionlistmetrics.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaseaccountregionlistmetrics.go index 266e1739dcf..16c5eb70c05 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaseaccountregionlistmetrics.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaseaccountregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountRegionListMetrics(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaseaccountslistmetrics.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaseaccountslistmetrics.go index 4aaecb2a379..42ea855bbe4 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaseaccountslistmetrics.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaseaccountslistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountsListMetrics(ctx context.Context, id Data http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaseaccountslistusages.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaseaccountslistusages.go index b26a8d8eb25..fd740072dd9 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaseaccountslistusages.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaseaccountslistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountsListUsages(ctx context.Context, id Datab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaselistmetrics.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaselistmetrics.go index 38271520e97..22284462c5b 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaselistmetrics.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaselistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseListMetrics(ctx context.Context, id DatabaseId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaselistusages.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaselistusages.go index 66d54d5f964..46d21b5a89d 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaselistusages.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_databaselistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseListUsages(ctx context.Context, id DatabaseId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go index ec822ac16c7..123d59fc3cd 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PartitionKeyRangeIdListMetrics(ctx context.Context, id P http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go index 01471ce0ce7..0ef6c622f7f 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PartitionKeyRangeIdRegionListMetrics(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_percentilelistmetrics.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_percentilelistmetrics.go index 097b51259a3..3815628c1f6 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_percentilelistmetrics.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_percentilelistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileListMetrics(ctx context.Context, id DatabaseAc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_percentilesourcetargetlistmetrics.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_percentilesourcetargetlistmetrics.go index cae7712a74d..ee2c78f33da 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_percentilesourcetargetlistmetrics.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_percentilesourcetargetlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileSourceTargetListMetrics(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_percentiletargetlistmetrics.go b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_percentiletargetlistmetrics.go index ad2b654c84b..8f757b3beba 100644 --- a/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_percentiletargetlistmetrics.go +++ b/resource-manager/cosmosdb/2022-11-15/cosmosdb/method_percentiletargetlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileTargetListMetrics(ctx context.Context, id Targ http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablegremlingraphslist.go b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablegremlingraphslist.go index d4b0849ae88..79560702981 100644 --- a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablegremlingraphslist.go +++ b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablegremlingraphslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableGremlinGraphsList(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableGraphs", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableGraphs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablegremlinresourceslist.go b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablegremlinresourceslist.go index 507dd512e22..b4b2baaa38e 100644 --- a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablegremlinresourceslist.go +++ b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablegremlinresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableGremlinResourcesList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableGremlinResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableGremlinResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablemongodbcollectionslist.go b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablemongodbcollectionslist.go index e30c5a81749..36dbc2ed0af 100644 --- a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablemongodbcollectionslist.go +++ b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablemongodbcollectionslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableMongodbCollectionsList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableMongodbCollections", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableMongodbCollections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablemongodbresourceslist.go b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablemongodbresourceslist.go index 9aec0fe07ed..aa8793d9088 100644 --- a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablemongodbresourceslist.go +++ b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablemongodbresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableMongodbResourcesList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableMongodbResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableMongodbResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablesqlcontainerslist.go b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablesqlcontainerslist.go index aa5c7a185d6..8e5272abbd7 100644 --- a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablesqlcontainerslist.go +++ b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablesqlcontainerslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableSqlContainersList(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableSqlContainers", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableSqlContainers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablesqlresourceslist.go b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablesqlresourceslist.go index 41dd2e3d4de..0447b113b2e 100644 --- a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablesqlresourceslist.go +++ b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorablesqlresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableSqlResourcesList(ctx context.Context, id Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableSqlResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableSqlResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorabletableresourceslist.go b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorabletableresourceslist.go index 8b7664fbc92..fac595e97cf 100644 --- a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorabletableresourceslist.go +++ b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorabletableresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableTableResourcesList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableTableResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableTableResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorabletableslist.go b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorabletableslist.go index 90f51ade69d..1cd08b2da3e 100644 --- a/resource-manager/cosmosdb/2022-11-15/restorables/method_restorabletableslist.go +++ b/resource-manager/cosmosdb/2022-11-15/restorables/method_restorabletableslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableTablesList(ctx context.Context, id Restorab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableTables", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableTables", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionlistmetrics.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionlistmetrics.go index 5ff8c4038bc..8747f3a471c 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionListMetrics(ctx context.Context, id Collection http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionlistusages.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionlistusages.go index 85966e2d6d4..eaf8390c6a0 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionlistusages.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionlistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionListUsages(ctx context.Context, id CollectionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionpartitionlistmetrics.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionpartitionlistmetrics.go index 77f5f35fb50..9b26ee59ba2 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionpartitionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionpartitionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionListMetrics(ctx context.Context, id C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionpartitionlistusages.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionpartitionlistusages.go index e0f102e2adc..1df08750fb2 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionpartitionlistusages.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionpartitionlistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionListUsages(ctx context.Context, id Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionpartitionregionlistmetrics.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionpartitionregionlistmetrics.go index d3112d41ce2..725fbc82bf2 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionpartitionregionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionpartitionregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionRegionListMetrics(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionregionlistmetrics.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionregionlistmetrics.go index 54500a93d2c..335458e0b4b 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionregionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_collectionregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionRegionListMetrics(ctx context.Context, id Data http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaseaccountregionlistmetrics.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaseaccountregionlistmetrics.go index 266e1739dcf..16c5eb70c05 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaseaccountregionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaseaccountregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountRegionListMetrics(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaseaccountslistmetrics.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaseaccountslistmetrics.go index 4aaecb2a379..42ea855bbe4 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaseaccountslistmetrics.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaseaccountslistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountsListMetrics(ctx context.Context, id Data http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaseaccountslistusages.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaseaccountslistusages.go index b26a8d8eb25..fd740072dd9 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaseaccountslistusages.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaseaccountslistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountsListUsages(ctx context.Context, id Datab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaselistmetrics.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaselistmetrics.go index 38271520e97..22284462c5b 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaselistmetrics.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaselistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseListMetrics(ctx context.Context, id DatabaseId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaselistusages.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaselistusages.go index 66d54d5f964..46d21b5a89d 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaselistusages.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_databaselistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseListUsages(ctx context.Context, id DatabaseId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go index ec822ac16c7..123d59fc3cd 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PartitionKeyRangeIdListMetrics(ctx context.Context, id P http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go index 01471ce0ce7..0ef6c622f7f 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PartitionKeyRangeIdRegionListMetrics(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_percentilelistmetrics.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_percentilelistmetrics.go index 097b51259a3..3815628c1f6 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_percentilelistmetrics.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_percentilelistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileListMetrics(ctx context.Context, id DatabaseAc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_percentilesourcetargetlistmetrics.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_percentilesourcetargetlistmetrics.go index cae7712a74d..ee2c78f33da 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_percentilesourcetargetlistmetrics.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_percentilesourcetargetlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileSourceTargetListMetrics(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_percentiletargetlistmetrics.go b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_percentiletargetlistmetrics.go index ad2b654c84b..8f757b3beba 100644 --- a/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_percentiletargetlistmetrics.go +++ b/resource-manager/cosmosdb/2023-04-15/cosmosdb/method_percentiletargetlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileTargetListMetrics(ctx context.Context, id Targ http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablegremlingraphslist.go b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablegremlingraphslist.go index d4b0849ae88..79560702981 100644 --- a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablegremlingraphslist.go +++ b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablegremlingraphslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableGremlinGraphsList(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableGraphs", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableGraphs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablegremlinresourceslist.go b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablegremlinresourceslist.go index 507dd512e22..b4b2baaa38e 100644 --- a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablegremlinresourceslist.go +++ b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablegremlinresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableGremlinResourcesList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableGremlinResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableGremlinResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablemongodbcollectionslist.go b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablemongodbcollectionslist.go index e30c5a81749..36dbc2ed0af 100644 --- a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablemongodbcollectionslist.go +++ b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablemongodbcollectionslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableMongodbCollectionsList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableMongodbCollections", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableMongodbCollections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablemongodbresourceslist.go b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablemongodbresourceslist.go index 9aec0fe07ed..aa8793d9088 100644 --- a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablemongodbresourceslist.go +++ b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablemongodbresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableMongodbResourcesList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableMongodbResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableMongodbResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablesqlcontainerslist.go b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablesqlcontainerslist.go index aa5c7a185d6..8e5272abbd7 100644 --- a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablesqlcontainerslist.go +++ b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablesqlcontainerslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableSqlContainersList(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableSqlContainers", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableSqlContainers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablesqlresourceslist.go b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablesqlresourceslist.go index 41dd2e3d4de..0447b113b2e 100644 --- a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablesqlresourceslist.go +++ b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorablesqlresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableSqlResourcesList(ctx context.Context, id Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableSqlResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableSqlResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorabletableresourceslist.go b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorabletableresourceslist.go index 8b7664fbc92..fac595e97cf 100644 --- a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorabletableresourceslist.go +++ b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorabletableresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableTableResourcesList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableTableResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableTableResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorabletableslist.go b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorabletableslist.go index 90f51ade69d..1cd08b2da3e 100644 --- a/resource-manager/cosmosdb/2023-04-15/restorables/method_restorabletableslist.go +++ b/resource-manager/cosmosdb/2023-04-15/restorables/method_restorabletableslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableTablesList(ctx context.Context, id Restorab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableTables", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableTables", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionlistmetrics.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionlistmetrics.go index 5ff8c4038bc..8747f3a471c 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionListMetrics(ctx context.Context, id Collection http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionlistusages.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionlistusages.go index 85966e2d6d4..eaf8390c6a0 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionlistusages.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionlistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionListUsages(ctx context.Context, id CollectionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionpartitionlistmetrics.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionpartitionlistmetrics.go index 77f5f35fb50..9b26ee59ba2 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionpartitionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionpartitionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionListMetrics(ctx context.Context, id C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionpartitionlistusages.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionpartitionlistusages.go index e0f102e2adc..1df08750fb2 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionpartitionlistusages.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionpartitionlistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionListUsages(ctx context.Context, id Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionpartitionregionlistmetrics.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionpartitionregionlistmetrics.go index d3112d41ce2..725fbc82bf2 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionpartitionregionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionpartitionregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionRegionListMetrics(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionregionlistmetrics.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionregionlistmetrics.go index 54500a93d2c..335458e0b4b 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionregionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_collectionregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionRegionListMetrics(ctx context.Context, id Data http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaseaccountregionlistmetrics.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaseaccountregionlistmetrics.go index 266e1739dcf..16c5eb70c05 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaseaccountregionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaseaccountregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountRegionListMetrics(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaseaccountslistmetrics.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaseaccountslistmetrics.go index 4aaecb2a379..42ea855bbe4 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaseaccountslistmetrics.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaseaccountslistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountsListMetrics(ctx context.Context, id Data http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaseaccountslistusages.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaseaccountslistusages.go index b26a8d8eb25..fd740072dd9 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaseaccountslistusages.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaseaccountslistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountsListUsages(ctx context.Context, id Datab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaselistmetrics.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaselistmetrics.go index 38271520e97..22284462c5b 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaselistmetrics.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaselistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseListMetrics(ctx context.Context, id DatabaseId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaselistusages.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaselistusages.go index 66d54d5f964..46d21b5a89d 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaselistusages.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_databaselistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseListUsages(ctx context.Context, id DatabaseId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go index ec822ac16c7..123d59fc3cd 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PartitionKeyRangeIdListMetrics(ctx context.Context, id P http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go index 01471ce0ce7..0ef6c622f7f 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PartitionKeyRangeIdRegionListMetrics(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_percentilelistmetrics.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_percentilelistmetrics.go index 097b51259a3..3815628c1f6 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_percentilelistmetrics.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_percentilelistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileListMetrics(ctx context.Context, id DatabaseAc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_percentilesourcetargetlistmetrics.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_percentilesourcetargetlistmetrics.go index cae7712a74d..ee2c78f33da 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_percentilesourcetargetlistmetrics.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_percentilesourcetargetlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileSourceTargetListMetrics(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_percentiletargetlistmetrics.go b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_percentiletargetlistmetrics.go index ad2b654c84b..8f757b3beba 100644 --- a/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_percentiletargetlistmetrics.go +++ b/resource-manager/cosmosdb/2023-09-15/cosmosdb/method_percentiletargetlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileTargetListMetrics(ctx context.Context, id Targ http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablegremlingraphslist.go b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablegremlingraphslist.go index d4b0849ae88..79560702981 100644 --- a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablegremlingraphslist.go +++ b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablegremlingraphslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableGremlinGraphsList(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableGraphs", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableGraphs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablegremlinresourceslist.go b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablegremlinresourceslist.go index 507dd512e22..b4b2baaa38e 100644 --- a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablegremlinresourceslist.go +++ b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablegremlinresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableGremlinResourcesList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableGremlinResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableGremlinResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablemongodbcollectionslist.go b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablemongodbcollectionslist.go index e30c5a81749..36dbc2ed0af 100644 --- a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablemongodbcollectionslist.go +++ b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablemongodbcollectionslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableMongodbCollectionsList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableMongodbCollections", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableMongodbCollections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablemongodbresourceslist.go b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablemongodbresourceslist.go index 9aec0fe07ed..aa8793d9088 100644 --- a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablemongodbresourceslist.go +++ b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablemongodbresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableMongodbResourcesList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableMongodbResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableMongodbResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablesqlcontainerslist.go b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablesqlcontainerslist.go index aa5c7a185d6..8e5272abbd7 100644 --- a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablesqlcontainerslist.go +++ b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablesqlcontainerslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableSqlContainersList(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableSqlContainers", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableSqlContainers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablesqlresourceslist.go b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablesqlresourceslist.go index 41dd2e3d4de..0447b113b2e 100644 --- a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablesqlresourceslist.go +++ b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorablesqlresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableSqlResourcesList(ctx context.Context, id Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableSqlResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableSqlResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorabletableresourceslist.go b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorabletableresourceslist.go index 8b7664fbc92..fac595e97cf 100644 --- a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorabletableresourceslist.go +++ b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorabletableresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableTableResourcesList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableTableResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableTableResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorabletableslist.go b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorabletableslist.go index 90f51ade69d..1cd08b2da3e 100644 --- a/resource-manager/cosmosdb/2023-09-15/restorables/method_restorabletableslist.go +++ b/resource-manager/cosmosdb/2023-09-15/restorables/method_restorabletableslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableTablesList(ctx context.Context, id Restorab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableTables", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableTables", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionlistmetrics.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionlistmetrics.go index 5ff8c4038bc..8747f3a471c 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionListMetrics(ctx context.Context, id Collection http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionlistusages.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionlistusages.go index 85966e2d6d4..eaf8390c6a0 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionlistusages.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionlistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionListUsages(ctx context.Context, id CollectionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionpartitionlistmetrics.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionpartitionlistmetrics.go index 77f5f35fb50..9b26ee59ba2 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionpartitionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionpartitionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionListMetrics(ctx context.Context, id C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionpartitionlistusages.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionpartitionlistusages.go index e0f102e2adc..1df08750fb2 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionpartitionlistusages.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionpartitionlistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionListUsages(ctx context.Context, id Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionpartitionregionlistmetrics.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionpartitionregionlistmetrics.go index d3112d41ce2..725fbc82bf2 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionpartitionregionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionpartitionregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionRegionListMetrics(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionregionlistmetrics.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionregionlistmetrics.go index 54500a93d2c..335458e0b4b 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionregionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_collectionregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionRegionListMetrics(ctx context.Context, id Data http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaseaccountregionlistmetrics.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaseaccountregionlistmetrics.go index 266e1739dcf..16c5eb70c05 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaseaccountregionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaseaccountregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountRegionListMetrics(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaseaccountslistmetrics.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaseaccountslistmetrics.go index 4aaecb2a379..42ea855bbe4 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaseaccountslistmetrics.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaseaccountslistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountsListMetrics(ctx context.Context, id Data http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaseaccountslistusages.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaseaccountslistusages.go index b26a8d8eb25..fd740072dd9 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaseaccountslistusages.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaseaccountslistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountsListUsages(ctx context.Context, id Datab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaselistmetrics.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaselistmetrics.go index 38271520e97..22284462c5b 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaselistmetrics.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaselistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseListMetrics(ctx context.Context, id DatabaseId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaselistusages.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaselistusages.go index 66d54d5f964..46d21b5a89d 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaselistusages.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_databaselistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseListUsages(ctx context.Context, id DatabaseId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go index ec822ac16c7..123d59fc3cd 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PartitionKeyRangeIdListMetrics(ctx context.Context, id P http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go index 01471ce0ce7..0ef6c622f7f 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PartitionKeyRangeIdRegionListMetrics(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_percentilelistmetrics.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_percentilelistmetrics.go index 097b51259a3..3815628c1f6 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_percentilelistmetrics.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_percentilelistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileListMetrics(ctx context.Context, id DatabaseAc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_percentilesourcetargetlistmetrics.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_percentilesourcetargetlistmetrics.go index cae7712a74d..ee2c78f33da 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_percentilesourcetargetlistmetrics.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_percentilesourcetargetlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileSourceTargetListMetrics(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_percentiletargetlistmetrics.go b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_percentiletargetlistmetrics.go index ad2b654c84b..8f757b3beba 100644 --- a/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_percentiletargetlistmetrics.go +++ b/resource-manager/cosmosdb/2023-11-15/cosmosdb/method_percentiletargetlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileTargetListMetrics(ctx context.Context, id Targ http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablegremlingraphslist.go b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablegremlingraphslist.go index d4b0849ae88..79560702981 100644 --- a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablegremlingraphslist.go +++ b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablegremlingraphslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableGremlinGraphsList(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableGraphs", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableGraphs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablegremlinresourceslist.go b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablegremlinresourceslist.go index 507dd512e22..b4b2baaa38e 100644 --- a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablegremlinresourceslist.go +++ b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablegremlinresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableGremlinResourcesList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableGremlinResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableGremlinResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablemongodbcollectionslist.go b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablemongodbcollectionslist.go index e30c5a81749..36dbc2ed0af 100644 --- a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablemongodbcollectionslist.go +++ b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablemongodbcollectionslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableMongodbCollectionsList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableMongodbCollections", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableMongodbCollections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablemongodbresourceslist.go b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablemongodbresourceslist.go index 9aec0fe07ed..aa8793d9088 100644 --- a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablemongodbresourceslist.go +++ b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablemongodbresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableMongodbResourcesList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableMongodbResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableMongodbResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablesqlcontainerslist.go b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablesqlcontainerslist.go index aa5c7a185d6..8e5272abbd7 100644 --- a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablesqlcontainerslist.go +++ b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablesqlcontainerslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableSqlContainersList(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableSqlContainers", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableSqlContainers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablesqlresourceslist.go b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablesqlresourceslist.go index 41dd2e3d4de..0447b113b2e 100644 --- a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablesqlresourceslist.go +++ b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorablesqlresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableSqlResourcesList(ctx context.Context, id Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableSqlResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableSqlResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorabletableresourceslist.go b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorabletableresourceslist.go index 8b7664fbc92..fac595e97cf 100644 --- a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorabletableresourceslist.go +++ b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorabletableresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableTableResourcesList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableTableResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableTableResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorabletableslist.go b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorabletableslist.go index 90f51ade69d..1cd08b2da3e 100644 --- a/resource-manager/cosmosdb/2023-11-15/restorables/method_restorabletableslist.go +++ b/resource-manager/cosmosdb/2023-11-15/restorables/method_restorabletableslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableTablesList(ctx context.Context, id Restorab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableTables", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableTables", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistmetrics.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistmetrics.go index 5ff8c4038bc..8747f3a471c 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistmetrics.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionListMetrics(ctx context.Context, id Collection http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistusages.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistusages.go index 85966e2d6d4..eaf8390c6a0 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistusages.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionListUsages(ctx context.Context, id CollectionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistmetrics.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistmetrics.go index 77f5f35fb50..9b26ee59ba2 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistmetrics.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionListMetrics(ctx context.Context, id C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistusages.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistusages.go index e0f102e2adc..1df08750fb2 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistusages.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionListUsages(ctx context.Context, id Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go index d3112d41ce2..725fbc82bf2 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionPartitionRegionListMetrics(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/partitions/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionregionlistmetrics.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionregionlistmetrics.go index 54500a93d2c..335458e0b4b 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionregionlistmetrics.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) CollectionRegionListMetrics(ctx context.Context, id Data http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go index 266e1739dcf..16c5eb70c05 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountRegionListMetrics(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistmetrics.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistmetrics.go index 4aaecb2a379..42ea855bbe4 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistmetrics.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountsListMetrics(ctx context.Context, id Data http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistusages.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistusages.go index b26a8d8eb25..fd740072dd9 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistusages.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseAccountsListUsages(ctx context.Context, id Datab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistmetrics.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistmetrics.go index 38271520e97..22284462c5b 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistmetrics.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseListMetrics(ctx context.Context, id DatabaseId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistusages.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistusages.go index 66d54d5f964..46d21b5a89d 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistusages.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistusages.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) DatabaseListUsages(ctx context.Context, id DatabaseId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go index ec822ac16c7..123d59fc3cd 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PartitionKeyRangeIdListMetrics(ctx context.Context, id P http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go index 01471ce0ce7..0ef6c622f7f 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PartitionKeyRangeIdRegionListMetrics(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilelistmetrics.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilelistmetrics.go index 097b51259a3..3815628c1f6 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilelistmetrics.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilelistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileListMetrics(ctx context.Context, id DatabaseAc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go index cae7712a74d..ee2c78f33da 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileSourceTargetListMetrics(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentiletargetlistmetrics.go b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentiletargetlistmetrics.go index ad2b654c84b..8f757b3beba 100644 --- a/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentiletargetlistmetrics.go +++ b/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentiletargetlistmetrics.go @@ -53,8 +53,8 @@ func (c CosmosDBClient) PercentileTargetListMetrics(ctx context.Context, id Targ http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/percentile/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablegremlingraphslist.go b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablegremlingraphslist.go index d4b0849ae88..79560702981 100644 --- a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablegremlingraphslist.go +++ b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablegremlingraphslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableGremlinGraphsList(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableGraphs", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableGraphs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablegremlinresourceslist.go b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablegremlinresourceslist.go index 507dd512e22..b4b2baaa38e 100644 --- a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablegremlinresourceslist.go +++ b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablegremlinresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableGremlinResourcesList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableGremlinResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableGremlinResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablemongodbcollectionslist.go b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablemongodbcollectionslist.go index e30c5a81749..36dbc2ed0af 100644 --- a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablemongodbcollectionslist.go +++ b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablemongodbcollectionslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableMongodbCollectionsList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableMongodbCollections", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableMongodbCollections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablemongodbresourceslist.go b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablemongodbresourceslist.go index 9aec0fe07ed..aa8793d9088 100644 --- a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablemongodbresourceslist.go +++ b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablemongodbresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableMongodbResourcesList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableMongodbResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableMongodbResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablesqlcontainerslist.go b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablesqlcontainerslist.go index aa5c7a185d6..8e5272abbd7 100644 --- a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablesqlcontainerslist.go +++ b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablesqlcontainerslist.go @@ -61,8 +61,8 @@ func (c RestorablesClient) RestorableSqlContainersList(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableSqlContainers", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableSqlContainers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablesqlresourceslist.go b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablesqlresourceslist.go index 41dd2e3d4de..0447b113b2e 100644 --- a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablesqlresourceslist.go +++ b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorablesqlresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableSqlResourcesList(ctx context.Context, id Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableSqlResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableSqlResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorabletableresourceslist.go b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorabletableresourceslist.go index 8b7664fbc92..fac595e97cf 100644 --- a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorabletableresourceslist.go +++ b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorabletableresourceslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableTableResourcesList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableTableResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableTableResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorabletableslist.go b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorabletableslist.go index 90f51ade69d..1cd08b2da3e 100644 --- a/resource-manager/cosmosdb/2024-05-15/restorables/method_restorabletableslist.go +++ b/resource-manager/cosmosdb/2024-05-15/restorables/method_restorabletableslist.go @@ -57,8 +57,8 @@ func (c RestorablesClient) RestorableTablesList(ctx context.Context, id Restorab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/restorableTables", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restorableTables", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2021-10-01/alerts/method_list.go b/resource-manager/costmanagement/2021-10-01/alerts/method_list.go index 2bbc3017108..9312398983b 100644 --- a/resource-manager/costmanagement/2021-10-01/alerts/method_list.go +++ b/resource-manager/costmanagement/2021-10-01/alerts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertsClient) List(ctx context.Context, id commonids.ScopeId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/alerts", id.ID()), } diff --git a/resource-manager/costmanagement/2021-10-01/alerts/method_listexternal.go b/resource-manager/costmanagement/2021-10-01/alerts/method_listexternal.go index 9bc4ee02d44..277db0bb08f 100644 --- a/resource-manager/costmanagement/2021-10-01/alerts/method_listexternal.go +++ b/resource-manager/costmanagement/2021-10-01/alerts/method_listexternal.go @@ -23,6 +23,18 @@ type ListExternalCompleteResult struct { Items []Alert } +type ListExternalCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListExternalCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListExternal ... func (c AlertsClient) ListExternal(ctx context.Context, id ExternalCloudProviderTypeId) (result ListExternalOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AlertsClient) ListExternal(ctx context.Context, id ExternalCloudProvider http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListExternalCustomPager{}, Path: fmt.Sprintf("%s/alerts", id.ID()), } diff --git a/resource-manager/costmanagement/2021-10-01/dimensions/method_byexternalcloudprovidertype.go b/resource-manager/costmanagement/2021-10-01/dimensions/method_byexternalcloudprovidertype.go index d735750cfc2..16a01eb231f 100644 --- a/resource-manager/costmanagement/2021-10-01/dimensions/method_byexternalcloudprovidertype.go +++ b/resource-manager/costmanagement/2021-10-01/dimensions/method_byexternalcloudprovidertype.go @@ -61,8 +61,8 @@ func (c DimensionsClient) ByExternalCloudProviderType(ctx context.Context, id Ex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/dimensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/dimensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2021-10-01/dimensions/method_list.go b/resource-manager/costmanagement/2021-10-01/dimensions/method_list.go index 987c847c529..3b15e130078 100644 --- a/resource-manager/costmanagement/2021-10-01/dimensions/method_list.go +++ b/resource-manager/costmanagement/2021-10-01/dimensions/method_list.go @@ -63,8 +63,8 @@ func (c DimensionsClient) List(ctx context.Context, id commonids.ScopeId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/dimensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/dimensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2021-10-01/exports/method_get.go b/resource-manager/costmanagement/2021-10-01/exports/method_get.go index 6fd164e5ad0..bed88c94514 100644 --- a/resource-manager/costmanagement/2021-10-01/exports/method_get.go +++ b/resource-manager/costmanagement/2021-10-01/exports/method_get.go @@ -53,8 +53,8 @@ func (c ExportsClient) Get(ctx context.Context, id ScopedExportId, options GetOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2021-10-01/exports/method_list.go b/resource-manager/costmanagement/2021-10-01/exports/method_list.go index fd32a5808ce..6b9e0d7ef58 100644 --- a/resource-manager/costmanagement/2021-10-01/exports/method_list.go +++ b/resource-manager/costmanagement/2021-10-01/exports/method_list.go @@ -54,8 +54,8 @@ func (c ExportsClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/exports", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/exports", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2021-10-01/forecast/method_externalcloudproviderusage.go b/resource-manager/costmanagement/2021-10-01/forecast/method_externalcloudproviderusage.go index 5c2bdd9bab3..d766f670cb8 100644 --- a/resource-manager/costmanagement/2021-10-01/forecast/method_externalcloudproviderusage.go +++ b/resource-manager/costmanagement/2021-10-01/forecast/method_externalcloudproviderusage.go @@ -53,8 +53,8 @@ func (c ForecastClient) ExternalCloudProviderUsage(ctx context.Context, id Exter http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/forecast", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/forecast", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2021-10-01/forecast/method_usage.go b/resource-manager/costmanagement/2021-10-01/forecast/method_usage.go index 8a919dc90cf..2c7a09642b7 100644 --- a/resource-manager/costmanagement/2021-10-01/forecast/method_usage.go +++ b/resource-manager/costmanagement/2021-10-01/forecast/method_usage.go @@ -55,8 +55,8 @@ func (c ForecastClient) Usage(ctx context.Context, id commonids.ScopeId, input F http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/forecast", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/forecast", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2021-10-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go b/resource-manager/costmanagement/2021-10-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go index 8d3d6ab95f4..08e7caf3c72 100644 --- a/resource-manager/costmanagement/2021-10-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go +++ b/resource-manager/costmanagement/2021-10-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go @@ -61,8 +61,8 @@ func (c ReservedInstancesClient) GenerateReservationDetailsReportByBillingAccoun http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2021-10-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go b/resource-manager/costmanagement/2021-10-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go index 60ea3246ee0..4a8c6bbf57e 100644 --- a/resource-manager/costmanagement/2021-10-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go +++ b/resource-manager/costmanagement/2021-10-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go @@ -61,8 +61,8 @@ func (c ReservedInstancesClient) GenerateReservationDetailsReportByBillingProfil http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2021-10-01/views/method_list.go b/resource-manager/costmanagement/2021-10-01/views/method_list.go index 4518ba3ed03..b076df9b3e8 100644 --- a/resource-manager/costmanagement/2021-10-01/views/method_list.go +++ b/resource-manager/costmanagement/2021-10-01/views/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []View } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ViewsClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ViewsClient) List(ctx context.Context) (result ListOperationResponse, er http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.CostManagement/views", } diff --git a/resource-manager/costmanagement/2021-10-01/views/method_listbyscope.go b/resource-manager/costmanagement/2021-10-01/views/method_listbyscope.go index bbf11582ec8..27b2f787330 100644 --- a/resource-manager/costmanagement/2021-10-01/views/method_listbyscope.go +++ b/resource-manager/costmanagement/2021-10-01/views/method_listbyscope.go @@ -24,6 +24,18 @@ type ListByScopeCompleteResult struct { Items []View } +type ListByScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScope ... func (c ViewsClient) ListByScope(ctx context.Context, id commonids.ScopeId) (result ListByScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ViewsClient) ListByScope(ctx context.Context, id commonids.ScopeId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByScopeCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/views", id.ID()), } diff --git a/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_list.go b/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_list.go index 6be318922be..57b3efc62dd 100644 --- a/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_list.go +++ b/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScheduledActionsClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ScheduledActionsClient) List(ctx context.Context, options ListOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.CostManagement/scheduledActions", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.CostManagement/scheduledActions", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_listbyscope.go b/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_listbyscope.go index 9685f87cf0d..959bc9896b8 100644 --- a/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_listbyscope.go +++ b/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_listbyscope.go @@ -51,6 +51,18 @@ func (o ListByScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScope ... func (c ScheduledActionsClient) ListByScope(ctx context.Context, id commonids.ScopeId, options ListByScopeOperationOptions) (result ListByScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ScheduledActionsClient) ListByScope(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/scheduledActions", id.ID()), OptionsObject: options, + Pager: &ListByScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/scheduledActions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/alerts/method_list.go b/resource-manager/costmanagement/2022-10-01/alerts/method_list.go index 2bbc3017108..9312398983b 100644 --- a/resource-manager/costmanagement/2022-10-01/alerts/method_list.go +++ b/resource-manager/costmanagement/2022-10-01/alerts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertsClient) List(ctx context.Context, id commonids.ScopeId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/alerts", id.ID()), } diff --git a/resource-manager/costmanagement/2022-10-01/alerts/method_listexternal.go b/resource-manager/costmanagement/2022-10-01/alerts/method_listexternal.go index 9bc4ee02d44..277db0bb08f 100644 --- a/resource-manager/costmanagement/2022-10-01/alerts/method_listexternal.go +++ b/resource-manager/costmanagement/2022-10-01/alerts/method_listexternal.go @@ -23,6 +23,18 @@ type ListExternalCompleteResult struct { Items []Alert } +type ListExternalCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListExternalCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListExternal ... func (c AlertsClient) ListExternal(ctx context.Context, id ExternalCloudProviderTypeId) (result ListExternalOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AlertsClient) ListExternal(ctx context.Context, id ExternalCloudProvider http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListExternalCustomPager{}, Path: fmt.Sprintf("%s/alerts", id.ID()), } diff --git a/resource-manager/costmanagement/2022-10-01/benefitrecommendations/method_list.go b/resource-manager/costmanagement/2022-10-01/benefitrecommendations/method_list.go index 135b9470159..27da9258c6b 100644 --- a/resource-manager/costmanagement/2022-10-01/benefitrecommendations/method_list.go +++ b/resource-manager/costmanagement/2022-10-01/benefitrecommendations/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BenefitRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c BenefitRecommendationsClient) List(ctx context.Context, id commonids.Sco http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitRecommendations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitRecommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbybillingaccountid.go b/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbybillingaccountid.go index 5e6680ab470..e541d866d32 100644 --- a/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbybillingaccountid.go +++ b/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbybillingaccountid.go @@ -55,6 +55,18 @@ func (o ListByBillingAccountIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccountId ... func (c BenefitUtilizationSummariesClient) ListByBillingAccountId(ctx context.Context, id BillingAccountId, options ListByBillingAccountIdOperationOptions) (result ListByBillingAccountIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListByBillingAccountId(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbybillingprofileid.go b/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbybillingprofileid.go index addf46ff2ef..5e0b8f92cce 100644 --- a/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbybillingprofileid.go +++ b/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbybillingprofileid.go @@ -55,6 +55,18 @@ func (o ListByBillingProfileIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfileId ... func (c BenefitUtilizationSummariesClient) ListByBillingProfileId(ctx context.Context, id BillingProfileId, options ListByBillingProfileIdOperationOptions) (result ListByBillingProfileIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListByBillingProfileId(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbysavingsplanid.go b/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbysavingsplanid.go index f61276b0a04..01c5f8c1032 100644 --- a/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbysavingsplanid.go +++ b/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbysavingsplanid.go @@ -55,6 +55,18 @@ func (o ListBySavingsPlanIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySavingsPlanIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySavingsPlanIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySavingsPlanId ... func (c BenefitUtilizationSummariesClient) ListBySavingsPlanId(ctx context.Context, id SavingsPlanId, options ListBySavingsPlanIdOperationOptions) (result ListBySavingsPlanIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListBySavingsPlanId(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListBySavingsPlanIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbysavingsplanorder.go b/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbysavingsplanorder.go index 9043e2d4350..c7b749ca32a 100644 --- a/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbysavingsplanorder.go +++ b/resource-manager/costmanagement/2022-10-01/benefitutilizationsummaries/method_listbysavingsplanorder.go @@ -55,6 +55,18 @@ func (o ListBySavingsPlanOrderOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySavingsPlanOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySavingsPlanOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySavingsPlanOrder ... func (c BenefitUtilizationSummariesClient) ListBySavingsPlanOrder(ctx context.Context, id SavingsPlanOrderId, options ListBySavingsPlanOrderOperationOptions) (result ListBySavingsPlanOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListBySavingsPlanOrder(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListBySavingsPlanOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/dimensions/method_byexternalcloudprovidertype.go b/resource-manager/costmanagement/2022-10-01/dimensions/method_byexternalcloudprovidertype.go index d735750cfc2..16a01eb231f 100644 --- a/resource-manager/costmanagement/2022-10-01/dimensions/method_byexternalcloudprovidertype.go +++ b/resource-manager/costmanagement/2022-10-01/dimensions/method_byexternalcloudprovidertype.go @@ -61,8 +61,8 @@ func (c DimensionsClient) ByExternalCloudProviderType(ctx context.Context, id Ex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/dimensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/dimensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/dimensions/method_list.go b/resource-manager/costmanagement/2022-10-01/dimensions/method_list.go index 987c847c529..3b15e130078 100644 --- a/resource-manager/costmanagement/2022-10-01/dimensions/method_list.go +++ b/resource-manager/costmanagement/2022-10-01/dimensions/method_list.go @@ -63,8 +63,8 @@ func (c DimensionsClient) List(ctx context.Context, id commonids.ScopeId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/dimensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/dimensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/exports/method_get.go b/resource-manager/costmanagement/2022-10-01/exports/method_get.go index 6fd164e5ad0..bed88c94514 100644 --- a/resource-manager/costmanagement/2022-10-01/exports/method_get.go +++ b/resource-manager/costmanagement/2022-10-01/exports/method_get.go @@ -53,8 +53,8 @@ func (c ExportsClient) Get(ctx context.Context, id ScopedExportId, options GetOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/exports/method_list.go b/resource-manager/costmanagement/2022-10-01/exports/method_list.go index fd32a5808ce..6b9e0d7ef58 100644 --- a/resource-manager/costmanagement/2022-10-01/exports/method_list.go +++ b/resource-manager/costmanagement/2022-10-01/exports/method_list.go @@ -54,8 +54,8 @@ func (c ExportsClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/exports", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/exports", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/forecast/method_externalcloudproviderusage.go b/resource-manager/costmanagement/2022-10-01/forecast/method_externalcloudproviderusage.go index 5c2bdd9bab3..d766f670cb8 100644 --- a/resource-manager/costmanagement/2022-10-01/forecast/method_externalcloudproviderusage.go +++ b/resource-manager/costmanagement/2022-10-01/forecast/method_externalcloudproviderusage.go @@ -53,8 +53,8 @@ func (c ForecastClient) ExternalCloudProviderUsage(ctx context.Context, id Exter http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/forecast", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/forecast", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/forecast/method_usage.go b/resource-manager/costmanagement/2022-10-01/forecast/method_usage.go index 8a919dc90cf..2c7a09642b7 100644 --- a/resource-manager/costmanagement/2022-10-01/forecast/method_usage.go +++ b/resource-manager/costmanagement/2022-10-01/forecast/method_usage.go @@ -55,8 +55,8 @@ func (c ForecastClient) Usage(ctx context.Context, id commonids.ScopeId, input F http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/forecast", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/forecast", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go b/resource-manager/costmanagement/2022-10-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go index 8d3d6ab95f4..08e7caf3c72 100644 --- a/resource-manager/costmanagement/2022-10-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go +++ b/resource-manager/costmanagement/2022-10-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go @@ -61,8 +61,8 @@ func (c ReservedInstancesClient) GenerateReservationDetailsReportByBillingAccoun http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go b/resource-manager/costmanagement/2022-10-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go index 60ea3246ee0..4a8c6bbf57e 100644 --- a/resource-manager/costmanagement/2022-10-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go +++ b/resource-manager/costmanagement/2022-10-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go @@ -61,8 +61,8 @@ func (c ReservedInstancesClient) GenerateReservationDetailsReportByBillingProfil http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdate.go b/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdate.go index 4b29e83a427..7ce81fbece9 100644 --- a/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdate.go +++ b/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ScheduledActionsClient) CreateOrUpdate(ctx context.Context, id Scheduled http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdatebyscope.go b/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdatebyscope.go index bf242821a23..c87a0eb91fc 100644 --- a/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdatebyscope.go +++ b/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdatebyscope.go @@ -54,8 +54,8 @@ func (c ScheduledActionsClient) CreateOrUpdateByScope(ctx context.Context, id Sc http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/scheduledactions/method_list.go b/resource-manager/costmanagement/2022-10-01/scheduledactions/method_list.go index 6be318922be..57b3efc62dd 100644 --- a/resource-manager/costmanagement/2022-10-01/scheduledactions/method_list.go +++ b/resource-manager/costmanagement/2022-10-01/scheduledactions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScheduledActionsClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ScheduledActionsClient) List(ctx context.Context, options ListOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.CostManagement/scheduledActions", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.CostManagement/scheduledActions", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/scheduledactions/method_listbyscope.go b/resource-manager/costmanagement/2022-10-01/scheduledactions/method_listbyscope.go index 9685f87cf0d..959bc9896b8 100644 --- a/resource-manager/costmanagement/2022-10-01/scheduledactions/method_listbyscope.go +++ b/resource-manager/costmanagement/2022-10-01/scheduledactions/method_listbyscope.go @@ -51,6 +51,18 @@ func (o ListByScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScope ... func (c ScheduledActionsClient) ListByScope(ctx context.Context, id commonids.ScopeId, options ListByScopeOperationOptions) (result ListByScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ScheduledActionsClient) ListByScope(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/scheduledActions", id.ID()), OptionsObject: options, + Pager: &ListByScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/scheduledActions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2022-10-01/views/method_list.go b/resource-manager/costmanagement/2022-10-01/views/method_list.go index 4518ba3ed03..b076df9b3e8 100644 --- a/resource-manager/costmanagement/2022-10-01/views/method_list.go +++ b/resource-manager/costmanagement/2022-10-01/views/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []View } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ViewsClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ViewsClient) List(ctx context.Context) (result ListOperationResponse, er http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.CostManagement/views", } diff --git a/resource-manager/costmanagement/2022-10-01/views/method_listbyscope.go b/resource-manager/costmanagement/2022-10-01/views/method_listbyscope.go index bbf11582ec8..27b2f787330 100644 --- a/resource-manager/costmanagement/2022-10-01/views/method_listbyscope.go +++ b/resource-manager/costmanagement/2022-10-01/views/method_listbyscope.go @@ -24,6 +24,18 @@ type ListByScopeCompleteResult struct { Items []View } +type ListByScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScope ... func (c ViewsClient) ListByScope(ctx context.Context, id commonids.ScopeId) (result ListByScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ViewsClient) ListByScope(ctx context.Context, id commonids.ScopeId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByScopeCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/views", id.ID()), } diff --git a/resource-manager/costmanagement/2023-03-01/alerts/method_list.go b/resource-manager/costmanagement/2023-03-01/alerts/method_list.go index 2bbc3017108..9312398983b 100644 --- a/resource-manager/costmanagement/2023-03-01/alerts/method_list.go +++ b/resource-manager/costmanagement/2023-03-01/alerts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertsClient) List(ctx context.Context, id commonids.ScopeId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/alerts", id.ID()), } diff --git a/resource-manager/costmanagement/2023-03-01/alerts/method_listexternal.go b/resource-manager/costmanagement/2023-03-01/alerts/method_listexternal.go index 9bc4ee02d44..277db0bb08f 100644 --- a/resource-manager/costmanagement/2023-03-01/alerts/method_listexternal.go +++ b/resource-manager/costmanagement/2023-03-01/alerts/method_listexternal.go @@ -23,6 +23,18 @@ type ListExternalCompleteResult struct { Items []Alert } +type ListExternalCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListExternalCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListExternal ... func (c AlertsClient) ListExternal(ctx context.Context, id ExternalCloudProviderTypeId) (result ListExternalOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AlertsClient) ListExternal(ctx context.Context, id ExternalCloudProvider http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListExternalCustomPager{}, Path: fmt.Sprintf("%s/alerts", id.ID()), } diff --git a/resource-manager/costmanagement/2023-03-01/benefitrecommendations/method_list.go b/resource-manager/costmanagement/2023-03-01/benefitrecommendations/method_list.go index 135b9470159..27da9258c6b 100644 --- a/resource-manager/costmanagement/2023-03-01/benefitrecommendations/method_list.go +++ b/resource-manager/costmanagement/2023-03-01/benefitrecommendations/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BenefitRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c BenefitRecommendationsClient) List(ctx context.Context, id commonids.Sco http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitRecommendations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitRecommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbybillingaccountid.go b/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbybillingaccountid.go index 5e6680ab470..e541d866d32 100644 --- a/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbybillingaccountid.go +++ b/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbybillingaccountid.go @@ -55,6 +55,18 @@ func (o ListByBillingAccountIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccountId ... func (c BenefitUtilizationSummariesClient) ListByBillingAccountId(ctx context.Context, id BillingAccountId, options ListByBillingAccountIdOperationOptions) (result ListByBillingAccountIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListByBillingAccountId(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbybillingprofileid.go b/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbybillingprofileid.go index addf46ff2ef..5e0b8f92cce 100644 --- a/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbybillingprofileid.go +++ b/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbybillingprofileid.go @@ -55,6 +55,18 @@ func (o ListByBillingProfileIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfileId ... func (c BenefitUtilizationSummariesClient) ListByBillingProfileId(ctx context.Context, id BillingProfileId, options ListByBillingProfileIdOperationOptions) (result ListByBillingProfileIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListByBillingProfileId(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbysavingsplanid.go b/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbysavingsplanid.go index f61276b0a04..01c5f8c1032 100644 --- a/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbysavingsplanid.go +++ b/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbysavingsplanid.go @@ -55,6 +55,18 @@ func (o ListBySavingsPlanIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySavingsPlanIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySavingsPlanIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySavingsPlanId ... func (c BenefitUtilizationSummariesClient) ListBySavingsPlanId(ctx context.Context, id SavingsPlanId, options ListBySavingsPlanIdOperationOptions) (result ListBySavingsPlanIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListBySavingsPlanId(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListBySavingsPlanIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbysavingsplanorder.go b/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbysavingsplanorder.go index 9043e2d4350..c7b749ca32a 100644 --- a/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbysavingsplanorder.go +++ b/resource-manager/costmanagement/2023-03-01/benefitutilizationsummaries/method_listbysavingsplanorder.go @@ -55,6 +55,18 @@ func (o ListBySavingsPlanOrderOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySavingsPlanOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySavingsPlanOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySavingsPlanOrder ... func (c BenefitUtilizationSummariesClient) ListBySavingsPlanOrder(ctx context.Context, id SavingsPlanOrderId, options ListBySavingsPlanOrderOperationOptions) (result ListBySavingsPlanOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListBySavingsPlanOrder(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListBySavingsPlanOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/dimensions/method_byexternalcloudprovidertype.go b/resource-manager/costmanagement/2023-03-01/dimensions/method_byexternalcloudprovidertype.go index d735750cfc2..16a01eb231f 100644 --- a/resource-manager/costmanagement/2023-03-01/dimensions/method_byexternalcloudprovidertype.go +++ b/resource-manager/costmanagement/2023-03-01/dimensions/method_byexternalcloudprovidertype.go @@ -61,8 +61,8 @@ func (c DimensionsClient) ByExternalCloudProviderType(ctx context.Context, id Ex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/dimensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/dimensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/dimensions/method_list.go b/resource-manager/costmanagement/2023-03-01/dimensions/method_list.go index 987c847c529..3b15e130078 100644 --- a/resource-manager/costmanagement/2023-03-01/dimensions/method_list.go +++ b/resource-manager/costmanagement/2023-03-01/dimensions/method_list.go @@ -63,8 +63,8 @@ func (c DimensionsClient) List(ctx context.Context, id commonids.ScopeId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/dimensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/dimensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/exports/method_get.go b/resource-manager/costmanagement/2023-03-01/exports/method_get.go index 6fd164e5ad0..bed88c94514 100644 --- a/resource-manager/costmanagement/2023-03-01/exports/method_get.go +++ b/resource-manager/costmanagement/2023-03-01/exports/method_get.go @@ -53,8 +53,8 @@ func (c ExportsClient) Get(ctx context.Context, id ScopedExportId, options GetOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/exports/method_list.go b/resource-manager/costmanagement/2023-03-01/exports/method_list.go index fd32a5808ce..6b9e0d7ef58 100644 --- a/resource-manager/costmanagement/2023-03-01/exports/method_list.go +++ b/resource-manager/costmanagement/2023-03-01/exports/method_list.go @@ -54,8 +54,8 @@ func (c ExportsClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/exports", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/exports", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/forecast/method_externalcloudproviderusage.go b/resource-manager/costmanagement/2023-03-01/forecast/method_externalcloudproviderusage.go index 5c2bdd9bab3..d766f670cb8 100644 --- a/resource-manager/costmanagement/2023-03-01/forecast/method_externalcloudproviderusage.go +++ b/resource-manager/costmanagement/2023-03-01/forecast/method_externalcloudproviderusage.go @@ -53,8 +53,8 @@ func (c ForecastClient) ExternalCloudProviderUsage(ctx context.Context, id Exter http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/forecast", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/forecast", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/forecast/method_usage.go b/resource-manager/costmanagement/2023-03-01/forecast/method_usage.go index 8a919dc90cf..2c7a09642b7 100644 --- a/resource-manager/costmanagement/2023-03-01/forecast/method_usage.go +++ b/resource-manager/costmanagement/2023-03-01/forecast/method_usage.go @@ -55,8 +55,8 @@ func (c ForecastClient) Usage(ctx context.Context, id commonids.ScopeId, input F http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/forecast", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/forecast", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go b/resource-manager/costmanagement/2023-03-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go index 8d3d6ab95f4..08e7caf3c72 100644 --- a/resource-manager/costmanagement/2023-03-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go +++ b/resource-manager/costmanagement/2023-03-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go @@ -61,8 +61,8 @@ func (c ReservedInstancesClient) GenerateReservationDetailsReportByBillingAccoun http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go b/resource-manager/costmanagement/2023-03-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go index 60ea3246ee0..4a8c6bbf57e 100644 --- a/resource-manager/costmanagement/2023-03-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go +++ b/resource-manager/costmanagement/2023-03-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go @@ -61,8 +61,8 @@ func (c ReservedInstancesClient) GenerateReservationDetailsReportByBillingProfil http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/scheduledactions/method_createorupdate.go b/resource-manager/costmanagement/2023-03-01/scheduledactions/method_createorupdate.go index 4b29e83a427..7ce81fbece9 100644 --- a/resource-manager/costmanagement/2023-03-01/scheduledactions/method_createorupdate.go +++ b/resource-manager/costmanagement/2023-03-01/scheduledactions/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ScheduledActionsClient) CreateOrUpdate(ctx context.Context, id Scheduled http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/scheduledactions/method_createorupdatebyscope.go b/resource-manager/costmanagement/2023-03-01/scheduledactions/method_createorupdatebyscope.go index bf242821a23..c87a0eb91fc 100644 --- a/resource-manager/costmanagement/2023-03-01/scheduledactions/method_createorupdatebyscope.go +++ b/resource-manager/costmanagement/2023-03-01/scheduledactions/method_createorupdatebyscope.go @@ -54,8 +54,8 @@ func (c ScheduledActionsClient) CreateOrUpdateByScope(ctx context.Context, id Sc http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/scheduledactions/method_list.go b/resource-manager/costmanagement/2023-03-01/scheduledactions/method_list.go index 6be318922be..57b3efc62dd 100644 --- a/resource-manager/costmanagement/2023-03-01/scheduledactions/method_list.go +++ b/resource-manager/costmanagement/2023-03-01/scheduledactions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScheduledActionsClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ScheduledActionsClient) List(ctx context.Context, options ListOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.CostManagement/scheduledActions", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.CostManagement/scheduledActions", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/scheduledactions/method_listbyscope.go b/resource-manager/costmanagement/2023-03-01/scheduledactions/method_listbyscope.go index 9685f87cf0d..959bc9896b8 100644 --- a/resource-manager/costmanagement/2023-03-01/scheduledactions/method_listbyscope.go +++ b/resource-manager/costmanagement/2023-03-01/scheduledactions/method_listbyscope.go @@ -51,6 +51,18 @@ func (o ListByScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScope ... func (c ScheduledActionsClient) ListByScope(ctx context.Context, id commonids.ScopeId, options ListByScopeOperationOptions) (result ListByScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ScheduledActionsClient) ListByScope(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/scheduledActions", id.ID()), OptionsObject: options, + Pager: &ListByScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/scheduledActions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-03-01/views/method_list.go b/resource-manager/costmanagement/2023-03-01/views/method_list.go index 4518ba3ed03..b076df9b3e8 100644 --- a/resource-manager/costmanagement/2023-03-01/views/method_list.go +++ b/resource-manager/costmanagement/2023-03-01/views/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []View } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ViewsClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ViewsClient) List(ctx context.Context) (result ListOperationResponse, er http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.CostManagement/views", } diff --git a/resource-manager/costmanagement/2023-03-01/views/method_listbyscope.go b/resource-manager/costmanagement/2023-03-01/views/method_listbyscope.go index bbf11582ec8..27b2f787330 100644 --- a/resource-manager/costmanagement/2023-03-01/views/method_listbyscope.go +++ b/resource-manager/costmanagement/2023-03-01/views/method_listbyscope.go @@ -24,6 +24,18 @@ type ListByScopeCompleteResult struct { Items []View } +type ListByScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScope ... func (c ViewsClient) ListByScope(ctx context.Context, id commonids.ScopeId) (result ListByScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ViewsClient) ListByScope(ctx context.Context, id commonids.ScopeId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByScopeCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/views", id.ID()), } diff --git a/resource-manager/costmanagement/2023-07-01-preview/alerts/method_list.go b/resource-manager/costmanagement/2023-07-01-preview/alerts/method_list.go index 2bbc3017108..9312398983b 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/alerts/method_list.go +++ b/resource-manager/costmanagement/2023-07-01-preview/alerts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertsClient) List(ctx context.Context, id commonids.ScopeId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/alerts", id.ID()), } diff --git a/resource-manager/costmanagement/2023-07-01-preview/alerts/method_listexternal.go b/resource-manager/costmanagement/2023-07-01-preview/alerts/method_listexternal.go index 9bc4ee02d44..277db0bb08f 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/alerts/method_listexternal.go +++ b/resource-manager/costmanagement/2023-07-01-preview/alerts/method_listexternal.go @@ -23,6 +23,18 @@ type ListExternalCompleteResult struct { Items []Alert } +type ListExternalCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListExternalCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListExternal ... func (c AlertsClient) ListExternal(ctx context.Context, id ExternalCloudProviderTypeId) (result ListExternalOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AlertsClient) ListExternal(ctx context.Context, id ExternalCloudProvider http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListExternalCustomPager{}, Path: fmt.Sprintf("%s/alerts", id.ID()), } diff --git a/resource-manager/costmanagement/2023-07-01-preview/benefitrecommendations/method_list.go b/resource-manager/costmanagement/2023-07-01-preview/benefitrecommendations/method_list.go index 135b9470159..27da9258c6b 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/benefitrecommendations/method_list.go +++ b/resource-manager/costmanagement/2023-07-01-preview/benefitrecommendations/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BenefitRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c BenefitRecommendationsClient) List(ctx context.Context, id commonids.Sco http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitRecommendations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitRecommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbybillingaccountid.go b/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbybillingaccountid.go index 5e6680ab470..e541d866d32 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbybillingaccountid.go +++ b/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbybillingaccountid.go @@ -55,6 +55,18 @@ func (o ListByBillingAccountIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccountId ... func (c BenefitUtilizationSummariesClient) ListByBillingAccountId(ctx context.Context, id BillingAccountId, options ListByBillingAccountIdOperationOptions) (result ListByBillingAccountIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListByBillingAccountId(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbybillingprofileid.go b/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbybillingprofileid.go index addf46ff2ef..5e0b8f92cce 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbybillingprofileid.go +++ b/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbybillingprofileid.go @@ -55,6 +55,18 @@ func (o ListByBillingProfileIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfileId ... func (c BenefitUtilizationSummariesClient) ListByBillingProfileId(ctx context.Context, id BillingProfileId, options ListByBillingProfileIdOperationOptions) (result ListByBillingProfileIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListByBillingProfileId(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbysavingsplanid.go b/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbysavingsplanid.go index f61276b0a04..01c5f8c1032 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbysavingsplanid.go +++ b/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbysavingsplanid.go @@ -55,6 +55,18 @@ func (o ListBySavingsPlanIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySavingsPlanIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySavingsPlanIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySavingsPlanId ... func (c BenefitUtilizationSummariesClient) ListBySavingsPlanId(ctx context.Context, id SavingsPlanId, options ListBySavingsPlanIdOperationOptions) (result ListBySavingsPlanIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListBySavingsPlanId(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListBySavingsPlanIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbysavingsplanorder.go b/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbysavingsplanorder.go index 9043e2d4350..c7b749ca32a 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbysavingsplanorder.go +++ b/resource-manager/costmanagement/2023-07-01-preview/benefitutilizationsummaries/method_listbysavingsplanorder.go @@ -55,6 +55,18 @@ func (o ListBySavingsPlanOrderOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySavingsPlanOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySavingsPlanOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySavingsPlanOrder ... func (c BenefitUtilizationSummariesClient) ListBySavingsPlanOrder(ctx context.Context, id SavingsPlanOrderId, options ListBySavingsPlanOrderOperationOptions) (result ListBySavingsPlanOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListBySavingsPlanOrder(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListBySavingsPlanOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/dimensions/method_byexternalcloudprovidertype.go b/resource-manager/costmanagement/2023-07-01-preview/dimensions/method_byexternalcloudprovidertype.go index d735750cfc2..16a01eb231f 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/dimensions/method_byexternalcloudprovidertype.go +++ b/resource-manager/costmanagement/2023-07-01-preview/dimensions/method_byexternalcloudprovidertype.go @@ -61,8 +61,8 @@ func (c DimensionsClient) ByExternalCloudProviderType(ctx context.Context, id Ex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/dimensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/dimensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/dimensions/method_list.go b/resource-manager/costmanagement/2023-07-01-preview/dimensions/method_list.go index 987c847c529..3b15e130078 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/dimensions/method_list.go +++ b/resource-manager/costmanagement/2023-07-01-preview/dimensions/method_list.go @@ -63,8 +63,8 @@ func (c DimensionsClient) List(ctx context.Context, id commonids.ScopeId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/dimensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/dimensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/exports/method_get.go b/resource-manager/costmanagement/2023-07-01-preview/exports/method_get.go index 6fd164e5ad0..bed88c94514 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/exports/method_get.go +++ b/resource-manager/costmanagement/2023-07-01-preview/exports/method_get.go @@ -53,8 +53,8 @@ func (c ExportsClient) Get(ctx context.Context, id ScopedExportId, options GetOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/exports/method_list.go b/resource-manager/costmanagement/2023-07-01-preview/exports/method_list.go index fd32a5808ce..6b9e0d7ef58 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/exports/method_list.go +++ b/resource-manager/costmanagement/2023-07-01-preview/exports/method_list.go @@ -54,8 +54,8 @@ func (c ExportsClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/exports", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/exports", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/forecast/method_externalcloudproviderusage.go b/resource-manager/costmanagement/2023-07-01-preview/forecast/method_externalcloudproviderusage.go index 5c2bdd9bab3..d766f670cb8 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/forecast/method_externalcloudproviderusage.go +++ b/resource-manager/costmanagement/2023-07-01-preview/forecast/method_externalcloudproviderusage.go @@ -53,8 +53,8 @@ func (c ForecastClient) ExternalCloudProviderUsage(ctx context.Context, id Exter http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/forecast", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/forecast", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/forecast/method_usage.go b/resource-manager/costmanagement/2023-07-01-preview/forecast/method_usage.go index 8a919dc90cf..2c7a09642b7 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/forecast/method_usage.go +++ b/resource-manager/costmanagement/2023-07-01-preview/forecast/method_usage.go @@ -55,8 +55,8 @@ func (c ForecastClient) Usage(ctx context.Context, id commonids.ScopeId, input F http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/forecast", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/forecast", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go b/resource-manager/costmanagement/2023-07-01-preview/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go index 8d3d6ab95f4..08e7caf3c72 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go +++ b/resource-manager/costmanagement/2023-07-01-preview/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go @@ -61,8 +61,8 @@ func (c ReservedInstancesClient) GenerateReservationDetailsReportByBillingAccoun http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go b/resource-manager/costmanagement/2023-07-01-preview/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go index 60ea3246ee0..4a8c6bbf57e 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go +++ b/resource-manager/costmanagement/2023-07-01-preview/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go @@ -61,8 +61,8 @@ func (c ReservedInstancesClient) GenerateReservationDetailsReportByBillingProfil http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_createorupdate.go b/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_createorupdate.go index 4b29e83a427..7ce81fbece9 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_createorupdate.go +++ b/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ScheduledActionsClient) CreateOrUpdate(ctx context.Context, id Scheduled http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_createorupdatebyscope.go b/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_createorupdatebyscope.go index bf242821a23..c87a0eb91fc 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_createorupdatebyscope.go +++ b/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_createorupdatebyscope.go @@ -54,8 +54,8 @@ func (c ScheduledActionsClient) CreateOrUpdateByScope(ctx context.Context, id Sc http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_list.go b/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_list.go index 6be318922be..57b3efc62dd 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_list.go +++ b/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScheduledActionsClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ScheduledActionsClient) List(ctx context.Context, options ListOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.CostManagement/scheduledActions", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.CostManagement/scheduledActions", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_listbyscope.go b/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_listbyscope.go index 9685f87cf0d..959bc9896b8 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_listbyscope.go +++ b/resource-manager/costmanagement/2023-07-01-preview/scheduledactions/method_listbyscope.go @@ -51,6 +51,18 @@ func (o ListByScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScope ... func (c ScheduledActionsClient) ListByScope(ctx context.Context, id commonids.ScopeId, options ListByScopeOperationOptions) (result ListByScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ScheduledActionsClient) ListByScope(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/scheduledActions", id.ID()), OptionsObject: options, + Pager: &ListByScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/scheduledActions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-07-01-preview/views/method_list.go b/resource-manager/costmanagement/2023-07-01-preview/views/method_list.go index 4518ba3ed03..b076df9b3e8 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/views/method_list.go +++ b/resource-manager/costmanagement/2023-07-01-preview/views/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []View } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ViewsClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ViewsClient) List(ctx context.Context) (result ListOperationResponse, er http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.CostManagement/views", } diff --git a/resource-manager/costmanagement/2023-07-01-preview/views/method_listbyscope.go b/resource-manager/costmanagement/2023-07-01-preview/views/method_listbyscope.go index bbf11582ec8..27b2f787330 100644 --- a/resource-manager/costmanagement/2023-07-01-preview/views/method_listbyscope.go +++ b/resource-manager/costmanagement/2023-07-01-preview/views/method_listbyscope.go @@ -24,6 +24,18 @@ type ListByScopeCompleteResult struct { Items []View } +type ListByScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScope ... func (c ViewsClient) ListByScope(ctx context.Context, id commonids.ScopeId) (result ListByScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ViewsClient) ListByScope(ctx context.Context, id commonids.ScopeId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByScopeCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/views", id.ID()), } diff --git a/resource-manager/costmanagement/2023-08-01/alerts/method_list.go b/resource-manager/costmanagement/2023-08-01/alerts/method_list.go index 2bbc3017108..9312398983b 100644 --- a/resource-manager/costmanagement/2023-08-01/alerts/method_list.go +++ b/resource-manager/costmanagement/2023-08-01/alerts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertsClient) List(ctx context.Context, id commonids.ScopeId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/alerts", id.ID()), } diff --git a/resource-manager/costmanagement/2023-08-01/alerts/method_listexternal.go b/resource-manager/costmanagement/2023-08-01/alerts/method_listexternal.go index 9bc4ee02d44..277db0bb08f 100644 --- a/resource-manager/costmanagement/2023-08-01/alerts/method_listexternal.go +++ b/resource-manager/costmanagement/2023-08-01/alerts/method_listexternal.go @@ -23,6 +23,18 @@ type ListExternalCompleteResult struct { Items []Alert } +type ListExternalCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListExternalCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListExternal ... func (c AlertsClient) ListExternal(ctx context.Context, id ExternalCloudProviderTypeId) (result ListExternalOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AlertsClient) ListExternal(ctx context.Context, id ExternalCloudProvider http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListExternalCustomPager{}, Path: fmt.Sprintf("%s/alerts", id.ID()), } diff --git a/resource-manager/costmanagement/2023-08-01/benefitrecommendations/method_list.go b/resource-manager/costmanagement/2023-08-01/benefitrecommendations/method_list.go index 135b9470159..27da9258c6b 100644 --- a/resource-manager/costmanagement/2023-08-01/benefitrecommendations/method_list.go +++ b/resource-manager/costmanagement/2023-08-01/benefitrecommendations/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BenefitRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c BenefitRecommendationsClient) List(ctx context.Context, id commonids.Sco http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitRecommendations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitRecommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbybillingaccountid.go b/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbybillingaccountid.go index 5e6680ab470..e541d866d32 100644 --- a/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbybillingaccountid.go +++ b/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbybillingaccountid.go @@ -55,6 +55,18 @@ func (o ListByBillingAccountIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccountId ... func (c BenefitUtilizationSummariesClient) ListByBillingAccountId(ctx context.Context, id BillingAccountId, options ListByBillingAccountIdOperationOptions) (result ListByBillingAccountIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListByBillingAccountId(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbybillingprofileid.go b/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbybillingprofileid.go index addf46ff2ef..5e0b8f92cce 100644 --- a/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbybillingprofileid.go +++ b/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbybillingprofileid.go @@ -55,6 +55,18 @@ func (o ListByBillingProfileIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfileId ... func (c BenefitUtilizationSummariesClient) ListByBillingProfileId(ctx context.Context, id BillingProfileId, options ListByBillingProfileIdOperationOptions) (result ListByBillingProfileIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListByBillingProfileId(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbysavingsplanid.go b/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbysavingsplanid.go index f61276b0a04..01c5f8c1032 100644 --- a/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbysavingsplanid.go +++ b/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbysavingsplanid.go @@ -55,6 +55,18 @@ func (o ListBySavingsPlanIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySavingsPlanIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySavingsPlanIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySavingsPlanId ... func (c BenefitUtilizationSummariesClient) ListBySavingsPlanId(ctx context.Context, id SavingsPlanId, options ListBySavingsPlanIdOperationOptions) (result ListBySavingsPlanIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListBySavingsPlanId(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListBySavingsPlanIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbysavingsplanorder.go b/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbysavingsplanorder.go index 9043e2d4350..c7b749ca32a 100644 --- a/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbysavingsplanorder.go +++ b/resource-manager/costmanagement/2023-08-01/benefitutilizationsummaries/method_listbysavingsplanorder.go @@ -55,6 +55,18 @@ func (o ListBySavingsPlanOrderOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySavingsPlanOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySavingsPlanOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySavingsPlanOrder ... func (c BenefitUtilizationSummariesClient) ListBySavingsPlanOrder(ctx context.Context, id SavingsPlanOrderId, options ListBySavingsPlanOrderOperationOptions) (result ListBySavingsPlanOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListBySavingsPlanOrder(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListBySavingsPlanOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/budgets/method_list.go b/resource-manager/costmanagement/2023-08-01/budgets/method_list.go index 2f21fe0512c..5b533cfca25 100644 --- a/resource-manager/costmanagement/2023-08-01/budgets/method_list.go +++ b/resource-manager/costmanagement/2023-08-01/budgets/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/budgets", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/budgets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/costallocationrules/method_list.go b/resource-manager/costmanagement/2023-08-01/costallocationrules/method_list.go index 5671c136682..223b507c13e 100644 --- a/resource-manager/costmanagement/2023-08-01/costallocationrules/method_list.go +++ b/resource-manager/costmanagement/2023-08-01/costallocationrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CostAllocationRuleDefinition } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CostAllocationRulesClient) List(ctx context.Context, id BillingAccountId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CostAllocationRulesClient) List(ctx context.Context, id BillingAccountId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/costAllocationRules", id.ID()), } diff --git a/resource-manager/costmanagement/2023-08-01/dimensions/method_byexternalcloudprovidertype.go b/resource-manager/costmanagement/2023-08-01/dimensions/method_byexternalcloudprovidertype.go index d735750cfc2..16a01eb231f 100644 --- a/resource-manager/costmanagement/2023-08-01/dimensions/method_byexternalcloudprovidertype.go +++ b/resource-manager/costmanagement/2023-08-01/dimensions/method_byexternalcloudprovidertype.go @@ -61,8 +61,8 @@ func (c DimensionsClient) ByExternalCloudProviderType(ctx context.Context, id Ex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/dimensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/dimensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/dimensions/method_list.go b/resource-manager/costmanagement/2023-08-01/dimensions/method_list.go index 987c847c529..3b15e130078 100644 --- a/resource-manager/costmanagement/2023-08-01/dimensions/method_list.go +++ b/resource-manager/costmanagement/2023-08-01/dimensions/method_list.go @@ -63,8 +63,8 @@ func (c DimensionsClient) List(ctx context.Context, id commonids.ScopeId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/dimensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/dimensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/exports/method_get.go b/resource-manager/costmanagement/2023-08-01/exports/method_get.go index 6fd164e5ad0..bed88c94514 100644 --- a/resource-manager/costmanagement/2023-08-01/exports/method_get.go +++ b/resource-manager/costmanagement/2023-08-01/exports/method_get.go @@ -53,8 +53,8 @@ func (c ExportsClient) Get(ctx context.Context, id ScopedExportId, options GetOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/exports/method_list.go b/resource-manager/costmanagement/2023-08-01/exports/method_list.go index fd32a5808ce..6b9e0d7ef58 100644 --- a/resource-manager/costmanagement/2023-08-01/exports/method_list.go +++ b/resource-manager/costmanagement/2023-08-01/exports/method_list.go @@ -54,8 +54,8 @@ func (c ExportsClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/exports", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/exports", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/forecast/method_externalcloudproviderusage.go b/resource-manager/costmanagement/2023-08-01/forecast/method_externalcloudproviderusage.go index 5c2bdd9bab3..d766f670cb8 100644 --- a/resource-manager/costmanagement/2023-08-01/forecast/method_externalcloudproviderusage.go +++ b/resource-manager/costmanagement/2023-08-01/forecast/method_externalcloudproviderusage.go @@ -53,8 +53,8 @@ func (c ForecastClient) ExternalCloudProviderUsage(ctx context.Context, id Exter http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/forecast", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/forecast", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/forecast/method_usage.go b/resource-manager/costmanagement/2023-08-01/forecast/method_usage.go index 8a919dc90cf..2c7a09642b7 100644 --- a/resource-manager/costmanagement/2023-08-01/forecast/method_usage.go +++ b/resource-manager/costmanagement/2023-08-01/forecast/method_usage.go @@ -55,8 +55,8 @@ func (c ForecastClient) Usage(ctx context.Context, id commonids.ScopeId, input F http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/forecast", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/forecast", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go b/resource-manager/costmanagement/2023-08-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go index 8d3d6ab95f4..08e7caf3c72 100644 --- a/resource-manager/costmanagement/2023-08-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go +++ b/resource-manager/costmanagement/2023-08-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go @@ -61,8 +61,8 @@ func (c ReservedInstancesClient) GenerateReservationDetailsReportByBillingAccoun http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go b/resource-manager/costmanagement/2023-08-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go index 60ea3246ee0..4a8c6bbf57e 100644 --- a/resource-manager/costmanagement/2023-08-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go +++ b/resource-manager/costmanagement/2023-08-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go @@ -61,8 +61,8 @@ func (c ReservedInstancesClient) GenerateReservationDetailsReportByBillingProfil http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/scheduledactions/method_createorupdate.go b/resource-manager/costmanagement/2023-08-01/scheduledactions/method_createorupdate.go index 4b29e83a427..7ce81fbece9 100644 --- a/resource-manager/costmanagement/2023-08-01/scheduledactions/method_createorupdate.go +++ b/resource-manager/costmanagement/2023-08-01/scheduledactions/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ScheduledActionsClient) CreateOrUpdate(ctx context.Context, id Scheduled http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/scheduledactions/method_createorupdatebyscope.go b/resource-manager/costmanagement/2023-08-01/scheduledactions/method_createorupdatebyscope.go index bf242821a23..c87a0eb91fc 100644 --- a/resource-manager/costmanagement/2023-08-01/scheduledactions/method_createorupdatebyscope.go +++ b/resource-manager/costmanagement/2023-08-01/scheduledactions/method_createorupdatebyscope.go @@ -54,8 +54,8 @@ func (c ScheduledActionsClient) CreateOrUpdateByScope(ctx context.Context, id Sc http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/scheduledactions/method_list.go b/resource-manager/costmanagement/2023-08-01/scheduledactions/method_list.go index 6be318922be..57b3efc62dd 100644 --- a/resource-manager/costmanagement/2023-08-01/scheduledactions/method_list.go +++ b/resource-manager/costmanagement/2023-08-01/scheduledactions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScheduledActionsClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ScheduledActionsClient) List(ctx context.Context, options ListOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.CostManagement/scheduledActions", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.CostManagement/scheduledActions", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/scheduledactions/method_listbyscope.go b/resource-manager/costmanagement/2023-08-01/scheduledactions/method_listbyscope.go index 9685f87cf0d..959bc9896b8 100644 --- a/resource-manager/costmanagement/2023-08-01/scheduledactions/method_listbyscope.go +++ b/resource-manager/costmanagement/2023-08-01/scheduledactions/method_listbyscope.go @@ -51,6 +51,18 @@ func (o ListByScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScope ... func (c ScheduledActionsClient) ListByScope(ctx context.Context, id commonids.ScopeId, options ListByScopeOperationOptions) (result ListByScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ScheduledActionsClient) ListByScope(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/scheduledActions", id.ID()), OptionsObject: options, + Pager: &ListByScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/scheduledActions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-08-01/views/method_list.go b/resource-manager/costmanagement/2023-08-01/views/method_list.go index 4518ba3ed03..b076df9b3e8 100644 --- a/resource-manager/costmanagement/2023-08-01/views/method_list.go +++ b/resource-manager/costmanagement/2023-08-01/views/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []View } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ViewsClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ViewsClient) List(ctx context.Context) (result ListOperationResponse, er http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.CostManagement/views", } diff --git a/resource-manager/costmanagement/2023-08-01/views/method_listbyscope.go b/resource-manager/costmanagement/2023-08-01/views/method_listbyscope.go index bbf11582ec8..27b2f787330 100644 --- a/resource-manager/costmanagement/2023-08-01/views/method_listbyscope.go +++ b/resource-manager/costmanagement/2023-08-01/views/method_listbyscope.go @@ -24,6 +24,18 @@ type ListByScopeCompleteResult struct { Items []View } +type ListByScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScope ... func (c ViewsClient) ListByScope(ctx context.Context, id commonids.ScopeId) (result ListByScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ViewsClient) ListByScope(ctx context.Context, id commonids.ScopeId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByScopeCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/views", id.ID()), } diff --git a/resource-manager/costmanagement/2023-11-01/alerts/method_list.go b/resource-manager/costmanagement/2023-11-01/alerts/method_list.go index 2bbc3017108..9312398983b 100644 --- a/resource-manager/costmanagement/2023-11-01/alerts/method_list.go +++ b/resource-manager/costmanagement/2023-11-01/alerts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertsClient) List(ctx context.Context, id commonids.ScopeId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/alerts", id.ID()), } diff --git a/resource-manager/costmanagement/2023-11-01/alerts/method_listexternal.go b/resource-manager/costmanagement/2023-11-01/alerts/method_listexternal.go index 9bc4ee02d44..277db0bb08f 100644 --- a/resource-manager/costmanagement/2023-11-01/alerts/method_listexternal.go +++ b/resource-manager/costmanagement/2023-11-01/alerts/method_listexternal.go @@ -23,6 +23,18 @@ type ListExternalCompleteResult struct { Items []Alert } +type ListExternalCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListExternalCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListExternal ... func (c AlertsClient) ListExternal(ctx context.Context, id ExternalCloudProviderTypeId) (result ListExternalOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AlertsClient) ListExternal(ctx context.Context, id ExternalCloudProvider http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListExternalCustomPager{}, Path: fmt.Sprintf("%s/alerts", id.ID()), } diff --git a/resource-manager/costmanagement/2023-11-01/benefitrecommendations/method_list.go b/resource-manager/costmanagement/2023-11-01/benefitrecommendations/method_list.go index 135b9470159..27da9258c6b 100644 --- a/resource-manager/costmanagement/2023-11-01/benefitrecommendations/method_list.go +++ b/resource-manager/costmanagement/2023-11-01/benefitrecommendations/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BenefitRecommendationsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c BenefitRecommendationsClient) List(ctx context.Context, id commonids.Sco http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitRecommendations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitRecommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbybillingaccountid.go b/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbybillingaccountid.go index 5e6680ab470..e541d866d32 100644 --- a/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbybillingaccountid.go +++ b/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbybillingaccountid.go @@ -55,6 +55,18 @@ func (o ListByBillingAccountIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingAccountIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingAccountIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingAccountId ... func (c BenefitUtilizationSummariesClient) ListByBillingAccountId(ctx context.Context, id BillingAccountId, options ListByBillingAccountIdOperationOptions) (result ListByBillingAccountIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListByBillingAccountId(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListByBillingAccountIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbybillingprofileid.go b/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbybillingprofileid.go index addf46ff2ef..5e0b8f92cce 100644 --- a/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbybillingprofileid.go +++ b/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbybillingprofileid.go @@ -55,6 +55,18 @@ func (o ListByBillingProfileIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBillingProfileIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBillingProfileIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBillingProfileId ... func (c BenefitUtilizationSummariesClient) ListByBillingProfileId(ctx context.Context, id BillingProfileId, options ListByBillingProfileIdOperationOptions) (result ListByBillingProfileIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListByBillingProfileId(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListByBillingProfileIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbysavingsplanid.go b/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbysavingsplanid.go index f61276b0a04..01c5f8c1032 100644 --- a/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbysavingsplanid.go +++ b/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbysavingsplanid.go @@ -55,6 +55,18 @@ func (o ListBySavingsPlanIdOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySavingsPlanIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySavingsPlanIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySavingsPlanId ... func (c BenefitUtilizationSummariesClient) ListBySavingsPlanId(ctx context.Context, id SavingsPlanId, options ListBySavingsPlanIdOperationOptions) (result ListBySavingsPlanIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListBySavingsPlanId(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListBySavingsPlanIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbysavingsplanorder.go b/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbysavingsplanorder.go index 9043e2d4350..c7b749ca32a 100644 --- a/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbysavingsplanorder.go +++ b/resource-manager/costmanagement/2023-11-01/benefitutilizationsummaries/method_listbysavingsplanorder.go @@ -55,6 +55,18 @@ func (o ListBySavingsPlanOrderOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySavingsPlanOrderCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySavingsPlanOrderCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySavingsPlanOrder ... func (c BenefitUtilizationSummariesClient) ListBySavingsPlanOrder(ctx context.Context, id SavingsPlanOrderId, options ListBySavingsPlanOrderOperationOptions) (result ListBySavingsPlanOrderOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c BenefitUtilizationSummariesClient) ListBySavingsPlanOrder(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), OptionsObject: options, + Pager: &ListBySavingsPlanOrderCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/benefitUtilizationSummaries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/budgets/method_list.go b/resource-manager/costmanagement/2023-11-01/budgets/method_list.go index 2f21fe0512c..5b533cfca25 100644 --- a/resource-manager/costmanagement/2023-11-01/budgets/method_list.go +++ b/resource-manager/costmanagement/2023-11-01/budgets/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c BudgetsClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/budgets", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/budgets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/costallocationrules/method_list.go b/resource-manager/costmanagement/2023-11-01/costallocationrules/method_list.go index 5671c136682..223b507c13e 100644 --- a/resource-manager/costmanagement/2023-11-01/costallocationrules/method_list.go +++ b/resource-manager/costmanagement/2023-11-01/costallocationrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CostAllocationRuleDefinition } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CostAllocationRulesClient) List(ctx context.Context, id BillingAccountId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CostAllocationRulesClient) List(ctx context.Context, id BillingAccountId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/costAllocationRules", id.ID()), } diff --git a/resource-manager/costmanagement/2023-11-01/dimensions/method_byexternalcloudprovidertype.go b/resource-manager/costmanagement/2023-11-01/dimensions/method_byexternalcloudprovidertype.go index d735750cfc2..16a01eb231f 100644 --- a/resource-manager/costmanagement/2023-11-01/dimensions/method_byexternalcloudprovidertype.go +++ b/resource-manager/costmanagement/2023-11-01/dimensions/method_byexternalcloudprovidertype.go @@ -61,8 +61,8 @@ func (c DimensionsClient) ByExternalCloudProviderType(ctx context.Context, id Ex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/dimensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/dimensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/dimensions/method_list.go b/resource-manager/costmanagement/2023-11-01/dimensions/method_list.go index 987c847c529..3b15e130078 100644 --- a/resource-manager/costmanagement/2023-11-01/dimensions/method_list.go +++ b/resource-manager/costmanagement/2023-11-01/dimensions/method_list.go @@ -63,8 +63,8 @@ func (c DimensionsClient) List(ctx context.Context, id commonids.ScopeId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/dimensions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/dimensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/exports/method_get.go b/resource-manager/costmanagement/2023-11-01/exports/method_get.go index 6fd164e5ad0..bed88c94514 100644 --- a/resource-manager/costmanagement/2023-11-01/exports/method_get.go +++ b/resource-manager/costmanagement/2023-11-01/exports/method_get.go @@ -53,8 +53,8 @@ func (c ExportsClient) Get(ctx context.Context, id ScopedExportId, options GetOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/exports/method_list.go b/resource-manager/costmanagement/2023-11-01/exports/method_list.go index fd32a5808ce..6b9e0d7ef58 100644 --- a/resource-manager/costmanagement/2023-11-01/exports/method_list.go +++ b/resource-manager/costmanagement/2023-11-01/exports/method_list.go @@ -54,8 +54,8 @@ func (c ExportsClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/exports", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/exports", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/forecast/method_externalcloudproviderusage.go b/resource-manager/costmanagement/2023-11-01/forecast/method_externalcloudproviderusage.go index 5c2bdd9bab3..d766f670cb8 100644 --- a/resource-manager/costmanagement/2023-11-01/forecast/method_externalcloudproviderusage.go +++ b/resource-manager/costmanagement/2023-11-01/forecast/method_externalcloudproviderusage.go @@ -53,8 +53,8 @@ func (c ForecastClient) ExternalCloudProviderUsage(ctx context.Context, id Exter http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/forecast", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/forecast", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/forecast/method_usage.go b/resource-manager/costmanagement/2023-11-01/forecast/method_usage.go index 8a919dc90cf..2c7a09642b7 100644 --- a/resource-manager/costmanagement/2023-11-01/forecast/method_usage.go +++ b/resource-manager/costmanagement/2023-11-01/forecast/method_usage.go @@ -55,8 +55,8 @@ func (c ForecastClient) Usage(ctx context.Context, id commonids.ScopeId, input F http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/forecast", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/forecast", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go b/resource-manager/costmanagement/2023-11-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go index 8d3d6ab95f4..08e7caf3c72 100644 --- a/resource-manager/costmanagement/2023-11-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go +++ b/resource-manager/costmanagement/2023-11-01/reservedinstances/method_generatereservationdetailsreportbybillingaccountid.go @@ -61,8 +61,8 @@ func (c ReservedInstancesClient) GenerateReservationDetailsReportByBillingAccoun http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go b/resource-manager/costmanagement/2023-11-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go index 60ea3246ee0..4a8c6bbf57e 100644 --- a/resource-manager/costmanagement/2023-11-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go +++ b/resource-manager/costmanagement/2023-11-01/reservedinstances/method_generatereservationdetailsreportbybillingprofileid.go @@ -61,8 +61,8 @@ func (c ReservedInstancesClient) GenerateReservationDetailsReportByBillingProfil http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/generateReservationDetailsReport", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/scheduledactions/method_createorupdate.go b/resource-manager/costmanagement/2023-11-01/scheduledactions/method_createorupdate.go index 4b29e83a427..7ce81fbece9 100644 --- a/resource-manager/costmanagement/2023-11-01/scheduledactions/method_createorupdate.go +++ b/resource-manager/costmanagement/2023-11-01/scheduledactions/method_createorupdate.go @@ -54,8 +54,8 @@ func (c ScheduledActionsClient) CreateOrUpdate(ctx context.Context, id Scheduled http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/scheduledactions/method_createorupdatebyscope.go b/resource-manager/costmanagement/2023-11-01/scheduledactions/method_createorupdatebyscope.go index bf242821a23..c87a0eb91fc 100644 --- a/resource-manager/costmanagement/2023-11-01/scheduledactions/method_createorupdatebyscope.go +++ b/resource-manager/costmanagement/2023-11-01/scheduledactions/method_createorupdatebyscope.go @@ -54,8 +54,8 @@ func (c ScheduledActionsClient) CreateOrUpdateByScope(ctx context.Context, id Sc http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/scheduledactions/method_list.go b/resource-manager/costmanagement/2023-11-01/scheduledactions/method_list.go index 6be318922be..57b3efc62dd 100644 --- a/resource-manager/costmanagement/2023-11-01/scheduledactions/method_list.go +++ b/resource-manager/costmanagement/2023-11-01/scheduledactions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScheduledActionsClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ScheduledActionsClient) List(ctx context.Context, options ListOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.CostManagement/scheduledActions", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.CostManagement/scheduledActions", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/scheduledactions/method_listbyscope.go b/resource-manager/costmanagement/2023-11-01/scheduledactions/method_listbyscope.go index 9685f87cf0d..959bc9896b8 100644 --- a/resource-manager/costmanagement/2023-11-01/scheduledactions/method_listbyscope.go +++ b/resource-manager/costmanagement/2023-11-01/scheduledactions/method_listbyscope.go @@ -51,6 +51,18 @@ func (o ListByScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScope ... func (c ScheduledActionsClient) ListByScope(ctx context.Context, id commonids.ScopeId, options ListByScopeOperationOptions) (result ListByScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ScheduledActionsClient) ListByScope(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/scheduledActions", id.ID()), OptionsObject: options, + Pager: &ListByScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/scheduledActions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/costmanagement/2023-11-01/views/method_list.go b/resource-manager/costmanagement/2023-11-01/views/method_list.go index 4518ba3ed03..b076df9b3e8 100644 --- a/resource-manager/costmanagement/2023-11-01/views/method_list.go +++ b/resource-manager/costmanagement/2023-11-01/views/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []View } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ViewsClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ViewsClient) List(ctx context.Context) (result ListOperationResponse, er http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.CostManagement/views", } diff --git a/resource-manager/costmanagement/2023-11-01/views/method_listbyscope.go b/resource-manager/costmanagement/2023-11-01/views/method_listbyscope.go index bbf11582ec8..27b2f787330 100644 --- a/resource-manager/costmanagement/2023-11-01/views/method_listbyscope.go +++ b/resource-manager/costmanagement/2023-11-01/views/method_listbyscope.go @@ -24,6 +24,18 @@ type ListByScopeCompleteResult struct { Items []View } +type ListByScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScope ... func (c ViewsClient) ListByScope(ctx context.Context, id commonids.ScopeId) (result ListByScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ViewsClient) ListByScope(ctx context.Context, id commonids.ScopeId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByScopeCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CostManagement/views", id.ID()), } diff --git a/resource-manager/customproviders/2018-09-01-preview/associations/method_listall.go b/resource-manager/customproviders/2018-09-01-preview/associations/method_listall.go index 7bb94469243..b2ce3e12493 100644 --- a/resource-manager/customproviders/2018-09-01-preview/associations/method_listall.go +++ b/resource-manager/customproviders/2018-09-01-preview/associations/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []Association } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c AssociationsClient) ListAll(ctx context.Context, id commonids.ScopeId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AssociationsClient) ListAll(ctx context.Context, id commonids.ScopeId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CustomProviders/associations", id.ID()), } diff --git a/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_listbyresourcegroup.go b/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_listbyresourcegroup.go index b97e92b9e0f..a87da28a014 100644 --- a/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_listbyresourcegroup.go +++ b/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []CustomRPManifest } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CustomResourceProviderClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CustomResourceProviderClient) ListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CustomProviders/resourceProviders", id.ID()), } diff --git a/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_listbysubscription.go b/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_listbysubscription.go index e197d28a927..865ec272f27 100644 --- a/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_listbysubscription.go +++ b/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []CustomRPManifest } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c CustomResourceProviderClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CustomResourceProviderClient) ListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CustomProviders/resourceProviders", id.ID()), } diff --git a/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalist.go b/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalist.go index b06c1ec9bc2..f1f91aeb8e4 100644 --- a/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalist.go +++ b/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalist.go @@ -24,6 +24,18 @@ type GrafanaListCompleteResult struct { Items []ManagedGrafana } +type GrafanaListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GrafanaListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GrafanaList ... func (c GrafanaResourceClient) GrafanaList(ctx context.Context, id commonids.SubscriptionId) (result GrafanaListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GrafanaResourceClient) GrafanaList(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GrafanaListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Dashboard/grafana", id.ID()), } diff --git a/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalistbyresourcegroup.go b/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalistbyresourcegroup.go index 2645738f35e..461b131a921 100644 --- a/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalistbyresourcegroup.go +++ b/resource-manager/dashboard/2022-08-01/grafanaresource/method_grafanalistbyresourcegroup.go @@ -24,6 +24,18 @@ type GrafanaListByResourceGroupCompleteResult struct { Items []ManagedGrafana } +type GrafanaListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GrafanaListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GrafanaListByResourceGroup ... func (c GrafanaResourceClient) GrafanaListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GrafanaListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GrafanaResourceClient) GrafanaListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GrafanaListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Dashboard/grafana", id.ID()), } diff --git a/resource-manager/dashboard/2022-08-01/privateendpointconnection/method_list.go b/resource-manager/dashboard/2022-08-01/privateendpointconnection/method_list.go index 9bf7fc95274..991344dbaf5 100644 --- a/resource-manager/dashboard/2022-08-01/privateendpointconnection/method_list.go +++ b/resource-manager/dashboard/2022-08-01/privateendpointconnection/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointConnectionClient) List(ctx context.Context, id GrafanaId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionClient) List(ctx context.Context, id GrafanaId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/dashboard/2022-08-01/privatelinkresource/method_list.go b/resource-manager/dashboard/2022-08-01/privatelinkresource/method_list.go index ebfe2b664ff..898cb40d728 100644 --- a/resource-manager/dashboard/2022-08-01/privatelinkresource/method_list.go +++ b/resource-manager/dashboard/2022-08-01/privatelinkresource/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateLinkResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkResourceClient) List(ctx context.Context, id GrafanaId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourceClient) List(ctx context.Context, id GrafanaId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/dashboard/2023-09-01/grafanaplugin/method_grafanafetchavailableplugins.go b/resource-manager/dashboard/2023-09-01/grafanaplugin/method_grafanafetchavailableplugins.go index 0013277bf27..84652c0c456 100644 --- a/resource-manager/dashboard/2023-09-01/grafanaplugin/method_grafanafetchavailableplugins.go +++ b/resource-manager/dashboard/2023-09-01/grafanaplugin/method_grafanafetchavailableplugins.go @@ -23,6 +23,18 @@ type GrafanaFetchAvailablePluginsCompleteResult struct { Items []GrafanaAvailablePlugin } +type GrafanaFetchAvailablePluginsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GrafanaFetchAvailablePluginsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GrafanaFetchAvailablePlugins ... func (c GrafanaPluginClient) GrafanaFetchAvailablePlugins(ctx context.Context, id GrafanaId) (result GrafanaFetchAvailablePluginsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GrafanaPluginClient) GrafanaFetchAvailablePlugins(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GrafanaFetchAvailablePluginsCustomPager{}, Path: fmt.Sprintf("%s/fetchAvailablePlugins", id.ID()), } diff --git a/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanalist.go b/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanalist.go index b06c1ec9bc2..f1f91aeb8e4 100644 --- a/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanalist.go +++ b/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanalist.go @@ -24,6 +24,18 @@ type GrafanaListCompleteResult struct { Items []ManagedGrafana } +type GrafanaListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GrafanaListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GrafanaList ... func (c GrafanaResourceClient) GrafanaList(ctx context.Context, id commonids.SubscriptionId) (result GrafanaListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GrafanaResourceClient) GrafanaList(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GrafanaListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Dashboard/grafana", id.ID()), } diff --git a/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanalistbyresourcegroup.go b/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanalistbyresourcegroup.go index 2645738f35e..461b131a921 100644 --- a/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanalistbyresourcegroup.go +++ b/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanalistbyresourcegroup.go @@ -24,6 +24,18 @@ type GrafanaListByResourceGroupCompleteResult struct { Items []ManagedGrafana } +type GrafanaListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GrafanaListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GrafanaListByResourceGroup ... func (c GrafanaResourceClient) GrafanaListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GrafanaListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GrafanaResourceClient) GrafanaListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GrafanaListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Dashboard/grafana", id.ID()), } diff --git a/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_list.go b/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_list.go index 9ac49b8fb26..4c9b506e1da 100644 --- a/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_list.go +++ b/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ManagedPrivateEndpointModel } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedPrivateEndpointsClient) List(ctx context.Context, id GrafanaId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedPrivateEndpointsClient) List(ctx context.Context, id GrafanaId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/managedPrivateEndpoints", id.ID()), } diff --git a/resource-manager/dashboard/2023-09-01/privateendpointconnection/method_list.go b/resource-manager/dashboard/2023-09-01/privateendpointconnection/method_list.go index 9bf7fc95274..991344dbaf5 100644 --- a/resource-manager/dashboard/2023-09-01/privateendpointconnection/method_list.go +++ b/resource-manager/dashboard/2023-09-01/privateendpointconnection/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointConnectionClient) List(ctx context.Context, id GrafanaId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionClient) List(ctx context.Context, id GrafanaId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/dashboard/2023-09-01/privatelinkresource/method_list.go b/resource-manager/dashboard/2023-09-01/privatelinkresource/method_list.go index ebfe2b664ff..898cb40d728 100644 --- a/resource-manager/dashboard/2023-09-01/privatelinkresource/method_list.go +++ b/resource-manager/dashboard/2023-09-01/privatelinkresource/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateLinkResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkResourceClient) List(ctx context.Context, id GrafanaId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourceClient) List(ctx context.Context, id GrafanaId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/databoxedge/2022-03-01/addons/method_listbyrole.go b/resource-manager/databoxedge/2022-03-01/addons/method_listbyrole.go index ef84397c9b8..988a69ac246 100644 --- a/resource-manager/databoxedge/2022-03-01/addons/method_listbyrole.go +++ b/resource-manager/databoxedge/2022-03-01/addons/method_listbyrole.go @@ -24,6 +24,18 @@ type ListByRoleCompleteResult struct { Items []Addon } +type ListByRoleCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByRoleCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByRole ... func (c AddonsClient) ListByRole(ctx context.Context, id RoleId) (result ListByRoleOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AddonsClient) ListByRole(ctx context.Context, id RoleId) (result ListByR http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByRoleCustomPager{}, Path: fmt.Sprintf("%s/addons", id.ID()), } diff --git a/resource-manager/databoxedge/2022-03-01/alerts/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2022-03-01/alerts/method_listbydataboxedgedevice.go index 6716aa2d512..adffb9391eb 100644 --- a/resource-manager/databoxedge/2022-03-01/alerts/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2022-03-01/alerts/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Alert } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c AlertsClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AlertsClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdg http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/alerts", id.ID()), } diff --git a/resource-manager/databoxedge/2022-03-01/availableskus/method_list.go b/resource-manager/databoxedge/2022-03-01/availableskus/method_list.go index e71150d3fe0..1521c60bde2 100644 --- a/resource-manager/databoxedge/2022-03-01/availableskus/method_list.go +++ b/resource-manager/databoxedge/2022-03-01/availableskus/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DataBoxEdgeSku } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AvailableSkusClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AvailableSkusClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/availableSkus", id.ID()), } diff --git a/resource-manager/databoxedge/2022-03-01/bandwidthschedules/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2022-03-01/bandwidthschedules/method_listbydataboxedgedevice.go index 933095e75e7..9fb8da368c1 100644 --- a/resource-manager/databoxedge/2022-03-01/bandwidthschedules/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2022-03-01/bandwidthschedules/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []BandwidthSchedule } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c BandwidthSchedulesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BandwidthSchedulesClient) ListByDataBoxEdgeDevice(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/bandwidthSchedules", id.ID()), } diff --git a/resource-manager/databoxedge/2022-03-01/containers/method_listbystorageaccount.go b/resource-manager/databoxedge/2022-03-01/containers/method_listbystorageaccount.go index 26449adb99c..41bbcc77726 100644 --- a/resource-manager/databoxedge/2022-03-01/containers/method_listbystorageaccount.go +++ b/resource-manager/databoxedge/2022-03-01/containers/method_listbystorageaccount.go @@ -23,6 +23,18 @@ type ListByStorageAccountCompleteResult struct { Items []Container } +type ListByStorageAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByStorageAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByStorageAccount ... func (c ContainersClient) ListByStorageAccount(ctx context.Context, id StorageAccountId) (result ListByStorageAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContainersClient) ListByStorageAccount(ctx context.Context, id StorageAc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByStorageAccountCustomPager{}, Path: fmt.Sprintf("%s/containers", id.ID()), } diff --git a/resource-manager/databoxedge/2022-03-01/devicecapacitycheck/method_checkresourcecreationfeasibility.go b/resource-manager/databoxedge/2022-03-01/devicecapacitycheck/method_checkresourcecreationfeasibility.go index b3ad9b0aac4..2d800b5a70d 100644 --- a/resource-manager/databoxedge/2022-03-01/devicecapacitycheck/method_checkresourcecreationfeasibility.go +++ b/resource-manager/databoxedge/2022-03-01/devicecapacitycheck/method_checkresourcecreationfeasibility.go @@ -56,8 +56,8 @@ func (c DeviceCapacityCheckClient) CheckResourceCreationFeasibility(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/deviceCapacityCheck", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/deviceCapacityCheck", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databoxedge/2022-03-01/devices/method_listbyresourcegroup.go b/resource-manager/databoxedge/2022-03-01/devices/method_listbyresourcegroup.go index 5cb8f91b9ef..779f42afcf6 100644 --- a/resource-manager/databoxedge/2022-03-01/devices/method_listbyresourcegroup.go +++ b/resource-manager/databoxedge/2022-03-01/devices/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DevicesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DevicesClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databoxedge/2022-03-01/devices/method_listbysubscription.go b/resource-manager/databoxedge/2022-03-01/devices/method_listbysubscription.go index 09fa700740d..46ad1d3fced 100644 --- a/resource-manager/databoxedge/2022-03-01/devices/method_listbysubscription.go +++ b/resource-manager/databoxedge/2022-03-01/devices/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DevicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DevicesClient) ListBySubscription(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databoxedge/2022-03-01/monitoringconfig/method_list.go b/resource-manager/databoxedge/2022-03-01/monitoringconfig/method_list.go index fc196dab016..cace28e0124 100644 --- a/resource-manager/databoxedge/2022-03-01/monitoringconfig/method_list.go +++ b/resource-manager/databoxedge/2022-03-01/monitoringconfig/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MonitoringMetricConfiguration } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MonitoringConfigClient) List(ctx context.Context, id RoleId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitoringConfigClient) List(ctx context.Context, id RoleId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/monitoringConfig", id.ID()), } diff --git a/resource-manager/databoxedge/2022-03-01/nodes/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2022-03-01/nodes/method_listbydataboxedgedevice.go index 374396f72ab..36173d9d8f2 100644 --- a/resource-manager/databoxedge/2022-03-01/nodes/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2022-03-01/nodes/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Node } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c NodesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NodesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdge http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/nodes", id.ID()), } diff --git a/resource-manager/databoxedge/2022-03-01/orders/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2022-03-01/orders/method_listbydataboxedgedevice.go index ae8ac560c94..5e383b80996 100644 --- a/resource-manager/databoxedge/2022-03-01/orders/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2022-03-01/orders/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Order } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c OrdersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c OrdersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdg http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/orders", id.ID()), } diff --git a/resource-manager/databoxedge/2022-03-01/roles/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2022-03-01/roles/method_listbydataboxedgedevice.go index e40539bc788..06fd34c8f86 100644 --- a/resource-manager/databoxedge/2022-03-01/roles/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2022-03-01/roles/method_listbydataboxedgedevice.go @@ -24,6 +24,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Role } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c RolesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RolesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdge http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/roles", id.ID()), } diff --git a/resource-manager/databoxedge/2022-03-01/shares/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2022-03-01/shares/method_listbydataboxedgedevice.go index 55c4693af00..82cd8d03566 100644 --- a/resource-manager/databoxedge/2022-03-01/shares/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2022-03-01/shares/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Share } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c SharesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SharesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdg http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/shares", id.ID()), } diff --git a/resource-manager/databoxedge/2022-03-01/storageaccountcredentials/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2022-03-01/storageaccountcredentials/method_listbydataboxedgedevice.go index 98e76875381..9c65b4ed8d7 100644 --- a/resource-manager/databoxedge/2022-03-01/storageaccountcredentials/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2022-03-01/storageaccountcredentials/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []StorageAccountCredential } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c StorageAccountCredentialsClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StorageAccountCredentialsClient) ListByDataBoxEdgeDevice(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/storageAccountCredentials", id.ID()), } diff --git a/resource-manager/databoxedge/2022-03-01/storageaccounts/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2022-03-01/storageaccounts/method_listbydataboxedgedevice.go index 538ab877c6d..e800c693575 100644 --- a/resource-manager/databoxedge/2022-03-01/storageaccounts/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2022-03-01/storageaccounts/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []StorageAccount } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c StorageAccountsClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StorageAccountsClient) ListByDataBoxEdgeDevice(ctx context.Context, id D http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/storageAccounts", id.ID()), } diff --git a/resource-manager/databoxedge/2022-03-01/triggers/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2022-03-01/triggers/method_listbydataboxedgedevice.go index 20985eb2f08..eeecf442ba2 100644 --- a/resource-manager/databoxedge/2022-03-01/triggers/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2022-03-01/triggers/method_listbydataboxedgedevice.go @@ -51,6 +51,18 @@ func (o ListByDataBoxEdgeDeviceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c TriggersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId, options ListByDataBoxEdgeDeviceOperationOptions) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c TriggersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxE http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/triggers", id.ID()), OptionsObject: options, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, + Path: fmt.Sprintf("%s/triggers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databoxedge/2022-03-01/users/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2022-03-01/users/method_listbydataboxedgedevice.go index cd8429c2c3c..d7046442312 100644 --- a/resource-manager/databoxedge/2022-03-01/users/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2022-03-01/users/method_listbydataboxedgedevice.go @@ -50,6 +50,18 @@ func (o ListByDataBoxEdgeDeviceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c UsersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId, options ListByDataBoxEdgeDeviceOperationOptions) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c UsersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdge http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/users", id.ID()), OptionsObject: options, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, + Path: fmt.Sprintf("%s/users", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databoxedge/2023-07-01/addons/method_listbyrole.go b/resource-manager/databoxedge/2023-07-01/addons/method_listbyrole.go index ef84397c9b8..988a69ac246 100644 --- a/resource-manager/databoxedge/2023-07-01/addons/method_listbyrole.go +++ b/resource-manager/databoxedge/2023-07-01/addons/method_listbyrole.go @@ -24,6 +24,18 @@ type ListByRoleCompleteResult struct { Items []Addon } +type ListByRoleCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByRoleCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByRole ... func (c AddonsClient) ListByRole(ctx context.Context, id RoleId) (result ListByRoleOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AddonsClient) ListByRole(ctx context.Context, id RoleId) (result ListByR http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByRoleCustomPager{}, Path: fmt.Sprintf("%s/addons", id.ID()), } diff --git a/resource-manager/databoxedge/2023-07-01/alerts/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-07-01/alerts/method_listbydataboxedgedevice.go index 6716aa2d512..adffb9391eb 100644 --- a/resource-manager/databoxedge/2023-07-01/alerts/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-07-01/alerts/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Alert } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c AlertsClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AlertsClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdg http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/alerts", id.ID()), } diff --git a/resource-manager/databoxedge/2023-07-01/availableskus/method_list.go b/resource-manager/databoxedge/2023-07-01/availableskus/method_list.go index e71150d3fe0..1521c60bde2 100644 --- a/resource-manager/databoxedge/2023-07-01/availableskus/method_list.go +++ b/resource-manager/databoxedge/2023-07-01/availableskus/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DataBoxEdgeSku } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AvailableSkusClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AvailableSkusClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/availableSkus", id.ID()), } diff --git a/resource-manager/databoxedge/2023-07-01/bandwidthschedules/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-07-01/bandwidthschedules/method_listbydataboxedgedevice.go index 933095e75e7..9fb8da368c1 100644 --- a/resource-manager/databoxedge/2023-07-01/bandwidthschedules/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-07-01/bandwidthschedules/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []BandwidthSchedule } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c BandwidthSchedulesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BandwidthSchedulesClient) ListByDataBoxEdgeDevice(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/bandwidthSchedules", id.ID()), } diff --git a/resource-manager/databoxedge/2023-07-01/containers/method_listbystorageaccount.go b/resource-manager/databoxedge/2023-07-01/containers/method_listbystorageaccount.go index 26449adb99c..41bbcc77726 100644 --- a/resource-manager/databoxedge/2023-07-01/containers/method_listbystorageaccount.go +++ b/resource-manager/databoxedge/2023-07-01/containers/method_listbystorageaccount.go @@ -23,6 +23,18 @@ type ListByStorageAccountCompleteResult struct { Items []Container } +type ListByStorageAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByStorageAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByStorageAccount ... func (c ContainersClient) ListByStorageAccount(ctx context.Context, id StorageAccountId) (result ListByStorageAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContainersClient) ListByStorageAccount(ctx context.Context, id StorageAc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByStorageAccountCustomPager{}, Path: fmt.Sprintf("%s/containers", id.ID()), } diff --git a/resource-manager/databoxedge/2023-07-01/devicecapacitycheck/method_checkresourcecreationfeasibility.go b/resource-manager/databoxedge/2023-07-01/devicecapacitycheck/method_checkresourcecreationfeasibility.go index b3ad9b0aac4..2d800b5a70d 100644 --- a/resource-manager/databoxedge/2023-07-01/devicecapacitycheck/method_checkresourcecreationfeasibility.go +++ b/resource-manager/databoxedge/2023-07-01/devicecapacitycheck/method_checkresourcecreationfeasibility.go @@ -56,8 +56,8 @@ func (c DeviceCapacityCheckClient) CheckResourceCreationFeasibility(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/deviceCapacityCheck", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/deviceCapacityCheck", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databoxedge/2023-07-01/devices/method_listbyresourcegroup.go b/resource-manager/databoxedge/2023-07-01/devices/method_listbyresourcegroup.go index 5cb8f91b9ef..779f42afcf6 100644 --- a/resource-manager/databoxedge/2023-07-01/devices/method_listbyresourcegroup.go +++ b/resource-manager/databoxedge/2023-07-01/devices/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DevicesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DevicesClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databoxedge/2023-07-01/devices/method_listbysubscription.go b/resource-manager/databoxedge/2023-07-01/devices/method_listbysubscription.go index 09fa700740d..46ad1d3fced 100644 --- a/resource-manager/databoxedge/2023-07-01/devices/method_listbysubscription.go +++ b/resource-manager/databoxedge/2023-07-01/devices/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DevicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DevicesClient) ListBySubscription(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databoxedge/2023-07-01/monitoringconfig/method_list.go b/resource-manager/databoxedge/2023-07-01/monitoringconfig/method_list.go index fc196dab016..cace28e0124 100644 --- a/resource-manager/databoxedge/2023-07-01/monitoringconfig/method_list.go +++ b/resource-manager/databoxedge/2023-07-01/monitoringconfig/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MonitoringMetricConfiguration } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MonitoringConfigClient) List(ctx context.Context, id RoleId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitoringConfigClient) List(ctx context.Context, id RoleId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/monitoringConfig", id.ID()), } diff --git a/resource-manager/databoxedge/2023-07-01/nodes/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-07-01/nodes/method_listbydataboxedgedevice.go index 374396f72ab..36173d9d8f2 100644 --- a/resource-manager/databoxedge/2023-07-01/nodes/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-07-01/nodes/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Node } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c NodesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NodesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdge http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/nodes", id.ID()), } diff --git a/resource-manager/databoxedge/2023-07-01/orders/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-07-01/orders/method_listbydataboxedgedevice.go index ae8ac560c94..5e383b80996 100644 --- a/resource-manager/databoxedge/2023-07-01/orders/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-07-01/orders/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Order } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c OrdersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c OrdersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdg http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/orders", id.ID()), } diff --git a/resource-manager/databoxedge/2023-07-01/roles/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-07-01/roles/method_listbydataboxedgedevice.go index e40539bc788..06fd34c8f86 100644 --- a/resource-manager/databoxedge/2023-07-01/roles/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-07-01/roles/method_listbydataboxedgedevice.go @@ -24,6 +24,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Role } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c RolesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RolesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdge http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/roles", id.ID()), } diff --git a/resource-manager/databoxedge/2023-07-01/shares/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-07-01/shares/method_listbydataboxedgedevice.go index 55c4693af00..82cd8d03566 100644 --- a/resource-manager/databoxedge/2023-07-01/shares/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-07-01/shares/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Share } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c SharesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SharesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdg http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/shares", id.ID()), } diff --git a/resource-manager/databoxedge/2023-07-01/storageaccountcredentials/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-07-01/storageaccountcredentials/method_listbydataboxedgedevice.go index 98e76875381..9c65b4ed8d7 100644 --- a/resource-manager/databoxedge/2023-07-01/storageaccountcredentials/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-07-01/storageaccountcredentials/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []StorageAccountCredential } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c StorageAccountCredentialsClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StorageAccountCredentialsClient) ListByDataBoxEdgeDevice(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/storageAccountCredentials", id.ID()), } diff --git a/resource-manager/databoxedge/2023-07-01/storageaccounts/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-07-01/storageaccounts/method_listbydataboxedgedevice.go index 538ab877c6d..e800c693575 100644 --- a/resource-manager/databoxedge/2023-07-01/storageaccounts/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-07-01/storageaccounts/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []StorageAccount } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c StorageAccountsClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StorageAccountsClient) ListByDataBoxEdgeDevice(ctx context.Context, id D http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/storageAccounts", id.ID()), } diff --git a/resource-manager/databoxedge/2023-07-01/triggers/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-07-01/triggers/method_listbydataboxedgedevice.go index 20985eb2f08..eeecf442ba2 100644 --- a/resource-manager/databoxedge/2023-07-01/triggers/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-07-01/triggers/method_listbydataboxedgedevice.go @@ -51,6 +51,18 @@ func (o ListByDataBoxEdgeDeviceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c TriggersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId, options ListByDataBoxEdgeDeviceOperationOptions) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c TriggersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxE http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/triggers", id.ID()), OptionsObject: options, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, + Path: fmt.Sprintf("%s/triggers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databoxedge/2023-07-01/users/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-07-01/users/method_listbydataboxedgedevice.go index cd8429c2c3c..d7046442312 100644 --- a/resource-manager/databoxedge/2023-07-01/users/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-07-01/users/method_listbydataboxedgedevice.go @@ -50,6 +50,18 @@ func (o ListByDataBoxEdgeDeviceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c UsersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId, options ListByDataBoxEdgeDeviceOperationOptions) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c UsersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdge http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/users", id.ID()), OptionsObject: options, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, + Path: fmt.Sprintf("%s/users", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databoxedge/2023-12-01/addons/method_listbyrole.go b/resource-manager/databoxedge/2023-12-01/addons/method_listbyrole.go index ef84397c9b8..988a69ac246 100644 --- a/resource-manager/databoxedge/2023-12-01/addons/method_listbyrole.go +++ b/resource-manager/databoxedge/2023-12-01/addons/method_listbyrole.go @@ -24,6 +24,18 @@ type ListByRoleCompleteResult struct { Items []Addon } +type ListByRoleCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByRoleCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByRole ... func (c AddonsClient) ListByRole(ctx context.Context, id RoleId) (result ListByRoleOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AddonsClient) ListByRole(ctx context.Context, id RoleId) (result ListByR http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByRoleCustomPager{}, Path: fmt.Sprintf("%s/addons", id.ID()), } diff --git a/resource-manager/databoxedge/2023-12-01/alerts/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-12-01/alerts/method_listbydataboxedgedevice.go index 6716aa2d512..adffb9391eb 100644 --- a/resource-manager/databoxedge/2023-12-01/alerts/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-12-01/alerts/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Alert } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c AlertsClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AlertsClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdg http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/alerts", id.ID()), } diff --git a/resource-manager/databoxedge/2023-12-01/availableskus/method_list.go b/resource-manager/databoxedge/2023-12-01/availableskus/method_list.go index e71150d3fe0..1521c60bde2 100644 --- a/resource-manager/databoxedge/2023-12-01/availableskus/method_list.go +++ b/resource-manager/databoxedge/2023-12-01/availableskus/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DataBoxEdgeSku } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AvailableSkusClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AvailableSkusClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/availableSkus", id.ID()), } diff --git a/resource-manager/databoxedge/2023-12-01/bandwidthschedules/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-12-01/bandwidthschedules/method_listbydataboxedgedevice.go index 933095e75e7..9fb8da368c1 100644 --- a/resource-manager/databoxedge/2023-12-01/bandwidthschedules/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-12-01/bandwidthschedules/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []BandwidthSchedule } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c BandwidthSchedulesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BandwidthSchedulesClient) ListByDataBoxEdgeDevice(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/bandwidthSchedules", id.ID()), } diff --git a/resource-manager/databoxedge/2023-12-01/containers/method_listbystorageaccount.go b/resource-manager/databoxedge/2023-12-01/containers/method_listbystorageaccount.go index 26449adb99c..41bbcc77726 100644 --- a/resource-manager/databoxedge/2023-12-01/containers/method_listbystorageaccount.go +++ b/resource-manager/databoxedge/2023-12-01/containers/method_listbystorageaccount.go @@ -23,6 +23,18 @@ type ListByStorageAccountCompleteResult struct { Items []Container } +type ListByStorageAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByStorageAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByStorageAccount ... func (c ContainersClient) ListByStorageAccount(ctx context.Context, id StorageAccountId) (result ListByStorageAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContainersClient) ListByStorageAccount(ctx context.Context, id StorageAc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByStorageAccountCustomPager{}, Path: fmt.Sprintf("%s/containers", id.ID()), } diff --git a/resource-manager/databoxedge/2023-12-01/devicecapacitycheck/method_checkresourcecreationfeasibility.go b/resource-manager/databoxedge/2023-12-01/devicecapacitycheck/method_checkresourcecreationfeasibility.go index b3ad9b0aac4..2d800b5a70d 100644 --- a/resource-manager/databoxedge/2023-12-01/devicecapacitycheck/method_checkresourcecreationfeasibility.go +++ b/resource-manager/databoxedge/2023-12-01/devicecapacitycheck/method_checkresourcecreationfeasibility.go @@ -56,8 +56,8 @@ func (c DeviceCapacityCheckClient) CheckResourceCreationFeasibility(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/deviceCapacityCheck", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/deviceCapacityCheck", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databoxedge/2023-12-01/devices/method_listbyresourcegroup.go b/resource-manager/databoxedge/2023-12-01/devices/method_listbyresourcegroup.go index 5cb8f91b9ef..779f42afcf6 100644 --- a/resource-manager/databoxedge/2023-12-01/devices/method_listbyresourcegroup.go +++ b/resource-manager/databoxedge/2023-12-01/devices/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DevicesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DevicesClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databoxedge/2023-12-01/devices/method_listbysubscription.go b/resource-manager/databoxedge/2023-12-01/devices/method_listbysubscription.go index 09fa700740d..46ad1d3fced 100644 --- a/resource-manager/databoxedge/2023-12-01/devices/method_listbysubscription.go +++ b/resource-manager/databoxedge/2023-12-01/devices/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DevicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DevicesClient) ListBySubscription(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databoxedge/2023-12-01/monitoringconfig/method_list.go b/resource-manager/databoxedge/2023-12-01/monitoringconfig/method_list.go index fc196dab016..cace28e0124 100644 --- a/resource-manager/databoxedge/2023-12-01/monitoringconfig/method_list.go +++ b/resource-manager/databoxedge/2023-12-01/monitoringconfig/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MonitoringMetricConfiguration } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MonitoringConfigClient) List(ctx context.Context, id RoleId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitoringConfigClient) List(ctx context.Context, id RoleId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/monitoringConfig", id.ID()), } diff --git a/resource-manager/databoxedge/2023-12-01/nodes/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-12-01/nodes/method_listbydataboxedgedevice.go index 374396f72ab..36173d9d8f2 100644 --- a/resource-manager/databoxedge/2023-12-01/nodes/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-12-01/nodes/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Node } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c NodesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NodesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdge http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/nodes", id.ID()), } diff --git a/resource-manager/databoxedge/2023-12-01/orders/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-12-01/orders/method_listbydataboxedgedevice.go index ae8ac560c94..5e383b80996 100644 --- a/resource-manager/databoxedge/2023-12-01/orders/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-12-01/orders/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Order } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c OrdersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c OrdersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdg http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/orders", id.ID()), } diff --git a/resource-manager/databoxedge/2023-12-01/roles/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-12-01/roles/method_listbydataboxedgedevice.go index e40539bc788..06fd34c8f86 100644 --- a/resource-manager/databoxedge/2023-12-01/roles/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-12-01/roles/method_listbydataboxedgedevice.go @@ -24,6 +24,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Role } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c RolesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RolesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdge http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/roles", id.ID()), } diff --git a/resource-manager/databoxedge/2023-12-01/shares/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-12-01/shares/method_listbydataboxedgedevice.go index 55c4693af00..82cd8d03566 100644 --- a/resource-manager/databoxedge/2023-12-01/shares/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-12-01/shares/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []Share } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c SharesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SharesClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdg http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/shares", id.ID()), } diff --git a/resource-manager/databoxedge/2023-12-01/storageaccountcredentials/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-12-01/storageaccountcredentials/method_listbydataboxedgedevice.go index 98e76875381..9c65b4ed8d7 100644 --- a/resource-manager/databoxedge/2023-12-01/storageaccountcredentials/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-12-01/storageaccountcredentials/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []StorageAccountCredential } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c StorageAccountCredentialsClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StorageAccountCredentialsClient) ListByDataBoxEdgeDevice(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/storageAccountCredentials", id.ID()), } diff --git a/resource-manager/databoxedge/2023-12-01/storageaccounts/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-12-01/storageaccounts/method_listbydataboxedgedevice.go index 538ab877c6d..e800c693575 100644 --- a/resource-manager/databoxedge/2023-12-01/storageaccounts/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-12-01/storageaccounts/method_listbydataboxedgedevice.go @@ -23,6 +23,18 @@ type ListByDataBoxEdgeDeviceCompleteResult struct { Items []StorageAccount } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c StorageAccountsClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StorageAccountsClient) ListByDataBoxEdgeDevice(ctx context.Context, id D http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, Path: fmt.Sprintf("%s/storageAccounts", id.ID()), } diff --git a/resource-manager/databoxedge/2023-12-01/triggers/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-12-01/triggers/method_listbydataboxedgedevice.go index 20985eb2f08..eeecf442ba2 100644 --- a/resource-manager/databoxedge/2023-12-01/triggers/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-12-01/triggers/method_listbydataboxedgedevice.go @@ -51,6 +51,18 @@ func (o ListByDataBoxEdgeDeviceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c TriggersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId, options ListByDataBoxEdgeDeviceOperationOptions) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c TriggersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxE http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/triggers", id.ID()), OptionsObject: options, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, + Path: fmt.Sprintf("%s/triggers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databoxedge/2023-12-01/users/method_listbydataboxedgedevice.go b/resource-manager/databoxedge/2023-12-01/users/method_listbydataboxedgedevice.go index cd8429c2c3c..d7046442312 100644 --- a/resource-manager/databoxedge/2023-12-01/users/method_listbydataboxedgedevice.go +++ b/resource-manager/databoxedge/2023-12-01/users/method_listbydataboxedgedevice.go @@ -50,6 +50,18 @@ func (o ListByDataBoxEdgeDeviceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDataBoxEdgeDeviceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataBoxEdgeDeviceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataBoxEdgeDevice ... func (c UsersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdgeDeviceId, options ListByDataBoxEdgeDeviceOperationOptions) (result ListByDataBoxEdgeDeviceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c UsersClient) ListByDataBoxEdgeDevice(ctx context.Context, id DataBoxEdge http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/users", id.ID()), OptionsObject: options, + Pager: &ListByDataBoxEdgeDeviceCustomPager{}, + Path: fmt.Sprintf("%s/users", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databricks/2022-04-01-preview/accessconnector/method_listbyresourcegroup.go b/resource-manager/databricks/2022-04-01-preview/accessconnector/method_listbyresourcegroup.go index 4278bcf39a5..a31fa4139d0 100644 --- a/resource-manager/databricks/2022-04-01-preview/accessconnector/method_listbyresourcegroup.go +++ b/resource-manager/databricks/2022-04-01-preview/accessconnector/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AccessConnector } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AccessConnectorClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccessConnectorClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Databricks/accessConnectors", id.ID()), } diff --git a/resource-manager/databricks/2022-04-01-preview/accessconnector/method_listbysubscription.go b/resource-manager/databricks/2022-04-01-preview/accessconnector/method_listbysubscription.go index 403f65542e5..762437794c8 100644 --- a/resource-manager/databricks/2022-04-01-preview/accessconnector/method_listbysubscription.go +++ b/resource-manager/databricks/2022-04-01-preview/accessconnector/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []AccessConnector } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AccessConnectorClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccessConnectorClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Databricks/accessConnectors", id.ID()), } diff --git a/resource-manager/databricks/2022-04-01-preview/privateendpointconnections/method_list.go b/resource-manager/databricks/2022-04-01-preview/privateendpointconnections/method_list.go index 2f1b25e81ac..bcf36ce4c39 100644 --- a/resource-manager/databricks/2022-04-01-preview/privateendpointconnections/method_list.go +++ b/resource-manager/databricks/2022-04-01-preview/privateendpointconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id Workspace http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/databricks/2022-04-01-preview/privatelinkresources/method_list.go b/resource-manager/databricks/2022-04-01-preview/privatelinkresources/method_list.go index 59609880d3a..51b395e5785 100644 --- a/resource-manager/databricks/2022-04-01-preview/privatelinkresources/method_list.go +++ b/resource-manager/databricks/2022-04-01-preview/privatelinkresources/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []GroupIdInformation } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkResourcesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) List(ctx context.Context, id WorkspaceId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/databricks/2022-04-01-preview/vnetpeering/method_listbyworkspace.go b/resource-manager/databricks/2022-04-01-preview/vnetpeering/method_listbyworkspace.go index 1ac57f72a57..2d4acc8732b 100644 --- a/resource-manager/databricks/2022-04-01-preview/vnetpeering/method_listbyworkspace.go +++ b/resource-manager/databricks/2022-04-01-preview/vnetpeering/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []VirtualNetworkPeering } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c VNetPeeringClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VNetPeeringClient) ListByWorkspace(ctx context.Context, id WorkspaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkPeerings", id.ID()), } diff --git a/resource-manager/databricks/2022-04-01-preview/workspaces/method_listbyresourcegroup.go b/resource-manager/databricks/2022-04-01-preview/workspaces/method_listbyresourcegroup.go index 295ee2b402e..945d99c9cf5 100644 --- a/resource-manager/databricks/2022-04-01-preview/workspaces/method_listbyresourcegroup.go +++ b/resource-manager/databricks/2022-04-01-preview/workspaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Workspace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Databricks/workspaces", id.ID()), } diff --git a/resource-manager/databricks/2022-04-01-preview/workspaces/method_listbysubscription.go b/resource-manager/databricks/2022-04-01-preview/workspaces/method_listbysubscription.go index f15e0b60acd..a5acc65e357 100644 --- a/resource-manager/databricks/2022-04-01-preview/workspaces/method_listbysubscription.go +++ b/resource-manager/databricks/2022-04-01-preview/workspaces/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Workspace } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Databricks/workspaces", id.ID()), } diff --git a/resource-manager/databricks/2022-10-01-preview/accessconnector/method_listbyresourcegroup.go b/resource-manager/databricks/2022-10-01-preview/accessconnector/method_listbyresourcegroup.go index 4278bcf39a5..a31fa4139d0 100644 --- a/resource-manager/databricks/2022-10-01-preview/accessconnector/method_listbyresourcegroup.go +++ b/resource-manager/databricks/2022-10-01-preview/accessconnector/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AccessConnector } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AccessConnectorClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccessConnectorClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Databricks/accessConnectors", id.ID()), } diff --git a/resource-manager/databricks/2022-10-01-preview/accessconnector/method_listbysubscription.go b/resource-manager/databricks/2022-10-01-preview/accessconnector/method_listbysubscription.go index 403f65542e5..762437794c8 100644 --- a/resource-manager/databricks/2022-10-01-preview/accessconnector/method_listbysubscription.go +++ b/resource-manager/databricks/2022-10-01-preview/accessconnector/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []AccessConnector } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AccessConnectorClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccessConnectorClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Databricks/accessConnectors", id.ID()), } diff --git a/resource-manager/databricks/2023-02-01/privateendpointconnections/method_list.go b/resource-manager/databricks/2023-02-01/privateendpointconnections/method_list.go index 2f1b25e81ac..bcf36ce4c39 100644 --- a/resource-manager/databricks/2023-02-01/privateendpointconnections/method_list.go +++ b/resource-manager/databricks/2023-02-01/privateendpointconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id Workspace http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/databricks/2023-02-01/privatelinkresources/method_list.go b/resource-manager/databricks/2023-02-01/privatelinkresources/method_list.go index 59609880d3a..51b395e5785 100644 --- a/resource-manager/databricks/2023-02-01/privatelinkresources/method_list.go +++ b/resource-manager/databricks/2023-02-01/privatelinkresources/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []GroupIdInformation } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkResourcesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) List(ctx context.Context, id WorkspaceId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/databricks/2023-02-01/vnetpeering/method_listbyworkspace.go b/resource-manager/databricks/2023-02-01/vnetpeering/method_listbyworkspace.go index 1ac57f72a57..2d4acc8732b 100644 --- a/resource-manager/databricks/2023-02-01/vnetpeering/method_listbyworkspace.go +++ b/resource-manager/databricks/2023-02-01/vnetpeering/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []VirtualNetworkPeering } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c VNetPeeringClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VNetPeeringClient) ListByWorkspace(ctx context.Context, id WorkspaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkPeerings", id.ID()), } diff --git a/resource-manager/databricks/2023-02-01/workspaces/method_listbyresourcegroup.go b/resource-manager/databricks/2023-02-01/workspaces/method_listbyresourcegroup.go index 295ee2b402e..945d99c9cf5 100644 --- a/resource-manager/databricks/2023-02-01/workspaces/method_listbyresourcegroup.go +++ b/resource-manager/databricks/2023-02-01/workspaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Workspace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Databricks/workspaces", id.ID()), } diff --git a/resource-manager/databricks/2023-02-01/workspaces/method_listbysubscription.go b/resource-manager/databricks/2023-02-01/workspaces/method_listbysubscription.go index f15e0b60acd..a5acc65e357 100644 --- a/resource-manager/databricks/2023-02-01/workspaces/method_listbysubscription.go +++ b/resource-manager/databricks/2023-02-01/workspaces/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Workspace } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Databricks/workspaces", id.ID()), } diff --git a/resource-manager/databricks/2023-05-01/accessconnector/method_listbyresourcegroup.go b/resource-manager/databricks/2023-05-01/accessconnector/method_listbyresourcegroup.go index 4278bcf39a5..a31fa4139d0 100644 --- a/resource-manager/databricks/2023-05-01/accessconnector/method_listbyresourcegroup.go +++ b/resource-manager/databricks/2023-05-01/accessconnector/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AccessConnector } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AccessConnectorClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccessConnectorClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Databricks/accessConnectors", id.ID()), } diff --git a/resource-manager/databricks/2023-05-01/accessconnector/method_listbysubscription.go b/resource-manager/databricks/2023-05-01/accessconnector/method_listbysubscription.go index 403f65542e5..762437794c8 100644 --- a/resource-manager/databricks/2023-05-01/accessconnector/method_listbysubscription.go +++ b/resource-manager/databricks/2023-05-01/accessconnector/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []AccessConnector } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AccessConnectorClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccessConnectorClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Databricks/accessConnectors", id.ID()), } diff --git a/resource-manager/databricks/2024-05-01/accessconnector/method_listbyresourcegroup.go b/resource-manager/databricks/2024-05-01/accessconnector/method_listbyresourcegroup.go index 4278bcf39a5..a31fa4139d0 100644 --- a/resource-manager/databricks/2024-05-01/accessconnector/method_listbyresourcegroup.go +++ b/resource-manager/databricks/2024-05-01/accessconnector/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AccessConnector } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AccessConnectorClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccessConnectorClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Databricks/accessConnectors", id.ID()), } diff --git a/resource-manager/databricks/2024-05-01/accessconnector/method_listbysubscription.go b/resource-manager/databricks/2024-05-01/accessconnector/method_listbysubscription.go index 403f65542e5..762437794c8 100644 --- a/resource-manager/databricks/2024-05-01/accessconnector/method_listbysubscription.go +++ b/resource-manager/databricks/2024-05-01/accessconnector/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []AccessConnector } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AccessConnectorClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccessConnectorClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Databricks/accessConnectors", id.ID()), } diff --git a/resource-manager/databricks/2024-05-01/privateendpointconnections/method_list.go b/resource-manager/databricks/2024-05-01/privateendpointconnections/method_list.go index 2f1b25e81ac..bcf36ce4c39 100644 --- a/resource-manager/databricks/2024-05-01/privateendpointconnections/method_list.go +++ b/resource-manager/databricks/2024-05-01/privateendpointconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id Workspace http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/databricks/2024-05-01/privatelinkresources/method_list.go b/resource-manager/databricks/2024-05-01/privatelinkresources/method_list.go index 59609880d3a..51b395e5785 100644 --- a/resource-manager/databricks/2024-05-01/privatelinkresources/method_list.go +++ b/resource-manager/databricks/2024-05-01/privatelinkresources/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []GroupIdInformation } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkResourcesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) List(ctx context.Context, id WorkspaceId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/databricks/2024-05-01/vnetpeering/method_listbyworkspace.go b/resource-manager/databricks/2024-05-01/vnetpeering/method_listbyworkspace.go index 1ac57f72a57..2d4acc8732b 100644 --- a/resource-manager/databricks/2024-05-01/vnetpeering/method_listbyworkspace.go +++ b/resource-manager/databricks/2024-05-01/vnetpeering/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []VirtualNetworkPeering } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c VNetPeeringClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VNetPeeringClient) ListByWorkspace(ctx context.Context, id WorkspaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkPeerings", id.ID()), } diff --git a/resource-manager/databricks/2024-05-01/workspaces/method_delete.go b/resource-manager/databricks/2024-05-01/workspaces/method_delete.go index 979b1a59ad7..35366130e75 100644 --- a/resource-manager/databricks/2024-05-01/workspaces/method_delete.go +++ b/resource-manager/databricks/2024-05-01/workspaces/method_delete.go @@ -57,8 +57,8 @@ func (c WorkspacesClient) Delete(ctx context.Context, id WorkspaceId, options De http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/databricks/2024-05-01/workspaces/method_listbyresourcegroup.go b/resource-manager/databricks/2024-05-01/workspaces/method_listbyresourcegroup.go index 295ee2b402e..945d99c9cf5 100644 --- a/resource-manager/databricks/2024-05-01/workspaces/method_listbyresourcegroup.go +++ b/resource-manager/databricks/2024-05-01/workspaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Workspace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Databricks/workspaces", id.ID()), } diff --git a/resource-manager/databricks/2024-05-01/workspaces/method_listbysubscription.go b/resource-manager/databricks/2024-05-01/workspaces/method_listbysubscription.go index f15e0b60acd..a5acc65e357 100644 --- a/resource-manager/databricks/2024-05-01/workspaces/method_listbysubscription.go +++ b/resource-manager/databricks/2024-05-01/workspaces/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Workspace } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Databricks/workspaces", id.ID()), } diff --git a/resource-manager/datadog/2021-03-01/agreements/method_marketplaceagreementslist.go b/resource-manager/datadog/2021-03-01/agreements/method_marketplaceagreementslist.go index 2189da6e7fd..be05666d6c2 100644 --- a/resource-manager/datadog/2021-03-01/agreements/method_marketplaceagreementslist.go +++ b/resource-manager/datadog/2021-03-01/agreements/method_marketplaceagreementslist.go @@ -24,6 +24,18 @@ type MarketplaceAgreementsListCompleteResult struct { Items []DatadogAgreementResource } +type MarketplaceAgreementsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MarketplaceAgreementsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MarketplaceAgreementsList ... func (c AgreementsClient) MarketplaceAgreementsList(ctx context.Context, id commonids.SubscriptionId) (result MarketplaceAgreementsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AgreementsClient) MarketplaceAgreementsList(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MarketplaceAgreementsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Datadog/agreements", id.ID()), } diff --git a/resource-manager/datadog/2021-03-01/apikey/method_monitorslistapikeys.go b/resource-manager/datadog/2021-03-01/apikey/method_monitorslistapikeys.go index b5d80964671..4b3c2aae3af 100644 --- a/resource-manager/datadog/2021-03-01/apikey/method_monitorslistapikeys.go +++ b/resource-manager/datadog/2021-03-01/apikey/method_monitorslistapikeys.go @@ -23,6 +23,18 @@ type MonitorsListApiKeysCompleteResult struct { Items []DatadogApiKey } +type MonitorsListApiKeysCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListApiKeysCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListApiKeys ... func (c ApiKeyClient) MonitorsListApiKeys(ctx context.Context, id MonitorId) (result MonitorsListApiKeysOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiKeyClient) MonitorsListApiKeys(ctx context.Context, id MonitorId) (re http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorsListApiKeysCustomPager{}, Path: fmt.Sprintf("%s/listApiKeys", id.ID()), } diff --git a/resource-manager/datadog/2021-03-01/hosts/method_monitorslisthosts.go b/resource-manager/datadog/2021-03-01/hosts/method_monitorslisthosts.go index 5ca0d591946..68d1cc65246 100644 --- a/resource-manager/datadog/2021-03-01/hosts/method_monitorslisthosts.go +++ b/resource-manager/datadog/2021-03-01/hosts/method_monitorslisthosts.go @@ -23,6 +23,18 @@ type MonitorsListHostsCompleteResult struct { Items []DatadogHost } +type MonitorsListHostsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListHostsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListHosts ... func (c HostsClient) MonitorsListHosts(ctx context.Context, id MonitorId) (result MonitorsListHostsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HostsClient) MonitorsListHosts(ctx context.Context, id MonitorId) (resul http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorsListHostsCustomPager{}, Path: fmt.Sprintf("%s/listHosts", id.ID()), } diff --git a/resource-manager/datadog/2021-03-01/linkedresources/method_monitorslistlinkedresources.go b/resource-manager/datadog/2021-03-01/linkedresources/method_monitorslistlinkedresources.go index ed5bb198c33..ddc72b2816a 100644 --- a/resource-manager/datadog/2021-03-01/linkedresources/method_monitorslistlinkedresources.go +++ b/resource-manager/datadog/2021-03-01/linkedresources/method_monitorslistlinkedresources.go @@ -23,6 +23,18 @@ type MonitorsListLinkedResourcesCompleteResult struct { Items []LinkedResource } +type MonitorsListLinkedResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListLinkedResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListLinkedResources ... func (c LinkedResourcesClient) MonitorsListLinkedResources(ctx context.Context, id MonitorId) (result MonitorsListLinkedResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LinkedResourcesClient) MonitorsListLinkedResources(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorsListLinkedResourcesCustomPager{}, Path: fmt.Sprintf("%s/listLinkedResources", id.ID()), } diff --git a/resource-manager/datadog/2021-03-01/monitoredresources/method_monitorslistmonitoredresources.go b/resource-manager/datadog/2021-03-01/monitoredresources/method_monitorslistmonitoredresources.go index ec9033e87ca..1f1f519ddb8 100644 --- a/resource-manager/datadog/2021-03-01/monitoredresources/method_monitorslistmonitoredresources.go +++ b/resource-manager/datadog/2021-03-01/monitoredresources/method_monitorslistmonitoredresources.go @@ -23,6 +23,18 @@ type MonitorsListMonitoredResourcesCompleteResult struct { Items []MonitoredResource } +type MonitorsListMonitoredResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListMonitoredResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListMonitoredResources ... func (c MonitoredResourcesClient) MonitorsListMonitoredResources(ctx context.Context, id MonitorId) (result MonitorsListMonitoredResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitoredResourcesClient) MonitorsListMonitoredResources(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorsListMonitoredResourcesCustomPager{}, Path: fmt.Sprintf("%s/listMonitoredResources", id.ID()), } diff --git a/resource-manager/datadog/2021-03-01/monitorsresource/method_monitorslist.go b/resource-manager/datadog/2021-03-01/monitorsresource/method_monitorslist.go index ddcc540213b..cf82fe7deb7 100644 --- a/resource-manager/datadog/2021-03-01/monitorsresource/method_monitorslist.go +++ b/resource-manager/datadog/2021-03-01/monitorsresource/method_monitorslist.go @@ -24,6 +24,18 @@ type MonitorsListCompleteResult struct { Items []DatadogMonitorResource } +type MonitorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsList ... func (c MonitorsResourceClient) MonitorsList(ctx context.Context, id commonids.SubscriptionId) (result MonitorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsResourceClient) MonitorsList(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MonitorsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Datadog/monitors", id.ID()), } diff --git a/resource-manager/datadog/2021-03-01/monitorsresource/method_monitorslistbyresourcegroup.go b/resource-manager/datadog/2021-03-01/monitorsresource/method_monitorslistbyresourcegroup.go index 92ad58b093b..d8a82668200 100644 --- a/resource-manager/datadog/2021-03-01/monitorsresource/method_monitorslistbyresourcegroup.go +++ b/resource-manager/datadog/2021-03-01/monitorsresource/method_monitorslistbyresourcegroup.go @@ -24,6 +24,18 @@ type MonitorsListByResourceGroupCompleteResult struct { Items []DatadogMonitorResource } +type MonitorsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListByResourceGroup ... func (c MonitorsResourceClient) MonitorsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result MonitorsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsResourceClient) MonitorsListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MonitorsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Datadog/monitors", id.ID()), } diff --git a/resource-manager/datadog/2021-03-01/rules/method_tagruleslist.go b/resource-manager/datadog/2021-03-01/rules/method_tagruleslist.go index 630aeab9792..07a4cb77f27 100644 --- a/resource-manager/datadog/2021-03-01/rules/method_tagruleslist.go +++ b/resource-manager/datadog/2021-03-01/rules/method_tagruleslist.go @@ -23,6 +23,18 @@ type TagRulesListCompleteResult struct { Items []MonitoringTagRules } +type TagRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TagRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TagRulesList ... func (c RulesClient) TagRulesList(ctx context.Context, id MonitorId) (result TagRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RulesClient) TagRulesList(ctx context.Context, id MonitorId) (result Tag http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &TagRulesListCustomPager{}, Path: fmt.Sprintf("%s/tagRules", id.ID()), } diff --git a/resource-manager/datadog/2021-03-01/singlesignon/method_configurationslist.go b/resource-manager/datadog/2021-03-01/singlesignon/method_configurationslist.go index fa5e4beaf41..381b447564b 100644 --- a/resource-manager/datadog/2021-03-01/singlesignon/method_configurationslist.go +++ b/resource-manager/datadog/2021-03-01/singlesignon/method_configurationslist.go @@ -23,6 +23,18 @@ type ConfigurationsListCompleteResult struct { Items []DatadogSingleSignOnResource } +type ConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationsList ... func (c SingleSignOnClient) ConfigurationsList(ctx context.Context, id MonitorId) (result ConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SingleSignOnClient) ConfigurationsList(ctx context.Context, id MonitorId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/singleSignOnConfigurations", id.ID()), } diff --git a/resource-manager/datadog/2022-06-01/agreements/method_marketplaceagreementslist.go b/resource-manager/datadog/2022-06-01/agreements/method_marketplaceagreementslist.go index 2189da6e7fd..be05666d6c2 100644 --- a/resource-manager/datadog/2022-06-01/agreements/method_marketplaceagreementslist.go +++ b/resource-manager/datadog/2022-06-01/agreements/method_marketplaceagreementslist.go @@ -24,6 +24,18 @@ type MarketplaceAgreementsListCompleteResult struct { Items []DatadogAgreementResource } +type MarketplaceAgreementsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MarketplaceAgreementsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MarketplaceAgreementsList ... func (c AgreementsClient) MarketplaceAgreementsList(ctx context.Context, id commonids.SubscriptionId) (result MarketplaceAgreementsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AgreementsClient) MarketplaceAgreementsList(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MarketplaceAgreementsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Datadog/agreements", id.ID()), } diff --git a/resource-manager/datadog/2022-06-01/apikey/method_monitorslistapikeys.go b/resource-manager/datadog/2022-06-01/apikey/method_monitorslistapikeys.go index b5d80964671..4b3c2aae3af 100644 --- a/resource-manager/datadog/2022-06-01/apikey/method_monitorslistapikeys.go +++ b/resource-manager/datadog/2022-06-01/apikey/method_monitorslistapikeys.go @@ -23,6 +23,18 @@ type MonitorsListApiKeysCompleteResult struct { Items []DatadogApiKey } +type MonitorsListApiKeysCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListApiKeysCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListApiKeys ... func (c ApiKeyClient) MonitorsListApiKeys(ctx context.Context, id MonitorId) (result MonitorsListApiKeysOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiKeyClient) MonitorsListApiKeys(ctx context.Context, id MonitorId) (re http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorsListApiKeysCustomPager{}, Path: fmt.Sprintf("%s/listApiKeys", id.ID()), } diff --git a/resource-manager/datadog/2022-06-01/hosts/method_monitorslisthosts.go b/resource-manager/datadog/2022-06-01/hosts/method_monitorslisthosts.go index 5ca0d591946..68d1cc65246 100644 --- a/resource-manager/datadog/2022-06-01/hosts/method_monitorslisthosts.go +++ b/resource-manager/datadog/2022-06-01/hosts/method_monitorslisthosts.go @@ -23,6 +23,18 @@ type MonitorsListHostsCompleteResult struct { Items []DatadogHost } +type MonitorsListHostsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListHostsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListHosts ... func (c HostsClient) MonitorsListHosts(ctx context.Context, id MonitorId) (result MonitorsListHostsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HostsClient) MonitorsListHosts(ctx context.Context, id MonitorId) (resul http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorsListHostsCustomPager{}, Path: fmt.Sprintf("%s/listHosts", id.ID()), } diff --git a/resource-manager/datadog/2022-06-01/linkedresources/method_monitorslistlinkedresources.go b/resource-manager/datadog/2022-06-01/linkedresources/method_monitorslistlinkedresources.go index ed5bb198c33..ddc72b2816a 100644 --- a/resource-manager/datadog/2022-06-01/linkedresources/method_monitorslistlinkedresources.go +++ b/resource-manager/datadog/2022-06-01/linkedresources/method_monitorslistlinkedresources.go @@ -23,6 +23,18 @@ type MonitorsListLinkedResourcesCompleteResult struct { Items []LinkedResource } +type MonitorsListLinkedResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListLinkedResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListLinkedResources ... func (c LinkedResourcesClient) MonitorsListLinkedResources(ctx context.Context, id MonitorId) (result MonitorsListLinkedResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LinkedResourcesClient) MonitorsListLinkedResources(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorsListLinkedResourcesCustomPager{}, Path: fmt.Sprintf("%s/listLinkedResources", id.ID()), } diff --git a/resource-manager/datadog/2022-06-01/monitoredresources/method_monitorslistmonitoredresources.go b/resource-manager/datadog/2022-06-01/monitoredresources/method_monitorslistmonitoredresources.go index ec9033e87ca..1f1f519ddb8 100644 --- a/resource-manager/datadog/2022-06-01/monitoredresources/method_monitorslistmonitoredresources.go +++ b/resource-manager/datadog/2022-06-01/monitoredresources/method_monitorslistmonitoredresources.go @@ -23,6 +23,18 @@ type MonitorsListMonitoredResourcesCompleteResult struct { Items []MonitoredResource } +type MonitorsListMonitoredResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListMonitoredResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListMonitoredResources ... func (c MonitoredResourcesClient) MonitorsListMonitoredResources(ctx context.Context, id MonitorId) (result MonitorsListMonitoredResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitoredResourcesClient) MonitorsListMonitoredResources(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorsListMonitoredResourcesCustomPager{}, Path: fmt.Sprintf("%s/listMonitoredResources", id.ID()), } diff --git a/resource-manager/datadog/2022-06-01/monitorsresource/method_monitorslist.go b/resource-manager/datadog/2022-06-01/monitorsresource/method_monitorslist.go index ddcc540213b..cf82fe7deb7 100644 --- a/resource-manager/datadog/2022-06-01/monitorsresource/method_monitorslist.go +++ b/resource-manager/datadog/2022-06-01/monitorsresource/method_monitorslist.go @@ -24,6 +24,18 @@ type MonitorsListCompleteResult struct { Items []DatadogMonitorResource } +type MonitorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsList ... func (c MonitorsResourceClient) MonitorsList(ctx context.Context, id commonids.SubscriptionId) (result MonitorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsResourceClient) MonitorsList(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MonitorsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Datadog/monitors", id.ID()), } diff --git a/resource-manager/datadog/2022-06-01/monitorsresource/method_monitorslistbyresourcegroup.go b/resource-manager/datadog/2022-06-01/monitorsresource/method_monitorslistbyresourcegroup.go index 92ad58b093b..d8a82668200 100644 --- a/resource-manager/datadog/2022-06-01/monitorsresource/method_monitorslistbyresourcegroup.go +++ b/resource-manager/datadog/2022-06-01/monitorsresource/method_monitorslistbyresourcegroup.go @@ -24,6 +24,18 @@ type MonitorsListByResourceGroupCompleteResult struct { Items []DatadogMonitorResource } +type MonitorsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListByResourceGroup ... func (c MonitorsResourceClient) MonitorsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result MonitorsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsResourceClient) MonitorsListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MonitorsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Datadog/monitors", id.ID()), } diff --git a/resource-manager/datadog/2022-06-01/rules/method_tagruleslist.go b/resource-manager/datadog/2022-06-01/rules/method_tagruleslist.go index 630aeab9792..07a4cb77f27 100644 --- a/resource-manager/datadog/2022-06-01/rules/method_tagruleslist.go +++ b/resource-manager/datadog/2022-06-01/rules/method_tagruleslist.go @@ -23,6 +23,18 @@ type TagRulesListCompleteResult struct { Items []MonitoringTagRules } +type TagRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TagRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TagRulesList ... func (c RulesClient) TagRulesList(ctx context.Context, id MonitorId) (result TagRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RulesClient) TagRulesList(ctx context.Context, id MonitorId) (result Tag http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &TagRulesListCustomPager{}, Path: fmt.Sprintf("%s/tagRules", id.ID()), } diff --git a/resource-manager/datadog/2022-06-01/singlesignon/method_configurationslist.go b/resource-manager/datadog/2022-06-01/singlesignon/method_configurationslist.go index fa5e4beaf41..381b447564b 100644 --- a/resource-manager/datadog/2022-06-01/singlesignon/method_configurationslist.go +++ b/resource-manager/datadog/2022-06-01/singlesignon/method_configurationslist.go @@ -23,6 +23,18 @@ type ConfigurationsListCompleteResult struct { Items []DatadogSingleSignOnResource } +type ConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationsList ... func (c SingleSignOnClient) ConfigurationsList(ctx context.Context, id MonitorId) (result ConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SingleSignOnClient) ConfigurationsList(ctx context.Context, id MonitorId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/singleSignOnConfigurations", id.ID()), } diff --git a/resource-manager/datadog/2023-01-01/agreements/method_marketplaceagreementslist.go b/resource-manager/datadog/2023-01-01/agreements/method_marketplaceagreementslist.go index 2189da6e7fd..be05666d6c2 100644 --- a/resource-manager/datadog/2023-01-01/agreements/method_marketplaceagreementslist.go +++ b/resource-manager/datadog/2023-01-01/agreements/method_marketplaceagreementslist.go @@ -24,6 +24,18 @@ type MarketplaceAgreementsListCompleteResult struct { Items []DatadogAgreementResource } +type MarketplaceAgreementsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MarketplaceAgreementsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MarketplaceAgreementsList ... func (c AgreementsClient) MarketplaceAgreementsList(ctx context.Context, id commonids.SubscriptionId) (result MarketplaceAgreementsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AgreementsClient) MarketplaceAgreementsList(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MarketplaceAgreementsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Datadog/agreements", id.ID()), } diff --git a/resource-manager/datadog/2023-01-01/apikey/method_monitorslistapikeys.go b/resource-manager/datadog/2023-01-01/apikey/method_monitorslistapikeys.go index b5d80964671..4b3c2aae3af 100644 --- a/resource-manager/datadog/2023-01-01/apikey/method_monitorslistapikeys.go +++ b/resource-manager/datadog/2023-01-01/apikey/method_monitorslistapikeys.go @@ -23,6 +23,18 @@ type MonitorsListApiKeysCompleteResult struct { Items []DatadogApiKey } +type MonitorsListApiKeysCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListApiKeysCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListApiKeys ... func (c ApiKeyClient) MonitorsListApiKeys(ctx context.Context, id MonitorId) (result MonitorsListApiKeysOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApiKeyClient) MonitorsListApiKeys(ctx context.Context, id MonitorId) (re http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorsListApiKeysCustomPager{}, Path: fmt.Sprintf("%s/listApiKeys", id.ID()), } diff --git a/resource-manager/datadog/2023-01-01/createresource/method_creationsupportedget.go b/resource-manager/datadog/2023-01-01/createresource/method_creationsupportedget.go index 3c81be70110..4ce700da373 100644 --- a/resource-manager/datadog/2023-01-01/createresource/method_creationsupportedget.go +++ b/resource-manager/datadog/2023-01-01/createresource/method_creationsupportedget.go @@ -54,8 +54,8 @@ func (c CreateResourceClient) CreationSupportedGet(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Datadog/subscriptionStatuses/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Datadog/subscriptionStatuses/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datadog/2023-01-01/createresource/method_creationsupportedlist.go b/resource-manager/datadog/2023-01-01/createresource/method_creationsupportedlist.go index a7e50b4ee8e..ef5f5c5a4fa 100644 --- a/resource-manager/datadog/2023-01-01/createresource/method_creationsupportedlist.go +++ b/resource-manager/datadog/2023-01-01/createresource/method_creationsupportedlist.go @@ -54,8 +54,8 @@ func (c CreateResourceClient) CreationSupportedList(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Datadog/subscriptionStatuses", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Datadog/subscriptionStatuses", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datadog/2023-01-01/hosts/method_monitorslisthosts.go b/resource-manager/datadog/2023-01-01/hosts/method_monitorslisthosts.go index 5ca0d591946..68d1cc65246 100644 --- a/resource-manager/datadog/2023-01-01/hosts/method_monitorslisthosts.go +++ b/resource-manager/datadog/2023-01-01/hosts/method_monitorslisthosts.go @@ -23,6 +23,18 @@ type MonitorsListHostsCompleteResult struct { Items []DatadogHost } +type MonitorsListHostsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListHostsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListHosts ... func (c HostsClient) MonitorsListHosts(ctx context.Context, id MonitorId) (result MonitorsListHostsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HostsClient) MonitorsListHosts(ctx context.Context, id MonitorId) (resul http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorsListHostsCustomPager{}, Path: fmt.Sprintf("%s/listHosts", id.ID()), } diff --git a/resource-manager/datadog/2023-01-01/linkedresources/method_monitorslistlinkedresources.go b/resource-manager/datadog/2023-01-01/linkedresources/method_monitorslistlinkedresources.go index ed5bb198c33..ddc72b2816a 100644 --- a/resource-manager/datadog/2023-01-01/linkedresources/method_monitorslistlinkedresources.go +++ b/resource-manager/datadog/2023-01-01/linkedresources/method_monitorslistlinkedresources.go @@ -23,6 +23,18 @@ type MonitorsListLinkedResourcesCompleteResult struct { Items []LinkedResource } +type MonitorsListLinkedResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListLinkedResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListLinkedResources ... func (c LinkedResourcesClient) MonitorsListLinkedResources(ctx context.Context, id MonitorId) (result MonitorsListLinkedResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LinkedResourcesClient) MonitorsListLinkedResources(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorsListLinkedResourcesCustomPager{}, Path: fmt.Sprintf("%s/listLinkedResources", id.ID()), } diff --git a/resource-manager/datadog/2023-01-01/monitoredresources/method_monitorslistmonitoredresources.go b/resource-manager/datadog/2023-01-01/monitoredresources/method_monitorslistmonitoredresources.go index ec9033e87ca..1f1f519ddb8 100644 --- a/resource-manager/datadog/2023-01-01/monitoredresources/method_monitorslistmonitoredresources.go +++ b/resource-manager/datadog/2023-01-01/monitoredresources/method_monitorslistmonitoredresources.go @@ -23,6 +23,18 @@ type MonitorsListMonitoredResourcesCompleteResult struct { Items []MonitoredResource } +type MonitorsListMonitoredResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListMonitoredResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListMonitoredResources ... func (c MonitoredResourcesClient) MonitorsListMonitoredResources(ctx context.Context, id MonitorId) (result MonitorsListMonitoredResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitoredResourcesClient) MonitorsListMonitoredResources(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorsListMonitoredResourcesCustomPager{}, Path: fmt.Sprintf("%s/listMonitoredResources", id.ID()), } diff --git a/resource-manager/datadog/2023-01-01/monitorsresource/method_monitorslist.go b/resource-manager/datadog/2023-01-01/monitorsresource/method_monitorslist.go index ddcc540213b..cf82fe7deb7 100644 --- a/resource-manager/datadog/2023-01-01/monitorsresource/method_monitorslist.go +++ b/resource-manager/datadog/2023-01-01/monitorsresource/method_monitorslist.go @@ -24,6 +24,18 @@ type MonitorsListCompleteResult struct { Items []DatadogMonitorResource } +type MonitorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsList ... func (c MonitorsResourceClient) MonitorsList(ctx context.Context, id commonids.SubscriptionId) (result MonitorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsResourceClient) MonitorsList(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MonitorsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Datadog/monitors", id.ID()), } diff --git a/resource-manager/datadog/2023-01-01/monitorsresource/method_monitorslistbyresourcegroup.go b/resource-manager/datadog/2023-01-01/monitorsresource/method_monitorslistbyresourcegroup.go index 92ad58b093b..d8a82668200 100644 --- a/resource-manager/datadog/2023-01-01/monitorsresource/method_monitorslistbyresourcegroup.go +++ b/resource-manager/datadog/2023-01-01/monitorsresource/method_monitorslistbyresourcegroup.go @@ -24,6 +24,18 @@ type MonitorsListByResourceGroupCompleteResult struct { Items []DatadogMonitorResource } +type MonitorsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListByResourceGroup ... func (c MonitorsResourceClient) MonitorsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result MonitorsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsResourceClient) MonitorsListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MonitorsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Datadog/monitors", id.ID()), } diff --git a/resource-manager/datadog/2023-01-01/rules/method_tagruleslist.go b/resource-manager/datadog/2023-01-01/rules/method_tagruleslist.go index 630aeab9792..07a4cb77f27 100644 --- a/resource-manager/datadog/2023-01-01/rules/method_tagruleslist.go +++ b/resource-manager/datadog/2023-01-01/rules/method_tagruleslist.go @@ -23,6 +23,18 @@ type TagRulesListCompleteResult struct { Items []MonitoringTagRules } +type TagRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TagRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TagRulesList ... func (c RulesClient) TagRulesList(ctx context.Context, id MonitorId) (result TagRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RulesClient) TagRulesList(ctx context.Context, id MonitorId) (result Tag http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &TagRulesListCustomPager{}, Path: fmt.Sprintf("%s/tagRules", id.ID()), } diff --git a/resource-manager/datadog/2023-01-01/singlesignon/method_configurationslist.go b/resource-manager/datadog/2023-01-01/singlesignon/method_configurationslist.go index fa5e4beaf41..381b447564b 100644 --- a/resource-manager/datadog/2023-01-01/singlesignon/method_configurationslist.go +++ b/resource-manager/datadog/2023-01-01/singlesignon/method_configurationslist.go @@ -23,6 +23,18 @@ type ConfigurationsListCompleteResult struct { Items []DatadogSingleSignOnResource } +type ConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationsList ... func (c SingleSignOnClient) ConfigurationsList(ctx context.Context, id MonitorId) (result ConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SingleSignOnClient) ConfigurationsList(ctx context.Context, id MonitorId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/singleSignOnConfigurations", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/changedatacapture/method_createorupdate.go b/resource-manager/datafactory/2018-06-01/changedatacapture/method_createorupdate.go index 89c357cb608..a6ece91ad33 100644 --- a/resource-manager/datafactory/2018-06-01/changedatacapture/method_createorupdate.go +++ b/resource-manager/datafactory/2018-06-01/changedatacapture/method_createorupdate.go @@ -53,8 +53,8 @@ func (c ChangeDataCaptureClient) CreateOrUpdate(ctx context.Context, id AdfcdcId http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/changedatacapture/method_get.go b/resource-manager/datafactory/2018-06-01/changedatacapture/method_get.go index 6e376e28ea2..4acb9b87c68 100644 --- a/resource-manager/datafactory/2018-06-01/changedatacapture/method_get.go +++ b/resource-manager/datafactory/2018-06-01/changedatacapture/method_get.go @@ -53,8 +53,8 @@ func (c ChangeDataCaptureClient) Get(ctx context.Context, id AdfcdcId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/changedatacapture/method_listbyfactory.go b/resource-manager/datafactory/2018-06-01/changedatacapture/method_listbyfactory.go index 8e27ee48e1e..4fa6d97ca11 100644 --- a/resource-manager/datafactory/2018-06-01/changedatacapture/method_listbyfactory.go +++ b/resource-manager/datafactory/2018-06-01/changedatacapture/method_listbyfactory.go @@ -23,6 +23,18 @@ type ListByFactoryCompleteResult struct { Items []ChangeDataCaptureResource } +type ListByFactoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFactoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFactory ... func (c ChangeDataCaptureClient) ListByFactory(ctx context.Context, id FactoryId) (result ListByFactoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ChangeDataCaptureClient) ListByFactory(ctx context.Context, id FactoryId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFactoryCustomPager{}, Path: fmt.Sprintf("%s/adfcdcs", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationscreateorupdate.go b/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationscreateorupdate.go index aef9657a1db..eb08f80543f 100644 --- a/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationscreateorupdate.go +++ b/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationscreateorupdate.go @@ -53,8 +53,8 @@ func (c CredentialsClient) CredentialOperationsCreateOrUpdate(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationsget.go b/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationsget.go index 23d39f0b464..f61d46ae2ad 100644 --- a/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationsget.go +++ b/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationsget.go @@ -53,8 +53,8 @@ func (c CredentialsClient) CredentialOperationsGet(ctx context.Context, id Crede http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationslistbyfactory.go b/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationslistbyfactory.go index 3f767226a4f..cdec1b8d57b 100644 --- a/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationslistbyfactory.go +++ b/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationslistbyfactory.go @@ -23,6 +23,18 @@ type CredentialOperationsListByFactoryCompleteResult struct { Items []CredentialResource } +type CredentialOperationsListByFactoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CredentialOperationsListByFactoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CredentialOperationsListByFactory ... func (c CredentialsClient) CredentialOperationsListByFactory(ctx context.Context, id FactoryId) (result CredentialOperationsListByFactoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CredentialsClient) CredentialOperationsListByFactory(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CredentialOperationsListByFactoryCustomPager{}, Path: fmt.Sprintf("%s/credentials", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/dataflowdebugsession/method_querybyfactory.go b/resource-manager/datafactory/2018-06-01/dataflowdebugsession/method_querybyfactory.go index b2191ff49b1..dfc790b1af3 100644 --- a/resource-manager/datafactory/2018-06-01/dataflowdebugsession/method_querybyfactory.go +++ b/resource-manager/datafactory/2018-06-01/dataflowdebugsession/method_querybyfactory.go @@ -23,6 +23,18 @@ type QueryByFactoryCompleteResult struct { Items []DataFlowDebugSessionInfo } +type QueryByFactoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *QueryByFactoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // QueryByFactory ... func (c DataFlowDebugSessionClient) QueryByFactory(ctx context.Context, id FactoryId) (result QueryByFactoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DataFlowDebugSessionClient) QueryByFactory(ctx context.Context, id Facto http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &QueryByFactoryCustomPager{}, Path: fmt.Sprintf("%s/queryDataFlowDebugSessions", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/dataflows/method_createorupdate.go b/resource-manager/datafactory/2018-06-01/dataflows/method_createorupdate.go index 57df015eeb8..a7b2e43acee 100644 --- a/resource-manager/datafactory/2018-06-01/dataflows/method_createorupdate.go +++ b/resource-manager/datafactory/2018-06-01/dataflows/method_createorupdate.go @@ -53,8 +53,8 @@ func (c DataFlowsClient) CreateOrUpdate(ctx context.Context, id DataflowId, inpu http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/dataflows/method_get.go b/resource-manager/datafactory/2018-06-01/dataflows/method_get.go index 04a09662c60..4a0c06a3321 100644 --- a/resource-manager/datafactory/2018-06-01/dataflows/method_get.go +++ b/resource-manager/datafactory/2018-06-01/dataflows/method_get.go @@ -53,8 +53,8 @@ func (c DataFlowsClient) Get(ctx context.Context, id DataflowId, options GetOper http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/dataflows/method_listbyfactory.go b/resource-manager/datafactory/2018-06-01/dataflows/method_listbyfactory.go index aea26192202..24d0375308d 100644 --- a/resource-manager/datafactory/2018-06-01/dataflows/method_listbyfactory.go +++ b/resource-manager/datafactory/2018-06-01/dataflows/method_listbyfactory.go @@ -23,6 +23,18 @@ type ListByFactoryCompleteResult struct { Items []DataFlowResource } +type ListByFactoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFactoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFactory ... func (c DataFlowsClient) ListByFactory(ctx context.Context, id FactoryId) (result ListByFactoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DataFlowsClient) ListByFactory(ctx context.Context, id FactoryId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFactoryCustomPager{}, Path: fmt.Sprintf("%s/dataflows", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/datasets/method_createorupdate.go b/resource-manager/datafactory/2018-06-01/datasets/method_createorupdate.go index 99fb9628198..edbeb3a53df 100644 --- a/resource-manager/datafactory/2018-06-01/datasets/method_createorupdate.go +++ b/resource-manager/datafactory/2018-06-01/datasets/method_createorupdate.go @@ -53,8 +53,8 @@ func (c DatasetsClient) CreateOrUpdate(ctx context.Context, id DatasetId, input http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/datasets/method_get.go b/resource-manager/datafactory/2018-06-01/datasets/method_get.go index 326d659dbe7..c82fc1d4577 100644 --- a/resource-manager/datafactory/2018-06-01/datasets/method_get.go +++ b/resource-manager/datafactory/2018-06-01/datasets/method_get.go @@ -53,8 +53,8 @@ func (c DatasetsClient) Get(ctx context.Context, id DatasetId, options GetOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/datasets/method_listbyfactory.go b/resource-manager/datafactory/2018-06-01/datasets/method_listbyfactory.go index 815b0a49041..4ba54fcf622 100644 --- a/resource-manager/datafactory/2018-06-01/datasets/method_listbyfactory.go +++ b/resource-manager/datafactory/2018-06-01/datasets/method_listbyfactory.go @@ -23,6 +23,18 @@ type ListByFactoryCompleteResult struct { Items []DatasetResource } +type ListByFactoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFactoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFactory ... func (c DatasetsClient) ListByFactory(ctx context.Context, id FactoryId) (result ListByFactoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DatasetsClient) ListByFactory(ctx context.Context, id FactoryId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFactoryCustomPager{}, Path: fmt.Sprintf("%s/datasets", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/factories/method_createorupdate.go b/resource-manager/datafactory/2018-06-01/factories/method_createorupdate.go index 25c46e45613..d572f7c9f81 100644 --- a/resource-manager/datafactory/2018-06-01/factories/method_createorupdate.go +++ b/resource-manager/datafactory/2018-06-01/factories/method_createorupdate.go @@ -53,8 +53,8 @@ func (c FactoriesClient) CreateOrUpdate(ctx context.Context, id FactoryId, input http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/factories/method_get.go b/resource-manager/datafactory/2018-06-01/factories/method_get.go index fa04e9119e2..5ef5d19abce 100644 --- a/resource-manager/datafactory/2018-06-01/factories/method_get.go +++ b/resource-manager/datafactory/2018-06-01/factories/method_get.go @@ -53,8 +53,8 @@ func (c FactoriesClient) Get(ctx context.Context, id FactoryId, options GetOpera http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/factories/method_list.go b/resource-manager/datafactory/2018-06-01/factories/method_list.go index db922e0ef16..84e0f27ad14 100644 --- a/resource-manager/datafactory/2018-06-01/factories/method_list.go +++ b/resource-manager/datafactory/2018-06-01/factories/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Factory } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FactoriesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FactoriesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataFactory/factories", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/factories/method_listbyresourcegroup.go b/resource-manager/datafactory/2018-06-01/factories/method_listbyresourcegroup.go index c2cb314160a..f38dc9afb11 100644 --- a/resource-manager/datafactory/2018-06-01/factories/method_listbyresourcegroup.go +++ b/resource-manager/datafactory/2018-06-01/factories/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Factory } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c FactoriesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FactoriesClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataFactory/factories", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/globalparameters/method_listbyfactory.go b/resource-manager/datafactory/2018-06-01/globalparameters/method_listbyfactory.go index 911f9e63abb..6c562cd618a 100644 --- a/resource-manager/datafactory/2018-06-01/globalparameters/method_listbyfactory.go +++ b/resource-manager/datafactory/2018-06-01/globalparameters/method_listbyfactory.go @@ -23,6 +23,18 @@ type ListByFactoryCompleteResult struct { Items []GlobalParameterResource } +type ListByFactoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFactoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFactory ... func (c GlobalParametersClient) ListByFactory(ctx context.Context, id FactoryId) (result ListByFactoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GlobalParametersClient) ListByFactory(ctx context.Context, id FactoryId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFactoryCustomPager{}, Path: fmt.Sprintf("%s/globalParameters", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/integrationruntimeobjectmetadata/method_get.go b/resource-manager/datafactory/2018-06-01/integrationruntimeobjectmetadata/method_get.go index 13ef96723ed..ac63a1a1d97 100644 --- a/resource-manager/datafactory/2018-06-01/integrationruntimeobjectmetadata/method_get.go +++ b/resource-manager/datafactory/2018-06-01/integrationruntimeobjectmetadata/method_get.go @@ -23,6 +23,18 @@ type GetCompleteResult struct { Items []SsisObjectMetadata } +type GetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Get ... func (c IntegrationRuntimeObjectMetadataClient) Get(ctx context.Context, id IntegrationRuntimeId, input GetSsisObjectMetadataRequest) (result GetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IntegrationRuntimeObjectMetadataClient) Get(ctx context.Context, id Inte http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetCustomPager{}, Path: fmt.Sprintf("%s/getObjectMetadata", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/integrationruntimes/method_createorupdate.go b/resource-manager/datafactory/2018-06-01/integrationruntimes/method_createorupdate.go index 1380a65422f..d5554b7f3d1 100644 --- a/resource-manager/datafactory/2018-06-01/integrationruntimes/method_createorupdate.go +++ b/resource-manager/datafactory/2018-06-01/integrationruntimes/method_createorupdate.go @@ -53,8 +53,8 @@ func (c IntegrationRuntimesClient) CreateOrUpdate(ctx context.Context, id Integr http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/integrationruntimes/method_get.go b/resource-manager/datafactory/2018-06-01/integrationruntimes/method_get.go index 45edcfe7394..528235f7daa 100644 --- a/resource-manager/datafactory/2018-06-01/integrationruntimes/method_get.go +++ b/resource-manager/datafactory/2018-06-01/integrationruntimes/method_get.go @@ -53,8 +53,8 @@ func (c IntegrationRuntimesClient) Get(ctx context.Context, id IntegrationRuntim http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/integrationruntimes/method_listbyfactory.go b/resource-manager/datafactory/2018-06-01/integrationruntimes/method_listbyfactory.go index 667ad63fcc6..9d74f11f792 100644 --- a/resource-manager/datafactory/2018-06-01/integrationruntimes/method_listbyfactory.go +++ b/resource-manager/datafactory/2018-06-01/integrationruntimes/method_listbyfactory.go @@ -23,6 +23,18 @@ type ListByFactoryCompleteResult struct { Items []IntegrationRuntimeResource } +type ListByFactoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFactoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFactory ... func (c IntegrationRuntimesClient) ListByFactory(ctx context.Context, id FactoryId) (result ListByFactoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IntegrationRuntimesClient) ListByFactory(ctx context.Context, id Factory http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFactoryCustomPager{}, Path: fmt.Sprintf("%s/integrationRuntimes", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/linkedservices/method_createorupdate.go b/resource-manager/datafactory/2018-06-01/linkedservices/method_createorupdate.go index f8b4079ff2e..8f631277b71 100644 --- a/resource-manager/datafactory/2018-06-01/linkedservices/method_createorupdate.go +++ b/resource-manager/datafactory/2018-06-01/linkedservices/method_createorupdate.go @@ -53,8 +53,8 @@ func (c LinkedServicesClient) CreateOrUpdate(ctx context.Context, id LinkedServi http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/linkedservices/method_get.go b/resource-manager/datafactory/2018-06-01/linkedservices/method_get.go index 0b5781e0f15..dbf9ce8537c 100644 --- a/resource-manager/datafactory/2018-06-01/linkedservices/method_get.go +++ b/resource-manager/datafactory/2018-06-01/linkedservices/method_get.go @@ -53,8 +53,8 @@ func (c LinkedServicesClient) Get(ctx context.Context, id LinkedServiceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/linkedservices/method_listbyfactory.go b/resource-manager/datafactory/2018-06-01/linkedservices/method_listbyfactory.go index 87e5be6136d..bb0aae4f9ca 100644 --- a/resource-manager/datafactory/2018-06-01/linkedservices/method_listbyfactory.go +++ b/resource-manager/datafactory/2018-06-01/linkedservices/method_listbyfactory.go @@ -23,6 +23,18 @@ type ListByFactoryCompleteResult struct { Items []LinkedServiceResource } +type ListByFactoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFactoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFactory ... func (c LinkedServicesClient) ListByFactory(ctx context.Context, id FactoryId) (result ListByFactoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LinkedServicesClient) ListByFactory(ctx context.Context, id FactoryId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFactoryCustomPager{}, Path: fmt.Sprintf("%s/linkedServices", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_createorupdate.go b/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_createorupdate.go index 33c7c7f1618..eba183e8415 100644 --- a/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_createorupdate.go +++ b/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_createorupdate.go @@ -53,8 +53,8 @@ func (c ManagedPrivateEndpointsClient) CreateOrUpdate(ctx context.Context, id Ma http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_get.go b/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_get.go index a758ba49a62..ebca28c71f2 100644 --- a/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_get.go +++ b/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_get.go @@ -53,8 +53,8 @@ func (c ManagedPrivateEndpointsClient) Get(ctx context.Context, id ManagedPrivat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_listbyfactory.go b/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_listbyfactory.go index 8bb6943b9a5..3f749d780f4 100644 --- a/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_listbyfactory.go +++ b/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_listbyfactory.go @@ -23,6 +23,18 @@ type ListByFactoryCompleteResult struct { Items []ManagedPrivateEndpointResource } +type ListByFactoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFactoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFactory ... func (c ManagedPrivateEndpointsClient) ListByFactory(ctx context.Context, id ManagedVirtualNetworkId) (result ListByFactoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedPrivateEndpointsClient) ListByFactory(ctx context.Context, id Man http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFactoryCustomPager{}, Path: fmt.Sprintf("%s/managedPrivateEndpoints", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_createorupdate.go b/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_createorupdate.go index 6209abd2eb8..a9e00f4874b 100644 --- a/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_createorupdate.go +++ b/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_createorupdate.go @@ -53,8 +53,8 @@ func (c ManagedVirtualNetworksClient) CreateOrUpdate(ctx context.Context, id Man http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_get.go b/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_get.go index 01fdfde9e73..035d910d410 100644 --- a/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_get.go +++ b/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_get.go @@ -53,8 +53,8 @@ func (c ManagedVirtualNetworksClient) Get(ctx context.Context, id ManagedVirtual http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_listbyfactory.go b/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_listbyfactory.go index ffc97906d4b..446332e5eb6 100644 --- a/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_listbyfactory.go +++ b/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_listbyfactory.go @@ -23,6 +23,18 @@ type ListByFactoryCompleteResult struct { Items []ManagedVirtualNetworkResource } +type ListByFactoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFactoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFactory ... func (c ManagedVirtualNetworksClient) ListByFactory(ctx context.Context, id FactoryId) (result ListByFactoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedVirtualNetworksClient) ListByFactory(ctx context.Context, id Fact http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFactoryCustomPager{}, Path: fmt.Sprintf("%s/managedVirtualNetworks", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/pipelineruns/method_cancel.go b/resource-manager/datafactory/2018-06-01/pipelineruns/method_cancel.go index 71482987585..d67de0e3351 100644 --- a/resource-manager/datafactory/2018-06-01/pipelineruns/method_cancel.go +++ b/resource-manager/datafactory/2018-06-01/pipelineruns/method_cancel.go @@ -52,8 +52,8 @@ func (c PipelineRunsClient) Cancel(ctx context.Context, id PipelineRunId, option http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/cancel", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/cancel", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/pipelines/method_createorupdate.go b/resource-manager/datafactory/2018-06-01/pipelines/method_createorupdate.go index 427f285e300..5f343867b64 100644 --- a/resource-manager/datafactory/2018-06-01/pipelines/method_createorupdate.go +++ b/resource-manager/datafactory/2018-06-01/pipelines/method_createorupdate.go @@ -53,8 +53,8 @@ func (c PipelinesClient) CreateOrUpdate(ctx context.Context, id PipelineId, inpu http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/pipelines/method_createrun.go b/resource-manager/datafactory/2018-06-01/pipelines/method_createrun.go index f6f3537d294..084e829005e 100644 --- a/resource-manager/datafactory/2018-06-01/pipelines/method_createrun.go +++ b/resource-manager/datafactory/2018-06-01/pipelines/method_createrun.go @@ -65,8 +65,8 @@ func (c PipelinesClient) CreateRun(ctx context.Context, id PipelineId, input map http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/createRun", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/createRun", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/pipelines/method_get.go b/resource-manager/datafactory/2018-06-01/pipelines/method_get.go index bf29111f1a6..dcde5f079da 100644 --- a/resource-manager/datafactory/2018-06-01/pipelines/method_get.go +++ b/resource-manager/datafactory/2018-06-01/pipelines/method_get.go @@ -53,8 +53,8 @@ func (c PipelinesClient) Get(ctx context.Context, id PipelineId, options GetOper http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/pipelines/method_listbyfactory.go b/resource-manager/datafactory/2018-06-01/pipelines/method_listbyfactory.go index 12b70974d68..d5932a6c160 100644 --- a/resource-manager/datafactory/2018-06-01/pipelines/method_listbyfactory.go +++ b/resource-manager/datafactory/2018-06-01/pipelines/method_listbyfactory.go @@ -23,6 +23,18 @@ type ListByFactoryCompleteResult struct { Items []PipelineResource } +type ListByFactoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFactoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFactory ... func (c PipelinesClient) ListByFactory(ctx context.Context, id FactoryId) (result ListByFactoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PipelinesClient) ListByFactory(ctx context.Context, id FactoryId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFactoryCustomPager{}, Path: fmt.Sprintf("%s/pipelines", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/privateendpointconnections/method_listbyfactory.go b/resource-manager/datafactory/2018-06-01/privateendpointconnections/method_listbyfactory.go index 9fb4c8a65b6..8b7038228c0 100644 --- a/resource-manager/datafactory/2018-06-01/privateendpointconnections/method_listbyfactory.go +++ b/resource-manager/datafactory/2018-06-01/privateendpointconnections/method_listbyfactory.go @@ -23,6 +23,18 @@ type ListByFactoryCompleteResult struct { Items []PrivateEndpointConnectionResource } +type ListByFactoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFactoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFactory ... func (c PrivateEndpointConnectionsClient) ListByFactory(ctx context.Context, id FactoryId) (result ListByFactoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) ListByFactory(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFactoryCustomPager{}, Path: fmt.Sprintf("%s/privateEndPointConnections", id.ID()), } diff --git a/resource-manager/datafactory/2018-06-01/privateendpointconnections/method_privateendpointconnectioncreateorupdate.go b/resource-manager/datafactory/2018-06-01/privateendpointconnections/method_privateendpointconnectioncreateorupdate.go index 5e9d0c60cdd..738deacbffc 100644 --- a/resource-manager/datafactory/2018-06-01/privateendpointconnections/method_privateendpointconnectioncreateorupdate.go +++ b/resource-manager/datafactory/2018-06-01/privateendpointconnections/method_privateendpointconnectioncreateorupdate.go @@ -53,8 +53,8 @@ func (c PrivateEndpointConnectionsClient) PrivateEndpointConnectionCreateOrUpdat http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/privateendpointconnections/method_privateendpointconnectionget.go b/resource-manager/datafactory/2018-06-01/privateendpointconnections/method_privateendpointconnectionget.go index 602b326c0af..26832ae3445 100644 --- a/resource-manager/datafactory/2018-06-01/privateendpointconnections/method_privateendpointconnectionget.go +++ b/resource-manager/datafactory/2018-06-01/privateendpointconnections/method_privateendpointconnectionget.go @@ -53,8 +53,8 @@ func (c PrivateEndpointConnectionsClient) PrivateEndpointConnectionGet(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/trigger/method_get.go b/resource-manager/datafactory/2018-06-01/trigger/method_get.go index 42f969745d5..7a0ebbc7840 100644 --- a/resource-manager/datafactory/2018-06-01/trigger/method_get.go +++ b/resource-manager/datafactory/2018-06-01/trigger/method_get.go @@ -53,8 +53,8 @@ func (c TriggerClient) Get(ctx context.Context, id TriggerId, options GetOperati http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/triggers/method_createorupdate.go b/resource-manager/datafactory/2018-06-01/triggers/method_createorupdate.go index fbdffe1de67..31c6276d6a8 100644 --- a/resource-manager/datafactory/2018-06-01/triggers/method_createorupdate.go +++ b/resource-manager/datafactory/2018-06-01/triggers/method_createorupdate.go @@ -53,8 +53,8 @@ func (c TriggersClient) CreateOrUpdate(ctx context.Context, id TriggerId, input http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datafactory/2018-06-01/triggers/method_listbyfactory.go b/resource-manager/datafactory/2018-06-01/triggers/method_listbyfactory.go index 101bfe5b310..e54290ad8ad 100644 --- a/resource-manager/datafactory/2018-06-01/triggers/method_listbyfactory.go +++ b/resource-manager/datafactory/2018-06-01/triggers/method_listbyfactory.go @@ -23,6 +23,18 @@ type ListByFactoryCompleteResult struct { Items []TriggerResource } +type ListByFactoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFactoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFactory ... func (c TriggersClient) ListByFactory(ctx context.Context, id FactoryId) (result ListByFactoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TriggersClient) ListByFactory(ctx context.Context, id FactoryId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFactoryCustomPager{}, Path: fmt.Sprintf("%s/triggers", id.ID()), } diff --git a/resource-manager/datalakeanalytics/2016-11-01/accounts/method_list.go b/resource-manager/datalakeanalytics/2016-11-01/accounts/method_list.go index 7c4e280cad7..f8f8f1be5c2 100644 --- a/resource-manager/datalakeanalytics/2016-11-01/accounts/method_list.go +++ b/resource-manager/datalakeanalytics/2016-11-01/accounts/method_list.go @@ -71,6 +71,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AccountsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -79,8 +91,9 @@ func (c AccountsClient) List(ctx context.Context, id commonids.SubscriptionId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DataLakeAnalytics/accounts", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DataLakeAnalytics/accounts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datalakeanalytics/2016-11-01/accounts/method_listbyresourcegroup.go b/resource-manager/datalakeanalytics/2016-11-01/accounts/method_listbyresourcegroup.go index d647845b3ef..7a9fdcefbc9 100644 --- a/resource-manager/datalakeanalytics/2016-11-01/accounts/method_listbyresourcegroup.go +++ b/resource-manager/datalakeanalytics/2016-11-01/accounts/method_listbyresourcegroup.go @@ -71,6 +71,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AccountsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -79,8 +91,9 @@ func (c AccountsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DataLakeAnalytics/accounts", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DataLakeAnalytics/accounts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datalakeanalytics/2016-11-01/computepolicies/method_listbyaccount.go b/resource-manager/datalakeanalytics/2016-11-01/computepolicies/method_listbyaccount.go index 36a61bd99e3..64ec376b154 100644 --- a/resource-manager/datalakeanalytics/2016-11-01/computepolicies/method_listbyaccount.go +++ b/resource-manager/datalakeanalytics/2016-11-01/computepolicies/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []ComputePolicy } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c ComputePoliciesClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ComputePoliciesClient) ListByAccount(ctx context.Context, id AccountId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/computePolicies", id.ID()), } diff --git a/resource-manager/datalakeanalytics/2016-11-01/datalakestoreaccounts/method_listbyaccount.go b/resource-manager/datalakeanalytics/2016-11-01/datalakestoreaccounts/method_listbyaccount.go index bb7d3aa5fa4..fa0062864db 100644 --- a/resource-manager/datalakeanalytics/2016-11-01/datalakestoreaccounts/method_listbyaccount.go +++ b/resource-manager/datalakeanalytics/2016-11-01/datalakestoreaccounts/method_listbyaccount.go @@ -70,6 +70,18 @@ func (o ListByAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c DataLakeStoreAccountsClient) ListByAccount(ctx context.Context, id AccountId, options ListByAccountOperationOptions) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c DataLakeStoreAccountsClient) ListByAccount(ctx context.Context, id Accou http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/dataLakeStoreAccounts", id.ID()), OptionsObject: options, + Pager: &ListByAccountCustomPager{}, + Path: fmt.Sprintf("%s/dataLakeStoreAccounts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datalakeanalytics/2016-11-01/firewallrules/method_listbyaccount.go b/resource-manager/datalakeanalytics/2016-11-01/firewallrules/method_listbyaccount.go index e82c4102f15..6b5a746f327 100644 --- a/resource-manager/datalakeanalytics/2016-11-01/firewallrules/method_listbyaccount.go +++ b/resource-manager/datalakeanalytics/2016-11-01/firewallrules/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []FirewallRule } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c FirewallRulesClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallRulesClient) ListByAccount(ctx context.Context, id AccountId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/datalakeanalytics/2016-11-01/storageaccounts/method_listbyaccount.go b/resource-manager/datalakeanalytics/2016-11-01/storageaccounts/method_listbyaccount.go index 0d8ff46dd6d..c7ef3ba6683 100644 --- a/resource-manager/datalakeanalytics/2016-11-01/storageaccounts/method_listbyaccount.go +++ b/resource-manager/datalakeanalytics/2016-11-01/storageaccounts/method_listbyaccount.go @@ -70,6 +70,18 @@ func (o ListByAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c StorageAccountsClient) ListByAccount(ctx context.Context, id AccountId, options ListByAccountOperationOptions) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c StorageAccountsClient) ListByAccount(ctx context.Context, id AccountId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/storageAccounts", id.ID()), OptionsObject: options, + Pager: &ListByAccountCustomPager{}, + Path: fmt.Sprintf("%s/storageAccounts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datalakeanalytics/2016-11-01/storageaccounts/method_listsastokens.go b/resource-manager/datalakeanalytics/2016-11-01/storageaccounts/method_listsastokens.go index a65080a427a..64ab928d768 100644 --- a/resource-manager/datalakeanalytics/2016-11-01/storageaccounts/method_listsastokens.go +++ b/resource-manager/datalakeanalytics/2016-11-01/storageaccounts/method_listsastokens.go @@ -23,6 +23,18 @@ type ListSasTokensCompleteResult struct { Items []SasTokenInformation } +type ListSasTokensCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSasTokensCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSasTokens ... func (c StorageAccountsClient) ListSasTokens(ctx context.Context, id ContainerId) (result ListSasTokensOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StorageAccountsClient) ListSasTokens(ctx context.Context, id ContainerId http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSasTokensCustomPager{}, Path: fmt.Sprintf("%s/listSasTokens", id.ID()), } diff --git a/resource-manager/datalakeanalytics/2016-11-01/storageaccounts/method_liststoragecontainers.go b/resource-manager/datalakeanalytics/2016-11-01/storageaccounts/method_liststoragecontainers.go index 2bffcefaccd..5dd96b06ec6 100644 --- a/resource-manager/datalakeanalytics/2016-11-01/storageaccounts/method_liststoragecontainers.go +++ b/resource-manager/datalakeanalytics/2016-11-01/storageaccounts/method_liststoragecontainers.go @@ -23,6 +23,18 @@ type ListStorageContainersCompleteResult struct { Items []StorageContainer } +type ListStorageContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListStorageContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListStorageContainers ... func (c StorageAccountsClient) ListStorageContainers(ctx context.Context, id StorageAccountId) (result ListStorageContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StorageAccountsClient) ListStorageContainers(ctx context.Context, id Sto http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListStorageContainersCustomPager{}, Path: fmt.Sprintf("%s/containers", id.ID()), } diff --git a/resource-manager/datalakestore/2016-11-01/accounts/method_list.go b/resource-manager/datalakestore/2016-11-01/accounts/method_list.go index 8f308c07049..3b545689a70 100644 --- a/resource-manager/datalakestore/2016-11-01/accounts/method_list.go +++ b/resource-manager/datalakestore/2016-11-01/accounts/method_list.go @@ -71,6 +71,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AccountsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -79,8 +91,9 @@ func (c AccountsClient) List(ctx context.Context, id commonids.SubscriptionId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DataLakeStore/accounts", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DataLakeStore/accounts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datalakestore/2016-11-01/accounts/method_listbyresourcegroup.go b/resource-manager/datalakestore/2016-11-01/accounts/method_listbyresourcegroup.go index 67931a9b076..a58a7a80d97 100644 --- a/resource-manager/datalakestore/2016-11-01/accounts/method_listbyresourcegroup.go +++ b/resource-manager/datalakestore/2016-11-01/accounts/method_listbyresourcegroup.go @@ -71,6 +71,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AccountsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -79,8 +91,9 @@ func (c AccountsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DataLakeStore/accounts", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DataLakeStore/accounts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datalakestore/2016-11-01/firewallrules/method_listbyaccount.go b/resource-manager/datalakestore/2016-11-01/firewallrules/method_listbyaccount.go index e82c4102f15..6b5a746f327 100644 --- a/resource-manager/datalakestore/2016-11-01/firewallrules/method_listbyaccount.go +++ b/resource-manager/datalakestore/2016-11-01/firewallrules/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []FirewallRule } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c FirewallRulesClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallRulesClient) ListByAccount(ctx context.Context, id AccountId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/datalakestore/2016-11-01/trustedidproviders/method_listbyaccount.go b/resource-manager/datalakestore/2016-11-01/trustedidproviders/method_listbyaccount.go index 785a3961758..392fbc03529 100644 --- a/resource-manager/datalakestore/2016-11-01/trustedidproviders/method_listbyaccount.go +++ b/resource-manager/datalakestore/2016-11-01/trustedidproviders/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []TrustedIdProvider } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c TrustedIdProvidersClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TrustedIdProvidersClient) ListByAccount(ctx context.Context, id AccountI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/trustedIdProviders", id.ID()), } diff --git a/resource-manager/datalakestore/2016-11-01/virtualnetworkrules/method_listbyaccount.go b/resource-manager/datalakestore/2016-11-01/virtualnetworkrules/method_listbyaccount.go index 0a750bbe834..6430ab44ddd 100644 --- a/resource-manager/datalakestore/2016-11-01/virtualnetworkrules/method_listbyaccount.go +++ b/resource-manager/datalakestore/2016-11-01/virtualnetworkrules/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []VirtualNetworkRule } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c VirtualNetworkRulesClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualNetworkRulesClient) ListByAccount(ctx context.Context, id Account http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkRules", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/delete/method_projectsdelete.go b/resource-manager/datamigration/2018-04-19/delete/method_projectsdelete.go index ad4f73ba3b4..2b5b9a5c69d 100644 --- a/resource-manager/datamigration/2018-04-19/delete/method_projectsdelete.go +++ b/resource-manager/datamigration/2018-04-19/delete/method_projectsdelete.go @@ -53,8 +53,8 @@ func (c DELETEClient) ProjectsDelete(ctx context.Context, id ProjectId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2018-04-19/delete/method_servicesdelete.go b/resource-manager/datamigration/2018-04-19/delete/method_servicesdelete.go index 25ecf22a8f7..62063551e37 100644 --- a/resource-manager/datamigration/2018-04-19/delete/method_servicesdelete.go +++ b/resource-manager/datamigration/2018-04-19/delete/method_servicesdelete.go @@ -57,8 +57,8 @@ func (c DELETEClient) ServicesDelete(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2018-04-19/delete/method_tasksdelete.go b/resource-manager/datamigration/2018-04-19/delete/method_tasksdelete.go index 6757e995eb0..2f41c9a791f 100644 --- a/resource-manager/datamigration/2018-04-19/delete/method_tasksdelete.go +++ b/resource-manager/datamigration/2018-04-19/delete/method_tasksdelete.go @@ -53,8 +53,8 @@ func (c DELETEClient) TasksDelete(ctx context.Context, id TaskId, options TasksD http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2018-04-19/get/method_projectslistbyresourcegroup.go b/resource-manager/datamigration/2018-04-19/get/method_projectslistbyresourcegroup.go index 6351c21279a..624b81e35fb 100644 --- a/resource-manager/datamigration/2018-04-19/get/method_projectslistbyresourcegroup.go +++ b/resource-manager/datamigration/2018-04-19/get/method_projectslistbyresourcegroup.go @@ -23,6 +23,18 @@ type ProjectsListByResourceGroupCompleteResult struct { Items []Project } +type ProjectsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProjectsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProjectsListByResourceGroup ... func (c GETClient) ProjectsListByResourceGroup(ctx context.Context, id ServiceId) (result ProjectsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GETClient) ProjectsListByResourceGroup(ctx context.Context, id ServiceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ProjectsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/projects", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/get/method_resourceskuslistskus.go b/resource-manager/datamigration/2018-04-19/get/method_resourceskuslistskus.go index c278b5dd143..54e35b690c5 100644 --- a/resource-manager/datamigration/2018-04-19/get/method_resourceskuslistskus.go +++ b/resource-manager/datamigration/2018-04-19/get/method_resourceskuslistskus.go @@ -24,6 +24,18 @@ type ResourceSkusListSkusCompleteResult struct { Items []ResourceSku } +type ResourceSkusListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceSkusListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourceSkusListSkus ... func (c GETClient) ResourceSkusListSkus(ctx context.Context, id commonids.SubscriptionId) (result ResourceSkusListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GETClient) ResourceSkusListSkus(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourceSkusListSkusCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/skus", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/get/method_serviceslist.go b/resource-manager/datamigration/2018-04-19/get/method_serviceslist.go index 84427d68c2f..bdacf585a16 100644 --- a/resource-manager/datamigration/2018-04-19/get/method_serviceslist.go +++ b/resource-manager/datamigration/2018-04-19/get/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []DataMigrationService } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c GETClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GETClient) ServicesList(ctx context.Context, id commonids.SubscriptionId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/services", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/get/method_serviceslistbyresourcegroup.go b/resource-manager/datamigration/2018-04-19/get/method_serviceslistbyresourcegroup.go index 05d032c7d03..fe69bda57e2 100644 --- a/resource-manager/datamigration/2018-04-19/get/method_serviceslistbyresourcegroup.go +++ b/resource-manager/datamigration/2018-04-19/get/method_serviceslistbyresourcegroup.go @@ -23,6 +23,18 @@ type ServicesListByResourceGroupCompleteResult struct { Items []DataMigrationService } +type ServicesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListByResourceGroup ... func (c GETClient) ServicesListByResourceGroup(ctx context.Context, id ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GETClient) ServicesListByResourceGroup(ctx context.Context, id ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/services", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/get/method_serviceslistskus.go b/resource-manager/datamigration/2018-04-19/get/method_serviceslistskus.go index d739277c95f..169a4ae112a 100644 --- a/resource-manager/datamigration/2018-04-19/get/method_serviceslistskus.go +++ b/resource-manager/datamigration/2018-04-19/get/method_serviceslistskus.go @@ -23,6 +23,18 @@ type ServicesListSkusCompleteResult struct { Items []AvailableServiceSku } +type ServicesListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListSkus ... func (c GETClient) ServicesListSkus(ctx context.Context, id ServiceId) (result ServicesListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GETClient) ServicesListSkus(ctx context.Context, id ServiceId) (result S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/get/method_tasksget.go b/resource-manager/datamigration/2018-04-19/get/method_tasksget.go index 8324d8e9847..d32d2378180 100644 --- a/resource-manager/datamigration/2018-04-19/get/method_tasksget.go +++ b/resource-manager/datamigration/2018-04-19/get/method_tasksget.go @@ -53,8 +53,8 @@ func (c GETClient) TasksGet(ctx context.Context, id TaskId, options TasksGetOper http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2018-04-19/get/method_taskslist.go b/resource-manager/datamigration/2018-04-19/get/method_taskslist.go index 4d8063824a3..eb3baf51701 100644 --- a/resource-manager/datamigration/2018-04-19/get/method_taskslist.go +++ b/resource-manager/datamigration/2018-04-19/get/method_taskslist.go @@ -50,6 +50,18 @@ func (o TasksListOperationOptions) ToQuery() *client.QueryParams { return &out } +type TasksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TasksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TasksList ... func (c GETClient) TasksList(ctx context.Context, id ProjectId, options TasksListOperationOptions) (result TasksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c GETClient) TasksList(ctx context.Context, id ProjectId, options TasksLis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tasks", id.ID()), OptionsObject: options, + Pager: &TasksListCustomPager{}, + Path: fmt.Sprintf("%s/tasks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2018-04-19/get/method_usageslist.go b/resource-manager/datamigration/2018-04-19/get/method_usageslist.go index 33f3f7c2712..3e4635ad4d8 100644 --- a/resource-manager/datamigration/2018-04-19/get/method_usageslist.go +++ b/resource-manager/datamigration/2018-04-19/get/method_usageslist.go @@ -23,6 +23,18 @@ type UsagesListCompleteResult struct { Items []Quota } +type UsagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UsagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UsagesList ... func (c GETClient) UsagesList(ctx context.Context, id LocationId) (result UsagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GETClient) UsagesList(ctx context.Context, id LocationId) (result Usages http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UsagesListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/projectresource/method_projectsdelete.go b/resource-manager/datamigration/2018-04-19/projectresource/method_projectsdelete.go index 36450993373..f74d7bbd8be 100644 --- a/resource-manager/datamigration/2018-04-19/projectresource/method_projectsdelete.go +++ b/resource-manager/datamigration/2018-04-19/projectresource/method_projectsdelete.go @@ -53,8 +53,8 @@ func (c ProjectResourceClient) ProjectsDelete(ctx context.Context, id ProjectId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2018-04-19/projectresource/method_projectslistbyresourcegroup.go b/resource-manager/datamigration/2018-04-19/projectresource/method_projectslistbyresourcegroup.go index 7453baab1f5..874c2310533 100644 --- a/resource-manager/datamigration/2018-04-19/projectresource/method_projectslistbyresourcegroup.go +++ b/resource-manager/datamigration/2018-04-19/projectresource/method_projectslistbyresourcegroup.go @@ -23,6 +23,18 @@ type ProjectsListByResourceGroupCompleteResult struct { Items []Project } +type ProjectsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProjectsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProjectsListByResourceGroup ... func (c ProjectResourceClient) ProjectsListByResourceGroup(ctx context.Context, id ServiceId) (result ProjectsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProjectResourceClient) ProjectsListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ProjectsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/projects", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/serviceresource/method_servicesdelete.go b/resource-manager/datamigration/2018-04-19/serviceresource/method_servicesdelete.go index 43ed4a5821c..48ffb46094f 100644 --- a/resource-manager/datamigration/2018-04-19/serviceresource/method_servicesdelete.go +++ b/resource-manager/datamigration/2018-04-19/serviceresource/method_servicesdelete.go @@ -57,8 +57,8 @@ func (c ServiceResourceClient) ServicesDelete(ctx context.Context, id ServiceId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslist.go b/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslist.go index 8d91d8febfd..5950ce5f2b0 100644 --- a/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslist.go +++ b/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []DataMigrationService } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c ServiceResourceClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServiceResourceClient) ServicesList(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/services", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslistbyresourcegroup.go b/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslistbyresourcegroup.go index 4eb9c670e26..25ae9976c2e 100644 --- a/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslistbyresourcegroup.go +++ b/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslistbyresourcegroup.go @@ -23,6 +23,18 @@ type ServicesListByResourceGroupCompleteResult struct { Items []DataMigrationService } +type ServicesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListByResourceGroup ... func (c ServiceResourceClient) ServicesListByResourceGroup(ctx context.Context, id ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServiceResourceClient) ServicesListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/services", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslistskus.go b/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslistskus.go index b9903a374fb..3275bc11ba2 100644 --- a/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslistskus.go +++ b/resource-manager/datamigration/2018-04-19/serviceresource/method_serviceslistskus.go @@ -23,6 +23,18 @@ type ServicesListSkusCompleteResult struct { Items []AvailableServiceSku } +type ServicesListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListSkus ... func (c ServiceResourceClient) ServicesListSkus(ctx context.Context, id ServiceId) (result ServicesListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServiceResourceClient) ServicesListSkus(ctx context.Context, id ServiceI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/serviceresource/method_taskslist.go b/resource-manager/datamigration/2018-04-19/serviceresource/method_taskslist.go index 168f2fee163..b64c3edcf99 100644 --- a/resource-manager/datamigration/2018-04-19/serviceresource/method_taskslist.go +++ b/resource-manager/datamigration/2018-04-19/serviceresource/method_taskslist.go @@ -50,6 +50,18 @@ func (o TasksListOperationOptions) ToQuery() *client.QueryParams { return &out } +type TasksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TasksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TasksList ... func (c ServiceResourceClient) TasksList(ctx context.Context, id ProjectId, options TasksListOperationOptions) (result TasksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ServiceResourceClient) TasksList(ctx context.Context, id ProjectId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tasks", id.ID()), OptionsObject: options, + Pager: &TasksListCustomPager{}, + Path: fmt.Sprintf("%s/tasks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2018-04-19/standardoperation/method_projectsdelete.go b/resource-manager/datamigration/2018-04-19/standardoperation/method_projectsdelete.go index b1fe2c432e3..c77b26c2fd2 100644 --- a/resource-manager/datamigration/2018-04-19/standardoperation/method_projectsdelete.go +++ b/resource-manager/datamigration/2018-04-19/standardoperation/method_projectsdelete.go @@ -53,8 +53,8 @@ func (c StandardOperationClient) ProjectsDelete(ctx context.Context, id ProjectI http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2018-04-19/standardoperation/method_projectslistbyresourcegroup.go b/resource-manager/datamigration/2018-04-19/standardoperation/method_projectslistbyresourcegroup.go index 04c2dd58352..c4aa424876f 100644 --- a/resource-manager/datamigration/2018-04-19/standardoperation/method_projectslistbyresourcegroup.go +++ b/resource-manager/datamigration/2018-04-19/standardoperation/method_projectslistbyresourcegroup.go @@ -23,6 +23,18 @@ type ProjectsListByResourceGroupCompleteResult struct { Items []Project } +type ProjectsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProjectsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProjectsListByResourceGroup ... func (c StandardOperationClient) ProjectsListByResourceGroup(ctx context.Context, id ServiceId) (result ProjectsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StandardOperationClient) ProjectsListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ProjectsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/projects", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/standardoperation/method_resourceskuslistskus.go b/resource-manager/datamigration/2018-04-19/standardoperation/method_resourceskuslistskus.go index d42bf368f3d..4ceab2e61c1 100644 --- a/resource-manager/datamigration/2018-04-19/standardoperation/method_resourceskuslistskus.go +++ b/resource-manager/datamigration/2018-04-19/standardoperation/method_resourceskuslistskus.go @@ -24,6 +24,18 @@ type ResourceSkusListSkusCompleteResult struct { Items []ResourceSku } +type ResourceSkusListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceSkusListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourceSkusListSkus ... func (c StandardOperationClient) ResourceSkusListSkus(ctx context.Context, id commonids.SubscriptionId) (result ResourceSkusListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StandardOperationClient) ResourceSkusListSkus(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourceSkusListSkusCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/skus", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/standardoperation/method_servicesdelete.go b/resource-manager/datamigration/2018-04-19/standardoperation/method_servicesdelete.go index fcb24b6f52b..a742c1d3b2b 100644 --- a/resource-manager/datamigration/2018-04-19/standardoperation/method_servicesdelete.go +++ b/resource-manager/datamigration/2018-04-19/standardoperation/method_servicesdelete.go @@ -57,8 +57,8 @@ func (c StandardOperationClient) ServicesDelete(ctx context.Context, id ServiceI http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2018-04-19/standardoperation/method_serviceslist.go b/resource-manager/datamigration/2018-04-19/standardoperation/method_serviceslist.go index 8fbe3079553..6edea8780ee 100644 --- a/resource-manager/datamigration/2018-04-19/standardoperation/method_serviceslist.go +++ b/resource-manager/datamigration/2018-04-19/standardoperation/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []DataMigrationService } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c StandardOperationClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StandardOperationClient) ServicesList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/services", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/standardoperation/method_serviceslistbyresourcegroup.go b/resource-manager/datamigration/2018-04-19/standardoperation/method_serviceslistbyresourcegroup.go index f24855b76d9..6cb394b62e0 100644 --- a/resource-manager/datamigration/2018-04-19/standardoperation/method_serviceslistbyresourcegroup.go +++ b/resource-manager/datamigration/2018-04-19/standardoperation/method_serviceslistbyresourcegroup.go @@ -23,6 +23,18 @@ type ServicesListByResourceGroupCompleteResult struct { Items []DataMigrationService } +type ServicesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListByResourceGroup ... func (c StandardOperationClient) ServicesListByResourceGroup(ctx context.Context, id ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StandardOperationClient) ServicesListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/services", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/standardoperation/method_serviceslistskus.go b/resource-manager/datamigration/2018-04-19/standardoperation/method_serviceslistskus.go index 8303b263f31..fc460b54d16 100644 --- a/resource-manager/datamigration/2018-04-19/standardoperation/method_serviceslistskus.go +++ b/resource-manager/datamigration/2018-04-19/standardoperation/method_serviceslistskus.go @@ -23,6 +23,18 @@ type ServicesListSkusCompleteResult struct { Items []AvailableServiceSku } +type ServicesListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListSkus ... func (c StandardOperationClient) ServicesListSkus(ctx context.Context, id ServiceId) (result ServicesListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StandardOperationClient) ServicesListSkus(ctx context.Context, id Servic http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/standardoperation/method_tasksdelete.go b/resource-manager/datamigration/2018-04-19/standardoperation/method_tasksdelete.go index b6cabcb050f..b7f23256be6 100644 --- a/resource-manager/datamigration/2018-04-19/standardoperation/method_tasksdelete.go +++ b/resource-manager/datamigration/2018-04-19/standardoperation/method_tasksdelete.go @@ -53,8 +53,8 @@ func (c StandardOperationClient) TasksDelete(ctx context.Context, id TaskId, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2018-04-19/standardoperation/method_tasksget.go b/resource-manager/datamigration/2018-04-19/standardoperation/method_tasksget.go index 5bb40185035..bf24758b108 100644 --- a/resource-manager/datamigration/2018-04-19/standardoperation/method_tasksget.go +++ b/resource-manager/datamigration/2018-04-19/standardoperation/method_tasksget.go @@ -53,8 +53,8 @@ func (c StandardOperationClient) TasksGet(ctx context.Context, id TaskId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2018-04-19/standardoperation/method_taskslist.go b/resource-manager/datamigration/2018-04-19/standardoperation/method_taskslist.go index 77dc0fe9ab3..beb8daa919a 100644 --- a/resource-manager/datamigration/2018-04-19/standardoperation/method_taskslist.go +++ b/resource-manager/datamigration/2018-04-19/standardoperation/method_taskslist.go @@ -50,6 +50,18 @@ func (o TasksListOperationOptions) ToQuery() *client.QueryParams { return &out } +type TasksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TasksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TasksList ... func (c StandardOperationClient) TasksList(ctx context.Context, id ProjectId, options TasksListOperationOptions) (result TasksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c StandardOperationClient) TasksList(ctx context.Context, id ProjectId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tasks", id.ID()), OptionsObject: options, + Pager: &TasksListCustomPager{}, + Path: fmt.Sprintf("%s/tasks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2018-04-19/standardoperation/method_usageslist.go b/resource-manager/datamigration/2018-04-19/standardoperation/method_usageslist.go index 583ce3b66c0..016d5b4019b 100644 --- a/resource-manager/datamigration/2018-04-19/standardoperation/method_usageslist.go +++ b/resource-manager/datamigration/2018-04-19/standardoperation/method_usageslist.go @@ -23,6 +23,18 @@ type UsagesListCompleteResult struct { Items []Quota } +type UsagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UsagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UsagesList ... func (c StandardOperationClient) UsagesList(ctx context.Context, id LocationId) (result UsagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StandardOperationClient) UsagesList(ctx context.Context, id LocationId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UsagesListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/datamigration/2018-04-19/taskresource/method_tasksdelete.go b/resource-manager/datamigration/2018-04-19/taskresource/method_tasksdelete.go index 4b7780ecab9..5c525992353 100644 --- a/resource-manager/datamigration/2018-04-19/taskresource/method_tasksdelete.go +++ b/resource-manager/datamigration/2018-04-19/taskresource/method_tasksdelete.go @@ -53,8 +53,8 @@ func (c TaskResourceClient) TasksDelete(ctx context.Context, id TaskId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2018-04-19/taskresource/method_tasksget.go b/resource-manager/datamigration/2018-04-19/taskresource/method_tasksget.go index 0b8cff927e2..bef0863df67 100644 --- a/resource-manager/datamigration/2018-04-19/taskresource/method_tasksget.go +++ b/resource-manager/datamigration/2018-04-19/taskresource/method_tasksget.go @@ -53,8 +53,8 @@ func (c TaskResourceClient) TasksGet(ctx context.Context, id TaskId, options Tas http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/delete/method_projectsdelete.go b/resource-manager/datamigration/2021-06-30/delete/method_projectsdelete.go index ad4f73ba3b4..2b5b9a5c69d 100644 --- a/resource-manager/datamigration/2021-06-30/delete/method_projectsdelete.go +++ b/resource-manager/datamigration/2021-06-30/delete/method_projectsdelete.go @@ -53,8 +53,8 @@ func (c DELETEClient) ProjectsDelete(ctx context.Context, id ProjectId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/delete/method_servicesdelete.go b/resource-manager/datamigration/2021-06-30/delete/method_servicesdelete.go index 25ecf22a8f7..62063551e37 100644 --- a/resource-manager/datamigration/2021-06-30/delete/method_servicesdelete.go +++ b/resource-manager/datamigration/2021-06-30/delete/method_servicesdelete.go @@ -57,8 +57,8 @@ func (c DELETEClient) ServicesDelete(ctx context.Context, id ServiceId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/delete/method_servicetasksdelete.go b/resource-manager/datamigration/2021-06-30/delete/method_servicetasksdelete.go index baf6e8c5ebd..80bde7c0f6c 100644 --- a/resource-manager/datamigration/2021-06-30/delete/method_servicetasksdelete.go +++ b/resource-manager/datamigration/2021-06-30/delete/method_servicetasksdelete.go @@ -53,8 +53,8 @@ func (c DELETEClient) ServiceTasksDelete(ctx context.Context, id ServiceTaskId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/delete/method_tasksdelete.go b/resource-manager/datamigration/2021-06-30/delete/method_tasksdelete.go index 6757e995eb0..2f41c9a791f 100644 --- a/resource-manager/datamigration/2021-06-30/delete/method_tasksdelete.go +++ b/resource-manager/datamigration/2021-06-30/delete/method_tasksdelete.go @@ -53,8 +53,8 @@ func (c DELETEClient) TasksDelete(ctx context.Context, id TaskId, options TasksD http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/fileresource/method_fileslist.go b/resource-manager/datamigration/2021-06-30/fileresource/method_fileslist.go index 9e728e29568..2d6b3ef540f 100644 --- a/resource-manager/datamigration/2021-06-30/fileresource/method_fileslist.go +++ b/resource-manager/datamigration/2021-06-30/fileresource/method_fileslist.go @@ -23,6 +23,18 @@ type FilesListCompleteResult struct { Items []ProjectFile } +type FilesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FilesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FilesList ... func (c FileResourceClient) FilesList(ctx context.Context, id ProjectId) (result FilesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FileResourceClient) FilesList(ctx context.Context, id ProjectId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &FilesListCustomPager{}, Path: fmt.Sprintf("%s/files", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/get/method_fileslist.go b/resource-manager/datamigration/2021-06-30/get/method_fileslist.go index d9da1b79ba6..b84c2ef218c 100644 --- a/resource-manager/datamigration/2021-06-30/get/method_fileslist.go +++ b/resource-manager/datamigration/2021-06-30/get/method_fileslist.go @@ -23,6 +23,18 @@ type FilesListCompleteResult struct { Items []ProjectFile } +type FilesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FilesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FilesList ... func (c GETClient) FilesList(ctx context.Context, id ProjectId) (result FilesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GETClient) FilesList(ctx context.Context, id ProjectId) (result FilesLis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &FilesListCustomPager{}, Path: fmt.Sprintf("%s/files", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/get/method_projectslist.go b/resource-manager/datamigration/2021-06-30/get/method_projectslist.go index 2fce01604e7..eadf0aef05a 100644 --- a/resource-manager/datamigration/2021-06-30/get/method_projectslist.go +++ b/resource-manager/datamigration/2021-06-30/get/method_projectslist.go @@ -23,6 +23,18 @@ type ProjectsListCompleteResult struct { Items []Project } +type ProjectsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProjectsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProjectsList ... func (c GETClient) ProjectsList(ctx context.Context, id ServiceId) (result ProjectsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GETClient) ProjectsList(ctx context.Context, id ServiceId) (result Proje http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ProjectsListCustomPager{}, Path: fmt.Sprintf("%s/projects", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/get/method_resourceskuslistskus.go b/resource-manager/datamigration/2021-06-30/get/method_resourceskuslistskus.go index c278b5dd143..54e35b690c5 100644 --- a/resource-manager/datamigration/2021-06-30/get/method_resourceskuslistskus.go +++ b/resource-manager/datamigration/2021-06-30/get/method_resourceskuslistskus.go @@ -24,6 +24,18 @@ type ResourceSkusListSkusCompleteResult struct { Items []ResourceSku } +type ResourceSkusListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceSkusListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourceSkusListSkus ... func (c GETClient) ResourceSkusListSkus(ctx context.Context, id commonids.SubscriptionId) (result ResourceSkusListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GETClient) ResourceSkusListSkus(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourceSkusListSkusCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/skus", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/get/method_serviceslist.go b/resource-manager/datamigration/2021-06-30/get/method_serviceslist.go index 84427d68c2f..bdacf585a16 100644 --- a/resource-manager/datamigration/2021-06-30/get/method_serviceslist.go +++ b/resource-manager/datamigration/2021-06-30/get/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []DataMigrationService } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c GETClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GETClient) ServicesList(ctx context.Context, id commonids.SubscriptionId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/services", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/get/method_serviceslistbyresourcegroup.go b/resource-manager/datamigration/2021-06-30/get/method_serviceslistbyresourcegroup.go index 05d032c7d03..fe69bda57e2 100644 --- a/resource-manager/datamigration/2021-06-30/get/method_serviceslistbyresourcegroup.go +++ b/resource-manager/datamigration/2021-06-30/get/method_serviceslistbyresourcegroup.go @@ -23,6 +23,18 @@ type ServicesListByResourceGroupCompleteResult struct { Items []DataMigrationService } +type ServicesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListByResourceGroup ... func (c GETClient) ServicesListByResourceGroup(ctx context.Context, id ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GETClient) ServicesListByResourceGroup(ctx context.Context, id ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/services", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/get/method_serviceslistskus.go b/resource-manager/datamigration/2021-06-30/get/method_serviceslistskus.go index d739277c95f..169a4ae112a 100644 --- a/resource-manager/datamigration/2021-06-30/get/method_serviceslistskus.go +++ b/resource-manager/datamigration/2021-06-30/get/method_serviceslistskus.go @@ -23,6 +23,18 @@ type ServicesListSkusCompleteResult struct { Items []AvailableServiceSku } +type ServicesListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListSkus ... func (c GETClient) ServicesListSkus(ctx context.Context, id ServiceId) (result ServicesListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GETClient) ServicesListSkus(ctx context.Context, id ServiceId) (result S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/get/method_servicetasksget.go b/resource-manager/datamigration/2021-06-30/get/method_servicetasksget.go index 98ab50c85f7..6778d16651a 100644 --- a/resource-manager/datamigration/2021-06-30/get/method_servicetasksget.go +++ b/resource-manager/datamigration/2021-06-30/get/method_servicetasksget.go @@ -53,8 +53,8 @@ func (c GETClient) ServiceTasksGet(ctx context.Context, id ServiceTaskId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/get/method_servicetaskslist.go b/resource-manager/datamigration/2021-06-30/get/method_servicetaskslist.go index 450575bc1a9..2822b67f1b2 100644 --- a/resource-manager/datamigration/2021-06-30/get/method_servicetaskslist.go +++ b/resource-manager/datamigration/2021-06-30/get/method_servicetaskslist.go @@ -50,6 +50,18 @@ func (o ServiceTasksListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ServiceTasksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceTasksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceTasksList ... func (c GETClient) ServiceTasksList(ctx context.Context, id ServiceId, options ServiceTasksListOperationOptions) (result ServiceTasksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c GETClient) ServiceTasksList(ctx context.Context, id ServiceId, options S http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/serviceTasks", id.ID()), OptionsObject: options, + Pager: &ServiceTasksListCustomPager{}, + Path: fmt.Sprintf("%s/serviceTasks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/get/method_tasksget.go b/resource-manager/datamigration/2021-06-30/get/method_tasksget.go index 8324d8e9847..d32d2378180 100644 --- a/resource-manager/datamigration/2021-06-30/get/method_tasksget.go +++ b/resource-manager/datamigration/2021-06-30/get/method_tasksget.go @@ -53,8 +53,8 @@ func (c GETClient) TasksGet(ctx context.Context, id TaskId, options TasksGetOper http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/get/method_taskslist.go b/resource-manager/datamigration/2021-06-30/get/method_taskslist.go index 4d8063824a3..eb3baf51701 100644 --- a/resource-manager/datamigration/2021-06-30/get/method_taskslist.go +++ b/resource-manager/datamigration/2021-06-30/get/method_taskslist.go @@ -50,6 +50,18 @@ func (o TasksListOperationOptions) ToQuery() *client.QueryParams { return &out } +type TasksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TasksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TasksList ... func (c GETClient) TasksList(ctx context.Context, id ProjectId, options TasksListOperationOptions) (result TasksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c GETClient) TasksList(ctx context.Context, id ProjectId, options TasksLis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tasks", id.ID()), OptionsObject: options, + Pager: &TasksListCustomPager{}, + Path: fmt.Sprintf("%s/tasks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/get/method_usageslist.go b/resource-manager/datamigration/2021-06-30/get/method_usageslist.go index 33f3f7c2712..3e4635ad4d8 100644 --- a/resource-manager/datamigration/2021-06-30/get/method_usageslist.go +++ b/resource-manager/datamigration/2021-06-30/get/method_usageslist.go @@ -23,6 +23,18 @@ type UsagesListCompleteResult struct { Items []Quota } +type UsagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UsagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UsagesList ... func (c GETClient) UsagesList(ctx context.Context, id LocationId) (result UsagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GETClient) UsagesList(ctx context.Context, id LocationId) (result Usages http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UsagesListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/projectresource/method_projectsdelete.go b/resource-manager/datamigration/2021-06-30/projectresource/method_projectsdelete.go index 36450993373..f74d7bbd8be 100644 --- a/resource-manager/datamigration/2021-06-30/projectresource/method_projectsdelete.go +++ b/resource-manager/datamigration/2021-06-30/projectresource/method_projectsdelete.go @@ -53,8 +53,8 @@ func (c ProjectResourceClient) ProjectsDelete(ctx context.Context, id ProjectId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/projectresource/method_projectslist.go b/resource-manager/datamigration/2021-06-30/projectresource/method_projectslist.go index 75899450a9b..d487d8bef5e 100644 --- a/resource-manager/datamigration/2021-06-30/projectresource/method_projectslist.go +++ b/resource-manager/datamigration/2021-06-30/projectresource/method_projectslist.go @@ -23,6 +23,18 @@ type ProjectsListCompleteResult struct { Items []Project } +type ProjectsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProjectsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProjectsList ... func (c ProjectResourceClient) ProjectsList(ctx context.Context, id ServiceId) (result ProjectsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProjectResourceClient) ProjectsList(ctx context.Context, id ServiceId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ProjectsListCustomPager{}, Path: fmt.Sprintf("%s/projects", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesdelete.go b/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesdelete.go index 43ed4a5821c..48ffb46094f 100644 --- a/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesdelete.go +++ b/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesdelete.go @@ -57,8 +57,8 @@ func (c ServiceResourceClient) ServicesDelete(ctx context.Context, id ServiceId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslist.go b/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslist.go index 8d91d8febfd..5950ce5f2b0 100644 --- a/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslist.go +++ b/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []DataMigrationService } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c ServiceResourceClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServiceResourceClient) ServicesList(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/services", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslistbyresourcegroup.go b/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslistbyresourcegroup.go index 4eb9c670e26..25ae9976c2e 100644 --- a/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslistbyresourcegroup.go +++ b/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslistbyresourcegroup.go @@ -23,6 +23,18 @@ type ServicesListByResourceGroupCompleteResult struct { Items []DataMigrationService } +type ServicesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListByResourceGroup ... func (c ServiceResourceClient) ServicesListByResourceGroup(ctx context.Context, id ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServiceResourceClient) ServicesListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/services", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslistskus.go b/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslistskus.go index b9903a374fb..3275bc11ba2 100644 --- a/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslistskus.go +++ b/resource-manager/datamigration/2021-06-30/serviceresource/method_serviceslistskus.go @@ -23,6 +23,18 @@ type ServicesListSkusCompleteResult struct { Items []AvailableServiceSku } +type ServicesListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListSkus ... func (c ServiceResourceClient) ServicesListSkus(ctx context.Context, id ServiceId) (result ServicesListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServiceResourceClient) ServicesListSkus(ctx context.Context, id ServiceI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/serviceresource/method_servicetaskslist.go b/resource-manager/datamigration/2021-06-30/serviceresource/method_servicetaskslist.go index 29c0a139f74..fed6e85c162 100644 --- a/resource-manager/datamigration/2021-06-30/serviceresource/method_servicetaskslist.go +++ b/resource-manager/datamigration/2021-06-30/serviceresource/method_servicetaskslist.go @@ -50,6 +50,18 @@ func (o ServiceTasksListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ServiceTasksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceTasksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceTasksList ... func (c ServiceResourceClient) ServiceTasksList(ctx context.Context, id ServiceId, options ServiceTasksListOperationOptions) (result ServiceTasksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ServiceResourceClient) ServiceTasksList(ctx context.Context, id ServiceI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/serviceTasks", id.ID()), OptionsObject: options, + Pager: &ServiceTasksListCustomPager{}, + Path: fmt.Sprintf("%s/serviceTasks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/serviceresource/method_taskslist.go b/resource-manager/datamigration/2021-06-30/serviceresource/method_taskslist.go index 168f2fee163..b64c3edcf99 100644 --- a/resource-manager/datamigration/2021-06-30/serviceresource/method_taskslist.go +++ b/resource-manager/datamigration/2021-06-30/serviceresource/method_taskslist.go @@ -50,6 +50,18 @@ func (o TasksListOperationOptions) ToQuery() *client.QueryParams { return &out } +type TasksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TasksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TasksList ... func (c ServiceResourceClient) TasksList(ctx context.Context, id ProjectId, options TasksListOperationOptions) (result TasksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ServiceResourceClient) TasksList(ctx context.Context, id ProjectId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tasks", id.ID()), OptionsObject: options, + Pager: &TasksListCustomPager{}, + Path: fmt.Sprintf("%s/tasks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/servicetaskresource/method_servicetasksdelete.go b/resource-manager/datamigration/2021-06-30/servicetaskresource/method_servicetasksdelete.go index a5fbca12c61..1627b07ec34 100644 --- a/resource-manager/datamigration/2021-06-30/servicetaskresource/method_servicetasksdelete.go +++ b/resource-manager/datamigration/2021-06-30/servicetaskresource/method_servicetasksdelete.go @@ -53,8 +53,8 @@ func (c ServiceTaskResourceClient) ServiceTasksDelete(ctx context.Context, id Se http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/servicetaskresource/method_servicetasksget.go b/resource-manager/datamigration/2021-06-30/servicetaskresource/method_servicetasksget.go index 349d6b136d3..c120a929243 100644 --- a/resource-manager/datamigration/2021-06-30/servicetaskresource/method_servicetasksget.go +++ b/resource-manager/datamigration/2021-06-30/servicetaskresource/method_servicetasksget.go @@ -53,8 +53,8 @@ func (c ServiceTaskResourceClient) ServiceTasksGet(ctx context.Context, id Servi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_fileslist.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_fileslist.go index bcb0c71873d..b460fdc7a7c 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_fileslist.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_fileslist.go @@ -23,6 +23,18 @@ type FilesListCompleteResult struct { Items []ProjectFile } +type FilesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FilesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FilesList ... func (c StandardOperationClient) FilesList(ctx context.Context, id ProjectId) (result FilesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StandardOperationClient) FilesList(ctx context.Context, id ProjectId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &FilesListCustomPager{}, Path: fmt.Sprintf("%s/files", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_projectsdelete.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_projectsdelete.go index b1fe2c432e3..c77b26c2fd2 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_projectsdelete.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_projectsdelete.go @@ -53,8 +53,8 @@ func (c StandardOperationClient) ProjectsDelete(ctx context.Context, id ProjectI http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_projectslist.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_projectslist.go index 8fb35738a48..b9b8c13baba 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_projectslist.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_projectslist.go @@ -23,6 +23,18 @@ type ProjectsListCompleteResult struct { Items []Project } +type ProjectsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProjectsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProjectsList ... func (c StandardOperationClient) ProjectsList(ctx context.Context, id ServiceId) (result ProjectsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StandardOperationClient) ProjectsList(ctx context.Context, id ServiceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ProjectsListCustomPager{}, Path: fmt.Sprintf("%s/projects", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_resourceskuslistskus.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_resourceskuslistskus.go index d42bf368f3d..4ceab2e61c1 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_resourceskuslistskus.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_resourceskuslistskus.go @@ -24,6 +24,18 @@ type ResourceSkusListSkusCompleteResult struct { Items []ResourceSku } +type ResourceSkusListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceSkusListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourceSkusListSkus ... func (c StandardOperationClient) ResourceSkusListSkus(ctx context.Context, id commonids.SubscriptionId) (result ResourceSkusListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StandardOperationClient) ResourceSkusListSkus(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourceSkusListSkusCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/skus", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_servicesdelete.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_servicesdelete.go index fcb24b6f52b..a742c1d3b2b 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_servicesdelete.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_servicesdelete.go @@ -57,8 +57,8 @@ func (c StandardOperationClient) ServicesDelete(ctx context.Context, id ServiceI http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_serviceslist.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_serviceslist.go index 8fbe3079553..6edea8780ee 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_serviceslist.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []DataMigrationService } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c StandardOperationClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StandardOperationClient) ServicesList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/services", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_serviceslistbyresourcegroup.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_serviceslistbyresourcegroup.go index f24855b76d9..6cb394b62e0 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_serviceslistbyresourcegroup.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_serviceslistbyresourcegroup.go @@ -23,6 +23,18 @@ type ServicesListByResourceGroupCompleteResult struct { Items []DataMigrationService } +type ServicesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListByResourceGroup ... func (c StandardOperationClient) ServicesListByResourceGroup(ctx context.Context, id ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StandardOperationClient) ServicesListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataMigration/services", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_serviceslistskus.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_serviceslistskus.go index 8303b263f31..fc460b54d16 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_serviceslistskus.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_serviceslistskus.go @@ -23,6 +23,18 @@ type ServicesListSkusCompleteResult struct { Items []AvailableServiceSku } +type ServicesListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListSkus ... func (c StandardOperationClient) ServicesListSkus(ctx context.Context, id ServiceId) (result ServicesListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StandardOperationClient) ServicesListSkus(ctx context.Context, id Servic http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_servicetasksdelete.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_servicetasksdelete.go index f8d21812176..eea70ddb677 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_servicetasksdelete.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_servicetasksdelete.go @@ -53,8 +53,8 @@ func (c StandardOperationClient) ServiceTasksDelete(ctx context.Context, id Serv http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_servicetasksget.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_servicetasksget.go index 1ba65a42739..b785146ac7b 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_servicetasksget.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_servicetasksget.go @@ -53,8 +53,8 @@ func (c StandardOperationClient) ServiceTasksGet(ctx context.Context, id Service http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_servicetaskslist.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_servicetaskslist.go index e6a101f3f60..631f37d4703 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_servicetaskslist.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_servicetaskslist.go @@ -50,6 +50,18 @@ func (o ServiceTasksListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ServiceTasksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceTasksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceTasksList ... func (c StandardOperationClient) ServiceTasksList(ctx context.Context, id ServiceId, options ServiceTasksListOperationOptions) (result ServiceTasksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c StandardOperationClient) ServiceTasksList(ctx context.Context, id Servic http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/serviceTasks", id.ID()), OptionsObject: options, + Pager: &ServiceTasksListCustomPager{}, + Path: fmt.Sprintf("%s/serviceTasks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_tasksdelete.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_tasksdelete.go index b6cabcb050f..b7f23256be6 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_tasksdelete.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_tasksdelete.go @@ -53,8 +53,8 @@ func (c StandardOperationClient) TasksDelete(ctx context.Context, id TaskId, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_tasksget.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_tasksget.go index 5bb40185035..bf24758b108 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_tasksget.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_tasksget.go @@ -53,8 +53,8 @@ func (c StandardOperationClient) TasksGet(ctx context.Context, id TaskId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_taskslist.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_taskslist.go index 77dc0fe9ab3..beb8daa919a 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_taskslist.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_taskslist.go @@ -50,6 +50,18 @@ func (o TasksListOperationOptions) ToQuery() *client.QueryParams { return &out } +type TasksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TasksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TasksList ... func (c StandardOperationClient) TasksList(ctx context.Context, id ProjectId, options TasksListOperationOptions) (result TasksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c StandardOperationClient) TasksList(ctx context.Context, id ProjectId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tasks", id.ID()), OptionsObject: options, + Pager: &TasksListCustomPager{}, + Path: fmt.Sprintf("%s/tasks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/standardoperation/method_usageslist.go b/resource-manager/datamigration/2021-06-30/standardoperation/method_usageslist.go index 583ce3b66c0..016d5b4019b 100644 --- a/resource-manager/datamigration/2021-06-30/standardoperation/method_usageslist.go +++ b/resource-manager/datamigration/2021-06-30/standardoperation/method_usageslist.go @@ -23,6 +23,18 @@ type UsagesListCompleteResult struct { Items []Quota } +type UsagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UsagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UsagesList ... func (c StandardOperationClient) UsagesList(ctx context.Context, id LocationId) (result UsagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StandardOperationClient) UsagesList(ctx context.Context, id LocationId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UsagesListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/datamigration/2021-06-30/taskresource/method_tasksdelete.go b/resource-manager/datamigration/2021-06-30/taskresource/method_tasksdelete.go index 4b7780ecab9..5c525992353 100644 --- a/resource-manager/datamigration/2021-06-30/taskresource/method_tasksdelete.go +++ b/resource-manager/datamigration/2021-06-30/taskresource/method_tasksdelete.go @@ -53,8 +53,8 @@ func (c TaskResourceClient) TasksDelete(ctx context.Context, id TaskId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datamigration/2021-06-30/taskresource/method_tasksget.go b/resource-manager/datamigration/2021-06-30/taskresource/method_tasksget.go index 0b8cff927e2..bef0863df67 100644 --- a/resource-manager/datamigration/2021-06-30/taskresource/method_tasksget.go +++ b/resource-manager/datamigration/2021-06-30/taskresource/method_tasksget.go @@ -53,8 +53,8 @@ func (c TaskResourceClient) TasksGet(ctx context.Context, id TaskId, options Tas http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2023-05-01/azurebackupjobs/method_jobslist.go b/resource-manager/dataprotection/2023-05-01/azurebackupjobs/method_jobslist.go index 54bb1250c94..016ccbbd75e 100644 --- a/resource-manager/dataprotection/2023-05-01/azurebackupjobs/method_jobslist.go +++ b/resource-manager/dataprotection/2023-05-01/azurebackupjobs/method_jobslist.go @@ -23,6 +23,18 @@ type JobsListCompleteResult struct { Items []AzureBackupJobResource } +type JobsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *JobsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // JobsList ... func (c AzureBackupJobsClient) JobsList(ctx context.Context, id BackupVaultId) (result JobsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AzureBackupJobsClient) JobsList(ctx context.Context, id BackupVaultId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &JobsListCustomPager{}, Path: fmt.Sprintf("%s/backupJobs", id.ID()), } diff --git a/resource-manager/dataprotection/2023-05-01/backupinstances/method_list.go b/resource-manager/dataprotection/2023-05-01/backupinstances/method_list.go index 6774121ab8b..e59d6159025 100644 --- a/resource-manager/dataprotection/2023-05-01/backupinstances/method_list.go +++ b/resource-manager/dataprotection/2023-05-01/backupinstances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []BackupInstanceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BackupInstancesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupInstancesClient) List(ctx context.Context, id BackupVaultId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/backupInstances", id.ID()), } diff --git a/resource-manager/dataprotection/2023-05-01/backuppolicies/method_list.go b/resource-manager/dataprotection/2023-05-01/backuppolicies/method_list.go index 0eb7f0e588b..1090bb36395 100644 --- a/resource-manager/dataprotection/2023-05-01/backuppolicies/method_list.go +++ b/resource-manager/dataprotection/2023-05-01/backuppolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []BaseBackupPolicyResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BackupPoliciesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupPoliciesClient) List(ctx context.Context, id BackupVaultId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/backupPolicies", id.ID()), } diff --git a/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinresourcegroup.go b/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinresourcegroup.go index bf1d7cd08aa..e6956a1b944 100644 --- a/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinresourcegroup.go +++ b/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinresourcegroup.go @@ -24,6 +24,18 @@ type GetInResourceGroupCompleteResult struct { Items []BackupVaultResource } +type GetInResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetInResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetInResourceGroup ... func (c BackupVaultsClient) GetInResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GetInResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BackupVaultsClient) GetInResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetInResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/backupVaults", id.ID()), } diff --git a/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinsubscription.go b/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinsubscription.go index 8cc087f24c4..51f30e81a07 100644 --- a/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinsubscription.go +++ b/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinsubscription.go @@ -24,6 +24,18 @@ type GetInSubscriptionCompleteResult struct { Items []BackupVaultResource } +type GetInSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetInSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetInSubscription ... func (c BackupVaultsClient) GetInSubscription(ctx context.Context, id commonids.SubscriptionId) (result GetInSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BackupVaultsClient) GetInSubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetInSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/backupVaults", id.ID()), } diff --git a/resource-manager/dataprotection/2023-05-01/deletedbackupinstances/method_list.go b/resource-manager/dataprotection/2023-05-01/deletedbackupinstances/method_list.go index b58dae94d07..8db5448a811 100644 --- a/resource-manager/dataprotection/2023-05-01/deletedbackupinstances/method_list.go +++ b/resource-manager/dataprotection/2023-05-01/deletedbackupinstances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []DeletedBackupInstanceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeletedBackupInstancesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeletedBackupInstancesClient) List(ctx context.Context, id BackupVaultId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/deletedBackupInstances", id.ID()), } diff --git a/resource-manager/dataprotection/2023-05-01/dppresourceguardproxies/method_dppresourceguardproxylist.go b/resource-manager/dataprotection/2023-05-01/dppresourceguardproxies/method_dppresourceguardproxylist.go index cc9e2aa6c49..c0966522e2f 100644 --- a/resource-manager/dataprotection/2023-05-01/dppresourceguardproxies/method_dppresourceguardproxylist.go +++ b/resource-manager/dataprotection/2023-05-01/dppresourceguardproxies/method_dppresourceguardproxylist.go @@ -23,6 +23,18 @@ type DppResourceGuardProxyListCompleteResult struct { Items []ResourceGuardProxyBaseResource } +type DppResourceGuardProxyListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DppResourceGuardProxyListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DppResourceGuardProxyList ... func (c DppResourceGuardProxiesClient) DppResourceGuardProxyList(ctx context.Context, id BackupVaultId) (result DppResourceGuardProxyListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DppResourceGuardProxiesClient) DppResourceGuardProxyList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DppResourceGuardProxyListCustomPager{}, Path: fmt.Sprintf("%s/backupResourceGuardProxies", id.ID()), } diff --git a/resource-manager/dataprotection/2023-05-01/recoverypoint/method_list.go b/resource-manager/dataprotection/2023-05-01/recoverypoint/method_list.go index 9be86097693..ace5d834658 100644 --- a/resource-manager/dataprotection/2023-05-01/recoverypoint/method_list.go +++ b/resource-manager/dataprotection/2023-05-01/recoverypoint/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RecoveryPointClient) List(ctx context.Context, id BackupInstanceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c RecoveryPointClient) List(ctx context.Context, id BackupInstanceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go index 167a053e648..eb8eaeca22e 100644 --- a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go +++ b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go @@ -23,6 +23,18 @@ type GetBackupSecurityPINRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetBackupSecurityPINRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBackupSecurityPINRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBackupSecurityPINRequestsObjects ... func (c ResourceGuardsClient) GetBackupSecurityPINRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetBackupSecurityPINRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetBackupSecurityPINRequestsObjects(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetBackupSecurityPINRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/getBackupSecurityPINRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go index f265953768d..ce93828e11f 100644 --- a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go +++ b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go @@ -23,6 +23,18 @@ type GetDeleteProtectedItemRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDeleteProtectedItemRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDeleteProtectedItemRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDeleteProtectedItemRequestsObjects ... func (c ResourceGuardsClient) GetDeleteProtectedItemRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDeleteProtectedItemRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDeleteProtectedItemRequestsObjects(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDeleteProtectedItemRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/deleteProtectedItemRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go index 4f27b485d3d..5f987f2de5d 100644 --- a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go +++ b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go @@ -23,6 +23,18 @@ type GetDeleteResourceGuardProxyRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDeleteResourceGuardProxyRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDeleteResourceGuardProxyRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDeleteResourceGuardProxyRequestsObjects ... func (c ResourceGuardsClient) GetDeleteResourceGuardProxyRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDeleteResourceGuardProxyRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDeleteResourceGuardProxyRequestsObjects(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDeleteResourceGuardProxyRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/deleteResourceGuardProxyRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go index 3e78aac6c4f..eae3ca213ba 100644 --- a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go +++ b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go @@ -23,6 +23,18 @@ type GetDisableSoftDeleteRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDisableSoftDeleteRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDisableSoftDeleteRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDisableSoftDeleteRequestsObjects ... func (c ResourceGuardsClient) GetDisableSoftDeleteRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDisableSoftDeleteRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDisableSoftDeleteRequestsObjects(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDisableSoftDeleteRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/disableSoftDeleteRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinresourcegroup.go b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinresourcegroup.go index 311346da1da..9a343eb189a 100644 --- a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinresourcegroup.go +++ b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinresourcegroup.go @@ -24,6 +24,18 @@ type GetResourcesInResourceGroupCompleteResult struct { Items []ResourceGuardResource } +type GetResourcesInResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetResourcesInResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetResourcesInResourceGroup ... func (c ResourceGuardsClient) GetResourcesInResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GetResourcesInResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceGuardsClient) GetResourcesInResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetResourcesInResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/resourceGuards", id.ID()), } diff --git a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinsubscription.go b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinsubscription.go index 3b9d985596a..7eeda1e8c26 100644 --- a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinsubscription.go +++ b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinsubscription.go @@ -24,6 +24,18 @@ type GetResourcesInSubscriptionCompleteResult struct { Items []ResourceGuardResource } +type GetResourcesInSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetResourcesInSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetResourcesInSubscription ... func (c ResourceGuardsClient) GetResourcesInSubscription(ctx context.Context, id commonids.SubscriptionId) (result GetResourcesInSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceGuardsClient) GetResourcesInSubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetResourcesInSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/resourceGuards", id.ID()), } diff --git a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go index bb03ccd39f6..940b6f72f0e 100644 --- a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go +++ b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go @@ -23,6 +23,18 @@ type GetUpdateProtectedItemRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetUpdateProtectedItemRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUpdateProtectedItemRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUpdateProtectedItemRequestsObjects ... func (c ResourceGuardsClient) GetUpdateProtectedItemRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetUpdateProtectedItemRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetUpdateProtectedItemRequestsObjects(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUpdateProtectedItemRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/updateProtectedItemRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go index 23c0237b581..fc30cd7b71a 100644 --- a/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go +++ b/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go @@ -23,6 +23,18 @@ type GetUpdateProtectionPolicyRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetUpdateProtectionPolicyRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUpdateProtectionPolicyRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUpdateProtectionPolicyRequestsObjects ... func (c ResourceGuardsClient) GetUpdateProtectionPolicyRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetUpdateProtectionPolicyRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetUpdateProtectionPolicyRequestsObjects(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUpdateProtectionPolicyRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/updateProtectionPolicyRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/azurebackupjobs/method_jobslist.go b/resource-manager/dataprotection/2023-11-01/azurebackupjobs/method_jobslist.go index 54bb1250c94..016ccbbd75e 100644 --- a/resource-manager/dataprotection/2023-11-01/azurebackupjobs/method_jobslist.go +++ b/resource-manager/dataprotection/2023-11-01/azurebackupjobs/method_jobslist.go @@ -23,6 +23,18 @@ type JobsListCompleteResult struct { Items []AzureBackupJobResource } +type JobsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *JobsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // JobsList ... func (c AzureBackupJobsClient) JobsList(ctx context.Context, id BackupVaultId) (result JobsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AzureBackupJobsClient) JobsList(ctx context.Context, id BackupVaultId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &JobsListCustomPager{}, Path: fmt.Sprintf("%s/backupJobs", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/backupinstances/method_list.go b/resource-manager/dataprotection/2023-11-01/backupinstances/method_list.go index 6774121ab8b..e59d6159025 100644 --- a/resource-manager/dataprotection/2023-11-01/backupinstances/method_list.go +++ b/resource-manager/dataprotection/2023-11-01/backupinstances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []BackupInstanceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BackupInstancesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupInstancesClient) List(ctx context.Context, id BackupVaultId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/backupInstances", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/backuppolicies/method_list.go b/resource-manager/dataprotection/2023-11-01/backuppolicies/method_list.go index 0eb7f0e588b..1090bb36395 100644 --- a/resource-manager/dataprotection/2023-11-01/backuppolicies/method_list.go +++ b/resource-manager/dataprotection/2023-11-01/backuppolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []BaseBackupPolicyResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BackupPoliciesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupPoliciesClient) List(ctx context.Context, id BackupVaultId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/backupPolicies", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/backupvaults/method_getinresourcegroup.go b/resource-manager/dataprotection/2023-11-01/backupvaults/method_getinresourcegroup.go index bf1d7cd08aa..e6956a1b944 100644 --- a/resource-manager/dataprotection/2023-11-01/backupvaults/method_getinresourcegroup.go +++ b/resource-manager/dataprotection/2023-11-01/backupvaults/method_getinresourcegroup.go @@ -24,6 +24,18 @@ type GetInResourceGroupCompleteResult struct { Items []BackupVaultResource } +type GetInResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetInResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetInResourceGroup ... func (c BackupVaultsClient) GetInResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GetInResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BackupVaultsClient) GetInResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetInResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/backupVaults", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/backupvaults/method_getinsubscription.go b/resource-manager/dataprotection/2023-11-01/backupvaults/method_getinsubscription.go index 8cc087f24c4..51f30e81a07 100644 --- a/resource-manager/dataprotection/2023-11-01/backupvaults/method_getinsubscription.go +++ b/resource-manager/dataprotection/2023-11-01/backupvaults/method_getinsubscription.go @@ -24,6 +24,18 @@ type GetInSubscriptionCompleteResult struct { Items []BackupVaultResource } +type GetInSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetInSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetInSubscription ... func (c BackupVaultsClient) GetInSubscription(ctx context.Context, id commonids.SubscriptionId) (result GetInSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BackupVaultsClient) GetInSubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetInSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/backupVaults", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/deletedbackupinstances/method_list.go b/resource-manager/dataprotection/2023-11-01/deletedbackupinstances/method_list.go index b58dae94d07..8db5448a811 100644 --- a/resource-manager/dataprotection/2023-11-01/deletedbackupinstances/method_list.go +++ b/resource-manager/dataprotection/2023-11-01/deletedbackupinstances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []DeletedBackupInstanceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeletedBackupInstancesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeletedBackupInstancesClient) List(ctx context.Context, id BackupVaultId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/deletedBackupInstances", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/dppjob/method_fetchcrossregionrestorejobslist.go b/resource-manager/dataprotection/2023-11-01/dppjob/method_fetchcrossregionrestorejobslist.go index b4167b7d1f9..48d719aa3cb 100644 --- a/resource-manager/dataprotection/2023-11-01/dppjob/method_fetchcrossregionrestorejobslist.go +++ b/resource-manager/dataprotection/2023-11-01/dppjob/method_fetchcrossregionrestorejobslist.go @@ -50,6 +50,18 @@ func (o FetchCrossRegionRestoreJobsListOperationOptions) ToQuery() *client.Query return &out } +type FetchCrossRegionRestoreJobsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FetchCrossRegionRestoreJobsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FetchCrossRegionRestoreJobsList ... func (c DppJobClient) FetchCrossRegionRestoreJobsList(ctx context.Context, id ProviderLocationId, input CrossRegionRestoreJobsRequest, options FetchCrossRegionRestoreJobsListOperationOptions) (result FetchCrossRegionRestoreJobsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DppJobClient) FetchCrossRegionRestoreJobsList(ctx context.Context, id Pr http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/fetchCrossRegionRestoreJobs", id.ID()), OptionsObject: options, + Pager: &FetchCrossRegionRestoreJobsListCustomPager{}, + Path: fmt.Sprintf("%s/fetchCrossRegionRestoreJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2023-11-01/dppresourceguardproxies/method_dppresourceguardproxylist.go b/resource-manager/dataprotection/2023-11-01/dppresourceguardproxies/method_dppresourceguardproxylist.go index cc9e2aa6c49..c0966522e2f 100644 --- a/resource-manager/dataprotection/2023-11-01/dppresourceguardproxies/method_dppresourceguardproxylist.go +++ b/resource-manager/dataprotection/2023-11-01/dppresourceguardproxies/method_dppresourceguardproxylist.go @@ -23,6 +23,18 @@ type DppResourceGuardProxyListCompleteResult struct { Items []ResourceGuardProxyBaseResource } +type DppResourceGuardProxyListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DppResourceGuardProxyListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DppResourceGuardProxyList ... func (c DppResourceGuardProxiesClient) DppResourceGuardProxyList(ctx context.Context, id BackupVaultId) (result DppResourceGuardProxyListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DppResourceGuardProxiesClient) DppResourceGuardProxyList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DppResourceGuardProxyListCustomPager{}, Path: fmt.Sprintf("%s/backupResourceGuardProxies", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/fetchsecondaryrecoverypoints/method_list.go b/resource-manager/dataprotection/2023-11-01/fetchsecondaryrecoverypoints/method_list.go index 973d312a62c..26723b92a47 100644 --- a/resource-manager/dataprotection/2023-11-01/fetchsecondaryrecoverypoints/method_list.go +++ b/resource-manager/dataprotection/2023-11-01/fetchsecondaryrecoverypoints/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FetchSecondaryRecoveryPointsClient) List(ctx context.Context, id ProviderLocationId, input FetchSecondaryRPsRequestParameters, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c FetchSecondaryRecoveryPointsClient) List(ctx context.Context, id Provide http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/fetchSecondaryRecoveryPoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/fetchSecondaryRecoveryPoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2023-11-01/recoverypoint/method_list.go b/resource-manager/dataprotection/2023-11-01/recoverypoint/method_list.go index 9be86097693..ace5d834658 100644 --- a/resource-manager/dataprotection/2023-11-01/recoverypoint/method_list.go +++ b/resource-manager/dataprotection/2023-11-01/recoverypoint/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RecoveryPointClient) List(ctx context.Context, id BackupInstanceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c RecoveryPointClient) List(ctx context.Context, id BackupInstanceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go index 167a053e648..eb8eaeca22e 100644 --- a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go +++ b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go @@ -23,6 +23,18 @@ type GetBackupSecurityPINRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetBackupSecurityPINRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBackupSecurityPINRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBackupSecurityPINRequestsObjects ... func (c ResourceGuardsClient) GetBackupSecurityPINRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetBackupSecurityPINRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetBackupSecurityPINRequestsObjects(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetBackupSecurityPINRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/getBackupSecurityPINRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go index f265953768d..ce93828e11f 100644 --- a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go +++ b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go @@ -23,6 +23,18 @@ type GetDeleteProtectedItemRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDeleteProtectedItemRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDeleteProtectedItemRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDeleteProtectedItemRequestsObjects ... func (c ResourceGuardsClient) GetDeleteProtectedItemRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDeleteProtectedItemRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDeleteProtectedItemRequestsObjects(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDeleteProtectedItemRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/deleteProtectedItemRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go index 4f27b485d3d..5f987f2de5d 100644 --- a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go +++ b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go @@ -23,6 +23,18 @@ type GetDeleteResourceGuardProxyRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDeleteResourceGuardProxyRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDeleteResourceGuardProxyRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDeleteResourceGuardProxyRequestsObjects ... func (c ResourceGuardsClient) GetDeleteResourceGuardProxyRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDeleteResourceGuardProxyRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDeleteResourceGuardProxyRequestsObjects(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDeleteResourceGuardProxyRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/deleteResourceGuardProxyRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go index 3e78aac6c4f..eae3ca213ba 100644 --- a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go +++ b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go @@ -23,6 +23,18 @@ type GetDisableSoftDeleteRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDisableSoftDeleteRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDisableSoftDeleteRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDisableSoftDeleteRequestsObjects ... func (c ResourceGuardsClient) GetDisableSoftDeleteRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDisableSoftDeleteRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDisableSoftDeleteRequestsObjects(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDisableSoftDeleteRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/disableSoftDeleteRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getresourcesinresourcegroup.go b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getresourcesinresourcegroup.go index 311346da1da..9a343eb189a 100644 --- a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getresourcesinresourcegroup.go +++ b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getresourcesinresourcegroup.go @@ -24,6 +24,18 @@ type GetResourcesInResourceGroupCompleteResult struct { Items []ResourceGuardResource } +type GetResourcesInResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetResourcesInResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetResourcesInResourceGroup ... func (c ResourceGuardsClient) GetResourcesInResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GetResourcesInResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceGuardsClient) GetResourcesInResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetResourcesInResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/resourceGuards", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getresourcesinsubscription.go b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getresourcesinsubscription.go index 3b9d985596a..7eeda1e8c26 100644 --- a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getresourcesinsubscription.go +++ b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getresourcesinsubscription.go @@ -24,6 +24,18 @@ type GetResourcesInSubscriptionCompleteResult struct { Items []ResourceGuardResource } +type GetResourcesInSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetResourcesInSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetResourcesInSubscription ... func (c ResourceGuardsClient) GetResourcesInSubscription(ctx context.Context, id commonids.SubscriptionId) (result GetResourcesInSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceGuardsClient) GetResourcesInSubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetResourcesInSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/resourceGuards", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go index bb03ccd39f6..940b6f72f0e 100644 --- a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go +++ b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go @@ -23,6 +23,18 @@ type GetUpdateProtectedItemRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetUpdateProtectedItemRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUpdateProtectedItemRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUpdateProtectedItemRequestsObjects ... func (c ResourceGuardsClient) GetUpdateProtectedItemRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetUpdateProtectedItemRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetUpdateProtectedItemRequestsObjects(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUpdateProtectedItemRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/updateProtectedItemRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go index 23c0237b581..fc30cd7b71a 100644 --- a/resource-manager/dataprotection/2023-11-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go +++ b/resource-manager/dataprotection/2023-11-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go @@ -23,6 +23,18 @@ type GetUpdateProtectionPolicyRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetUpdateProtectionPolicyRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUpdateProtectionPolicyRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUpdateProtectionPolicyRequestsObjects ... func (c ResourceGuardsClient) GetUpdateProtectionPolicyRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetUpdateProtectionPolicyRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetUpdateProtectionPolicyRequestsObjects(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUpdateProtectionPolicyRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/updateProtectionPolicyRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/azurebackupjobs/method_jobslist.go b/resource-manager/dataprotection/2023-12-01/azurebackupjobs/method_jobslist.go index 54bb1250c94..016ccbbd75e 100644 --- a/resource-manager/dataprotection/2023-12-01/azurebackupjobs/method_jobslist.go +++ b/resource-manager/dataprotection/2023-12-01/azurebackupjobs/method_jobslist.go @@ -23,6 +23,18 @@ type JobsListCompleteResult struct { Items []AzureBackupJobResource } +type JobsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *JobsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // JobsList ... func (c AzureBackupJobsClient) JobsList(ctx context.Context, id BackupVaultId) (result JobsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AzureBackupJobsClient) JobsList(ctx context.Context, id BackupVaultId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &JobsListCustomPager{}, Path: fmt.Sprintf("%s/backupJobs", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/backupinstances/method_list.go b/resource-manager/dataprotection/2023-12-01/backupinstances/method_list.go index 6774121ab8b..e59d6159025 100644 --- a/resource-manager/dataprotection/2023-12-01/backupinstances/method_list.go +++ b/resource-manager/dataprotection/2023-12-01/backupinstances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []BackupInstanceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BackupInstancesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupInstancesClient) List(ctx context.Context, id BackupVaultId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/backupInstances", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/backuppolicies/method_list.go b/resource-manager/dataprotection/2023-12-01/backuppolicies/method_list.go index 0eb7f0e588b..1090bb36395 100644 --- a/resource-manager/dataprotection/2023-12-01/backuppolicies/method_list.go +++ b/resource-manager/dataprotection/2023-12-01/backuppolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []BaseBackupPolicyResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BackupPoliciesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupPoliciesClient) List(ctx context.Context, id BackupVaultId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/backupPolicies", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/backupvaults/method_getinresourcegroup.go b/resource-manager/dataprotection/2023-12-01/backupvaults/method_getinresourcegroup.go index bf1d7cd08aa..e6956a1b944 100644 --- a/resource-manager/dataprotection/2023-12-01/backupvaults/method_getinresourcegroup.go +++ b/resource-manager/dataprotection/2023-12-01/backupvaults/method_getinresourcegroup.go @@ -24,6 +24,18 @@ type GetInResourceGroupCompleteResult struct { Items []BackupVaultResource } +type GetInResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetInResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetInResourceGroup ... func (c BackupVaultsClient) GetInResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GetInResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BackupVaultsClient) GetInResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetInResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/backupVaults", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/backupvaults/method_getinsubscription.go b/resource-manager/dataprotection/2023-12-01/backupvaults/method_getinsubscription.go index 8cc087f24c4..51f30e81a07 100644 --- a/resource-manager/dataprotection/2023-12-01/backupvaults/method_getinsubscription.go +++ b/resource-manager/dataprotection/2023-12-01/backupvaults/method_getinsubscription.go @@ -24,6 +24,18 @@ type GetInSubscriptionCompleteResult struct { Items []BackupVaultResource } +type GetInSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetInSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetInSubscription ... func (c BackupVaultsClient) GetInSubscription(ctx context.Context, id commonids.SubscriptionId) (result GetInSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BackupVaultsClient) GetInSubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetInSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/backupVaults", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/deletedbackupinstances/method_list.go b/resource-manager/dataprotection/2023-12-01/deletedbackupinstances/method_list.go index b58dae94d07..8db5448a811 100644 --- a/resource-manager/dataprotection/2023-12-01/deletedbackupinstances/method_list.go +++ b/resource-manager/dataprotection/2023-12-01/deletedbackupinstances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []DeletedBackupInstanceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeletedBackupInstancesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeletedBackupInstancesClient) List(ctx context.Context, id BackupVaultId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/deletedBackupInstances", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/dppjob/method_fetchcrossregionrestorejobslist.go b/resource-manager/dataprotection/2023-12-01/dppjob/method_fetchcrossregionrestorejobslist.go index b4167b7d1f9..48d719aa3cb 100644 --- a/resource-manager/dataprotection/2023-12-01/dppjob/method_fetchcrossregionrestorejobslist.go +++ b/resource-manager/dataprotection/2023-12-01/dppjob/method_fetchcrossregionrestorejobslist.go @@ -50,6 +50,18 @@ func (o FetchCrossRegionRestoreJobsListOperationOptions) ToQuery() *client.Query return &out } +type FetchCrossRegionRestoreJobsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FetchCrossRegionRestoreJobsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FetchCrossRegionRestoreJobsList ... func (c DppJobClient) FetchCrossRegionRestoreJobsList(ctx context.Context, id ProviderLocationId, input CrossRegionRestoreJobsRequest, options FetchCrossRegionRestoreJobsListOperationOptions) (result FetchCrossRegionRestoreJobsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DppJobClient) FetchCrossRegionRestoreJobsList(ctx context.Context, id Pr http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/fetchCrossRegionRestoreJobs", id.ID()), OptionsObject: options, + Pager: &FetchCrossRegionRestoreJobsListCustomPager{}, + Path: fmt.Sprintf("%s/fetchCrossRegionRestoreJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2023-12-01/dppresourceguardproxies/method_dppresourceguardproxylist.go b/resource-manager/dataprotection/2023-12-01/dppresourceguardproxies/method_dppresourceguardproxylist.go index cc9e2aa6c49..c0966522e2f 100644 --- a/resource-manager/dataprotection/2023-12-01/dppresourceguardproxies/method_dppresourceguardproxylist.go +++ b/resource-manager/dataprotection/2023-12-01/dppresourceguardproxies/method_dppresourceguardproxylist.go @@ -23,6 +23,18 @@ type DppResourceGuardProxyListCompleteResult struct { Items []ResourceGuardProxyBaseResource } +type DppResourceGuardProxyListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DppResourceGuardProxyListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DppResourceGuardProxyList ... func (c DppResourceGuardProxiesClient) DppResourceGuardProxyList(ctx context.Context, id BackupVaultId) (result DppResourceGuardProxyListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DppResourceGuardProxiesClient) DppResourceGuardProxyList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DppResourceGuardProxyListCustomPager{}, Path: fmt.Sprintf("%s/backupResourceGuardProxies", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/fetchsecondaryrecoverypoints/method_list.go b/resource-manager/dataprotection/2023-12-01/fetchsecondaryrecoverypoints/method_list.go index 973d312a62c..26723b92a47 100644 --- a/resource-manager/dataprotection/2023-12-01/fetchsecondaryrecoverypoints/method_list.go +++ b/resource-manager/dataprotection/2023-12-01/fetchsecondaryrecoverypoints/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FetchSecondaryRecoveryPointsClient) List(ctx context.Context, id ProviderLocationId, input FetchSecondaryRPsRequestParameters, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c FetchSecondaryRecoveryPointsClient) List(ctx context.Context, id Provide http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/fetchSecondaryRecoveryPoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/fetchSecondaryRecoveryPoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2023-12-01/recoverypoint/method_list.go b/resource-manager/dataprotection/2023-12-01/recoverypoint/method_list.go index 9be86097693..ace5d834658 100644 --- a/resource-manager/dataprotection/2023-12-01/recoverypoint/method_list.go +++ b/resource-manager/dataprotection/2023-12-01/recoverypoint/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RecoveryPointClient) List(ctx context.Context, id BackupInstanceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c RecoveryPointClient) List(ctx context.Context, id BackupInstanceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go index 167a053e648..eb8eaeca22e 100644 --- a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go +++ b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go @@ -23,6 +23,18 @@ type GetBackupSecurityPINRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetBackupSecurityPINRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBackupSecurityPINRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBackupSecurityPINRequestsObjects ... func (c ResourceGuardsClient) GetBackupSecurityPINRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetBackupSecurityPINRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetBackupSecurityPINRequestsObjects(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetBackupSecurityPINRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/getBackupSecurityPINRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go index f265953768d..ce93828e11f 100644 --- a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go +++ b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go @@ -23,6 +23,18 @@ type GetDeleteProtectedItemRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDeleteProtectedItemRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDeleteProtectedItemRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDeleteProtectedItemRequestsObjects ... func (c ResourceGuardsClient) GetDeleteProtectedItemRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDeleteProtectedItemRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDeleteProtectedItemRequestsObjects(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDeleteProtectedItemRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/deleteProtectedItemRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go index 4f27b485d3d..5f987f2de5d 100644 --- a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go +++ b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go @@ -23,6 +23,18 @@ type GetDeleteResourceGuardProxyRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDeleteResourceGuardProxyRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDeleteResourceGuardProxyRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDeleteResourceGuardProxyRequestsObjects ... func (c ResourceGuardsClient) GetDeleteResourceGuardProxyRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDeleteResourceGuardProxyRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDeleteResourceGuardProxyRequestsObjects(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDeleteResourceGuardProxyRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/deleteResourceGuardProxyRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go index 3e78aac6c4f..eae3ca213ba 100644 --- a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go +++ b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go @@ -23,6 +23,18 @@ type GetDisableSoftDeleteRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDisableSoftDeleteRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDisableSoftDeleteRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDisableSoftDeleteRequestsObjects ... func (c ResourceGuardsClient) GetDisableSoftDeleteRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDisableSoftDeleteRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDisableSoftDeleteRequestsObjects(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDisableSoftDeleteRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/disableSoftDeleteRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getresourcesinresourcegroup.go b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getresourcesinresourcegroup.go index 311346da1da..9a343eb189a 100644 --- a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getresourcesinresourcegroup.go +++ b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getresourcesinresourcegroup.go @@ -24,6 +24,18 @@ type GetResourcesInResourceGroupCompleteResult struct { Items []ResourceGuardResource } +type GetResourcesInResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetResourcesInResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetResourcesInResourceGroup ... func (c ResourceGuardsClient) GetResourcesInResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GetResourcesInResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceGuardsClient) GetResourcesInResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetResourcesInResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/resourceGuards", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getresourcesinsubscription.go b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getresourcesinsubscription.go index 3b9d985596a..7eeda1e8c26 100644 --- a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getresourcesinsubscription.go +++ b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getresourcesinsubscription.go @@ -24,6 +24,18 @@ type GetResourcesInSubscriptionCompleteResult struct { Items []ResourceGuardResource } +type GetResourcesInSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetResourcesInSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetResourcesInSubscription ... func (c ResourceGuardsClient) GetResourcesInSubscription(ctx context.Context, id commonids.SubscriptionId) (result GetResourcesInSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceGuardsClient) GetResourcesInSubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetResourcesInSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/resourceGuards", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go index bb03ccd39f6..940b6f72f0e 100644 --- a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go +++ b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go @@ -23,6 +23,18 @@ type GetUpdateProtectedItemRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetUpdateProtectedItemRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUpdateProtectedItemRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUpdateProtectedItemRequestsObjects ... func (c ResourceGuardsClient) GetUpdateProtectedItemRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetUpdateProtectedItemRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetUpdateProtectedItemRequestsObjects(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUpdateProtectedItemRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/updateProtectedItemRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go index 23c0237b581..fc30cd7b71a 100644 --- a/resource-manager/dataprotection/2023-12-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go +++ b/resource-manager/dataprotection/2023-12-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go @@ -23,6 +23,18 @@ type GetUpdateProtectionPolicyRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetUpdateProtectionPolicyRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUpdateProtectionPolicyRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUpdateProtectionPolicyRequestsObjects ... func (c ResourceGuardsClient) GetUpdateProtectionPolicyRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetUpdateProtectionPolicyRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetUpdateProtectionPolicyRequestsObjects(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUpdateProtectionPolicyRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/updateProtectionPolicyRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/azurebackupjobs/method_jobslist.go b/resource-manager/dataprotection/2024-03-01/azurebackupjobs/method_jobslist.go index 54bb1250c94..016ccbbd75e 100644 --- a/resource-manager/dataprotection/2024-03-01/azurebackupjobs/method_jobslist.go +++ b/resource-manager/dataprotection/2024-03-01/azurebackupjobs/method_jobslist.go @@ -23,6 +23,18 @@ type JobsListCompleteResult struct { Items []AzureBackupJobResource } +type JobsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *JobsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // JobsList ... func (c AzureBackupJobsClient) JobsList(ctx context.Context, id BackupVaultId) (result JobsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AzureBackupJobsClient) JobsList(ctx context.Context, id BackupVaultId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &JobsListCustomPager{}, Path: fmt.Sprintf("%s/backupJobs", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/backupinstances/method_list.go b/resource-manager/dataprotection/2024-03-01/backupinstances/method_list.go index 6774121ab8b..e59d6159025 100644 --- a/resource-manager/dataprotection/2024-03-01/backupinstances/method_list.go +++ b/resource-manager/dataprotection/2024-03-01/backupinstances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []BackupInstanceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BackupInstancesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupInstancesClient) List(ctx context.Context, id BackupVaultId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/backupInstances", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/backuppolicies/method_list.go b/resource-manager/dataprotection/2024-03-01/backuppolicies/method_list.go index 0eb7f0e588b..1090bb36395 100644 --- a/resource-manager/dataprotection/2024-03-01/backuppolicies/method_list.go +++ b/resource-manager/dataprotection/2024-03-01/backuppolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []BaseBackupPolicyResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BackupPoliciesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupPoliciesClient) List(ctx context.Context, id BackupVaultId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/backupPolicies", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/backupvaults/method_getinresourcegroup.go b/resource-manager/dataprotection/2024-03-01/backupvaults/method_getinresourcegroup.go index bf1d7cd08aa..e6956a1b944 100644 --- a/resource-manager/dataprotection/2024-03-01/backupvaults/method_getinresourcegroup.go +++ b/resource-manager/dataprotection/2024-03-01/backupvaults/method_getinresourcegroup.go @@ -24,6 +24,18 @@ type GetInResourceGroupCompleteResult struct { Items []BackupVaultResource } +type GetInResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetInResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetInResourceGroup ... func (c BackupVaultsClient) GetInResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GetInResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BackupVaultsClient) GetInResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetInResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/backupVaults", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/backupvaults/method_getinsubscription.go b/resource-manager/dataprotection/2024-03-01/backupvaults/method_getinsubscription.go index 8cc087f24c4..51f30e81a07 100644 --- a/resource-manager/dataprotection/2024-03-01/backupvaults/method_getinsubscription.go +++ b/resource-manager/dataprotection/2024-03-01/backupvaults/method_getinsubscription.go @@ -24,6 +24,18 @@ type GetInSubscriptionCompleteResult struct { Items []BackupVaultResource } +type GetInSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetInSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetInSubscription ... func (c BackupVaultsClient) GetInSubscription(ctx context.Context, id commonids.SubscriptionId) (result GetInSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BackupVaultsClient) GetInSubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetInSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/backupVaults", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/deletedbackupinstances/method_list.go b/resource-manager/dataprotection/2024-03-01/deletedbackupinstances/method_list.go index b58dae94d07..8db5448a811 100644 --- a/resource-manager/dataprotection/2024-03-01/deletedbackupinstances/method_list.go +++ b/resource-manager/dataprotection/2024-03-01/deletedbackupinstances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []DeletedBackupInstanceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeletedBackupInstancesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeletedBackupInstancesClient) List(ctx context.Context, id BackupVaultId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/deletedBackupInstances", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/dppjob/method_fetchcrossregionrestorejobslist.go b/resource-manager/dataprotection/2024-03-01/dppjob/method_fetchcrossregionrestorejobslist.go index b4167b7d1f9..48d719aa3cb 100644 --- a/resource-manager/dataprotection/2024-03-01/dppjob/method_fetchcrossregionrestorejobslist.go +++ b/resource-manager/dataprotection/2024-03-01/dppjob/method_fetchcrossregionrestorejobslist.go @@ -50,6 +50,18 @@ func (o FetchCrossRegionRestoreJobsListOperationOptions) ToQuery() *client.Query return &out } +type FetchCrossRegionRestoreJobsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FetchCrossRegionRestoreJobsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FetchCrossRegionRestoreJobsList ... func (c DppJobClient) FetchCrossRegionRestoreJobsList(ctx context.Context, id ProviderLocationId, input CrossRegionRestoreJobsRequest, options FetchCrossRegionRestoreJobsListOperationOptions) (result FetchCrossRegionRestoreJobsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DppJobClient) FetchCrossRegionRestoreJobsList(ctx context.Context, id Pr http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/fetchCrossRegionRestoreJobs", id.ID()), OptionsObject: options, + Pager: &FetchCrossRegionRestoreJobsListCustomPager{}, + Path: fmt.Sprintf("%s/fetchCrossRegionRestoreJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2024-03-01/dppresourceguardproxies/method_dppresourceguardproxylist.go b/resource-manager/dataprotection/2024-03-01/dppresourceguardproxies/method_dppresourceguardproxylist.go index cc9e2aa6c49..c0966522e2f 100644 --- a/resource-manager/dataprotection/2024-03-01/dppresourceguardproxies/method_dppresourceguardproxylist.go +++ b/resource-manager/dataprotection/2024-03-01/dppresourceguardproxies/method_dppresourceguardproxylist.go @@ -23,6 +23,18 @@ type DppResourceGuardProxyListCompleteResult struct { Items []ResourceGuardProxyBaseResource } +type DppResourceGuardProxyListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DppResourceGuardProxyListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DppResourceGuardProxyList ... func (c DppResourceGuardProxiesClient) DppResourceGuardProxyList(ctx context.Context, id BackupVaultId) (result DppResourceGuardProxyListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DppResourceGuardProxiesClient) DppResourceGuardProxyList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DppResourceGuardProxyListCustomPager{}, Path: fmt.Sprintf("%s/backupResourceGuardProxies", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/fetchsecondaryrecoverypoints/method_list.go b/resource-manager/dataprotection/2024-03-01/fetchsecondaryrecoverypoints/method_list.go index 973d312a62c..26723b92a47 100644 --- a/resource-manager/dataprotection/2024-03-01/fetchsecondaryrecoverypoints/method_list.go +++ b/resource-manager/dataprotection/2024-03-01/fetchsecondaryrecoverypoints/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FetchSecondaryRecoveryPointsClient) List(ctx context.Context, id ProviderLocationId, input FetchSecondaryRPsRequestParameters, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c FetchSecondaryRecoveryPointsClient) List(ctx context.Context, id Provide http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/fetchSecondaryRecoveryPoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/fetchSecondaryRecoveryPoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2024-03-01/recoverypoint/method_list.go b/resource-manager/dataprotection/2024-03-01/recoverypoint/method_list.go index 9be86097693..ace5d834658 100644 --- a/resource-manager/dataprotection/2024-03-01/recoverypoint/method_list.go +++ b/resource-manager/dataprotection/2024-03-01/recoverypoint/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RecoveryPointClient) List(ctx context.Context, id BackupInstanceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c RecoveryPointClient) List(ctx context.Context, id BackupInstanceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go index 167a053e648..eb8eaeca22e 100644 --- a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go +++ b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go @@ -23,6 +23,18 @@ type GetBackupSecurityPINRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetBackupSecurityPINRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBackupSecurityPINRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBackupSecurityPINRequestsObjects ... func (c ResourceGuardsClient) GetBackupSecurityPINRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetBackupSecurityPINRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetBackupSecurityPINRequestsObjects(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetBackupSecurityPINRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/getBackupSecurityPINRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go index f265953768d..ce93828e11f 100644 --- a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go +++ b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go @@ -23,6 +23,18 @@ type GetDeleteProtectedItemRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDeleteProtectedItemRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDeleteProtectedItemRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDeleteProtectedItemRequestsObjects ... func (c ResourceGuardsClient) GetDeleteProtectedItemRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDeleteProtectedItemRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDeleteProtectedItemRequestsObjects(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDeleteProtectedItemRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/deleteProtectedItemRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go index 4f27b485d3d..5f987f2de5d 100644 --- a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go +++ b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go @@ -23,6 +23,18 @@ type GetDeleteResourceGuardProxyRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDeleteResourceGuardProxyRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDeleteResourceGuardProxyRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDeleteResourceGuardProxyRequestsObjects ... func (c ResourceGuardsClient) GetDeleteResourceGuardProxyRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDeleteResourceGuardProxyRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDeleteResourceGuardProxyRequestsObjects(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDeleteResourceGuardProxyRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/deleteResourceGuardProxyRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go index 3e78aac6c4f..eae3ca213ba 100644 --- a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go +++ b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go @@ -23,6 +23,18 @@ type GetDisableSoftDeleteRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDisableSoftDeleteRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDisableSoftDeleteRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDisableSoftDeleteRequestsObjects ... func (c ResourceGuardsClient) GetDisableSoftDeleteRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDisableSoftDeleteRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDisableSoftDeleteRequestsObjects(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDisableSoftDeleteRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/disableSoftDeleteRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getresourcesinresourcegroup.go b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getresourcesinresourcegroup.go index 311346da1da..9a343eb189a 100644 --- a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getresourcesinresourcegroup.go +++ b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getresourcesinresourcegroup.go @@ -24,6 +24,18 @@ type GetResourcesInResourceGroupCompleteResult struct { Items []ResourceGuardResource } +type GetResourcesInResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetResourcesInResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetResourcesInResourceGroup ... func (c ResourceGuardsClient) GetResourcesInResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GetResourcesInResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceGuardsClient) GetResourcesInResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetResourcesInResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/resourceGuards", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getresourcesinsubscription.go b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getresourcesinsubscription.go index 3b9d985596a..7eeda1e8c26 100644 --- a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getresourcesinsubscription.go +++ b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getresourcesinsubscription.go @@ -24,6 +24,18 @@ type GetResourcesInSubscriptionCompleteResult struct { Items []ResourceGuardResource } +type GetResourcesInSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetResourcesInSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetResourcesInSubscription ... func (c ResourceGuardsClient) GetResourcesInSubscription(ctx context.Context, id commonids.SubscriptionId) (result GetResourcesInSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceGuardsClient) GetResourcesInSubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetResourcesInSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/resourceGuards", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go index bb03ccd39f6..940b6f72f0e 100644 --- a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go +++ b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go @@ -23,6 +23,18 @@ type GetUpdateProtectedItemRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetUpdateProtectedItemRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUpdateProtectedItemRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUpdateProtectedItemRequestsObjects ... func (c ResourceGuardsClient) GetUpdateProtectedItemRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetUpdateProtectedItemRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetUpdateProtectedItemRequestsObjects(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUpdateProtectedItemRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/updateProtectedItemRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go index 23c0237b581..fc30cd7b71a 100644 --- a/resource-manager/dataprotection/2024-03-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go +++ b/resource-manager/dataprotection/2024-03-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go @@ -23,6 +23,18 @@ type GetUpdateProtectionPolicyRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetUpdateProtectionPolicyRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUpdateProtectionPolicyRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUpdateProtectionPolicyRequestsObjects ... func (c ResourceGuardsClient) GetUpdateProtectionPolicyRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetUpdateProtectionPolicyRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetUpdateProtectionPolicyRequestsObjects(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUpdateProtectionPolicyRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/updateProtectionPolicyRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/azurebackupjobs/method_jobslist.go b/resource-manager/dataprotection/2024-04-01/azurebackupjobs/method_jobslist.go index 54bb1250c94..016ccbbd75e 100644 --- a/resource-manager/dataprotection/2024-04-01/azurebackupjobs/method_jobslist.go +++ b/resource-manager/dataprotection/2024-04-01/azurebackupjobs/method_jobslist.go @@ -23,6 +23,18 @@ type JobsListCompleteResult struct { Items []AzureBackupJobResource } +type JobsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *JobsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // JobsList ... func (c AzureBackupJobsClient) JobsList(ctx context.Context, id BackupVaultId) (result JobsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AzureBackupJobsClient) JobsList(ctx context.Context, id BackupVaultId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &JobsListCustomPager{}, Path: fmt.Sprintf("%s/backupJobs", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/backupinstances/method_createorupdate.go b/resource-manager/dataprotection/2024-04-01/backupinstances/method_createorupdate.go index 8c49d6a1b1d..9b7d414a7e8 100644 --- a/resource-manager/dataprotection/2024-04-01/backupinstances/method_createorupdate.go +++ b/resource-manager/dataprotection/2024-04-01/backupinstances/method_createorupdate.go @@ -58,8 +58,8 @@ func (c BackupInstancesClient) CreateOrUpdate(ctx context.Context, id BackupInst http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2024-04-01/backupinstances/method_delete.go b/resource-manager/dataprotection/2024-04-01/backupinstances/method_delete.go index 9505a3d9cf7..f7c7e187ba7 100644 --- a/resource-manager/dataprotection/2024-04-01/backupinstances/method_delete.go +++ b/resource-manager/dataprotection/2024-04-01/backupinstances/method_delete.go @@ -57,8 +57,8 @@ func (c BackupInstancesClient) Delete(ctx context.Context, id BackupInstanceId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2024-04-01/backupinstances/method_list.go b/resource-manager/dataprotection/2024-04-01/backupinstances/method_list.go index 6774121ab8b..e59d6159025 100644 --- a/resource-manager/dataprotection/2024-04-01/backupinstances/method_list.go +++ b/resource-manager/dataprotection/2024-04-01/backupinstances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []BackupInstanceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BackupInstancesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupInstancesClient) List(ctx context.Context, id BackupVaultId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/backupInstances", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/backupinstances/method_stopprotection.go b/resource-manager/dataprotection/2024-04-01/backupinstances/method_stopprotection.go index b2ab8a26310..5340191884e 100644 --- a/resource-manager/dataprotection/2024-04-01/backupinstances/method_stopprotection.go +++ b/resource-manager/dataprotection/2024-04-01/backupinstances/method_stopprotection.go @@ -56,8 +56,8 @@ func (c BackupInstancesClient) StopProtection(ctx context.Context, id BackupInst http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/stopProtection", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/stopProtection", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2024-04-01/backupinstances/method_suspendbackups.go b/resource-manager/dataprotection/2024-04-01/backupinstances/method_suspendbackups.go index 8d8f1b7d43d..a99e82a0bde 100644 --- a/resource-manager/dataprotection/2024-04-01/backupinstances/method_suspendbackups.go +++ b/resource-manager/dataprotection/2024-04-01/backupinstances/method_suspendbackups.go @@ -56,8 +56,8 @@ func (c BackupInstancesClient) SuspendBackups(ctx context.Context, id BackupInst http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/suspendBackups", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/suspendBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggerrestore.go b/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggerrestore.go index cce24bd0d8d..0d868dfde67 100644 --- a/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggerrestore.go +++ b/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggerrestore.go @@ -57,8 +57,8 @@ func (c BackupInstancesClient) TriggerRestore(ctx context.Context, id BackupInst http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/restore", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restore", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2024-04-01/backupinstancesextensionrouting/method_list.go b/resource-manager/dataprotection/2024-04-01/backupinstancesextensionrouting/method_list.go index 0ce17176493..09b417b5ae5 100644 --- a/resource-manager/dataprotection/2024-04-01/backupinstancesextensionrouting/method_list.go +++ b/resource-manager/dataprotection/2024-04-01/backupinstancesextensionrouting/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BackupInstanceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BackupInstancesExtensionRoutingClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BackupInstancesExtensionRoutingClient) List(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/backupInstances", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/backuppolicies/method_list.go b/resource-manager/dataprotection/2024-04-01/backuppolicies/method_list.go index 0eb7f0e588b..1090bb36395 100644 --- a/resource-manager/dataprotection/2024-04-01/backuppolicies/method_list.go +++ b/resource-manager/dataprotection/2024-04-01/backuppolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []BaseBackupPolicyResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BackupPoliciesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupPoliciesClient) List(ctx context.Context, id BackupVaultId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/backupPolicies", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/backupvaults/method_createorupdate.go b/resource-manager/dataprotection/2024-04-01/backupvaults/method_createorupdate.go index 0e1892eb095..345636a7702 100644 --- a/resource-manager/dataprotection/2024-04-01/backupvaults/method_createorupdate.go +++ b/resource-manager/dataprotection/2024-04-01/backupvaults/method_createorupdate.go @@ -57,8 +57,8 @@ func (c BackupVaultsClient) CreateOrUpdate(ctx context.Context, id BackupVaultId http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2024-04-01/backupvaults/method_getinresourcegroup.go b/resource-manager/dataprotection/2024-04-01/backupvaults/method_getinresourcegroup.go index bf1d7cd08aa..e6956a1b944 100644 --- a/resource-manager/dataprotection/2024-04-01/backupvaults/method_getinresourcegroup.go +++ b/resource-manager/dataprotection/2024-04-01/backupvaults/method_getinresourcegroup.go @@ -24,6 +24,18 @@ type GetInResourceGroupCompleteResult struct { Items []BackupVaultResource } +type GetInResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetInResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetInResourceGroup ... func (c BackupVaultsClient) GetInResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GetInResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BackupVaultsClient) GetInResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetInResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/backupVaults", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/backupvaults/method_getinsubscription.go b/resource-manager/dataprotection/2024-04-01/backupvaults/method_getinsubscription.go index 8cc087f24c4..51f30e81a07 100644 --- a/resource-manager/dataprotection/2024-04-01/backupvaults/method_getinsubscription.go +++ b/resource-manager/dataprotection/2024-04-01/backupvaults/method_getinsubscription.go @@ -24,6 +24,18 @@ type GetInSubscriptionCompleteResult struct { Items []BackupVaultResource } +type GetInSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetInSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetInSubscription ... func (c BackupVaultsClient) GetInSubscription(ctx context.Context, id commonids.SubscriptionId) (result GetInSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BackupVaultsClient) GetInSubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetInSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/backupVaults", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/backupvaults/method_update.go b/resource-manager/dataprotection/2024-04-01/backupvaults/method_update.go index 999efb3f727..aa31cfa58d9 100644 --- a/resource-manager/dataprotection/2024-04-01/backupvaults/method_update.go +++ b/resource-manager/dataprotection/2024-04-01/backupvaults/method_update.go @@ -57,8 +57,8 @@ func (c BackupVaultsClient) Update(ctx context.Context, id BackupVaultId, input http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2024-04-01/deletedbackupinstances/method_list.go b/resource-manager/dataprotection/2024-04-01/deletedbackupinstances/method_list.go index b58dae94d07..8db5448a811 100644 --- a/resource-manager/dataprotection/2024-04-01/deletedbackupinstances/method_list.go +++ b/resource-manager/dataprotection/2024-04-01/deletedbackupinstances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []DeletedBackupInstanceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeletedBackupInstancesClient) List(ctx context.Context, id BackupVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeletedBackupInstancesClient) List(ctx context.Context, id BackupVaultId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/deletedBackupInstances", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/dppjob/method_fetchcrossregionrestorejobslist.go b/resource-manager/dataprotection/2024-04-01/dppjob/method_fetchcrossregionrestorejobslist.go index b4167b7d1f9..48d719aa3cb 100644 --- a/resource-manager/dataprotection/2024-04-01/dppjob/method_fetchcrossregionrestorejobslist.go +++ b/resource-manager/dataprotection/2024-04-01/dppjob/method_fetchcrossregionrestorejobslist.go @@ -50,6 +50,18 @@ func (o FetchCrossRegionRestoreJobsListOperationOptions) ToQuery() *client.Query return &out } +type FetchCrossRegionRestoreJobsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FetchCrossRegionRestoreJobsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FetchCrossRegionRestoreJobsList ... func (c DppJobClient) FetchCrossRegionRestoreJobsList(ctx context.Context, id ProviderLocationId, input CrossRegionRestoreJobsRequest, options FetchCrossRegionRestoreJobsListOperationOptions) (result FetchCrossRegionRestoreJobsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DppJobClient) FetchCrossRegionRestoreJobsList(ctx context.Context, id Pr http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/fetchCrossRegionRestoreJobs", id.ID()), OptionsObject: options, + Pager: &FetchCrossRegionRestoreJobsListCustomPager{}, + Path: fmt.Sprintf("%s/fetchCrossRegionRestoreJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2024-04-01/dppresourceguardproxies/method_dppresourceguardproxylist.go b/resource-manager/dataprotection/2024-04-01/dppresourceguardproxies/method_dppresourceguardproxylist.go index cc9e2aa6c49..c0966522e2f 100644 --- a/resource-manager/dataprotection/2024-04-01/dppresourceguardproxies/method_dppresourceguardproxylist.go +++ b/resource-manager/dataprotection/2024-04-01/dppresourceguardproxies/method_dppresourceguardproxylist.go @@ -23,6 +23,18 @@ type DppResourceGuardProxyListCompleteResult struct { Items []ResourceGuardProxyBaseResource } +type DppResourceGuardProxyListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DppResourceGuardProxyListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DppResourceGuardProxyList ... func (c DppResourceGuardProxiesClient) DppResourceGuardProxyList(ctx context.Context, id BackupVaultId) (result DppResourceGuardProxyListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DppResourceGuardProxiesClient) DppResourceGuardProxyList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DppResourceGuardProxyListCustomPager{}, Path: fmt.Sprintf("%s/backupResourceGuardProxies", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/dppresourceguardproxies/method_dppresourceguardproxyunlockdelete.go b/resource-manager/dataprotection/2024-04-01/dppresourceguardproxies/method_dppresourceguardproxyunlockdelete.go index 8395140925b..0f893ab03d6 100644 --- a/resource-manager/dataprotection/2024-04-01/dppresourceguardproxies/method_dppresourceguardproxyunlockdelete.go +++ b/resource-manager/dataprotection/2024-04-01/dppresourceguardproxies/method_dppresourceguardproxyunlockdelete.go @@ -53,8 +53,8 @@ func (c DppResourceGuardProxiesClient) DppResourceGuardProxyUnlockDelete(ctx con http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/unlockDelete", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/unlockDelete", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2024-04-01/fetchsecondaryrecoverypoints/method_list.go b/resource-manager/dataprotection/2024-04-01/fetchsecondaryrecoverypoints/method_list.go index 973d312a62c..26723b92a47 100644 --- a/resource-manager/dataprotection/2024-04-01/fetchsecondaryrecoverypoints/method_list.go +++ b/resource-manager/dataprotection/2024-04-01/fetchsecondaryrecoverypoints/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FetchSecondaryRecoveryPointsClient) List(ctx context.Context, id ProviderLocationId, input FetchSecondaryRPsRequestParameters, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c FetchSecondaryRecoveryPointsClient) List(ctx context.Context, id Provide http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/fetchSecondaryRecoveryPoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/fetchSecondaryRecoveryPoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2024-04-01/recoverypoint/method_list.go b/resource-manager/dataprotection/2024-04-01/recoverypoint/method_list.go index 9be86097693..ace5d834658 100644 --- a/resource-manager/dataprotection/2024-04-01/recoverypoint/method_list.go +++ b/resource-manager/dataprotection/2024-04-01/recoverypoint/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RecoveryPointClient) List(ctx context.Context, id BackupInstanceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c RecoveryPointClient) List(ctx context.Context, id BackupInstanceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go index 167a053e648..eb8eaeca22e 100644 --- a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go +++ b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go @@ -23,6 +23,18 @@ type GetBackupSecurityPINRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetBackupSecurityPINRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBackupSecurityPINRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBackupSecurityPINRequestsObjects ... func (c ResourceGuardsClient) GetBackupSecurityPINRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetBackupSecurityPINRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetBackupSecurityPINRequestsObjects(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetBackupSecurityPINRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/getBackupSecurityPINRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go index f265953768d..ce93828e11f 100644 --- a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go +++ b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go @@ -23,6 +23,18 @@ type GetDeleteProtectedItemRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDeleteProtectedItemRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDeleteProtectedItemRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDeleteProtectedItemRequestsObjects ... func (c ResourceGuardsClient) GetDeleteProtectedItemRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDeleteProtectedItemRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDeleteProtectedItemRequestsObjects(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDeleteProtectedItemRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/deleteProtectedItemRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go index 4f27b485d3d..5f987f2de5d 100644 --- a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go +++ b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go @@ -23,6 +23,18 @@ type GetDeleteResourceGuardProxyRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDeleteResourceGuardProxyRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDeleteResourceGuardProxyRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDeleteResourceGuardProxyRequestsObjects ... func (c ResourceGuardsClient) GetDeleteResourceGuardProxyRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDeleteResourceGuardProxyRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDeleteResourceGuardProxyRequestsObjects(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDeleteResourceGuardProxyRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/deleteResourceGuardProxyRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go index 3e78aac6c4f..eae3ca213ba 100644 --- a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go +++ b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go @@ -23,6 +23,18 @@ type GetDisableSoftDeleteRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetDisableSoftDeleteRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDisableSoftDeleteRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDisableSoftDeleteRequestsObjects ... func (c ResourceGuardsClient) GetDisableSoftDeleteRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetDisableSoftDeleteRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetDisableSoftDeleteRequestsObjects(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDisableSoftDeleteRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/disableSoftDeleteRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getresourcesinresourcegroup.go b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getresourcesinresourcegroup.go index 311346da1da..9a343eb189a 100644 --- a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getresourcesinresourcegroup.go +++ b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getresourcesinresourcegroup.go @@ -24,6 +24,18 @@ type GetResourcesInResourceGroupCompleteResult struct { Items []ResourceGuardResource } +type GetResourcesInResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetResourcesInResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetResourcesInResourceGroup ... func (c ResourceGuardsClient) GetResourcesInResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GetResourcesInResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceGuardsClient) GetResourcesInResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetResourcesInResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/resourceGuards", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getresourcesinsubscription.go b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getresourcesinsubscription.go index 3b9d985596a..7eeda1e8c26 100644 --- a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getresourcesinsubscription.go +++ b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getresourcesinsubscription.go @@ -24,6 +24,18 @@ type GetResourcesInSubscriptionCompleteResult struct { Items []ResourceGuardResource } +type GetResourcesInSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetResourcesInSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetResourcesInSubscription ... func (c ResourceGuardsClient) GetResourcesInSubscription(ctx context.Context, id commonids.SubscriptionId) (result GetResourcesInSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceGuardsClient) GetResourcesInSubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetResourcesInSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataProtection/resourceGuards", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go index bb03ccd39f6..940b6f72f0e 100644 --- a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go +++ b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go @@ -23,6 +23,18 @@ type GetUpdateProtectedItemRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetUpdateProtectedItemRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUpdateProtectedItemRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUpdateProtectedItemRequestsObjects ... func (c ResourceGuardsClient) GetUpdateProtectedItemRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetUpdateProtectedItemRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetUpdateProtectedItemRequestsObjects(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUpdateProtectedItemRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/updateProtectedItemRequests", id.ID()), } diff --git a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go index 23c0237b581..fc30cd7b71a 100644 --- a/resource-manager/dataprotection/2024-04-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go +++ b/resource-manager/dataprotection/2024-04-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go @@ -23,6 +23,18 @@ type GetUpdateProtectionPolicyRequestsObjectsCompleteResult struct { Items []DppBaseResource } +type GetUpdateProtectionPolicyRequestsObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUpdateProtectionPolicyRequestsObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUpdateProtectionPolicyRequestsObjects ... func (c ResourceGuardsClient) GetUpdateProtectionPolicyRequestsObjects(ctx context.Context, id ResourceGuardId) (result GetUpdateProtectionPolicyRequestsObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceGuardsClient) GetUpdateProtectionPolicyRequestsObjects(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUpdateProtectionPolicyRequestsObjectsCustomPager{}, Path: fmt.Sprintf("%s/updateProtectionPolicyRequests", id.ID()), } diff --git a/resource-manager/datashare/2019-11-01/account/method_listbyresourcegroup.go b/resource-manager/datashare/2019-11-01/account/method_listbyresourcegroup.go index d6f19199e3a..c5b27cc8b7a 100644 --- a/resource-manager/datashare/2019-11-01/account/method_listbyresourcegroup.go +++ b/resource-manager/datashare/2019-11-01/account/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Account } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AccountClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccountClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataShare/accounts", id.ID()), } diff --git a/resource-manager/datashare/2019-11-01/account/method_listbysubscription.go b/resource-manager/datashare/2019-11-01/account/method_listbysubscription.go index 5e3fb95be97..da6eda6f8a6 100644 --- a/resource-manager/datashare/2019-11-01/account/method_listbysubscription.go +++ b/resource-manager/datashare/2019-11-01/account/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Account } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AccountClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccountClient) ListBySubscription(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataShare/accounts", id.ID()), } diff --git a/resource-manager/datashare/2019-11-01/consumerinvitation/method_listinvitations.go b/resource-manager/datashare/2019-11-01/consumerinvitation/method_listinvitations.go index 56560802ad2..94630acc8f2 100644 --- a/resource-manager/datashare/2019-11-01/consumerinvitation/method_listinvitations.go +++ b/resource-manager/datashare/2019-11-01/consumerinvitation/method_listinvitations.go @@ -23,6 +23,18 @@ type ListInvitationsCompleteResult struct { Items []ConsumerInvitation } +type ListInvitationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInvitationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInvitations ... func (c ConsumerInvitationClient) ListInvitations(ctx context.Context) (result ListInvitationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConsumerInvitationClient) ListInvitations(ctx context.Context) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInvitationsCustomPager{}, Path: "/providers/Microsoft.DataShare/listInvitations", } diff --git a/resource-manager/datashare/2019-11-01/dataset/method_listbyshare.go b/resource-manager/datashare/2019-11-01/dataset/method_listbyshare.go index 66ee4b36224..0cd5cf0bd96 100644 --- a/resource-manager/datashare/2019-11-01/dataset/method_listbyshare.go +++ b/resource-manager/datashare/2019-11-01/dataset/method_listbyshare.go @@ -55,6 +55,18 @@ func (o ListByShareOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByShareCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByShareCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByShare ... func (c DataSetClient) ListByShare(ctx context.Context, id ShareId, options ListByShareOperationOptions) (result ListByShareOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DataSetClient) ListByShare(ctx context.Context, id ShareId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/dataSets", id.ID()), OptionsObject: options, + Pager: &ListByShareCustomPager{}, + Path: fmt.Sprintf("%s/dataSets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2019-11-01/datasetmapping/method_listbysharesubscription.go b/resource-manager/datashare/2019-11-01/datasetmapping/method_listbysharesubscription.go index ea4c469acfd..f0686132b96 100644 --- a/resource-manager/datashare/2019-11-01/datasetmapping/method_listbysharesubscription.go +++ b/resource-manager/datashare/2019-11-01/datasetmapping/method_listbysharesubscription.go @@ -55,6 +55,18 @@ func (o ListByShareSubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByShareSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByShareSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByShareSubscription ... func (c DataSetMappingClient) ListByShareSubscription(ctx context.Context, id ShareSubscriptionId, options ListByShareSubscriptionOperationOptions) (result ListByShareSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DataSetMappingClient) ListByShareSubscription(ctx context.Context, id Sh http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/dataSetMappings", id.ID()), OptionsObject: options, + Pager: &ListByShareSubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/dataSetMappings", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2019-11-01/invitation/method_listbyshare.go b/resource-manager/datashare/2019-11-01/invitation/method_listbyshare.go index 7e53fa994e2..9e45854e85e 100644 --- a/resource-manager/datashare/2019-11-01/invitation/method_listbyshare.go +++ b/resource-manager/datashare/2019-11-01/invitation/method_listbyshare.go @@ -54,6 +54,18 @@ func (o ListByShareOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByShareCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByShareCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByShare ... func (c InvitationClient) ListByShare(ctx context.Context, id ShareId, options ListByShareOperationOptions) (result ListByShareOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c InvitationClient) ListByShare(ctx context.Context, id ShareId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/invitations", id.ID()), OptionsObject: options, + Pager: &ListByShareCustomPager{}, + Path: fmt.Sprintf("%s/invitations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2019-11-01/share/method_listbyaccount.go b/resource-manager/datashare/2019-11-01/share/method_listbyaccount.go index 04a90ee0fef..324c3f2a9e0 100644 --- a/resource-manager/datashare/2019-11-01/share/method_listbyaccount.go +++ b/resource-manager/datashare/2019-11-01/share/method_listbyaccount.go @@ -54,6 +54,18 @@ func (o ListByAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c ShareClient) ListByAccount(ctx context.Context, id AccountId, options ListByAccountOperationOptions) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ShareClient) ListByAccount(ctx context.Context, id AccountId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/shares", id.ID()), OptionsObject: options, + Pager: &ListByAccountCustomPager{}, + Path: fmt.Sprintf("%s/shares", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2019-11-01/share/method_listsynchronizationdetails.go b/resource-manager/datashare/2019-11-01/share/method_listsynchronizationdetails.go index 3bd2b379893..256e50f61ba 100644 --- a/resource-manager/datashare/2019-11-01/share/method_listsynchronizationdetails.go +++ b/resource-manager/datashare/2019-11-01/share/method_listsynchronizationdetails.go @@ -54,6 +54,18 @@ func (o ListSynchronizationDetailsOperationOptions) ToQuery() *client.QueryParam return &out } +type ListSynchronizationDetailsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSynchronizationDetailsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSynchronizationDetails ... func (c ShareClient) ListSynchronizationDetails(ctx context.Context, id ShareId, input ShareSynchronization, options ListSynchronizationDetailsOperationOptions) (result ListSynchronizationDetailsOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ShareClient) ListSynchronizationDetails(ctx context.Context, id ShareId, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listSynchronizationDetails", id.ID()), OptionsObject: options, + Pager: &ListSynchronizationDetailsCustomPager{}, + Path: fmt.Sprintf("%s/listSynchronizationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2019-11-01/share/method_listsynchronizations.go b/resource-manager/datashare/2019-11-01/share/method_listsynchronizations.go index 00df899f136..e58e9b40b43 100644 --- a/resource-manager/datashare/2019-11-01/share/method_listsynchronizations.go +++ b/resource-manager/datashare/2019-11-01/share/method_listsynchronizations.go @@ -54,6 +54,18 @@ func (o ListSynchronizationsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListSynchronizationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSynchronizationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSynchronizations ... func (c ShareClient) ListSynchronizations(ctx context.Context, id ShareId, options ListSynchronizationsOperationOptions) (result ListSynchronizationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ShareClient) ListSynchronizations(ctx context.Context, id ShareId, optio http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listSynchronizations", id.ID()), OptionsObject: options, + Pager: &ListSynchronizationsCustomPager{}, + Path: fmt.Sprintf("%s/listSynchronizations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2019-11-01/share/method_providersharesubscriptionslistbyshare.go b/resource-manager/datashare/2019-11-01/share/method_providersharesubscriptionslistbyshare.go index 77887381e5e..aa3307218c1 100644 --- a/resource-manager/datashare/2019-11-01/share/method_providersharesubscriptionslistbyshare.go +++ b/resource-manager/datashare/2019-11-01/share/method_providersharesubscriptionslistbyshare.go @@ -23,6 +23,18 @@ type ProviderShareSubscriptionsListByShareCompleteResult struct { Items []ProviderShareSubscription } +type ProviderShareSubscriptionsListByShareCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProviderShareSubscriptionsListByShareCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProviderShareSubscriptionsListByShare ... func (c ShareClient) ProviderShareSubscriptionsListByShare(ctx context.Context, id ShareId) (result ProviderShareSubscriptionsListByShareOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ShareClient) ProviderShareSubscriptionsListByShare(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ProviderShareSubscriptionsListByShareCustomPager{}, Path: fmt.Sprintf("%s/providerShareSubscriptions", id.ID()), } diff --git a/resource-manager/datashare/2019-11-01/sharesubscription/method_consumersourcedatasetslistbysharesubscription.go b/resource-manager/datashare/2019-11-01/sharesubscription/method_consumersourcedatasetslistbysharesubscription.go index 8c82205dc0c..5bc362f97ec 100644 --- a/resource-manager/datashare/2019-11-01/sharesubscription/method_consumersourcedatasetslistbysharesubscription.go +++ b/resource-manager/datashare/2019-11-01/sharesubscription/method_consumersourcedatasetslistbysharesubscription.go @@ -23,6 +23,18 @@ type ConsumerSourceDataSetsListByShareSubscriptionCompleteResult struct { Items []ConsumerSourceDataSet } +type ConsumerSourceDataSetsListByShareSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConsumerSourceDataSetsListByShareSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConsumerSourceDataSetsListByShareSubscription ... func (c ShareSubscriptionClient) ConsumerSourceDataSetsListByShareSubscription(ctx context.Context, id ShareSubscriptionId) (result ConsumerSourceDataSetsListByShareSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ShareSubscriptionClient) ConsumerSourceDataSetsListByShareSubscription(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConsumerSourceDataSetsListByShareSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/consumerSourceDataSets", id.ID()), } diff --git a/resource-manager/datashare/2019-11-01/sharesubscription/method_listbyaccount.go b/resource-manager/datashare/2019-11-01/sharesubscription/method_listbyaccount.go index 6548735fc80..5d5c2f0c598 100644 --- a/resource-manager/datashare/2019-11-01/sharesubscription/method_listbyaccount.go +++ b/resource-manager/datashare/2019-11-01/sharesubscription/method_listbyaccount.go @@ -54,6 +54,18 @@ func (o ListByAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c ShareSubscriptionClient) ListByAccount(ctx context.Context, id AccountId, options ListByAccountOperationOptions) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ShareSubscriptionClient) ListByAccount(ctx context.Context, id AccountId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/shareSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListByAccountCustomPager{}, + Path: fmt.Sprintf("%s/shareSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2019-11-01/sharesubscription/method_listsourcesharesynchronizationsettings.go b/resource-manager/datashare/2019-11-01/sharesubscription/method_listsourcesharesynchronizationsettings.go index ba05faf9515..b9a025803ae 100644 --- a/resource-manager/datashare/2019-11-01/sharesubscription/method_listsourcesharesynchronizationsettings.go +++ b/resource-manager/datashare/2019-11-01/sharesubscription/method_listsourcesharesynchronizationsettings.go @@ -24,6 +24,18 @@ type ListSourceShareSynchronizationSettingsCompleteResult struct { Items []SourceShareSynchronizationSetting } +type ListSourceShareSynchronizationSettingsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSourceShareSynchronizationSettingsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSourceShareSynchronizationSettings ... func (c ShareSubscriptionClient) ListSourceShareSynchronizationSettings(ctx context.Context, id ShareSubscriptionId) (result ListSourceShareSynchronizationSettingsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ShareSubscriptionClient) ListSourceShareSynchronizationSettings(ctx cont http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSourceShareSynchronizationSettingsCustomPager{}, Path: fmt.Sprintf("%s/listSourceShareSynchronizationSettings", id.ID()), } diff --git a/resource-manager/datashare/2019-11-01/sharesubscription/method_listsynchronizationdetails.go b/resource-manager/datashare/2019-11-01/sharesubscription/method_listsynchronizationdetails.go index fd9fafe9e02..854a1d2ac6c 100644 --- a/resource-manager/datashare/2019-11-01/sharesubscription/method_listsynchronizationdetails.go +++ b/resource-manager/datashare/2019-11-01/sharesubscription/method_listsynchronizationdetails.go @@ -54,6 +54,18 @@ func (o ListSynchronizationDetailsOperationOptions) ToQuery() *client.QueryParam return &out } +type ListSynchronizationDetailsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSynchronizationDetailsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSynchronizationDetails ... func (c ShareSubscriptionClient) ListSynchronizationDetails(ctx context.Context, id ShareSubscriptionId, input ShareSubscriptionSynchronization, options ListSynchronizationDetailsOperationOptions) (result ListSynchronizationDetailsOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ShareSubscriptionClient) ListSynchronizationDetails(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listSynchronizationDetails", id.ID()), OptionsObject: options, + Pager: &ListSynchronizationDetailsCustomPager{}, + Path: fmt.Sprintf("%s/listSynchronizationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2019-11-01/sharesubscription/method_listsynchronizations.go b/resource-manager/datashare/2019-11-01/sharesubscription/method_listsynchronizations.go index 04d53b400bf..e85015321c1 100644 --- a/resource-manager/datashare/2019-11-01/sharesubscription/method_listsynchronizations.go +++ b/resource-manager/datashare/2019-11-01/sharesubscription/method_listsynchronizations.go @@ -54,6 +54,18 @@ func (o ListSynchronizationsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListSynchronizationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSynchronizationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSynchronizations ... func (c ShareSubscriptionClient) ListSynchronizations(ctx context.Context, id ShareSubscriptionId, options ListSynchronizationsOperationOptions) (result ListSynchronizationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ShareSubscriptionClient) ListSynchronizations(ctx context.Context, id Sh http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listSynchronizations", id.ID()), OptionsObject: options, + Pager: &ListSynchronizationsCustomPager{}, + Path: fmt.Sprintf("%s/listSynchronizations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2019-11-01/synchronizationsetting/method_listbyshare.go b/resource-manager/datashare/2019-11-01/synchronizationsetting/method_listbyshare.go index a910ae5784c..8ae40f376c4 100644 --- a/resource-manager/datashare/2019-11-01/synchronizationsetting/method_listbyshare.go +++ b/resource-manager/datashare/2019-11-01/synchronizationsetting/method_listbyshare.go @@ -24,6 +24,18 @@ type ListByShareCompleteResult struct { Items []SynchronizationSetting } +type ListByShareCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByShareCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByShare ... func (c SynchronizationSettingClient) ListByShare(ctx context.Context, id ShareId) (result ListByShareOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SynchronizationSettingClient) ListByShare(ctx context.Context, id ShareI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByShareCustomPager{}, Path: fmt.Sprintf("%s/synchronizationSettings", id.ID()), } diff --git a/resource-manager/datashare/2019-11-01/trigger/method_listbysharesubscription.go b/resource-manager/datashare/2019-11-01/trigger/method_listbysharesubscription.go index 19a1fa1ab77..7d4ef4dec7f 100644 --- a/resource-manager/datashare/2019-11-01/trigger/method_listbysharesubscription.go +++ b/resource-manager/datashare/2019-11-01/trigger/method_listbysharesubscription.go @@ -24,6 +24,18 @@ type ListByShareSubscriptionCompleteResult struct { Items []Trigger } +type ListByShareSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByShareSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByShareSubscription ... func (c TriggerClient) ListByShareSubscription(ctx context.Context, id ShareSubscriptionId) (result ListByShareSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TriggerClient) ListByShareSubscription(ctx context.Context, id ShareSubs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByShareSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/triggers", id.ID()), } diff --git a/resource-manager/datashare/2021-08-01/account/method_listbyresourcegroup.go b/resource-manager/datashare/2021-08-01/account/method_listbyresourcegroup.go index d6f19199e3a..c5b27cc8b7a 100644 --- a/resource-manager/datashare/2021-08-01/account/method_listbyresourcegroup.go +++ b/resource-manager/datashare/2021-08-01/account/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Account } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AccountClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccountClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataShare/accounts", id.ID()), } diff --git a/resource-manager/datashare/2021-08-01/account/method_listbysubscription.go b/resource-manager/datashare/2021-08-01/account/method_listbysubscription.go index 5e3fb95be97..da6eda6f8a6 100644 --- a/resource-manager/datashare/2021-08-01/account/method_listbysubscription.go +++ b/resource-manager/datashare/2021-08-01/account/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Account } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AccountClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccountClient) ListBySubscription(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DataShare/accounts", id.ID()), } diff --git a/resource-manager/datashare/2021-08-01/consumerinvitation/method_listinvitations.go b/resource-manager/datashare/2021-08-01/consumerinvitation/method_listinvitations.go index 56560802ad2..94630acc8f2 100644 --- a/resource-manager/datashare/2021-08-01/consumerinvitation/method_listinvitations.go +++ b/resource-manager/datashare/2021-08-01/consumerinvitation/method_listinvitations.go @@ -23,6 +23,18 @@ type ListInvitationsCompleteResult struct { Items []ConsumerInvitation } +type ListInvitationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInvitationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInvitations ... func (c ConsumerInvitationClient) ListInvitations(ctx context.Context) (result ListInvitationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConsumerInvitationClient) ListInvitations(ctx context.Context) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInvitationsCustomPager{}, Path: "/providers/Microsoft.DataShare/listInvitations", } diff --git a/resource-manager/datashare/2021-08-01/dataset/method_listbyshare.go b/resource-manager/datashare/2021-08-01/dataset/method_listbyshare.go index 66ee4b36224..0cd5cf0bd96 100644 --- a/resource-manager/datashare/2021-08-01/dataset/method_listbyshare.go +++ b/resource-manager/datashare/2021-08-01/dataset/method_listbyshare.go @@ -55,6 +55,18 @@ func (o ListByShareOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByShareCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByShareCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByShare ... func (c DataSetClient) ListByShare(ctx context.Context, id ShareId, options ListByShareOperationOptions) (result ListByShareOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DataSetClient) ListByShare(ctx context.Context, id ShareId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/dataSets", id.ID()), OptionsObject: options, + Pager: &ListByShareCustomPager{}, + Path: fmt.Sprintf("%s/dataSets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2021-08-01/datasetmapping/method_listbysharesubscription.go b/resource-manager/datashare/2021-08-01/datasetmapping/method_listbysharesubscription.go index ea4c469acfd..f0686132b96 100644 --- a/resource-manager/datashare/2021-08-01/datasetmapping/method_listbysharesubscription.go +++ b/resource-manager/datashare/2021-08-01/datasetmapping/method_listbysharesubscription.go @@ -55,6 +55,18 @@ func (o ListByShareSubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByShareSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByShareSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByShareSubscription ... func (c DataSetMappingClient) ListByShareSubscription(ctx context.Context, id ShareSubscriptionId, options ListByShareSubscriptionOperationOptions) (result ListByShareSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DataSetMappingClient) ListByShareSubscription(ctx context.Context, id Sh http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/dataSetMappings", id.ID()), OptionsObject: options, + Pager: &ListByShareSubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/dataSetMappings", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2021-08-01/invitation/method_listbyshare.go b/resource-manager/datashare/2021-08-01/invitation/method_listbyshare.go index 7e53fa994e2..9e45854e85e 100644 --- a/resource-manager/datashare/2021-08-01/invitation/method_listbyshare.go +++ b/resource-manager/datashare/2021-08-01/invitation/method_listbyshare.go @@ -54,6 +54,18 @@ func (o ListByShareOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByShareCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByShareCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByShare ... func (c InvitationClient) ListByShare(ctx context.Context, id ShareId, options ListByShareOperationOptions) (result ListByShareOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c InvitationClient) ListByShare(ctx context.Context, id ShareId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/invitations", id.ID()), OptionsObject: options, + Pager: &ListByShareCustomPager{}, + Path: fmt.Sprintf("%s/invitations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2021-08-01/share/method_listbyaccount.go b/resource-manager/datashare/2021-08-01/share/method_listbyaccount.go index 04a90ee0fef..324c3f2a9e0 100644 --- a/resource-manager/datashare/2021-08-01/share/method_listbyaccount.go +++ b/resource-manager/datashare/2021-08-01/share/method_listbyaccount.go @@ -54,6 +54,18 @@ func (o ListByAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c ShareClient) ListByAccount(ctx context.Context, id AccountId, options ListByAccountOperationOptions) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ShareClient) ListByAccount(ctx context.Context, id AccountId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/shares", id.ID()), OptionsObject: options, + Pager: &ListByAccountCustomPager{}, + Path: fmt.Sprintf("%s/shares", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2021-08-01/share/method_listsynchronizationdetails.go b/resource-manager/datashare/2021-08-01/share/method_listsynchronizationdetails.go index 3bd2b379893..256e50f61ba 100644 --- a/resource-manager/datashare/2021-08-01/share/method_listsynchronizationdetails.go +++ b/resource-manager/datashare/2021-08-01/share/method_listsynchronizationdetails.go @@ -54,6 +54,18 @@ func (o ListSynchronizationDetailsOperationOptions) ToQuery() *client.QueryParam return &out } +type ListSynchronizationDetailsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSynchronizationDetailsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSynchronizationDetails ... func (c ShareClient) ListSynchronizationDetails(ctx context.Context, id ShareId, input ShareSynchronization, options ListSynchronizationDetailsOperationOptions) (result ListSynchronizationDetailsOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ShareClient) ListSynchronizationDetails(ctx context.Context, id ShareId, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listSynchronizationDetails", id.ID()), OptionsObject: options, + Pager: &ListSynchronizationDetailsCustomPager{}, + Path: fmt.Sprintf("%s/listSynchronizationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2021-08-01/share/method_listsynchronizations.go b/resource-manager/datashare/2021-08-01/share/method_listsynchronizations.go index 00df899f136..e58e9b40b43 100644 --- a/resource-manager/datashare/2021-08-01/share/method_listsynchronizations.go +++ b/resource-manager/datashare/2021-08-01/share/method_listsynchronizations.go @@ -54,6 +54,18 @@ func (o ListSynchronizationsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListSynchronizationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSynchronizationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSynchronizations ... func (c ShareClient) ListSynchronizations(ctx context.Context, id ShareId, options ListSynchronizationsOperationOptions) (result ListSynchronizationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ShareClient) ListSynchronizations(ctx context.Context, id ShareId, optio http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listSynchronizations", id.ID()), OptionsObject: options, + Pager: &ListSynchronizationsCustomPager{}, + Path: fmt.Sprintf("%s/listSynchronizations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2021-08-01/share/method_providersharesubscriptionslistbyshare.go b/resource-manager/datashare/2021-08-01/share/method_providersharesubscriptionslistbyshare.go index 77887381e5e..aa3307218c1 100644 --- a/resource-manager/datashare/2021-08-01/share/method_providersharesubscriptionslistbyshare.go +++ b/resource-manager/datashare/2021-08-01/share/method_providersharesubscriptionslistbyshare.go @@ -23,6 +23,18 @@ type ProviderShareSubscriptionsListByShareCompleteResult struct { Items []ProviderShareSubscription } +type ProviderShareSubscriptionsListByShareCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProviderShareSubscriptionsListByShareCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProviderShareSubscriptionsListByShare ... func (c ShareClient) ProviderShareSubscriptionsListByShare(ctx context.Context, id ShareId) (result ProviderShareSubscriptionsListByShareOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ShareClient) ProviderShareSubscriptionsListByShare(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ProviderShareSubscriptionsListByShareCustomPager{}, Path: fmt.Sprintf("%s/providerShareSubscriptions", id.ID()), } diff --git a/resource-manager/datashare/2021-08-01/sharesubscription/method_consumersourcedatasetslistbysharesubscription.go b/resource-manager/datashare/2021-08-01/sharesubscription/method_consumersourcedatasetslistbysharesubscription.go index 8c82205dc0c..5bc362f97ec 100644 --- a/resource-manager/datashare/2021-08-01/sharesubscription/method_consumersourcedatasetslistbysharesubscription.go +++ b/resource-manager/datashare/2021-08-01/sharesubscription/method_consumersourcedatasetslistbysharesubscription.go @@ -23,6 +23,18 @@ type ConsumerSourceDataSetsListByShareSubscriptionCompleteResult struct { Items []ConsumerSourceDataSet } +type ConsumerSourceDataSetsListByShareSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConsumerSourceDataSetsListByShareSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConsumerSourceDataSetsListByShareSubscription ... func (c ShareSubscriptionClient) ConsumerSourceDataSetsListByShareSubscription(ctx context.Context, id ShareSubscriptionId) (result ConsumerSourceDataSetsListByShareSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ShareSubscriptionClient) ConsumerSourceDataSetsListByShareSubscription(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConsumerSourceDataSetsListByShareSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/consumerSourceDataSets", id.ID()), } diff --git a/resource-manager/datashare/2021-08-01/sharesubscription/method_listbyaccount.go b/resource-manager/datashare/2021-08-01/sharesubscription/method_listbyaccount.go index 6548735fc80..5d5c2f0c598 100644 --- a/resource-manager/datashare/2021-08-01/sharesubscription/method_listbyaccount.go +++ b/resource-manager/datashare/2021-08-01/sharesubscription/method_listbyaccount.go @@ -54,6 +54,18 @@ func (o ListByAccountOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c ShareSubscriptionClient) ListByAccount(ctx context.Context, id AccountId, options ListByAccountOperationOptions) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ShareSubscriptionClient) ListByAccount(ctx context.Context, id AccountId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/shareSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListByAccountCustomPager{}, + Path: fmt.Sprintf("%s/shareSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2021-08-01/sharesubscription/method_listsourcesharesynchronizationsettings.go b/resource-manager/datashare/2021-08-01/sharesubscription/method_listsourcesharesynchronizationsettings.go index ba05faf9515..b9a025803ae 100644 --- a/resource-manager/datashare/2021-08-01/sharesubscription/method_listsourcesharesynchronizationsettings.go +++ b/resource-manager/datashare/2021-08-01/sharesubscription/method_listsourcesharesynchronizationsettings.go @@ -24,6 +24,18 @@ type ListSourceShareSynchronizationSettingsCompleteResult struct { Items []SourceShareSynchronizationSetting } +type ListSourceShareSynchronizationSettingsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSourceShareSynchronizationSettingsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSourceShareSynchronizationSettings ... func (c ShareSubscriptionClient) ListSourceShareSynchronizationSettings(ctx context.Context, id ShareSubscriptionId) (result ListSourceShareSynchronizationSettingsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ShareSubscriptionClient) ListSourceShareSynchronizationSettings(ctx cont http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSourceShareSynchronizationSettingsCustomPager{}, Path: fmt.Sprintf("%s/listSourceShareSynchronizationSettings", id.ID()), } diff --git a/resource-manager/datashare/2021-08-01/sharesubscription/method_listsynchronizationdetails.go b/resource-manager/datashare/2021-08-01/sharesubscription/method_listsynchronizationdetails.go index fd9fafe9e02..854a1d2ac6c 100644 --- a/resource-manager/datashare/2021-08-01/sharesubscription/method_listsynchronizationdetails.go +++ b/resource-manager/datashare/2021-08-01/sharesubscription/method_listsynchronizationdetails.go @@ -54,6 +54,18 @@ func (o ListSynchronizationDetailsOperationOptions) ToQuery() *client.QueryParam return &out } +type ListSynchronizationDetailsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSynchronizationDetailsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSynchronizationDetails ... func (c ShareSubscriptionClient) ListSynchronizationDetails(ctx context.Context, id ShareSubscriptionId, input ShareSubscriptionSynchronization, options ListSynchronizationDetailsOperationOptions) (result ListSynchronizationDetailsOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ShareSubscriptionClient) ListSynchronizationDetails(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listSynchronizationDetails", id.ID()), OptionsObject: options, + Pager: &ListSynchronizationDetailsCustomPager{}, + Path: fmt.Sprintf("%s/listSynchronizationDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2021-08-01/sharesubscription/method_listsynchronizations.go b/resource-manager/datashare/2021-08-01/sharesubscription/method_listsynchronizations.go index 04d53b400bf..e85015321c1 100644 --- a/resource-manager/datashare/2021-08-01/sharesubscription/method_listsynchronizations.go +++ b/resource-manager/datashare/2021-08-01/sharesubscription/method_listsynchronizations.go @@ -54,6 +54,18 @@ func (o ListSynchronizationsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListSynchronizationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSynchronizationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSynchronizations ... func (c ShareSubscriptionClient) ListSynchronizations(ctx context.Context, id ShareSubscriptionId, options ListSynchronizationsOperationOptions) (result ListSynchronizationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ShareSubscriptionClient) ListSynchronizations(ctx context.Context, id Sh http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listSynchronizations", id.ID()), OptionsObject: options, + Pager: &ListSynchronizationsCustomPager{}, + Path: fmt.Sprintf("%s/listSynchronizations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/datashare/2021-08-01/synchronizationsetting/method_listbyshare.go b/resource-manager/datashare/2021-08-01/synchronizationsetting/method_listbyshare.go index a910ae5784c..8ae40f376c4 100644 --- a/resource-manager/datashare/2021-08-01/synchronizationsetting/method_listbyshare.go +++ b/resource-manager/datashare/2021-08-01/synchronizationsetting/method_listbyshare.go @@ -24,6 +24,18 @@ type ListByShareCompleteResult struct { Items []SynchronizationSetting } +type ListByShareCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByShareCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByShare ... func (c SynchronizationSettingClient) ListByShare(ctx context.Context, id ShareId) (result ListByShareOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SynchronizationSettingClient) ListByShare(ctx context.Context, id ShareI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByShareCustomPager{}, Path: fmt.Sprintf("%s/synchronizationSettings", id.ID()), } diff --git a/resource-manager/datashare/2021-08-01/trigger/method_listbysharesubscription.go b/resource-manager/datashare/2021-08-01/trigger/method_listbysharesubscription.go index 19a1fa1ab77..7d4ef4dec7f 100644 --- a/resource-manager/datashare/2021-08-01/trigger/method_listbysharesubscription.go +++ b/resource-manager/datashare/2021-08-01/trigger/method_listbysharesubscription.go @@ -24,6 +24,18 @@ type ListByShareSubscriptionCompleteResult struct { Items []Trigger } +type ListByShareSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByShareSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByShareSubscription ... func (c TriggerClient) ListByShareSubscription(ctx context.Context, id ShareSubscriptionId) (result ListByShareSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TriggerClient) ListByShareSubscription(ctx context.Context, id ShareSubs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByShareSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/triggers", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/application/method_list.go b/resource-manager/desktopvirtualization/2021-09-03-preview/application/method_list.go index 136f320fb39..a36f2fff3e7 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/application/method_list.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/application/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Application } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationClient) List(ctx context.Context, id ApplicationGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationClient) List(ctx context.Context, id ApplicationGroupId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/applications", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbyresourcegroup.go b/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbyresourcegroup.go index d1694777b69..3de214a8e69 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbyresourcegroup.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ApplicationGroupClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ApplicationGroupClient) ListByResourceGroup(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/applicationGroups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/applicationGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbysubscription.go b/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbysubscription.go index 9a0be3f2d0e..c34b661ee10 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbysubscription.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ApplicationGroupClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ApplicationGroupClient) ListBySubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/applicationGroups", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/applicationGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/desktop/method_list.go b/resource-manager/desktopvirtualization/2021-09-03-preview/desktop/method_list.go index ac7352ff695..4f939621b2d 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/desktop/method_list.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/desktop/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Desktop } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DesktopClient) List(ctx context.Context, id ApplicationGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DesktopClient) List(ctx context.Context, id ApplicationGroupId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/desktops", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_delete.go b/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_delete.go index 1c5a31dc86d..c0d78cc24b4 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_delete.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_delete.go @@ -53,8 +53,8 @@ func (c HostPoolClient) Delete(ctx context.Context, id HostPoolId, options Delet http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_list.go b/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_list.go index 4128242a636..8f6deb5b0d6 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_list.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []HostPool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c HostPoolClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HostPoolClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/hostPools", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_listbyresourcegroup.go b/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_listbyresourcegroup.go index 7db1b019dd9..eef1bd1ceec 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_listbyresourcegroup.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []HostPool } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c HostPoolClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HostPoolClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/hostPools", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/msiximage/method_expand.go b/resource-manager/desktopvirtualization/2021-09-03-preview/msiximage/method_expand.go index 46908768227..fc0181a310b 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/msiximage/method_expand.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/msiximage/method_expand.go @@ -23,6 +23,18 @@ type ExpandCompleteResult struct { Items []ExpandMsixImage } +type ExpandCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpandCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Expand ... func (c MsixImageClient) Expand(ctx context.Context, id HostPoolId, input MSIXImageURI) (result ExpandOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MsixImageClient) Expand(ctx context.Context, id HostPoolId, input MSIXIm http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpandCustomPager{}, Path: fmt.Sprintf("%s/expandMsixImage", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/msixpackage/method_list.go b/resource-manager/desktopvirtualization/2021-09-03-preview/msixpackage/method_list.go index 5a72922edd3..86124003ef9 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/msixpackage/method_list.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/msixpackage/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MSIXPackage } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MSIXPackageClient) List(ctx context.Context, id HostPoolId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MSIXPackageClient) List(ctx context.Context, id HostPoolId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/msixPackages", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_privateendpointconnectionslistbyhostpool.go b/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_privateendpointconnectionslistbyhostpool.go index 4e520c039d7..1fe16faa9a7 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_privateendpointconnectionslistbyhostpool.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_privateendpointconnectionslistbyhostpool.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListByHostPoolCompleteResult struct { Items []PrivateEndpointConnectionWithSystemData } +type PrivateEndpointConnectionsListByHostPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListByHostPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsListByHostPool ... func (c PrivateLinkClient) PrivateEndpointConnectionsListByHostPool(ctx context.Context, id HostPoolId) (result PrivateEndpointConnectionsListByHostPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkClient) PrivateEndpointConnectionsListByHostPool(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListByHostPoolCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_privateendpointconnectionslistbyworkspace.go b/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_privateendpointconnectionslistbyworkspace.go index afa759cacf6..94e5e91195a 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_privateendpointconnectionslistbyworkspace.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_privateendpointconnectionslistbyworkspace.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListByWorkspaceCompleteResult struct { Items []PrivateEndpointConnectionWithSystemData } +type PrivateEndpointConnectionsListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsListByWorkspace ... func (c PrivateLinkClient) PrivateEndpointConnectionsListByWorkspace(ctx context.Context, id WorkspaceId) (result PrivateEndpointConnectionsListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkClient) PrivateEndpointConnectionsListByWorkspace(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_resourceslistbyhostpool.go b/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_resourceslistbyhostpool.go index a035e938bc0..fd33f33a922 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_resourceslistbyhostpool.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_resourceslistbyhostpool.go @@ -23,6 +23,18 @@ type ResourcesListByHostPoolCompleteResult struct { Items []PrivateLinkResource } +type ResourcesListByHostPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourcesListByHostPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourcesListByHostPool ... func (c PrivateLinkClient) ResourcesListByHostPool(ctx context.Context, id HostPoolId) (result ResourcesListByHostPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkClient) ResourcesListByHostPool(ctx context.Context, id HostP http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourcesListByHostPoolCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_resourceslistbyworkspace.go b/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_resourceslistbyworkspace.go index cf595b027da..721486b3184 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_resourceslistbyworkspace.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/privatelink/method_resourceslistbyworkspace.go @@ -23,6 +23,18 @@ type ResourcesListByWorkspaceCompleteResult struct { Items []PrivateLinkResource } +type ResourcesListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourcesListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourcesListByWorkspace ... func (c PrivateLinkClient) ResourcesListByWorkspace(ctx context.Context, id WorkspaceId) (result ResourcesListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkClient) ResourcesListByWorkspace(ctx context.Context, id Work http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourcesListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/method_listbyhostpool.go b/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/method_listbyhostpool.go index f30aa3eafb4..f1da93c94b9 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/method_listbyhostpool.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/method_listbyhostpool.go @@ -23,6 +23,18 @@ type ListByHostPoolCompleteResult struct { Items []ScalingPlan } +type ListByHostPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHostPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHostPool ... func (c ScalingPlanClient) ListByHostPool(ctx context.Context, id HostPoolId) (result ListByHostPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScalingPlanClient) ListByHostPool(ctx context.Context, id HostPoolId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByHostPoolCustomPager{}, Path: fmt.Sprintf("%s/scalingPlans", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/method_listbyresourcegroup.go b/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/method_listbyresourcegroup.go index 88a20532c8b..ab301c8949f 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/method_listbyresourcegroup.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ScalingPlan } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ScalingPlanClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ScalingPlanClient) ListByResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/scalingPlans", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/method_listbysubscription.go b/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/method_listbysubscription.go index d784d716fc1..e58e3adadc3 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/method_listbysubscription.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/scalingplan/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ScalingPlan } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ScalingPlanClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ScalingPlanClient) ListBySubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/scalingPlans", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/sessionhost/method_delete.go b/resource-manager/desktopvirtualization/2021-09-03-preview/sessionhost/method_delete.go index 5ab1625de20..e62625d7a67 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/sessionhost/method_delete.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/sessionhost/method_delete.go @@ -53,8 +53,8 @@ func (c SessionHostClient) Delete(ctx context.Context, id SessionHostId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/sessionhost/method_list.go b/resource-manager/desktopvirtualization/2021-09-03-preview/sessionhost/method_list.go index a9a1443bd0c..aa7d0d373f6 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/sessionhost/method_list.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/sessionhost/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SessionHost } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SessionHostClient) List(ctx context.Context, id HostPoolId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SessionHostClient) List(ctx context.Context, id HostPoolId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/sessionHosts", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/sessionhost/method_update.go b/resource-manager/desktopvirtualization/2021-09-03-preview/sessionhost/method_update.go index 827c421bed9..cff5fcae123 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/sessionhost/method_update.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/sessionhost/method_update.go @@ -53,8 +53,8 @@ func (c SessionHostClient) Update(ctx context.Context, id SessionHostId, input S http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/startmenuitem/method_list.go b/resource-manager/desktopvirtualization/2021-09-03-preview/startmenuitem/method_list.go index 7f86588eadb..12e98ae51fc 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/startmenuitem/method_list.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/startmenuitem/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StartMenuItem } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StartMenuItemClient) List(ctx context.Context, id ApplicationGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StartMenuItemClient) List(ctx context.Context, id ApplicationGroupId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/startMenuItems", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/usersession/method_delete.go b/resource-manager/desktopvirtualization/2021-09-03-preview/usersession/method_delete.go index ee622e67910..3cff333d871 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/usersession/method_delete.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/usersession/method_delete.go @@ -53,8 +53,8 @@ func (c UserSessionClient) Delete(ctx context.Context, id UserSessionId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/usersession/method_list.go b/resource-manager/desktopvirtualization/2021-09-03-preview/usersession/method_list.go index 2e4950253f1..d9ee3cfdf13 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/usersession/method_list.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/usersession/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []UserSession } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UserSessionClient) List(ctx context.Context, id SessionHostId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UserSessionClient) List(ctx context.Context, id SessionHostId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/userSessions", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/usersession/method_listbyhostpool.go b/resource-manager/desktopvirtualization/2021-09-03-preview/usersession/method_listbyhostpool.go index db35bc44fe5..49682d9f86b 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/usersession/method_listbyhostpool.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/usersession/method_listbyhostpool.go @@ -50,6 +50,18 @@ func (o ListByHostPoolOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByHostPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHostPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHostPool ... func (c UserSessionClient) ListByHostPool(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions) (result ListByHostPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c UserSessionClient) ListByHostPool(ctx context.Context, id HostPoolId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/userSessions", id.ID()), OptionsObject: options, + Pager: &ListByHostPoolCustomPager{}, + Path: fmt.Sprintf("%s/userSessions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_listbyresourcegroup.go b/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_listbyresourcegroup.go index 870ce24dc47..bc8f0f60c8f 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_listbyresourcegroup.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Workspace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspaceClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspaceClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/workspaces", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_listbysubscription.go b/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_listbysubscription.go index 2516e535ba6..ada2238424f 100644 --- a/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_listbysubscription.go +++ b/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Workspace } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspaceClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspaceClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/workspaces", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_list.go b/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_list.go index 136f320fb39..a36f2fff3e7 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_list.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Application } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationClient) List(ctx context.Context, id ApplicationGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationClient) List(ctx context.Context, id ApplicationGroupId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/applications", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbyresourcegroup.go b/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbyresourcegroup.go index d1694777b69..3de214a8e69 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbyresourcegroup.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ApplicationGroupClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ApplicationGroupClient) ListByResourceGroup(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/applicationGroups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/applicationGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbysubscription.go b/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbysubscription.go index 9a0be3f2d0e..c34b661ee10 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbysubscription.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ApplicationGroupClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ApplicationGroupClient) ListBySubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/applicationGroups", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/applicationGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/method_list.go b/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/method_list.go index ac7352ff695..4f939621b2d 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/method_list.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Desktop } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DesktopClient) List(ctx context.Context, id ApplicationGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DesktopClient) List(ctx context.Context, id ApplicationGroupId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/desktops", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_delete.go b/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_delete.go index 1c5a31dc86d..c0d78cc24b4 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_delete.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_delete.go @@ -53,8 +53,8 @@ func (c HostPoolClient) Delete(ctx context.Context, id HostPoolId, options Delet http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_list.go b/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_list.go index 4128242a636..8f6deb5b0d6 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_list.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []HostPool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c HostPoolClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HostPoolClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/hostPools", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_listbyresourcegroup.go b/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_listbyresourcegroup.go index 7db1b019dd9..eef1bd1ceec 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_listbyresourcegroup.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []HostPool } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c HostPoolClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HostPoolClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/hostPools", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/msiximage/method_expand.go b/resource-manager/desktopvirtualization/2022-02-10-preview/msiximage/method_expand.go index 46908768227..fc0181a310b 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/msiximage/method_expand.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/msiximage/method_expand.go @@ -23,6 +23,18 @@ type ExpandCompleteResult struct { Items []ExpandMsixImage } +type ExpandCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpandCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Expand ... func (c MsixImageClient) Expand(ctx context.Context, id HostPoolId, input MSIXImageURI) (result ExpandOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MsixImageClient) Expand(ctx context.Context, id HostPoolId, input MSIXIm http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpandCustomPager{}, Path: fmt.Sprintf("%s/expandMsixImage", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/msixpackage/method_list.go b/resource-manager/desktopvirtualization/2022-02-10-preview/msixpackage/method_list.go index 5a72922edd3..86124003ef9 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/msixpackage/method_list.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/msixpackage/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MSIXPackage } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MSIXPackageClient) List(ctx context.Context, id HostPoolId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MSIXPackageClient) List(ctx context.Context, id HostPoolId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/msixPackages", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_privateendpointconnectionslistbyhostpool.go b/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_privateendpointconnectionslistbyhostpool.go index 4e520c039d7..1fe16faa9a7 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_privateendpointconnectionslistbyhostpool.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_privateendpointconnectionslistbyhostpool.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListByHostPoolCompleteResult struct { Items []PrivateEndpointConnectionWithSystemData } +type PrivateEndpointConnectionsListByHostPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListByHostPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsListByHostPool ... func (c PrivateLinkClient) PrivateEndpointConnectionsListByHostPool(ctx context.Context, id HostPoolId) (result PrivateEndpointConnectionsListByHostPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkClient) PrivateEndpointConnectionsListByHostPool(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListByHostPoolCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_privateendpointconnectionslistbyworkspace.go b/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_privateendpointconnectionslistbyworkspace.go index afa759cacf6..94e5e91195a 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_privateendpointconnectionslistbyworkspace.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_privateendpointconnectionslistbyworkspace.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListByWorkspaceCompleteResult struct { Items []PrivateEndpointConnectionWithSystemData } +type PrivateEndpointConnectionsListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsListByWorkspace ... func (c PrivateLinkClient) PrivateEndpointConnectionsListByWorkspace(ctx context.Context, id WorkspaceId) (result PrivateEndpointConnectionsListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkClient) PrivateEndpointConnectionsListByWorkspace(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_resourceslistbyhostpool.go b/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_resourceslistbyhostpool.go index a035e938bc0..fd33f33a922 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_resourceslistbyhostpool.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_resourceslistbyhostpool.go @@ -23,6 +23,18 @@ type ResourcesListByHostPoolCompleteResult struct { Items []PrivateLinkResource } +type ResourcesListByHostPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourcesListByHostPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourcesListByHostPool ... func (c PrivateLinkClient) ResourcesListByHostPool(ctx context.Context, id HostPoolId) (result ResourcesListByHostPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkClient) ResourcesListByHostPool(ctx context.Context, id HostP http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourcesListByHostPoolCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_resourceslistbyworkspace.go b/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_resourceslistbyworkspace.go index cf595b027da..721486b3184 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_resourceslistbyworkspace.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/privatelink/method_resourceslistbyworkspace.go @@ -23,6 +23,18 @@ type ResourcesListByWorkspaceCompleteResult struct { Items []PrivateLinkResource } +type ResourcesListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourcesListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourcesListByWorkspace ... func (c PrivateLinkClient) ResourcesListByWorkspace(ctx context.Context, id WorkspaceId) (result ResourcesListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkClient) ResourcesListByWorkspace(ctx context.Context, id Work http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourcesListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_listbyhostpool.go b/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_listbyhostpool.go index f30aa3eafb4..f1da93c94b9 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_listbyhostpool.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_listbyhostpool.go @@ -23,6 +23,18 @@ type ListByHostPoolCompleteResult struct { Items []ScalingPlan } +type ListByHostPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHostPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHostPool ... func (c ScalingPlanClient) ListByHostPool(ctx context.Context, id HostPoolId) (result ListByHostPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScalingPlanClient) ListByHostPool(ctx context.Context, id HostPoolId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByHostPoolCustomPager{}, Path: fmt.Sprintf("%s/scalingPlans", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_listbyresourcegroup.go b/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_listbyresourcegroup.go index 88a20532c8b..ab301c8949f 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_listbyresourcegroup.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ScalingPlan } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ScalingPlanClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ScalingPlanClient) ListByResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/scalingPlans", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_listbysubscription.go b/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_listbysubscription.go index d784d716fc1..e58e3adadc3 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_listbysubscription.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ScalingPlan } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ScalingPlanClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ScalingPlanClient) ListBySubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/scalingPlans", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_delete.go b/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_delete.go index 5ab1625de20..e62625d7a67 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_delete.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_delete.go @@ -53,8 +53,8 @@ func (c SessionHostClient) Delete(ctx context.Context, id SessionHostId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_list.go b/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_list.go index a9a1443bd0c..aa7d0d373f6 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_list.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SessionHost } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SessionHostClient) List(ctx context.Context, id HostPoolId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SessionHostClient) List(ctx context.Context, id HostPoolId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/sessionHosts", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_update.go b/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_update.go index 827c421bed9..cff5fcae123 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_update.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_update.go @@ -53,8 +53,8 @@ func (c SessionHostClient) Update(ctx context.Context, id SessionHostId, input S http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/startmenuitem/method_list.go b/resource-manager/desktopvirtualization/2022-02-10-preview/startmenuitem/method_list.go index 7f86588eadb..12e98ae51fc 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/startmenuitem/method_list.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/startmenuitem/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StartMenuItem } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StartMenuItemClient) List(ctx context.Context, id ApplicationGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StartMenuItemClient) List(ctx context.Context, id ApplicationGroupId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/startMenuItems", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/usersession/method_delete.go b/resource-manager/desktopvirtualization/2022-02-10-preview/usersession/method_delete.go index ee622e67910..3cff333d871 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/usersession/method_delete.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/usersession/method_delete.go @@ -53,8 +53,8 @@ func (c UserSessionClient) Delete(ctx context.Context, id UserSessionId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/usersession/method_list.go b/resource-manager/desktopvirtualization/2022-02-10-preview/usersession/method_list.go index 2e4950253f1..d9ee3cfdf13 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/usersession/method_list.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/usersession/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []UserSession } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UserSessionClient) List(ctx context.Context, id SessionHostId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UserSessionClient) List(ctx context.Context, id SessionHostId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/userSessions", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/usersession/method_listbyhostpool.go b/resource-manager/desktopvirtualization/2022-02-10-preview/usersession/method_listbyhostpool.go index db35bc44fe5..49682d9f86b 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/usersession/method_listbyhostpool.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/usersession/method_listbyhostpool.go @@ -50,6 +50,18 @@ func (o ListByHostPoolOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByHostPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHostPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHostPool ... func (c UserSessionClient) ListByHostPool(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions) (result ListByHostPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c UserSessionClient) ListByHostPool(ctx context.Context, id HostPoolId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/userSessions", id.ID()), OptionsObject: options, + Pager: &ListByHostPoolCustomPager{}, + Path: fmt.Sprintf("%s/userSessions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_listbyresourcegroup.go b/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_listbyresourcegroup.go index 870ce24dc47..bc8f0f60c8f 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_listbyresourcegroup.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Workspace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspaceClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspaceClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/workspaces", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_listbysubscription.go b/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_listbysubscription.go index 2516e535ba6..ada2238424f 100644 --- a/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_listbysubscription.go +++ b/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Workspace } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspaceClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspaceClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/workspaces", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-09-09/application/method_list.go b/resource-manager/desktopvirtualization/2022-09-09/application/method_list.go index 17078ce9f8f..12db64bf993 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/application/method_list.go +++ b/resource-manager/desktopvirtualization/2022-09-09/application/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationClient) List(ctx context.Context, id ApplicationGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ApplicationClient) List(ctx context.Context, id ApplicationGroupId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/applications", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/applications", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/applicationgroup/method_listbyresourcegroup.go b/resource-manager/desktopvirtualization/2022-09-09/applicationgroup/method_listbyresourcegroup.go index ba4d62dc437..0ced042e1b1 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/applicationgroup/method_listbyresourcegroup.go +++ b/resource-manager/desktopvirtualization/2022-09-09/applicationgroup/method_listbyresourcegroup.go @@ -63,6 +63,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ApplicationGroupClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -71,8 +83,9 @@ func (c ApplicationGroupClient) ListByResourceGroup(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/applicationGroups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/applicationGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/applicationgroup/method_listbysubscription.go b/resource-manager/desktopvirtualization/2022-09-09/applicationgroup/method_listbysubscription.go index 9a0be3f2d0e..c34b661ee10 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/applicationgroup/method_listbysubscription.go +++ b/resource-manager/desktopvirtualization/2022-09-09/applicationgroup/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ApplicationGroupClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ApplicationGroupClient) ListBySubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/applicationGroups", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/applicationGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/desktop/method_list.go b/resource-manager/desktopvirtualization/2022-09-09/desktop/method_list.go index f995af0163d..e94b2d5cd86 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/desktop/method_list.go +++ b/resource-manager/desktopvirtualization/2022-09-09/desktop/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DesktopClient) List(ctx context.Context, id ApplicationGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c DesktopClient) List(ctx context.Context, id ApplicationGroupId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/desktops", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/desktops", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/hostpool/method_delete.go b/resource-manager/desktopvirtualization/2022-09-09/hostpool/method_delete.go index 1c5a31dc86d..c0d78cc24b4 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/hostpool/method_delete.go +++ b/resource-manager/desktopvirtualization/2022-09-09/hostpool/method_delete.go @@ -53,8 +53,8 @@ func (c HostPoolClient) Delete(ctx context.Context, id HostPoolId, options Delet http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/hostpool/method_list.go b/resource-manager/desktopvirtualization/2022-09-09/hostpool/method_list.go index 8394626b09a..b29094dc70c 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/hostpool/method_list.go +++ b/resource-manager/desktopvirtualization/2022-09-09/hostpool/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c HostPoolClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c HostPoolClient) List(ctx context.Context, id commonids.SubscriptionId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/hostPools", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/hostPools", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/hostpool/method_listbyresourcegroup.go b/resource-manager/desktopvirtualization/2022-09-09/hostpool/method_listbyresourcegroup.go index c5cda1804d2..161d9daf436 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/hostpool/method_listbyresourcegroup.go +++ b/resource-manager/desktopvirtualization/2022-09-09/hostpool/method_listbyresourcegroup.go @@ -59,6 +59,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c HostPoolClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c HostPoolClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/hostPools", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/hostPools", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/msiximage/method_expand.go b/resource-manager/desktopvirtualization/2022-09-09/msiximage/method_expand.go index 46908768227..fc0181a310b 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/msiximage/method_expand.go +++ b/resource-manager/desktopvirtualization/2022-09-09/msiximage/method_expand.go @@ -23,6 +23,18 @@ type ExpandCompleteResult struct { Items []ExpandMsixImage } +type ExpandCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpandCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Expand ... func (c MsixImageClient) Expand(ctx context.Context, id HostPoolId, input MSIXImageURI) (result ExpandOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MsixImageClient) Expand(ctx context.Context, id HostPoolId, input MSIXIm http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpandCustomPager{}, Path: fmt.Sprintf("%s/expandMsixImage", id.ID()), } diff --git a/resource-manager/desktopvirtualization/2022-09-09/msixpackage/method_list.go b/resource-manager/desktopvirtualization/2022-09-09/msixpackage/method_list.go index f19df2a2947..473768db5e8 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/msixpackage/method_list.go +++ b/resource-manager/desktopvirtualization/2022-09-09/msixpackage/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MSIXPackageClient) List(ctx context.Context, id HostPoolId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c MSIXPackageClient) List(ctx context.Context, id HostPoolId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/msixPackages", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/msixPackages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/scalingplan/method_listbyhostpool.go b/resource-manager/desktopvirtualization/2022-09-09/scalingplan/method_listbyhostpool.go index ca0e4ffaec1..38d684eed56 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/scalingplan/method_listbyhostpool.go +++ b/resource-manager/desktopvirtualization/2022-09-09/scalingplan/method_listbyhostpool.go @@ -58,6 +58,18 @@ func (o ListByHostPoolOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByHostPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHostPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHostPool ... func (c ScalingPlanClient) ListByHostPool(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions) (result ListByHostPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ScalingPlanClient) ListByHostPool(ctx context.Context, id HostPoolId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/scalingPlans", id.ID()), OptionsObject: options, + Pager: &ListByHostPoolCustomPager{}, + Path: fmt.Sprintf("%s/scalingPlans", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/scalingplan/method_listbyresourcegroup.go b/resource-manager/desktopvirtualization/2022-09-09/scalingplan/method_listbyresourcegroup.go index e24ff6b59c1..feb7d9ec457 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/scalingplan/method_listbyresourcegroup.go +++ b/resource-manager/desktopvirtualization/2022-09-09/scalingplan/method_listbyresourcegroup.go @@ -59,6 +59,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ScalingPlanClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ScalingPlanClient) ListByResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/scalingPlans", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/scalingPlans", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/scalingplan/method_listbysubscription.go b/resource-manager/desktopvirtualization/2022-09-09/scalingplan/method_listbysubscription.go index b8fd876843d..ce77bfa6412 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/scalingplan/method_listbysubscription.go +++ b/resource-manager/desktopvirtualization/2022-09-09/scalingplan/method_listbysubscription.go @@ -59,6 +59,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ScalingPlanClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ScalingPlanClient) ListBySubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/scalingPlans", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/scalingPlans", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/scalingplanpooledschedule/method_list.go b/resource-manager/desktopvirtualization/2022-09-09/scalingplanpooledschedule/method_list.go index df46c8ee47a..17c249485af 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/scalingplanpooledschedule/method_list.go +++ b/resource-manager/desktopvirtualization/2022-09-09/scalingplanpooledschedule/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScalingPlanPooledScheduleClient) List(ctx context.Context, id ScalingPlanId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ScalingPlanPooledScheduleClient) List(ctx context.Context, id ScalingPla http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/pooledSchedules", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/pooledSchedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/sessionhost/method_delete.go b/resource-manager/desktopvirtualization/2022-09-09/sessionhost/method_delete.go index 5ab1625de20..e62625d7a67 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/sessionhost/method_delete.go +++ b/resource-manager/desktopvirtualization/2022-09-09/sessionhost/method_delete.go @@ -53,8 +53,8 @@ func (c SessionHostClient) Delete(ctx context.Context, id SessionHostId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/sessionhost/method_list.go b/resource-manager/desktopvirtualization/2022-09-09/sessionhost/method_list.go index ba499e114ad..bd6dc085c4e 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/sessionhost/method_list.go +++ b/resource-manager/desktopvirtualization/2022-09-09/sessionhost/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SessionHostClient) List(ctx context.Context, id HostPoolId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c SessionHostClient) List(ctx context.Context, id HostPoolId, options List http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sessionHosts", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/sessionHosts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/sessionhost/method_update.go b/resource-manager/desktopvirtualization/2022-09-09/sessionhost/method_update.go index 827c421bed9..cff5fcae123 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/sessionhost/method_update.go +++ b/resource-manager/desktopvirtualization/2022-09-09/sessionhost/method_update.go @@ -53,8 +53,8 @@ func (c SessionHostClient) Update(ctx context.Context, id SessionHostId, input S http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/startmenuitem/method_list.go b/resource-manager/desktopvirtualization/2022-09-09/startmenuitem/method_list.go index 760f63170f3..af0e69228da 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/startmenuitem/method_list.go +++ b/resource-manager/desktopvirtualization/2022-09-09/startmenuitem/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StartMenuItemClient) List(ctx context.Context, id ApplicationGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c StartMenuItemClient) List(ctx context.Context, id ApplicationGroupId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/startMenuItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/startMenuItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/usersession/method_delete.go b/resource-manager/desktopvirtualization/2022-09-09/usersession/method_delete.go index ee622e67910..3cff333d871 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/usersession/method_delete.go +++ b/resource-manager/desktopvirtualization/2022-09-09/usersession/method_delete.go @@ -53,8 +53,8 @@ func (c UserSessionClient) Delete(ctx context.Context, id UserSessionId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/usersession/method_list.go b/resource-manager/desktopvirtualization/2022-09-09/usersession/method_list.go index f3675a1752e..9341415512c 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/usersession/method_list.go +++ b/resource-manager/desktopvirtualization/2022-09-09/usersession/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UserSessionClient) List(ctx context.Context, id SessionHostId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c UserSessionClient) List(ctx context.Context, id SessionHostId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/userSessions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/userSessions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/usersession/method_listbyhostpool.go b/resource-manager/desktopvirtualization/2022-09-09/usersession/method_listbyhostpool.go index 995dce6724c..6fed4fedf24 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/usersession/method_listbyhostpool.go +++ b/resource-manager/desktopvirtualization/2022-09-09/usersession/method_listbyhostpool.go @@ -62,6 +62,18 @@ func (o ListByHostPoolOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByHostPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHostPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHostPool ... func (c UserSessionClient) ListByHostPool(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions) (result ListByHostPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c UserSessionClient) ListByHostPool(ctx context.Context, id HostPoolId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/userSessions", id.ID()), OptionsObject: options, + Pager: &ListByHostPoolCustomPager{}, + Path: fmt.Sprintf("%s/userSessions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/workspace/method_listbyresourcegroup.go b/resource-manager/desktopvirtualization/2022-09-09/workspace/method_listbyresourcegroup.go index 69a3bf4cb9f..37ebe86267c 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/workspace/method_listbyresourcegroup.go +++ b/resource-manager/desktopvirtualization/2022-09-09/workspace/method_listbyresourcegroup.go @@ -59,6 +59,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspaceClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c WorkspaceClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/workspaces", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/workspaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/desktopvirtualization/2022-09-09/workspace/method_listbysubscription.go b/resource-manager/desktopvirtualization/2022-09-09/workspace/method_listbysubscription.go index 2516e535ba6..ada2238424f 100644 --- a/resource-manager/desktopvirtualization/2022-09-09/workspace/method_listbysubscription.go +++ b/resource-manager/desktopvirtualization/2022-09-09/workspace/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Workspace } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspaceClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspaceClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DesktopVirtualization/workspaces", id.ID()), } diff --git a/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbydevcenter.go b/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbydevcenter.go index 6841cdce4d8..a98a300e3cd 100644 --- a/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbydevcenter.go +++ b/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbydevcenter.go @@ -50,6 +50,18 @@ func (o AttachedNetworksListByDevCenterOperationOptions) ToQuery() *client.Query return &out } +type AttachedNetworksListByDevCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AttachedNetworksListByDevCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AttachedNetworksListByDevCenter ... func (c AttachedNetworkConnectionsClient) AttachedNetworksListByDevCenter(ctx context.Context, id DevCenterId, options AttachedNetworksListByDevCenterOperationOptions) (result AttachedNetworksListByDevCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c AttachedNetworkConnectionsClient) AttachedNetworksListByDevCenter(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/attachednetworks", id.ID()), OptionsObject: options, + Pager: &AttachedNetworksListByDevCenterCustomPager{}, + Path: fmt.Sprintf("%s/attachednetworks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbyproject.go b/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbyproject.go index 575ae69d070..8ed8d644a8e 100644 --- a/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbyproject.go +++ b/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbyproject.go @@ -50,6 +50,18 @@ func (o AttachedNetworksListByProjectOperationOptions) ToQuery() *client.QueryPa return &out } +type AttachedNetworksListByProjectCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AttachedNetworksListByProjectCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AttachedNetworksListByProject ... func (c AttachedNetworkConnectionsClient) AttachedNetworksListByProject(ctx context.Context, id ProjectId, options AttachedNetworksListByProjectOperationOptions) (result AttachedNetworksListByProjectOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c AttachedNetworkConnectionsClient) AttachedNetworksListByProject(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/attachednetworks", id.ID()), OptionsObject: options, + Pager: &AttachedNetworksListByProjectCustomPager{}, + Path: fmt.Sprintf("%s/attachednetworks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2023-04-01/catalogs/method_listbydevcenter.go b/resource-manager/devcenter/2023-04-01/catalogs/method_listbydevcenter.go index b6fdce23f99..4a27fe87351 100644 --- a/resource-manager/devcenter/2023-04-01/catalogs/method_listbydevcenter.go +++ b/resource-manager/devcenter/2023-04-01/catalogs/method_listbydevcenter.go @@ -50,6 +50,18 @@ func (o ListByDevCenterOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDevCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDevCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDevCenter ... func (c CatalogsClient) ListByDevCenter(ctx context.Context, id DevCenterId, options ListByDevCenterOperationOptions) (result ListByDevCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c CatalogsClient) ListByDevCenter(ctx context.Context, id DevCenterId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/catalogs", id.ID()), OptionsObject: options, + Pager: &ListByDevCenterCustomPager{}, + Path: fmt.Sprintf("%s/catalogs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_listbydevcenter.go b/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_listbydevcenter.go index 4bff96aec56..f19718d9b5b 100644 --- a/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_listbydevcenter.go +++ b/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_listbydevcenter.go @@ -23,6 +23,18 @@ type ListByDevCenterCompleteResult struct { Items []DevBoxDefinition } +type ListByDevCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDevCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDevCenter ... func (c DevBoxDefinitionsClient) ListByDevCenter(ctx context.Context, id DevCenterId) (result ListByDevCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevBoxDefinitionsClient) ListByDevCenter(ctx context.Context, id DevCent http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDevCenterCustomPager{}, Path: fmt.Sprintf("%s/devBoxDefinitions", id.ID()), } diff --git a/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_listbyproject.go b/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_listbyproject.go index c0d56157488..cfa189f5d88 100644 --- a/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_listbyproject.go +++ b/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_listbyproject.go @@ -23,6 +23,18 @@ type ListByProjectCompleteResult struct { Items []DevBoxDefinition } +type ListByProjectCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProjectCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProject ... func (c DevBoxDefinitionsClient) ListByProject(ctx context.Context, id ProjectId) (result ListByProjectOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevBoxDefinitionsClient) ListByProject(ctx context.Context, id ProjectId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByProjectCustomPager{}, Path: fmt.Sprintf("%s/devBoxDefinitions", id.ID()), } diff --git a/resource-manager/devcenter/2023-04-01/devcenters/method_listbyresourcegroup.go b/resource-manager/devcenter/2023-04-01/devcenters/method_listbyresourcegroup.go index 0538a32df4f..d2d4412b999 100644 --- a/resource-manager/devcenter/2023-04-01/devcenters/method_listbyresourcegroup.go +++ b/resource-manager/devcenter/2023-04-01/devcenters/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DevCentersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DevCentersClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/devCenters", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/devCenters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2023-04-01/devcenters/method_listbysubscription.go b/resource-manager/devcenter/2023-04-01/devcenters/method_listbysubscription.go index 2f53fd1d1c4..30b65d648e4 100644 --- a/resource-manager/devcenter/2023-04-01/devcenters/method_listbysubscription.go +++ b/resource-manager/devcenter/2023-04-01/devcenters/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DevCentersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DevCentersClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/devCenters", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/devCenters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypeslistbydevcenter.go b/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypeslistbydevcenter.go index 00a3d8430e2..8485ff45786 100644 --- a/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypeslistbydevcenter.go +++ b/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypeslistbydevcenter.go @@ -50,6 +50,18 @@ func (o EnvironmentTypesListByDevCenterOperationOptions) ToQuery() *client.Query return &out } +type EnvironmentTypesListByDevCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *EnvironmentTypesListByDevCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // EnvironmentTypesListByDevCenter ... func (c EnvironmentTypesClient) EnvironmentTypesListByDevCenter(ctx context.Context, id DevCenterId, options EnvironmentTypesListByDevCenterOperationOptions) (result EnvironmentTypesListByDevCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c EnvironmentTypesClient) EnvironmentTypesListByDevCenter(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/environmentTypes", id.ID()), OptionsObject: options, + Pager: &EnvironmentTypesListByDevCenterCustomPager{}, + Path: fmt.Sprintf("%s/environmentTypes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectallowedenvironmenttypeslist.go b/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectallowedenvironmenttypeslist.go index b703d40b247..2508c2e2c22 100644 --- a/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectallowedenvironmenttypeslist.go +++ b/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectallowedenvironmenttypeslist.go @@ -50,6 +50,18 @@ func (o ProjectAllowedEnvironmentTypesListOperationOptions) ToQuery() *client.Qu return &out } +type ProjectAllowedEnvironmentTypesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProjectAllowedEnvironmentTypesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProjectAllowedEnvironmentTypesList ... func (c EnvironmentTypesClient) ProjectAllowedEnvironmentTypesList(ctx context.Context, id ProjectId, options ProjectAllowedEnvironmentTypesListOperationOptions) (result ProjectAllowedEnvironmentTypesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c EnvironmentTypesClient) ProjectAllowedEnvironmentTypesList(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/allowedEnvironmentTypes", id.ID()), OptionsObject: options, + Pager: &ProjectAllowedEnvironmentTypesListCustomPager{}, + Path: fmt.Sprintf("%s/allowedEnvironmentTypes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypeslist.go b/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypeslist.go index f975e7ea63d..789e6b69160 100644 --- a/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypeslist.go +++ b/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypeslist.go @@ -50,6 +50,18 @@ func (o ProjectEnvironmentTypesListOperationOptions) ToQuery() *client.QueryPara return &out } +type ProjectEnvironmentTypesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProjectEnvironmentTypesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProjectEnvironmentTypesList ... func (c EnvironmentTypesClient) ProjectEnvironmentTypesList(ctx context.Context, id ProjectId, options ProjectEnvironmentTypesListOperationOptions) (result ProjectEnvironmentTypesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c EnvironmentTypesClient) ProjectEnvironmentTypesList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/environmentTypes", id.ID()), OptionsObject: options, + Pager: &ProjectEnvironmentTypesListCustomPager{}, + Path: fmt.Sprintf("%s/environmentTypes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2023-04-01/galleries/method_listbydevcenter.go b/resource-manager/devcenter/2023-04-01/galleries/method_listbydevcenter.go index 160ea943dbd..792ad276ecb 100644 --- a/resource-manager/devcenter/2023-04-01/galleries/method_listbydevcenter.go +++ b/resource-manager/devcenter/2023-04-01/galleries/method_listbydevcenter.go @@ -50,6 +50,18 @@ func (o ListByDevCenterOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDevCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDevCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDevCenter ... func (c GalleriesClient) ListByDevCenter(ctx context.Context, id DevCenterId, options ListByDevCenterOperationOptions) (result ListByDevCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c GalleriesClient) ListByDevCenter(ctx context.Context, id DevCenterId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/galleries", id.ID()), OptionsObject: options, + Pager: &ListByDevCenterCustomPager{}, + Path: fmt.Sprintf("%s/galleries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2023-04-01/images/method_listbydevcenter.go b/resource-manager/devcenter/2023-04-01/images/method_listbydevcenter.go index 100251a0c42..2fcf6e1d00e 100644 --- a/resource-manager/devcenter/2023-04-01/images/method_listbydevcenter.go +++ b/resource-manager/devcenter/2023-04-01/images/method_listbydevcenter.go @@ -50,6 +50,18 @@ func (o ListByDevCenterOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDevCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDevCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDevCenter ... func (c ImagesClient) ListByDevCenter(ctx context.Context, id DevCenterId, options ListByDevCenterOperationOptions) (result ListByDevCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ImagesClient) ListByDevCenter(ctx context.Context, id DevCenterId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/images", id.ID()), OptionsObject: options, + Pager: &ListByDevCenterCustomPager{}, + Path: fmt.Sprintf("%s/images", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2023-04-01/images/method_listbygallery.go b/resource-manager/devcenter/2023-04-01/images/method_listbygallery.go index ed425874765..65bc7c9a771 100644 --- a/resource-manager/devcenter/2023-04-01/images/method_listbygallery.go +++ b/resource-manager/devcenter/2023-04-01/images/method_listbygallery.go @@ -50,6 +50,18 @@ func (o ListByGalleryOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByGalleryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGalleryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGallery ... func (c ImagesClient) ListByGallery(ctx context.Context, id GalleryId, options ListByGalleryOperationOptions) (result ListByGalleryOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ImagesClient) ListByGallery(ctx context.Context, id GalleryId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/images", id.ID()), OptionsObject: options, + Pager: &ListByGalleryCustomPager{}, + Path: fmt.Sprintf("%s/images", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2023-04-01/imageversions/method_listbyimage.go b/resource-manager/devcenter/2023-04-01/imageversions/method_listbyimage.go index b65758853b2..34815b734af 100644 --- a/resource-manager/devcenter/2023-04-01/imageversions/method_listbyimage.go +++ b/resource-manager/devcenter/2023-04-01/imageversions/method_listbyimage.go @@ -23,6 +23,18 @@ type ListByImageCompleteResult struct { Items []ImageVersion } +type ListByImageCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByImageCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByImage ... func (c ImageVersionsClient) ListByImage(ctx context.Context, id ImageId) (result ListByImageOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ImageVersionsClient) ListByImage(ctx context.Context, id ImageId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByImageCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/devcenter/2023-04-01/networkconnection/method_listoutboundnetworkdependenciesendpoints.go b/resource-manager/devcenter/2023-04-01/networkconnection/method_listoutboundnetworkdependenciesendpoints.go index 8e9d3e1a066..1c4b2c595c4 100644 --- a/resource-manager/devcenter/2023-04-01/networkconnection/method_listoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/devcenter/2023-04-01/networkconnection/method_listoutboundnetworkdependenciesendpoints.go @@ -23,6 +23,18 @@ type ListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesEndpoints ... func (c NetworkConnectionClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, id NetworkConnectionId) (result ListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkConnectionClient) ListOutboundNetworkDependenciesEndpoints(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/devcenter/2023-04-01/networkconnections/method_listbyresourcegroup.go b/resource-manager/devcenter/2023-04-01/networkconnections/method_listbyresourcegroup.go index 434907b9439..06c7d319080 100644 --- a/resource-manager/devcenter/2023-04-01/networkconnections/method_listbyresourcegroup.go +++ b/resource-manager/devcenter/2023-04-01/networkconnections/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []NetworkConnection } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NetworkConnectionsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkConnectionsClient) ListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/networkConnections", id.ID()), } diff --git a/resource-manager/devcenter/2023-04-01/networkconnections/method_listbysubscription.go b/resource-manager/devcenter/2023-04-01/networkconnections/method_listbysubscription.go index 61bb7e1ac8d..b4a4c9aaf07 100644 --- a/resource-manager/devcenter/2023-04-01/networkconnections/method_listbysubscription.go +++ b/resource-manager/devcenter/2023-04-01/networkconnections/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []NetworkConnection } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c NetworkConnectionsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkConnectionsClient) ListBySubscription(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/networkConnections", id.ID()), } diff --git a/resource-manager/devcenter/2023-04-01/networkconnections/method_listhealthdetails.go b/resource-manager/devcenter/2023-04-01/networkconnections/method_listhealthdetails.go index 23f163a9805..094f3120ad7 100644 --- a/resource-manager/devcenter/2023-04-01/networkconnections/method_listhealthdetails.go +++ b/resource-manager/devcenter/2023-04-01/networkconnections/method_listhealthdetails.go @@ -23,6 +23,18 @@ type ListHealthDetailsCompleteResult struct { Items []HealthCheckStatusDetails } +type ListHealthDetailsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHealthDetailsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHealthDetails ... func (c NetworkConnectionsClient) ListHealthDetails(ctx context.Context, id NetworkConnectionId) (result ListHealthDetailsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkConnectionsClient) ListHealthDetails(ctx context.Context, id Netw http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHealthDetailsCustomPager{}, Path: fmt.Sprintf("%s/healthChecks", id.ID()), } diff --git a/resource-manager/devcenter/2023-04-01/pools/method_listbyproject.go b/resource-manager/devcenter/2023-04-01/pools/method_listbyproject.go index 7aa1b205e95..94941099fc8 100644 --- a/resource-manager/devcenter/2023-04-01/pools/method_listbyproject.go +++ b/resource-manager/devcenter/2023-04-01/pools/method_listbyproject.go @@ -23,6 +23,18 @@ type ListByProjectCompleteResult struct { Items []Pool } +type ListByProjectCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProjectCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProject ... func (c PoolsClient) ListByProject(ctx context.Context, id ProjectId) (result ListByProjectOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PoolsClient) ListByProject(ctx context.Context, id ProjectId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByProjectCustomPager{}, Path: fmt.Sprintf("%s/pools", id.ID()), } diff --git a/resource-manager/devcenter/2023-04-01/projects/method_listbyresourcegroup.go b/resource-manager/devcenter/2023-04-01/projects/method_listbyresourcegroup.go index 5ad37dcbad2..ea09446344a 100644 --- a/resource-manager/devcenter/2023-04-01/projects/method_listbyresourcegroup.go +++ b/resource-manager/devcenter/2023-04-01/projects/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ProjectsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ProjectsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/projects", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/projects", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2023-04-01/projects/method_listbysubscription.go b/resource-manager/devcenter/2023-04-01/projects/method_listbysubscription.go index b3066f28e4b..4a003a1da89 100644 --- a/resource-manager/devcenter/2023-04-01/projects/method_listbysubscription.go +++ b/resource-manager/devcenter/2023-04-01/projects/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ProjectsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ProjectsClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/projects", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/projects", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2023-04-01/schedules/method_listbypool.go b/resource-manager/devcenter/2023-04-01/schedules/method_listbypool.go index 6e5fceeab1f..b200e6bad64 100644 --- a/resource-manager/devcenter/2023-04-01/schedules/method_listbypool.go +++ b/resource-manager/devcenter/2023-04-01/schedules/method_listbypool.go @@ -23,6 +23,18 @@ type ListByPoolCompleteResult struct { Items []Schedule } +type ListByPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPool ... func (c SchedulesClient) ListByPool(ctx context.Context, id PoolId) (result ListByPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SchedulesClient) ListByPool(ctx context.Context, id PoolId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPoolCustomPager{}, Path: fmt.Sprintf("%s/schedules", id.ID()), } diff --git a/resource-manager/devcenter/2023-04-01/skus/method_listbysubscription.go b/resource-manager/devcenter/2023-04-01/skus/method_listbysubscription.go index 39224f1fbcb..f8866d7188f 100644 --- a/resource-manager/devcenter/2023-04-01/skus/method_listbysubscription.go +++ b/resource-manager/devcenter/2023-04-01/skus/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DevCenterSku } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SKUsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SKUsClient) ListBySubscription(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/skus", id.ID()), } diff --git a/resource-manager/devcenter/2023-04-01/usages/method_listbylocation.go b/resource-manager/devcenter/2023-04-01/usages/method_listbylocation.go index 98c9660efde..4677c80baef 100644 --- a/resource-manager/devcenter/2023-04-01/usages/method_listbylocation.go +++ b/resource-manager/devcenter/2023-04-01/usages/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []Usage } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c UsagesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UsagesClient) ListByLocation(ctx context.Context, id LocationId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/devcenter/2024-02-01/attachednetworkconnections/method_attachednetworkslistbydevcenter.go b/resource-manager/devcenter/2024-02-01/attachednetworkconnections/method_attachednetworkslistbydevcenter.go index 6841cdce4d8..a98a300e3cd 100644 --- a/resource-manager/devcenter/2024-02-01/attachednetworkconnections/method_attachednetworkslistbydevcenter.go +++ b/resource-manager/devcenter/2024-02-01/attachednetworkconnections/method_attachednetworkslistbydevcenter.go @@ -50,6 +50,18 @@ func (o AttachedNetworksListByDevCenterOperationOptions) ToQuery() *client.Query return &out } +type AttachedNetworksListByDevCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AttachedNetworksListByDevCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AttachedNetworksListByDevCenter ... func (c AttachedNetworkConnectionsClient) AttachedNetworksListByDevCenter(ctx context.Context, id DevCenterId, options AttachedNetworksListByDevCenterOperationOptions) (result AttachedNetworksListByDevCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c AttachedNetworkConnectionsClient) AttachedNetworksListByDevCenter(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/attachednetworks", id.ID()), OptionsObject: options, + Pager: &AttachedNetworksListByDevCenterCustomPager{}, + Path: fmt.Sprintf("%s/attachednetworks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/attachednetworkconnections/method_attachednetworkslistbyproject.go b/resource-manager/devcenter/2024-02-01/attachednetworkconnections/method_attachednetworkslistbyproject.go index 575ae69d070..8ed8d644a8e 100644 --- a/resource-manager/devcenter/2024-02-01/attachednetworkconnections/method_attachednetworkslistbyproject.go +++ b/resource-manager/devcenter/2024-02-01/attachednetworkconnections/method_attachednetworkslistbyproject.go @@ -50,6 +50,18 @@ func (o AttachedNetworksListByProjectOperationOptions) ToQuery() *client.QueryPa return &out } +type AttachedNetworksListByProjectCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AttachedNetworksListByProjectCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AttachedNetworksListByProject ... func (c AttachedNetworkConnectionsClient) AttachedNetworksListByProject(ctx context.Context, id ProjectId, options AttachedNetworksListByProjectOperationOptions) (result AttachedNetworksListByProjectOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c AttachedNetworkConnectionsClient) AttachedNetworksListByProject(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/attachednetworks", id.ID()), OptionsObject: options, + Pager: &AttachedNetworksListByProjectCustomPager{}, + Path: fmt.Sprintf("%s/attachednetworks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/catalogs/method_listbydevcenter.go b/resource-manager/devcenter/2024-02-01/catalogs/method_listbydevcenter.go index b6fdce23f99..4a27fe87351 100644 --- a/resource-manager/devcenter/2024-02-01/catalogs/method_listbydevcenter.go +++ b/resource-manager/devcenter/2024-02-01/catalogs/method_listbydevcenter.go @@ -50,6 +50,18 @@ func (o ListByDevCenterOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDevCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDevCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDevCenter ... func (c CatalogsClient) ListByDevCenter(ctx context.Context, id DevCenterId, options ListByDevCenterOperationOptions) (result ListByDevCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c CatalogsClient) ListByDevCenter(ctx context.Context, id DevCenterId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/catalogs", id.ID()), OptionsObject: options, + Pager: &ListByDevCenterCustomPager{}, + Path: fmt.Sprintf("%s/catalogs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/devboxdefinitions/method_listbydevcenter.go b/resource-manager/devcenter/2024-02-01/devboxdefinitions/method_listbydevcenter.go index 4bff96aec56..f19718d9b5b 100644 --- a/resource-manager/devcenter/2024-02-01/devboxdefinitions/method_listbydevcenter.go +++ b/resource-manager/devcenter/2024-02-01/devboxdefinitions/method_listbydevcenter.go @@ -23,6 +23,18 @@ type ListByDevCenterCompleteResult struct { Items []DevBoxDefinition } +type ListByDevCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDevCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDevCenter ... func (c DevBoxDefinitionsClient) ListByDevCenter(ctx context.Context, id DevCenterId) (result ListByDevCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevBoxDefinitionsClient) ListByDevCenter(ctx context.Context, id DevCent http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDevCenterCustomPager{}, Path: fmt.Sprintf("%s/devBoxDefinitions", id.ID()), } diff --git a/resource-manager/devcenter/2024-02-01/devboxdefinitions/method_listbyproject.go b/resource-manager/devcenter/2024-02-01/devboxdefinitions/method_listbyproject.go index c0d56157488..cfa189f5d88 100644 --- a/resource-manager/devcenter/2024-02-01/devboxdefinitions/method_listbyproject.go +++ b/resource-manager/devcenter/2024-02-01/devboxdefinitions/method_listbyproject.go @@ -23,6 +23,18 @@ type ListByProjectCompleteResult struct { Items []DevBoxDefinition } +type ListByProjectCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProjectCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProject ... func (c DevBoxDefinitionsClient) ListByProject(ctx context.Context, id ProjectId) (result ListByProjectOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevBoxDefinitionsClient) ListByProject(ctx context.Context, id ProjectId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByProjectCustomPager{}, Path: fmt.Sprintf("%s/devBoxDefinitions", id.ID()), } diff --git a/resource-manager/devcenter/2024-02-01/devcenters/method_listbyresourcegroup.go b/resource-manager/devcenter/2024-02-01/devcenters/method_listbyresourcegroup.go index 0538a32df4f..d2d4412b999 100644 --- a/resource-manager/devcenter/2024-02-01/devcenters/method_listbyresourcegroup.go +++ b/resource-manager/devcenter/2024-02-01/devcenters/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DevCentersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DevCentersClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/devCenters", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/devCenters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/devcenters/method_listbysubscription.go b/resource-manager/devcenter/2024-02-01/devcenters/method_listbysubscription.go index 2f53fd1d1c4..30b65d648e4 100644 --- a/resource-manager/devcenter/2024-02-01/devcenters/method_listbysubscription.go +++ b/resource-manager/devcenter/2024-02-01/devcenters/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DevCentersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DevCentersClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/devCenters", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/devCenters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/environmentdefinitions/method_environmentdefinitionslistbycatalog.go b/resource-manager/devcenter/2024-02-01/environmentdefinitions/method_environmentdefinitionslistbycatalog.go index 8bf102b383a..ca6a6851bba 100644 --- a/resource-manager/devcenter/2024-02-01/environmentdefinitions/method_environmentdefinitionslistbycatalog.go +++ b/resource-manager/devcenter/2024-02-01/environmentdefinitions/method_environmentdefinitionslistbycatalog.go @@ -50,6 +50,18 @@ func (o EnvironmentDefinitionsListByCatalogOperationOptions) ToQuery() *client.Q return &out } +type EnvironmentDefinitionsListByCatalogCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *EnvironmentDefinitionsListByCatalogCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // EnvironmentDefinitionsListByCatalog ... func (c EnvironmentDefinitionsClient) EnvironmentDefinitionsListByCatalog(ctx context.Context, id DevCenterCatalogId, options EnvironmentDefinitionsListByCatalogOperationOptions) (result EnvironmentDefinitionsListByCatalogOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c EnvironmentDefinitionsClient) EnvironmentDefinitionsListByCatalog(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/environmentDefinitions", id.ID()), OptionsObject: options, + Pager: &EnvironmentDefinitionsListByCatalogCustomPager{}, + Path: fmt.Sprintf("%s/environmentDefinitions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/environmentdefinitions/method_environmentdefinitionslistbyprojectcatalog.go b/resource-manager/devcenter/2024-02-01/environmentdefinitions/method_environmentdefinitionslistbyprojectcatalog.go index 49c69d01eeb..04d85e2ca90 100644 --- a/resource-manager/devcenter/2024-02-01/environmentdefinitions/method_environmentdefinitionslistbyprojectcatalog.go +++ b/resource-manager/devcenter/2024-02-01/environmentdefinitions/method_environmentdefinitionslistbyprojectcatalog.go @@ -23,6 +23,18 @@ type EnvironmentDefinitionsListByProjectCatalogCompleteResult struct { Items []EnvironmentDefinition } +type EnvironmentDefinitionsListByProjectCatalogCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *EnvironmentDefinitionsListByProjectCatalogCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // EnvironmentDefinitionsListByProjectCatalog ... func (c EnvironmentDefinitionsClient) EnvironmentDefinitionsListByProjectCatalog(ctx context.Context, id CatalogId) (result EnvironmentDefinitionsListByProjectCatalogOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c EnvironmentDefinitionsClient) EnvironmentDefinitionsListByProjectCatalog http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &EnvironmentDefinitionsListByProjectCatalogCustomPager{}, Path: fmt.Sprintf("%s/environmentDefinitions", id.ID()), } diff --git a/resource-manager/devcenter/2024-02-01/environmenttypes/method_environmenttypeslistbydevcenter.go b/resource-manager/devcenter/2024-02-01/environmenttypes/method_environmenttypeslistbydevcenter.go index 00a3d8430e2..8485ff45786 100644 --- a/resource-manager/devcenter/2024-02-01/environmenttypes/method_environmenttypeslistbydevcenter.go +++ b/resource-manager/devcenter/2024-02-01/environmenttypes/method_environmenttypeslistbydevcenter.go @@ -50,6 +50,18 @@ func (o EnvironmentTypesListByDevCenterOperationOptions) ToQuery() *client.Query return &out } +type EnvironmentTypesListByDevCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *EnvironmentTypesListByDevCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // EnvironmentTypesListByDevCenter ... func (c EnvironmentTypesClient) EnvironmentTypesListByDevCenter(ctx context.Context, id DevCenterId, options EnvironmentTypesListByDevCenterOperationOptions) (result EnvironmentTypesListByDevCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c EnvironmentTypesClient) EnvironmentTypesListByDevCenter(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/environmentTypes", id.ID()), OptionsObject: options, + Pager: &EnvironmentTypesListByDevCenterCustomPager{}, + Path: fmt.Sprintf("%s/environmentTypes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/environmenttypes/method_projectallowedenvironmenttypeslist.go b/resource-manager/devcenter/2024-02-01/environmenttypes/method_projectallowedenvironmenttypeslist.go index b703d40b247..2508c2e2c22 100644 --- a/resource-manager/devcenter/2024-02-01/environmenttypes/method_projectallowedenvironmenttypeslist.go +++ b/resource-manager/devcenter/2024-02-01/environmenttypes/method_projectallowedenvironmenttypeslist.go @@ -50,6 +50,18 @@ func (o ProjectAllowedEnvironmentTypesListOperationOptions) ToQuery() *client.Qu return &out } +type ProjectAllowedEnvironmentTypesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProjectAllowedEnvironmentTypesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProjectAllowedEnvironmentTypesList ... func (c EnvironmentTypesClient) ProjectAllowedEnvironmentTypesList(ctx context.Context, id ProjectId, options ProjectAllowedEnvironmentTypesListOperationOptions) (result ProjectAllowedEnvironmentTypesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c EnvironmentTypesClient) ProjectAllowedEnvironmentTypesList(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/allowedEnvironmentTypes", id.ID()), OptionsObject: options, + Pager: &ProjectAllowedEnvironmentTypesListCustomPager{}, + Path: fmt.Sprintf("%s/allowedEnvironmentTypes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/environmenttypes/method_projectenvironmenttypeslist.go b/resource-manager/devcenter/2024-02-01/environmenttypes/method_projectenvironmenttypeslist.go index f975e7ea63d..789e6b69160 100644 --- a/resource-manager/devcenter/2024-02-01/environmenttypes/method_projectenvironmenttypeslist.go +++ b/resource-manager/devcenter/2024-02-01/environmenttypes/method_projectenvironmenttypeslist.go @@ -50,6 +50,18 @@ func (o ProjectEnvironmentTypesListOperationOptions) ToQuery() *client.QueryPara return &out } +type ProjectEnvironmentTypesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProjectEnvironmentTypesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProjectEnvironmentTypesList ... func (c EnvironmentTypesClient) ProjectEnvironmentTypesList(ctx context.Context, id ProjectId, options ProjectEnvironmentTypesListOperationOptions) (result ProjectEnvironmentTypesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c EnvironmentTypesClient) ProjectEnvironmentTypesList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/environmentTypes", id.ID()), OptionsObject: options, + Pager: &ProjectEnvironmentTypesListCustomPager{}, + Path: fmt.Sprintf("%s/environmentTypes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/galleries/method_listbydevcenter.go b/resource-manager/devcenter/2024-02-01/galleries/method_listbydevcenter.go index 160ea943dbd..792ad276ecb 100644 --- a/resource-manager/devcenter/2024-02-01/galleries/method_listbydevcenter.go +++ b/resource-manager/devcenter/2024-02-01/galleries/method_listbydevcenter.go @@ -50,6 +50,18 @@ func (o ListByDevCenterOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDevCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDevCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDevCenter ... func (c GalleriesClient) ListByDevCenter(ctx context.Context, id DevCenterId, options ListByDevCenterOperationOptions) (result ListByDevCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c GalleriesClient) ListByDevCenter(ctx context.Context, id DevCenterId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/galleries", id.ID()), OptionsObject: options, + Pager: &ListByDevCenterCustomPager{}, + Path: fmt.Sprintf("%s/galleries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/images/method_listbydevcenter.go b/resource-manager/devcenter/2024-02-01/images/method_listbydevcenter.go index 100251a0c42..2fcf6e1d00e 100644 --- a/resource-manager/devcenter/2024-02-01/images/method_listbydevcenter.go +++ b/resource-manager/devcenter/2024-02-01/images/method_listbydevcenter.go @@ -50,6 +50,18 @@ func (o ListByDevCenterOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDevCenterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDevCenterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDevCenter ... func (c ImagesClient) ListByDevCenter(ctx context.Context, id DevCenterId, options ListByDevCenterOperationOptions) (result ListByDevCenterOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ImagesClient) ListByDevCenter(ctx context.Context, id DevCenterId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/images", id.ID()), OptionsObject: options, + Pager: &ListByDevCenterCustomPager{}, + Path: fmt.Sprintf("%s/images", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/images/method_listbygallery.go b/resource-manager/devcenter/2024-02-01/images/method_listbygallery.go index ed425874765..65bc7c9a771 100644 --- a/resource-manager/devcenter/2024-02-01/images/method_listbygallery.go +++ b/resource-manager/devcenter/2024-02-01/images/method_listbygallery.go @@ -50,6 +50,18 @@ func (o ListByGalleryOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByGalleryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGalleryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGallery ... func (c ImagesClient) ListByGallery(ctx context.Context, id GalleryId, options ListByGalleryOperationOptions) (result ListByGalleryOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ImagesClient) ListByGallery(ctx context.Context, id GalleryId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/images", id.ID()), OptionsObject: options, + Pager: &ListByGalleryCustomPager{}, + Path: fmt.Sprintf("%s/images", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/imageversions/method_listbyimage.go b/resource-manager/devcenter/2024-02-01/imageversions/method_listbyimage.go index b65758853b2..34815b734af 100644 --- a/resource-manager/devcenter/2024-02-01/imageversions/method_listbyimage.go +++ b/resource-manager/devcenter/2024-02-01/imageversions/method_listbyimage.go @@ -23,6 +23,18 @@ type ListByImageCompleteResult struct { Items []ImageVersion } +type ListByImageCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByImageCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByImage ... func (c ImageVersionsClient) ListByImage(ctx context.Context, id ImageId) (result ListByImageOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ImageVersionsClient) ListByImage(ctx context.Context, id ImageId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByImageCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/devcenter/2024-02-01/networkconnection/method_listoutboundnetworkdependenciesendpoints.go b/resource-manager/devcenter/2024-02-01/networkconnection/method_listoutboundnetworkdependenciesendpoints.go index 8e9d3e1a066..1c4b2c595c4 100644 --- a/resource-manager/devcenter/2024-02-01/networkconnection/method_listoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/devcenter/2024-02-01/networkconnection/method_listoutboundnetworkdependenciesendpoints.go @@ -23,6 +23,18 @@ type ListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesEndpoints ... func (c NetworkConnectionClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, id NetworkConnectionId) (result ListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkConnectionClient) ListOutboundNetworkDependenciesEndpoints(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/devcenter/2024-02-01/networkconnections/method_listbyresourcegroup.go b/resource-manager/devcenter/2024-02-01/networkconnections/method_listbyresourcegroup.go index 434907b9439..06c7d319080 100644 --- a/resource-manager/devcenter/2024-02-01/networkconnections/method_listbyresourcegroup.go +++ b/resource-manager/devcenter/2024-02-01/networkconnections/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []NetworkConnection } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NetworkConnectionsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkConnectionsClient) ListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/networkConnections", id.ID()), } diff --git a/resource-manager/devcenter/2024-02-01/networkconnections/method_listbysubscription.go b/resource-manager/devcenter/2024-02-01/networkconnections/method_listbysubscription.go index 61bb7e1ac8d..b4a4c9aaf07 100644 --- a/resource-manager/devcenter/2024-02-01/networkconnections/method_listbysubscription.go +++ b/resource-manager/devcenter/2024-02-01/networkconnections/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []NetworkConnection } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c NetworkConnectionsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkConnectionsClient) ListBySubscription(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/networkConnections", id.ID()), } diff --git a/resource-manager/devcenter/2024-02-01/networkconnections/method_listhealthdetails.go b/resource-manager/devcenter/2024-02-01/networkconnections/method_listhealthdetails.go index 23f163a9805..094f3120ad7 100644 --- a/resource-manager/devcenter/2024-02-01/networkconnections/method_listhealthdetails.go +++ b/resource-manager/devcenter/2024-02-01/networkconnections/method_listhealthdetails.go @@ -23,6 +23,18 @@ type ListHealthDetailsCompleteResult struct { Items []HealthCheckStatusDetails } +type ListHealthDetailsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHealthDetailsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHealthDetails ... func (c NetworkConnectionsClient) ListHealthDetails(ctx context.Context, id NetworkConnectionId) (result ListHealthDetailsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkConnectionsClient) ListHealthDetails(ctx context.Context, id Netw http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHealthDetailsCustomPager{}, Path: fmt.Sprintf("%s/healthChecks", id.ID()), } diff --git a/resource-manager/devcenter/2024-02-01/pools/method_listbyproject.go b/resource-manager/devcenter/2024-02-01/pools/method_listbyproject.go index 7aa1b205e95..94941099fc8 100644 --- a/resource-manager/devcenter/2024-02-01/pools/method_listbyproject.go +++ b/resource-manager/devcenter/2024-02-01/pools/method_listbyproject.go @@ -23,6 +23,18 @@ type ListByProjectCompleteResult struct { Items []Pool } +type ListByProjectCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByProjectCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByProject ... func (c PoolsClient) ListByProject(ctx context.Context, id ProjectId) (result ListByProjectOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PoolsClient) ListByProject(ctx context.Context, id ProjectId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByProjectCustomPager{}, Path: fmt.Sprintf("%s/pools", id.ID()), } diff --git a/resource-manager/devcenter/2024-02-01/projectcatalogs/method_list.go b/resource-manager/devcenter/2024-02-01/projectcatalogs/method_list.go index 61b1a96db82..bf7ab68e537 100644 --- a/resource-manager/devcenter/2024-02-01/projectcatalogs/method_list.go +++ b/resource-manager/devcenter/2024-02-01/projectcatalogs/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProjectCatalogsClient) List(ctx context.Context, id ProjectId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProjectCatalogsClient) List(ctx context.Context, id ProjectId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/catalogs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/catalogs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/projects/method_listbyresourcegroup.go b/resource-manager/devcenter/2024-02-01/projects/method_listbyresourcegroup.go index 5ad37dcbad2..ea09446344a 100644 --- a/resource-manager/devcenter/2024-02-01/projects/method_listbyresourcegroup.go +++ b/resource-manager/devcenter/2024-02-01/projects/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ProjectsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ProjectsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/projects", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/projects", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/projects/method_listbysubscription.go b/resource-manager/devcenter/2024-02-01/projects/method_listbysubscription.go index b3066f28e4b..4a003a1da89 100644 --- a/resource-manager/devcenter/2024-02-01/projects/method_listbysubscription.go +++ b/resource-manager/devcenter/2024-02-01/projects/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ProjectsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ProjectsClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/projects", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/projects", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devcenter/2024-02-01/schedules/method_listbypool.go b/resource-manager/devcenter/2024-02-01/schedules/method_listbypool.go index 6e5fceeab1f..b200e6bad64 100644 --- a/resource-manager/devcenter/2024-02-01/schedules/method_listbypool.go +++ b/resource-manager/devcenter/2024-02-01/schedules/method_listbypool.go @@ -23,6 +23,18 @@ type ListByPoolCompleteResult struct { Items []Schedule } +type ListByPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPool ... func (c SchedulesClient) ListByPool(ctx context.Context, id PoolId) (result ListByPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SchedulesClient) ListByPool(ctx context.Context, id PoolId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPoolCustomPager{}, Path: fmt.Sprintf("%s/schedules", id.ID()), } diff --git a/resource-manager/devcenter/2024-02-01/skus/method_listbysubscription.go b/resource-manager/devcenter/2024-02-01/skus/method_listbysubscription.go index 39224f1fbcb..f8866d7188f 100644 --- a/resource-manager/devcenter/2024-02-01/skus/method_listbysubscription.go +++ b/resource-manager/devcenter/2024-02-01/skus/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DevCenterSku } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SKUsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SKUsClient) ListBySubscription(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DevCenter/skus", id.ID()), } diff --git a/resource-manager/devcenter/2024-02-01/usages/method_listbylocation.go b/resource-manager/devcenter/2024-02-01/usages/method_listbylocation.go index 98c9660efde..4677c80baef 100644 --- a/resource-manager/devcenter/2024-02-01/usages/method_listbylocation.go +++ b/resource-manager/devcenter/2024-02-01/usages/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []Usage } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c UsagesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UsagesClient) ListByLocation(ctx context.Context, id LocationId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_createorupdate.go b/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_createorupdate.go index cd61c4ab074..3797134fbb9 100644 --- a/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_createorupdate.go +++ b/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_createorupdate.go @@ -53,8 +53,8 @@ func (c DpsCertificateClient) CreateOrUpdate(ctx context.Context, id Certificate http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_delete.go b/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_delete.go index 622c9f75b93..0a5fa975528 100644 --- a/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_delete.go +++ b/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_delete.go @@ -84,8 +84,8 @@ func (c DpsCertificateClient) Delete(ctx context.Context, id CertificateId, opti http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_generateverificationcode.go b/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_generateverificationcode.go index 1f6a204e8fb..fcc97b0e472 100644 --- a/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_generateverificationcode.go +++ b/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_generateverificationcode.go @@ -84,8 +84,8 @@ func (c DpsCertificateClient) GenerateVerificationCode(ctx context.Context, id C http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/generateVerificationCode", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/generateVerificationCode", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_get.go b/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_get.go index f4be1e10b9c..dee3f63b274 100644 --- a/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_get.go +++ b/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_get.go @@ -53,8 +53,8 @@ func (c DpsCertificateClient) Get(ctx context.Context, id CertificateId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_verifycertificate.go b/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_verifycertificate.go index f3343726998..7980b41d1eb 100644 --- a/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_verifycertificate.go +++ b/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_verifycertificate.go @@ -84,8 +84,8 @@ func (c DpsCertificateClient) VerifyCertificate(ctx context.Context, id Certific http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/verify", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/verify", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listbyresourcegroup.go b/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listbyresourcegroup.go index efaa9240295..0ed79989ff5 100644 --- a/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listbyresourcegroup.go +++ b/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ProvisioningServiceDescription } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c IotDpsResourceClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IotDpsResourceClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Devices/provisioningServices", id.ID()), } diff --git a/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listbysubscription.go b/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listbysubscription.go index 2c5084def46..be7eb07ad49 100644 --- a/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listbysubscription.go +++ b/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ProvisioningServiceDescription } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c IotDpsResourceClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IotDpsResourceClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Devices/provisioningServices", id.ID()), } diff --git a/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listkeys.go b/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listkeys.go index 0675012b949..7f7f6998b8b 100644 --- a/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listkeys.go +++ b/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listkeys.go @@ -24,6 +24,18 @@ type ListKeysCompleteResult struct { Items []SharedAccessSignatureAuthorizationRuleAccessRightsDescription } +type ListKeysCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListKeysCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListKeys ... func (c IotDpsResourceClient) ListKeys(ctx context.Context, id commonids.ProvisioningServiceId) (result ListKeysOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IotDpsResourceClient) ListKeys(ctx context.Context, id commonids.Provisi http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListKeysCustomPager{}, Path: fmt.Sprintf("%s/listKeys", id.ID()), } diff --git a/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listvalidskus.go b/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listvalidskus.go index 216254d369c..48944ee4630 100644 --- a/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listvalidskus.go +++ b/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listvalidskus.go @@ -24,6 +24,18 @@ type ListValidSkusCompleteResult struct { Items []IotDpsSkuDefinition } +type ListValidSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListValidSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListValidSkus ... func (c IotDpsResourceClient) ListValidSkus(ctx context.Context, id commonids.ProvisioningServiceId) (result ListValidSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IotDpsResourceClient) ListValidSkus(ctx context.Context, id commonids.Pr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListValidSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_createorupdate.go b/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_createorupdate.go index cd61c4ab074..3797134fbb9 100644 --- a/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_createorupdate.go +++ b/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_createorupdate.go @@ -53,8 +53,8 @@ func (c DpsCertificateClient) CreateOrUpdate(ctx context.Context, id Certificate http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_delete.go b/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_delete.go index 622c9f75b93..0a5fa975528 100644 --- a/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_delete.go +++ b/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_delete.go @@ -84,8 +84,8 @@ func (c DpsCertificateClient) Delete(ctx context.Context, id CertificateId, opti http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_generateverificationcode.go b/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_generateverificationcode.go index 1f6a204e8fb..fcc97b0e472 100644 --- a/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_generateverificationcode.go +++ b/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_generateverificationcode.go @@ -84,8 +84,8 @@ func (c DpsCertificateClient) GenerateVerificationCode(ctx context.Context, id C http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/generateVerificationCode", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/generateVerificationCode", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_get.go b/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_get.go index f4be1e10b9c..dee3f63b274 100644 --- a/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_get.go +++ b/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_get.go @@ -53,8 +53,8 @@ func (c DpsCertificateClient) Get(ctx context.Context, id CertificateId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_verifycertificate.go b/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_verifycertificate.go index f3343726998..7980b41d1eb 100644 --- a/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_verifycertificate.go +++ b/resource-manager/deviceprovisioningservices/2022-12-12/dpscertificate/method_verifycertificate.go @@ -84,8 +84,8 @@ func (c DpsCertificateClient) VerifyCertificate(ctx context.Context, id Certific http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/verify", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/verify", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listbyresourcegroup.go b/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listbyresourcegroup.go index efaa9240295..0ed79989ff5 100644 --- a/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listbyresourcegroup.go +++ b/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ProvisioningServiceDescription } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c IotDpsResourceClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IotDpsResourceClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Devices/provisioningServices", id.ID()), } diff --git a/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listbysubscription.go b/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listbysubscription.go index 2c5084def46..be7eb07ad49 100644 --- a/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listbysubscription.go +++ b/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ProvisioningServiceDescription } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c IotDpsResourceClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IotDpsResourceClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Devices/provisioningServices", id.ID()), } diff --git a/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listkeys.go b/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listkeys.go index 0675012b949..7f7f6998b8b 100644 --- a/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listkeys.go +++ b/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listkeys.go @@ -24,6 +24,18 @@ type ListKeysCompleteResult struct { Items []SharedAccessSignatureAuthorizationRuleAccessRightsDescription } +type ListKeysCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListKeysCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListKeys ... func (c IotDpsResourceClient) ListKeys(ctx context.Context, id commonids.ProvisioningServiceId) (result ListKeysOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IotDpsResourceClient) ListKeys(ctx context.Context, id commonids.Provisi http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListKeysCustomPager{}, Path: fmt.Sprintf("%s/listKeys", id.ID()), } diff --git a/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listvalidskus.go b/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listvalidskus.go index 216254d369c..48944ee4630 100644 --- a/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listvalidskus.go +++ b/resource-manager/deviceprovisioningservices/2022-12-12/iotdpsresource/method_listvalidskus.go @@ -24,6 +24,18 @@ type ListValidSkusCompleteResult struct { Items []IotDpsSkuDefinition } +type ListValidSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListValidSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListValidSkus ... func (c IotDpsResourceClient) ListValidSkus(ctx context.Context, id commonids.ProvisioningServiceId) (result ListValidSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IotDpsResourceClient) ListValidSkus(ctx context.Context, id commonids.Pr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListValidSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_accountslistbyresourcegroup.go b/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_accountslistbyresourcegroup.go index 54a05215e6d..debd4bd3945 100644 --- a/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_accountslistbyresourcegroup.go +++ b/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_accountslistbyresourcegroup.go @@ -24,6 +24,18 @@ type AccountsListByResourceGroupCompleteResult struct { Items []Account } +type AccountsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListByResourceGroup ... func (c DeviceupdatesClient) AccountsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result AccountsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeviceupdatesClient) AccountsListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DeviceUpdate/accounts", id.ID()), } diff --git a/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_accountslistbysubscription.go b/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_accountslistbysubscription.go index 80d3bd24832..92727c8752a 100644 --- a/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_accountslistbysubscription.go +++ b/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_accountslistbysubscription.go @@ -24,6 +24,18 @@ type AccountsListBySubscriptionCompleteResult struct { Items []Account } +type AccountsListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListBySubscription ... func (c DeviceupdatesClient) AccountsListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result AccountsListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeviceupdatesClient) AccountsListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DeviceUpdate/accounts", id.ID()), } diff --git a/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_instanceslistbyaccount.go b/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_instanceslistbyaccount.go index 66e3cdd7bb8..9dfa0586dad 100644 --- a/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_instanceslistbyaccount.go +++ b/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_instanceslistbyaccount.go @@ -23,6 +23,18 @@ type InstancesListByAccountCompleteResult struct { Items []Instance } +type InstancesListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *InstancesListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // InstancesListByAccount ... func (c DeviceupdatesClient) InstancesListByAccount(ctx context.Context, id AccountId) (result InstancesListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeviceupdatesClient) InstancesListByAccount(ctx context.Context, id Acco http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &InstancesListByAccountCustomPager{}, Path: fmt.Sprintf("%s/instances", id.ID()), } diff --git a/resource-manager/deviceupdate/2022-10-01/privateendpointconnectionproxies/method_listbyaccount.go b/resource-manager/deviceupdate/2022-10-01/privateendpointconnectionproxies/method_listbyaccount.go index a0002952e54..ac165b4ed9f 100644 --- a/resource-manager/deviceupdate/2022-10-01/privateendpointconnectionproxies/method_listbyaccount.go +++ b/resource-manager/deviceupdate/2022-10-01/privateendpointconnectionproxies/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []PrivateEndpointConnectionProxy } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c PrivateEndpointConnectionProxiesClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionProxiesClient) ListByAccount(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnectionProxies", id.ID()), } diff --git a/resource-manager/deviceupdate/2022-10-01/privatelinkresources/method_listbyaccount.go b/resource-manager/deviceupdate/2022-10-01/privatelinkresources/method_listbyaccount.go index 4921e73e696..d421ed8e7f3 100644 --- a/resource-manager/deviceupdate/2022-10-01/privatelinkresources/method_listbyaccount.go +++ b/resource-manager/deviceupdate/2022-10-01/privatelinkresources/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []GroupInformation } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c PrivateLinkResourcesClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) ListByAccount(ctx context.Context, id Accoun http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/deviceupdate/2023-07-01/deviceupdates/method_accountslistbyresourcegroup.go b/resource-manager/deviceupdate/2023-07-01/deviceupdates/method_accountslistbyresourcegroup.go index 54a05215e6d..debd4bd3945 100644 --- a/resource-manager/deviceupdate/2023-07-01/deviceupdates/method_accountslistbyresourcegroup.go +++ b/resource-manager/deviceupdate/2023-07-01/deviceupdates/method_accountslistbyresourcegroup.go @@ -24,6 +24,18 @@ type AccountsListByResourceGroupCompleteResult struct { Items []Account } +type AccountsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListByResourceGroup ... func (c DeviceupdatesClient) AccountsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result AccountsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeviceupdatesClient) AccountsListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DeviceUpdate/accounts", id.ID()), } diff --git a/resource-manager/deviceupdate/2023-07-01/deviceupdates/method_accountslistbysubscription.go b/resource-manager/deviceupdate/2023-07-01/deviceupdates/method_accountslistbysubscription.go index 80d3bd24832..92727c8752a 100644 --- a/resource-manager/deviceupdate/2023-07-01/deviceupdates/method_accountslistbysubscription.go +++ b/resource-manager/deviceupdate/2023-07-01/deviceupdates/method_accountslistbysubscription.go @@ -24,6 +24,18 @@ type AccountsListBySubscriptionCompleteResult struct { Items []Account } +type AccountsListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListBySubscription ... func (c DeviceupdatesClient) AccountsListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result AccountsListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeviceupdatesClient) AccountsListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DeviceUpdate/accounts", id.ID()), } diff --git a/resource-manager/deviceupdate/2023-07-01/deviceupdates/method_instanceslistbyaccount.go b/resource-manager/deviceupdate/2023-07-01/deviceupdates/method_instanceslistbyaccount.go index 66e3cdd7bb8..9dfa0586dad 100644 --- a/resource-manager/deviceupdate/2023-07-01/deviceupdates/method_instanceslistbyaccount.go +++ b/resource-manager/deviceupdate/2023-07-01/deviceupdates/method_instanceslistbyaccount.go @@ -23,6 +23,18 @@ type InstancesListByAccountCompleteResult struct { Items []Instance } +type InstancesListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *InstancesListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // InstancesListByAccount ... func (c DeviceupdatesClient) InstancesListByAccount(ctx context.Context, id AccountId) (result InstancesListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeviceupdatesClient) InstancesListByAccount(ctx context.Context, id Acco http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &InstancesListByAccountCustomPager{}, Path: fmt.Sprintf("%s/instances", id.ID()), } diff --git a/resource-manager/deviceupdate/2023-07-01/privateendpointconnectionproxies/method_listbyaccount.go b/resource-manager/deviceupdate/2023-07-01/privateendpointconnectionproxies/method_listbyaccount.go index a0002952e54..ac165b4ed9f 100644 --- a/resource-manager/deviceupdate/2023-07-01/privateendpointconnectionproxies/method_listbyaccount.go +++ b/resource-manager/deviceupdate/2023-07-01/privateendpointconnectionproxies/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []PrivateEndpointConnectionProxy } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c PrivateEndpointConnectionProxiesClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionProxiesClient) ListByAccount(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnectionProxies", id.ID()), } diff --git a/resource-manager/deviceupdate/2023-07-01/privatelinkresources/method_listbyaccount.go b/resource-manager/deviceupdate/2023-07-01/privatelinkresources/method_listbyaccount.go index 4921e73e696..d421ed8e7f3 100644 --- a/resource-manager/deviceupdate/2023-07-01/privatelinkresources/method_listbyaccount.go +++ b/resource-manager/deviceupdate/2023-07-01/privatelinkresources/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []GroupInformation } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c PrivateLinkResourcesClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) ListByAccount(ctx context.Context, id Accoun http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/devtestlab/2018-09-15/armtemplates/method_get.go b/resource-manager/devtestlab/2018-09-15/armtemplates/method_get.go index d2e868fe778..106d20f140b 100644 --- a/resource-manager/devtestlab/2018-09-15/armtemplates/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/armtemplates/method_get.go @@ -53,8 +53,8 @@ func (c ArmTemplatesClient) Get(ctx context.Context, id ArmTemplateId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/armtemplates/method_list.go b/resource-manager/devtestlab/2018-09-15/armtemplates/method_list.go index a8c6166b3d0..91ff22c62dd 100644 --- a/resource-manager/devtestlab/2018-09-15/armtemplates/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/armtemplates/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ArmTemplatesClient) List(ctx context.Context, id ArtifactSourceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ArmTemplatesClient) List(ctx context.Context, id ArtifactSourceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/armTemplates", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/armTemplates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/artifacts/method_get.go b/resource-manager/devtestlab/2018-09-15/artifacts/method_get.go index 78e13192e68..25bf90b0628 100644 --- a/resource-manager/devtestlab/2018-09-15/artifacts/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/artifacts/method_get.go @@ -53,8 +53,8 @@ func (c ArtifactsClient) Get(ctx context.Context, id ArtifactId, options GetOper http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/artifacts/method_list.go b/resource-manager/devtestlab/2018-09-15/artifacts/method_list.go index 041cc3f510f..eb22833841f 100644 --- a/resource-manager/devtestlab/2018-09-15/artifacts/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/artifacts/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ArtifactsClient) List(ctx context.Context, id ArtifactSourceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ArtifactsClient) List(ctx context.Context, id ArtifactSourceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/artifacts", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/artifacts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/artifactsources/method_get.go b/resource-manager/devtestlab/2018-09-15/artifactsources/method_get.go index 3989a84e9fd..4ead758f77a 100644 --- a/resource-manager/devtestlab/2018-09-15/artifactsources/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/artifactsources/method_get.go @@ -53,8 +53,8 @@ func (c ArtifactSourcesClient) Get(ctx context.Context, id ArtifactSourceId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/artifactsources/method_list.go b/resource-manager/devtestlab/2018-09-15/artifactsources/method_list.go index 0717365b635..9d808df950d 100644 --- a/resource-manager/devtestlab/2018-09-15/artifactsources/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/artifactsources/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ArtifactSourcesClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ArtifactSourcesClient) List(ctx context.Context, id LabId, options ListO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/artifactSources", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/artifactSources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/costs/method_get.go b/resource-manager/devtestlab/2018-09-15/costs/method_get.go index 8c43dea8da8..e371bce1d99 100644 --- a/resource-manager/devtestlab/2018-09-15/costs/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/costs/method_get.go @@ -53,8 +53,8 @@ func (c CostsClient) Get(ctx context.Context, id CostId, options GetOperationOpt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/customimages/method_get.go b/resource-manager/devtestlab/2018-09-15/customimages/method_get.go index 155bed253bd..0d99663abbd 100644 --- a/resource-manager/devtestlab/2018-09-15/customimages/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/customimages/method_get.go @@ -53,8 +53,8 @@ func (c CustomImagesClient) Get(ctx context.Context, id CustomImageId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/customimages/method_list.go b/resource-manager/devtestlab/2018-09-15/customimages/method_list.go index 7b4bfad92ee..1f639eae894 100644 --- a/resource-manager/devtestlab/2018-09-15/customimages/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/customimages/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CustomImagesClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c CustomImagesClient) List(ctx context.Context, id LabId, options ListOper http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/customImages", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/customImages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/disks/method_get.go b/resource-manager/devtestlab/2018-09-15/disks/method_get.go index 618730dde80..420e962d537 100644 --- a/resource-manager/devtestlab/2018-09-15/disks/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/disks/method_get.go @@ -53,8 +53,8 @@ func (c DisksClient) Get(ctx context.Context, id DiskId, options GetOperationOpt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/disks/method_list.go b/resource-manager/devtestlab/2018-09-15/disks/method_list.go index 713a5e8ecf8..7b41c2bc3a5 100644 --- a/resource-manager/devtestlab/2018-09-15/disks/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/disks/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DisksClient) List(ctx context.Context, id UserId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c DisksClient) List(ctx context.Context, id UserId, options ListOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/disks", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/disks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/environments/method_get.go b/resource-manager/devtestlab/2018-09-15/environments/method_get.go index 5edc9bdc41b..bbe7988eaab 100644 --- a/resource-manager/devtestlab/2018-09-15/environments/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/environments/method_get.go @@ -53,8 +53,8 @@ func (c EnvironmentsClient) Get(ctx context.Context, id EnvironmentId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/environments/method_list.go b/resource-manager/devtestlab/2018-09-15/environments/method_list.go index 0b5e8c797fd..6e9c7510d14 100644 --- a/resource-manager/devtestlab/2018-09-15/environments/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/environments/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EnvironmentsClient) List(ctx context.Context, id UserId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c EnvironmentsClient) List(ctx context.Context, id UserId, options ListOpe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/environments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/environments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/formulas/method_get.go b/resource-manager/devtestlab/2018-09-15/formulas/method_get.go index b0738689bbc..da49b3a4587 100644 --- a/resource-manager/devtestlab/2018-09-15/formulas/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/formulas/method_get.go @@ -53,8 +53,8 @@ func (c FormulasClient) Get(ctx context.Context, id FormulaId, options GetOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/formulas/method_list.go b/resource-manager/devtestlab/2018-09-15/formulas/method_list.go index aaeb0d8c4a0..a513dcb0bdd 100644 --- a/resource-manager/devtestlab/2018-09-15/formulas/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/formulas/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FormulasClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c FormulasClient) List(ctx context.Context, id LabId, options ListOperatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/formulas", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/formulas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/galleryimages/method_list.go b/resource-manager/devtestlab/2018-09-15/galleryimages/method_list.go index cccc4fe3768..4749e31b459 100644 --- a/resource-manager/devtestlab/2018-09-15/galleryimages/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/galleryimages/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GalleryImagesClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c GalleryImagesClient) List(ctx context.Context, id LabId, options ListOpe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/galleryimages", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/galleryimages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/globalschedules/method_get.go b/resource-manager/devtestlab/2018-09-15/globalschedules/method_get.go index 0e7686394cd..5a5441a7dcd 100644 --- a/resource-manager/devtestlab/2018-09-15/globalschedules/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/globalschedules/method_get.go @@ -53,8 +53,8 @@ func (c GlobalSchedulesClient) Get(ctx context.Context, id ScheduleId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbyresourcegroup.go b/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbyresourcegroup.go index f9ff061253e..260f09a35fe 100644 --- a/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbyresourcegroup.go +++ b/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbyresourcegroup.go @@ -63,6 +63,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c GlobalSchedulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -71,8 +83,9 @@ func (c GlobalSchedulesClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DevTestLab/schedules", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DevTestLab/schedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbysubscription.go b/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbysubscription.go index 4fda90b5be6..710adf67e22 100644 --- a/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbysubscription.go +++ b/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbysubscription.go @@ -63,6 +63,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c GlobalSchedulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -71,8 +83,9 @@ func (c GlobalSchedulesClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DevTestLab/schedules", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DevTestLab/schedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/labs/method_get.go b/resource-manager/devtestlab/2018-09-15/labs/method_get.go index d01ce820fed..894d9288302 100644 --- a/resource-manager/devtestlab/2018-09-15/labs/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/labs/method_get.go @@ -53,8 +53,8 @@ func (c LabsClient) Get(ctx context.Context, id LabId, options GetOperationOptio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/labs/method_listbyresourcegroup.go b/resource-manager/devtestlab/2018-09-15/labs/method_listbyresourcegroup.go index da2793b66a1..1d7a75cd0ce 100644 --- a/resource-manager/devtestlab/2018-09-15/labs/method_listbyresourcegroup.go +++ b/resource-manager/devtestlab/2018-09-15/labs/method_listbyresourcegroup.go @@ -63,6 +63,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c LabsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -71,8 +83,9 @@ func (c LabsClient) ListByResourceGroup(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DevTestLab/labs", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DevTestLab/labs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/labs/method_listbysubscription.go b/resource-manager/devtestlab/2018-09-15/labs/method_listbysubscription.go index 00b24bc2d3c..2eef6907401 100644 --- a/resource-manager/devtestlab/2018-09-15/labs/method_listbysubscription.go +++ b/resource-manager/devtestlab/2018-09-15/labs/method_listbysubscription.go @@ -63,6 +63,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c LabsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -71,8 +83,9 @@ func (c LabsClient) ListBySubscription(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.DevTestLab/labs", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DevTestLab/labs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/labs/method_listvhds.go b/resource-manager/devtestlab/2018-09-15/labs/method_listvhds.go index 282afbc6504..e3e5b115409 100644 --- a/resource-manager/devtestlab/2018-09-15/labs/method_listvhds.go +++ b/resource-manager/devtestlab/2018-09-15/labs/method_listvhds.go @@ -23,6 +23,18 @@ type ListVhdsCompleteResult struct { Items []LabVhd } +type ListVhdsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVhdsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVhds ... func (c LabsClient) ListVhds(ctx context.Context, id LabId) (result ListVhdsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LabsClient) ListVhds(ctx context.Context, id LabId) (result ListVhdsOper http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListVhdsCustomPager{}, Path: fmt.Sprintf("%s/listVhds", id.ID()), } diff --git a/resource-manager/devtestlab/2018-09-15/notificationchannels/method_get.go b/resource-manager/devtestlab/2018-09-15/notificationchannels/method_get.go index f1935f1bdb8..f3fbb9871a4 100644 --- a/resource-manager/devtestlab/2018-09-15/notificationchannels/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/notificationchannels/method_get.go @@ -53,8 +53,8 @@ func (c NotificationChannelsClient) Get(ctx context.Context, id NotificationChan http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/notificationchannels/method_list.go b/resource-manager/devtestlab/2018-09-15/notificationchannels/method_list.go index d2f2ad86b5a..996e68c9514 100644 --- a/resource-manager/devtestlab/2018-09-15/notificationchannels/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/notificationchannels/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NotificationChannelsClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c NotificationChannelsClient) List(ctx context.Context, id LabId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/notificationChannels", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/notificationChannels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/policies/method_get.go b/resource-manager/devtestlab/2018-09-15/policies/method_get.go index dff91ee67d2..ea46a7e0130 100644 --- a/resource-manager/devtestlab/2018-09-15/policies/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/policies/method_get.go @@ -53,8 +53,8 @@ func (c PoliciesClient) Get(ctx context.Context, id PolicyId, options GetOperati http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/policies/method_list.go b/resource-manager/devtestlab/2018-09-15/policies/method_list.go index ab4c5576419..789e43c7c74 100644 --- a/resource-manager/devtestlab/2018-09-15/policies/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/policies/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PoliciesClient) List(ctx context.Context, id PolicySetId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c PoliciesClient) List(ctx context.Context, id PolicySetId, options ListOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/policies", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/policies", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/schedules/method_get.go b/resource-manager/devtestlab/2018-09-15/schedules/method_get.go index 6aa5b1da600..157c3f02de5 100644 --- a/resource-manager/devtestlab/2018-09-15/schedules/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/schedules/method_get.go @@ -53,8 +53,8 @@ func (c SchedulesClient) Get(ctx context.Context, id LabScheduleId, options GetO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/schedules/method_list.go b/resource-manager/devtestlab/2018-09-15/schedules/method_list.go index a30023bbf43..e1e1629428a 100644 --- a/resource-manager/devtestlab/2018-09-15/schedules/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/schedules/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SchedulesClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c SchedulesClient) List(ctx context.Context, id LabId, options ListOperati http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schedules", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/schedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/schedules/method_listapplicable.go b/resource-manager/devtestlab/2018-09-15/schedules/method_listapplicable.go index 3a5a7cbb20f..6390618a816 100644 --- a/resource-manager/devtestlab/2018-09-15/schedules/method_listapplicable.go +++ b/resource-manager/devtestlab/2018-09-15/schedules/method_listapplicable.go @@ -23,6 +23,18 @@ type ListApplicableCompleteResult struct { Items []Schedule } +type ListApplicableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListApplicableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListApplicable ... func (c SchedulesClient) ListApplicable(ctx context.Context, id LabScheduleId) (result ListApplicableOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SchedulesClient) ListApplicable(ctx context.Context, id LabScheduleId) ( http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListApplicableCustomPager{}, Path: fmt.Sprintf("%s/listApplicable", id.ID()), } diff --git a/resource-manager/devtestlab/2018-09-15/secrets/method_get.go b/resource-manager/devtestlab/2018-09-15/secrets/method_get.go index 6e7366e8903..e066e589249 100644 --- a/resource-manager/devtestlab/2018-09-15/secrets/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/secrets/method_get.go @@ -53,8 +53,8 @@ func (c SecretsClient) Get(ctx context.Context, id SecretId, options GetOperatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/secrets/method_list.go b/resource-manager/devtestlab/2018-09-15/secrets/method_list.go index c4ec239de87..cc1a4f624f5 100644 --- a/resource-manager/devtestlab/2018-09-15/secrets/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/secrets/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecretsClient) List(ctx context.Context, id UserId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c SecretsClient) List(ctx context.Context, id UserId, options ListOperatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/secrets", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/secrets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/servicefabrics/method_get.go b/resource-manager/devtestlab/2018-09-15/servicefabrics/method_get.go index 00d23348df4..6b6a2af7ca2 100644 --- a/resource-manager/devtestlab/2018-09-15/servicefabrics/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/servicefabrics/method_get.go @@ -53,8 +53,8 @@ func (c ServiceFabricsClient) Get(ctx context.Context, id ServiceFabricId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/servicefabrics/method_list.go b/resource-manager/devtestlab/2018-09-15/servicefabrics/method_list.go index ec127665a52..5876eb9651f 100644 --- a/resource-manager/devtestlab/2018-09-15/servicefabrics/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/servicefabrics/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServiceFabricsClient) List(ctx context.Context, id UserId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ServiceFabricsClient) List(ctx context.Context, id UserId, options ListO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/serviceFabrics", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/serviceFabrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/servicefabricschedules/method_get.go b/resource-manager/devtestlab/2018-09-15/servicefabricschedules/method_get.go index 241ca5c5698..0f9d18887b8 100644 --- a/resource-manager/devtestlab/2018-09-15/servicefabricschedules/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/servicefabricschedules/method_get.go @@ -53,8 +53,8 @@ func (c ServiceFabricSchedulesClient) Get(ctx context.Context, id ServiceFabricS http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/servicefabricschedules/method_list.go b/resource-manager/devtestlab/2018-09-15/servicefabricschedules/method_list.go index 7b6df3bb8a0..d91906a2ce8 100644 --- a/resource-manager/devtestlab/2018-09-15/servicefabricschedules/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/servicefabricschedules/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServiceFabricSchedulesClient) List(ctx context.Context, id ServiceFabricId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ServiceFabricSchedulesClient) List(ctx context.Context, id ServiceFabric http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schedules", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/schedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/users/method_get.go b/resource-manager/devtestlab/2018-09-15/users/method_get.go index 441b0bebdac..9ac848c44ff 100644 --- a/resource-manager/devtestlab/2018-09-15/users/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/users/method_get.go @@ -53,8 +53,8 @@ func (c UsersClient) Get(ctx context.Context, id UserId, options GetOperationOpt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/users/method_list.go b/resource-manager/devtestlab/2018-09-15/users/method_list.go index cfda860e9ab..82a3bc34b10 100644 --- a/resource-manager/devtestlab/2018-09-15/users/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/users/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UsersClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c UsersClient) List(ctx context.Context, id LabId, options ListOperationOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/users", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/users", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/virtualmachines/method_get.go b/resource-manager/devtestlab/2018-09-15/virtualmachines/method_get.go index 5adbfd8c24a..e7a04cfe4ec 100644 --- a/resource-manager/devtestlab/2018-09-15/virtualmachines/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/virtualmachines/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachinesClient) Get(ctx context.Context, id VirtualMachineId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/virtualmachines/method_list.go b/resource-manager/devtestlab/2018-09-15/virtualmachines/method_list.go index ba1d103f219..1cdf1f74d37 100644 --- a/resource-manager/devtestlab/2018-09-15/virtualmachines/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/virtualmachines/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachinesClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c VirtualMachinesClient) List(ctx context.Context, id LabId, options ListO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/virtualMachines", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/virtualMachines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/virtualmachineschedules/method_get.go b/resource-manager/devtestlab/2018-09-15/virtualmachineschedules/method_get.go index aef86582c26..5d04eacd772 100644 --- a/resource-manager/devtestlab/2018-09-15/virtualmachineschedules/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/virtualmachineschedules/method_get.go @@ -53,8 +53,8 @@ func (c VirtualMachineSchedulesClient) Get(ctx context.Context, id VirtualMachin http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/virtualmachineschedules/method_list.go b/resource-manager/devtestlab/2018-09-15/virtualmachineschedules/method_list.go index 194a8b61dbc..1ffd709dcd2 100644 --- a/resource-manager/devtestlab/2018-09-15/virtualmachineschedules/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/virtualmachineschedules/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineSchedulesClient) List(ctx context.Context, id VirtualMachineId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c VirtualMachineSchedulesClient) List(ctx context.Context, id VirtualMachi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schedules", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/schedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_get.go b/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_get.go index eeee3060e16..9e9262872fc 100644 --- a/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_get.go +++ b/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_get.go @@ -53,8 +53,8 @@ func (c VirtualNetworksClient) Get(ctx context.Context, id VirtualNetworkId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_list.go b/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_list.go index b345b48cd18..8d0feb63478 100644 --- a/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_list.go +++ b/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworksClient) List(ctx context.Context, id LabId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c VirtualNetworksClient) List(ctx context.Context, id LabId, options ListO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/virtualNetworks", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/virtualNetworks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/method_digitaltwinslist.go b/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/method_digitaltwinslist.go index 6f59363ad9d..c166487b807 100644 --- a/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/method_digitaltwinslist.go +++ b/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/method_digitaltwinslist.go @@ -24,6 +24,18 @@ type DigitalTwinsListCompleteResult struct { Items []DigitalTwinsDescription } +type DigitalTwinsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DigitalTwinsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DigitalTwinsList ... func (c DigitalTwinsInstanceClient) DigitalTwinsList(ctx context.Context, id commonids.SubscriptionId) (result DigitalTwinsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DigitalTwinsInstanceClient) DigitalTwinsList(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DigitalTwinsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DigitalTwins/digitalTwinsInstances", id.ID()), } diff --git a/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/method_digitaltwinslistbyresourcegroup.go b/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/method_digitaltwinslistbyresourcegroup.go index 3a3e861725a..4944d6b4ae4 100644 --- a/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/method_digitaltwinslistbyresourcegroup.go +++ b/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/method_digitaltwinslistbyresourcegroup.go @@ -24,6 +24,18 @@ type DigitalTwinsListByResourceGroupCompleteResult struct { Items []DigitalTwinsDescription } +type DigitalTwinsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DigitalTwinsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DigitalTwinsListByResourceGroup ... func (c DigitalTwinsInstanceClient) DigitalTwinsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result DigitalTwinsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DigitalTwinsInstanceClient) DigitalTwinsListByResourceGroup(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DigitalTwinsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DigitalTwins/digitalTwinsInstances", id.ID()), } diff --git a/resource-manager/digitaltwins/2023-01-31/endpoints/method_digitaltwinsendpointlist.go b/resource-manager/digitaltwins/2023-01-31/endpoints/method_digitaltwinsendpointlist.go index aa9cdbb945a..380ca5ede4a 100644 --- a/resource-manager/digitaltwins/2023-01-31/endpoints/method_digitaltwinsendpointlist.go +++ b/resource-manager/digitaltwins/2023-01-31/endpoints/method_digitaltwinsendpointlist.go @@ -23,6 +23,18 @@ type DigitalTwinsEndpointListCompleteResult struct { Items []DigitalTwinsEndpointResource } +type DigitalTwinsEndpointListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DigitalTwinsEndpointListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DigitalTwinsEndpointList ... func (c EndpointsClient) DigitalTwinsEndpointList(ctx context.Context, id DigitalTwinsInstanceId) (result DigitalTwinsEndpointListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c EndpointsClient) DigitalTwinsEndpointList(ctx context.Context, id Digita http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DigitalTwinsEndpointListCustomPager{}, Path: fmt.Sprintf("%s/endpoints", id.ID()), } diff --git a/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_delete.go b/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_delete.go index 2e1b1d6012d..a1472cd43c8 100644 --- a/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_delete.go +++ b/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_delete.go @@ -58,8 +58,8 @@ func (c TimeSeriesDatabaseConnectionsClient) Delete(ctx context.Context, id Time http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_list.go b/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_list.go index a77fcfa9167..f9176128cdd 100644 --- a/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_list.go +++ b/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []TimeSeriesDatabaseConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TimeSeriesDatabaseConnectionsClient) List(ctx context.Context, id DigitalTwinsInstanceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TimeSeriesDatabaseConnectionsClient) List(ctx context.Context, id Digita http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/timeSeriesDatabaseConnections", id.ID()), } diff --git a/resource-manager/dns/2018-05-01/recordsets/method_createorupdate.go b/resource-manager/dns/2018-05-01/recordsets/method_createorupdate.go index 4ff596d3f6b..da283847699 100644 --- a/resource-manager/dns/2018-05-01/recordsets/method_createorupdate.go +++ b/resource-manager/dns/2018-05-01/recordsets/method_createorupdate.go @@ -58,8 +58,8 @@ func (c RecordSetsClient) CreateOrUpdate(ctx context.Context, id RecordTypeId, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dns/2018-05-01/recordsets/method_delete.go b/resource-manager/dns/2018-05-01/recordsets/method_delete.go index c5c4fbff38f..bac259d0f30 100644 --- a/resource-manager/dns/2018-05-01/recordsets/method_delete.go +++ b/resource-manager/dns/2018-05-01/recordsets/method_delete.go @@ -53,8 +53,8 @@ func (c RecordSetsClient) Delete(ctx context.Context, id RecordTypeId, options D http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dns/2018-05-01/recordsets/method_listallbydnszone.go b/resource-manager/dns/2018-05-01/recordsets/method_listallbydnszone.go index 84bb02ccd18..fb39799f39d 100644 --- a/resource-manager/dns/2018-05-01/recordsets/method_listallbydnszone.go +++ b/resource-manager/dns/2018-05-01/recordsets/method_listallbydnszone.go @@ -54,6 +54,18 @@ func (o ListAllByDnsZoneOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAllByDnsZoneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllByDnsZoneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAllByDnsZone ... func (c RecordSetsClient) ListAllByDnsZone(ctx context.Context, id DnsZoneId, options ListAllByDnsZoneOperationOptions) (result ListAllByDnsZoneOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c RecordSetsClient) ListAllByDnsZone(ctx context.Context, id DnsZoneId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/all", id.ID()), OptionsObject: options, + Pager: &ListAllByDnsZoneCustomPager{}, + Path: fmt.Sprintf("%s/all", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dns/2018-05-01/recordsets/method_listbydnszone.go b/resource-manager/dns/2018-05-01/recordsets/method_listbydnszone.go index bfe7d136d8e..53bbafa4eb4 100644 --- a/resource-manager/dns/2018-05-01/recordsets/method_listbydnszone.go +++ b/resource-manager/dns/2018-05-01/recordsets/method_listbydnszone.go @@ -54,6 +54,18 @@ func (o ListByDnsZoneOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDnsZoneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDnsZoneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDnsZone ... func (c RecordSetsClient) ListByDnsZone(ctx context.Context, id DnsZoneId, options ListByDnsZoneOperationOptions) (result ListByDnsZoneOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c RecordSetsClient) ListByDnsZone(ctx context.Context, id DnsZoneId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recordsets", id.ID()), OptionsObject: options, + Pager: &ListByDnsZoneCustomPager{}, + Path: fmt.Sprintf("%s/recordsets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dns/2018-05-01/recordsets/method_listbytype.go b/resource-manager/dns/2018-05-01/recordsets/method_listbytype.go index 3b7d61dd64d..8931452b9f1 100644 --- a/resource-manager/dns/2018-05-01/recordsets/method_listbytype.go +++ b/resource-manager/dns/2018-05-01/recordsets/method_listbytype.go @@ -54,6 +54,18 @@ func (o ListByTypeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTypeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTypeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByType ... func (c RecordSetsClient) ListByType(ctx context.Context, id ZoneId, options ListByTypeOperationOptions) (result ListByTypeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c RecordSetsClient) ListByType(ctx context.Context, id ZoneId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Pager: &ListByTypeCustomPager{}, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dns/2018-05-01/recordsets/method_update.go b/resource-manager/dns/2018-05-01/recordsets/method_update.go index 3df9166486c..def3737e664 100644 --- a/resource-manager/dns/2018-05-01/recordsets/method_update.go +++ b/resource-manager/dns/2018-05-01/recordsets/method_update.go @@ -53,8 +53,8 @@ func (c RecordSetsClient) Update(ctx context.Context, id RecordTypeId, input Rec http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dns/2018-05-01/zones/method_createorupdate.go b/resource-manager/dns/2018-05-01/zones/method_createorupdate.go index 4b3f88cfc88..c778cdd95d1 100644 --- a/resource-manager/dns/2018-05-01/zones/method_createorupdate.go +++ b/resource-manager/dns/2018-05-01/zones/method_createorupdate.go @@ -58,8 +58,8 @@ func (c ZonesClient) CreateOrUpdate(ctx context.Context, id DnsZoneId, input Zon http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dns/2018-05-01/zones/method_delete.go b/resource-manager/dns/2018-05-01/zones/method_delete.go index 83ecfe3e298..a56b7a1b796 100644 --- a/resource-manager/dns/2018-05-01/zones/method_delete.go +++ b/resource-manager/dns/2018-05-01/zones/method_delete.go @@ -57,8 +57,8 @@ func (c ZonesClient) Delete(ctx context.Context, id DnsZoneId, options DeleteOpe http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dns/2018-05-01/zones/method_list.go b/resource-manager/dns/2018-05-01/zones/method_list.go index b61ad9d47dd..3668b92d34d 100644 --- a/resource-manager/dns/2018-05-01/zones/method_list.go +++ b/resource-manager/dns/2018-05-01/zones/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ZonesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ZonesClient) List(ctx context.Context, id commonids.SubscriptionId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/dnsZones", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/dnsZones", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dns/2018-05-01/zones/method_listbyresourcegroup.go b/resource-manager/dns/2018-05-01/zones/method_listbyresourcegroup.go index c669a401eac..b5b4df3a980 100644 --- a/resource-manager/dns/2018-05-01/zones/method_listbyresourcegroup.go +++ b/resource-manager/dns/2018-05-01/zones/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ZonesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ZonesClient) ListByResourceGroup(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/dnsZones", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/dnsZones", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dns/2018-05-01/zones/method_update.go b/resource-manager/dns/2018-05-01/zones/method_update.go index e28034dc1c1..1188fed264b 100644 --- a/resource-manager/dns/2018-05-01/zones/method_update.go +++ b/resource-manager/dns/2018-05-01/zones/method_update.go @@ -53,8 +53,8 @@ func (c ZonesClient) Update(ctx context.Context, id DnsZoneId, input ZoneUpdate, http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_createorupdate.go b/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_createorupdate.go index 0c55a130936..3d6c4a2373d 100644 --- a/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_createorupdate.go +++ b/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_createorupdate.go @@ -62,8 +62,8 @@ func (c DnsForwardingRulesetsClient) CreateOrUpdate(ctx context.Context, id DnsF http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_delete.go b/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_delete.go index f6a865c3e10..a8f0bfab4c8 100644 --- a/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_delete.go +++ b/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_delete.go @@ -57,8 +57,8 @@ func (c DnsForwardingRulesetsClient) Delete(ctx context.Context, id DnsForwardin http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_list.go b/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_list.go index 98292e812e9..6afbb99977a 100644 --- a/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_list.go +++ b/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DnsForwardingRulesetsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DnsForwardingRulesetsClient) List(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/dnsForwardingRulesets", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/dnsForwardingRulesets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyresourcegroup.go b/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyresourcegroup.go index a492b926574..5fb302c8449 100644 --- a/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyresourcegroup.go +++ b/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DnsForwardingRulesetsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DnsForwardingRulesetsClient) ListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/dnsForwardingRulesets", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/dnsForwardingRulesets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyvirtualnetwork.go b/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyvirtualnetwork.go index f42cf3e3ccd..93de0e5a47d 100644 --- a/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyvirtualnetwork.go +++ b/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyvirtualnetwork.go @@ -51,6 +51,18 @@ func (o ListByVirtualNetworkOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByVirtualNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVirtualNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVirtualNetwork ... func (c DnsForwardingRulesetsClient) ListByVirtualNetwork(ctx context.Context, id commonids.VirtualNetworkId, options ListByVirtualNetworkOperationOptions) (result ListByVirtualNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DnsForwardingRulesetsClient) ListByVirtualNetwork(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listDnsForwardingRulesets", id.ID()), OptionsObject: options, + Pager: &ListByVirtualNetworkCustomPager{}, + Path: fmt.Sprintf("%s/listDnsForwardingRulesets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_update.go b/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_update.go index bbd7a405d7c..63d1f23e528 100644 --- a/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_update.go +++ b/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_update.go @@ -57,8 +57,8 @@ func (c DnsForwardingRulesetsClient) Update(ctx context.Context, id DnsForwardin http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_createorupdate.go b/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_createorupdate.go index 6445fab12f8..454e8754e8b 100644 --- a/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_createorupdate.go +++ b/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_createorupdate.go @@ -62,8 +62,8 @@ func (c DnsResolversClient) CreateOrUpdate(ctx context.Context, id DnsResolverId http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_delete.go b/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_delete.go index 11f4264c5db..57d05da743f 100644 --- a/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_delete.go +++ b/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_delete.go @@ -57,8 +57,8 @@ func (c DnsResolversClient) Delete(ctx context.Context, id DnsResolverId, option http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_list.go b/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_list.go index 479dbff02c6..d9530c48f11 100644 --- a/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_list.go +++ b/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DnsResolversClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DnsResolversClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/dnsResolvers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/dnsResolvers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyresourcegroup.go b/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyresourcegroup.go index bcb9cf5c534..c5b524e452a 100644 --- a/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyresourcegroup.go +++ b/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DnsResolversClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DnsResolversClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/dnsResolvers", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/dnsResolvers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyvirtualnetwork.go b/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyvirtualnetwork.go index 0060224a731..0202c6bd9a7 100644 --- a/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyvirtualnetwork.go +++ b/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyvirtualnetwork.go @@ -51,6 +51,18 @@ func (o ListByVirtualNetworkOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByVirtualNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVirtualNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVirtualNetwork ... func (c DnsResolversClient) ListByVirtualNetwork(ctx context.Context, id commonids.VirtualNetworkId, options ListByVirtualNetworkOperationOptions) (result ListByVirtualNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DnsResolversClient) ListByVirtualNetwork(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listDnsResolvers", id.ID()), OptionsObject: options, + Pager: &ListByVirtualNetworkCustomPager{}, + Path: fmt.Sprintf("%s/listDnsResolvers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_update.go b/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_update.go index 0792be6d03d..8095368065b 100644 --- a/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_update.go +++ b/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_update.go @@ -57,8 +57,8 @@ func (c DnsResolversClient) Update(ctx context.Context, id DnsResolverId, input http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_createorupdate.go b/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_createorupdate.go index 83d8ee2d9c9..b3fcc356dd4 100644 --- a/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_createorupdate.go +++ b/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_createorupdate.go @@ -58,8 +58,8 @@ func (c ForwardingRulesClient) CreateOrUpdate(ctx context.Context, id Forwarding http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_delete.go b/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_delete.go index 72eec57f78f..a86e8a34c7e 100644 --- a/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_delete.go +++ b/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_delete.go @@ -53,8 +53,8 @@ func (c ForwardingRulesClient) Delete(ctx context.Context, id ForwardingRuleId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_list.go b/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_list.go index f28794eac07..c63f871e8ce 100644 --- a/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_list.go +++ b/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ForwardingRulesClient) List(ctx context.Context, id DnsForwardingRulesetId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ForwardingRulesClient) List(ctx context.Context, id DnsForwardingRuleset http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/forwardingRules", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/forwardingRules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_update.go b/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_update.go index f14e30a19ad..791adfcfb7d 100644 --- a/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_update.go +++ b/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_update.go @@ -53,8 +53,8 @@ func (c ForwardingRulesClient) Update(ctx context.Context, id ForwardingRuleId, http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_createorupdate.go b/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_createorupdate.go index 694858da340..37bafd6306f 100644 --- a/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_createorupdate.go +++ b/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_createorupdate.go @@ -62,8 +62,8 @@ func (c InboundEndpointsClient) CreateOrUpdate(ctx context.Context, id InboundEn http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_delete.go b/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_delete.go index 33ed21e37c5..2faab3aa846 100644 --- a/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_delete.go +++ b/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_delete.go @@ -57,8 +57,8 @@ func (c InboundEndpointsClient) Delete(ctx context.Context, id InboundEndpointId http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_list.go b/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_list.go index 9e339bcec50..7146d101779 100644 --- a/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_list.go +++ b/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c InboundEndpointsClient) List(ctx context.Context, id DnsResolverId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c InboundEndpointsClient) List(ctx context.Context, id DnsResolverId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/inboundEndpoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/inboundEndpoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_update.go b/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_update.go index 1af58ad7115..7b6e8dc464d 100644 --- a/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_update.go +++ b/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_update.go @@ -57,8 +57,8 @@ func (c InboundEndpointsClient) Update(ctx context.Context, id InboundEndpointId http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_createorupdate.go b/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_createorupdate.go index 661b59a11ae..aec013644a9 100644 --- a/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_createorupdate.go +++ b/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_createorupdate.go @@ -62,8 +62,8 @@ func (c OutboundEndpointsClient) CreateOrUpdate(ctx context.Context, id Outbound http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_delete.go b/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_delete.go index 2b631cf9903..2f787452f64 100644 --- a/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_delete.go +++ b/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_delete.go @@ -57,8 +57,8 @@ func (c OutboundEndpointsClient) Delete(ctx context.Context, id OutboundEndpoint http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_list.go b/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_list.go index 41345df8e7f..23f09bfc5e0 100644 --- a/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_list.go +++ b/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OutboundEndpointsClient) List(ctx context.Context, id DnsResolverId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c OutboundEndpointsClient) List(ctx context.Context, id DnsResolverId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/outboundEndpoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/outboundEndpoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_update.go b/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_update.go index 62c995cdb7c..2ae21a7d475 100644 --- a/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_update.go +++ b/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_update.go @@ -57,8 +57,8 @@ func (c OutboundEndpointsClient) Update(ctx context.Context, id OutboundEndpoint http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_createorupdate.go b/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_createorupdate.go index 9e184709fce..c6bc6fe5517 100644 --- a/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_createorupdate.go +++ b/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_createorupdate.go @@ -62,8 +62,8 @@ func (c VirtualNetworkLinksClient) CreateOrUpdate(ctx context.Context, id Virtua http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_delete.go b/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_delete.go index 96762dfd39d..d170aa216a1 100644 --- a/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_delete.go +++ b/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualNetworkLinksClient) Delete(ctx context.Context, id VirtualNetwork http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_list.go b/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_list.go index dc3888a655a..98123878eac 100644 --- a/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_list.go +++ b/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworkLinksClient) List(ctx context.Context, id DnsForwardingRulesetId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c VirtualNetworkLinksClient) List(ctx context.Context, id DnsForwardingRul http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/virtualNetworkLinks", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/virtualNetworkLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_update.go b/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_update.go index 7208c2953ba..1e1a06de269 100644 --- a/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_update.go +++ b/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_update.go @@ -57,8 +57,8 @@ func (c VirtualNetworkLinksClient) Update(ctx context.Context, id VirtualNetwork http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/dynatrace/2021-09-01/monitors/method_listappservices.go b/resource-manager/dynatrace/2021-09-01/monitors/method_listappservices.go index 294ce92af0c..6802f73d80a 100644 --- a/resource-manager/dynatrace/2021-09-01/monitors/method_listappservices.go +++ b/resource-manager/dynatrace/2021-09-01/monitors/method_listappservices.go @@ -23,6 +23,18 @@ type ListAppServicesCompleteResult struct { Items []AppServiceInfo } +type ListAppServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAppServices ... func (c MonitorsClient) ListAppServices(ctx context.Context, id MonitorId) (result ListAppServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListAppServices(ctx context.Context, id MonitorId) (resu http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListAppServicesCustomPager{}, Path: fmt.Sprintf("%s/listAppServices", id.ID()), } diff --git a/resource-manager/dynatrace/2021-09-01/monitors/method_listbyresourcegroup.go b/resource-manager/dynatrace/2021-09-01/monitors/method_listbyresourcegroup.go index 6a95edffcf6..1f16f7513cb 100644 --- a/resource-manager/dynatrace/2021-09-01/monitors/method_listbyresourcegroup.go +++ b/resource-manager/dynatrace/2021-09-01/monitors/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []MonitorResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c MonitorsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Dynatrace.Observability/monitors", id.ID()), } diff --git a/resource-manager/dynatrace/2021-09-01/monitors/method_listbysubscriptionid.go b/resource-manager/dynatrace/2021-09-01/monitors/method_listbysubscriptionid.go index e252f5c7064..f1b3eb5736d 100644 --- a/resource-manager/dynatrace/2021-09-01/monitors/method_listbysubscriptionid.go +++ b/resource-manager/dynatrace/2021-09-01/monitors/method_listbysubscriptionid.go @@ -24,6 +24,18 @@ type ListBySubscriptionIdCompleteResult struct { Items []MonitorResource } +type ListBySubscriptionIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscriptionId ... func (c MonitorsClient) ListBySubscriptionId(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsClient) ListBySubscriptionId(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionIdCustomPager{}, Path: fmt.Sprintf("%s/providers/Dynatrace.Observability/monitors", id.ID()), } diff --git a/resource-manager/dynatrace/2021-09-01/monitors/method_listhosts.go b/resource-manager/dynatrace/2021-09-01/monitors/method_listhosts.go index d0a9d4703e3..e4352ba0ab2 100644 --- a/resource-manager/dynatrace/2021-09-01/monitors/method_listhosts.go +++ b/resource-manager/dynatrace/2021-09-01/monitors/method_listhosts.go @@ -23,6 +23,18 @@ type ListHostsCompleteResult struct { Items []VMInfo } +type ListHostsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHostsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHosts ... func (c MonitorsClient) ListHosts(ctx context.Context, id MonitorId) (result ListHostsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListHosts(ctx context.Context, id MonitorId) (result Lis http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListHostsCustomPager{}, Path: fmt.Sprintf("%s/listHosts", id.ID()), } diff --git a/resource-manager/dynatrace/2021-09-01/monitors/method_listlinkableenvironments.go b/resource-manager/dynatrace/2021-09-01/monitors/method_listlinkableenvironments.go index b852ec5324f..d003433e729 100644 --- a/resource-manager/dynatrace/2021-09-01/monitors/method_listlinkableenvironments.go +++ b/resource-manager/dynatrace/2021-09-01/monitors/method_listlinkableenvironments.go @@ -23,6 +23,18 @@ type ListLinkableEnvironmentsCompleteResult struct { Items []LinkableEnvironmentResponse } +type ListLinkableEnvironmentsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListLinkableEnvironmentsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListLinkableEnvironments ... func (c MonitorsClient) ListLinkableEnvironments(ctx context.Context, id MonitorId, input LinkableEnvironmentRequest) (result ListLinkableEnvironmentsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListLinkableEnvironments(ctx context.Context, id Monitor http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListLinkableEnvironmentsCustomPager{}, Path: fmt.Sprintf("%s/listLinkableEnvironments", id.ID()), } diff --git a/resource-manager/dynatrace/2021-09-01/monitors/method_listmonitoredresources.go b/resource-manager/dynatrace/2021-09-01/monitors/method_listmonitoredresources.go index 581168f2718..d0bd5640be2 100644 --- a/resource-manager/dynatrace/2021-09-01/monitors/method_listmonitoredresources.go +++ b/resource-manager/dynatrace/2021-09-01/monitors/method_listmonitoredresources.go @@ -23,6 +23,18 @@ type ListMonitoredResourcesCompleteResult struct { Items []MonitoredResource } +type ListMonitoredResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMonitoredResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMonitoredResources ... func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId) (result ListMonitoredResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListMonitoredResourcesCustomPager{}, Path: fmt.Sprintf("%s/listMonitoredResources", id.ID()), } diff --git a/resource-manager/dynatrace/2021-09-01/singlesignon/method_list.go b/resource-manager/dynatrace/2021-09-01/singlesignon/method_list.go index ba3b4677e3a..4712baf39b0 100644 --- a/resource-manager/dynatrace/2021-09-01/singlesignon/method_list.go +++ b/resource-manager/dynatrace/2021-09-01/singlesignon/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []DynatraceSingleSignOnResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SingleSignOnClient) List(ctx context.Context, id MonitorId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SingleSignOnClient) List(ctx context.Context, id MonitorId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/singleSignOnConfigurations", id.ID()), } diff --git a/resource-manager/dynatrace/2021-09-01/tagrules/method_list.go b/resource-manager/dynatrace/2021-09-01/tagrules/method_list.go index 0c05c3d408a..6c952d3f97e 100644 --- a/resource-manager/dynatrace/2021-09-01/tagrules/method_list.go +++ b/resource-manager/dynatrace/2021-09-01/tagrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []TagRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TagRulesClient) List(ctx context.Context, id MonitorId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TagRulesClient) List(ctx context.Context, id MonitorId) (result ListOper http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/tagRules", id.ID()), } diff --git a/resource-manager/dynatrace/2023-04-27/monitors/method_listappservices.go b/resource-manager/dynatrace/2023-04-27/monitors/method_listappservices.go index 294ce92af0c..6802f73d80a 100644 --- a/resource-manager/dynatrace/2023-04-27/monitors/method_listappservices.go +++ b/resource-manager/dynatrace/2023-04-27/monitors/method_listappservices.go @@ -23,6 +23,18 @@ type ListAppServicesCompleteResult struct { Items []AppServiceInfo } +type ListAppServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAppServices ... func (c MonitorsClient) ListAppServices(ctx context.Context, id MonitorId) (result ListAppServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListAppServices(ctx context.Context, id MonitorId) (resu http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListAppServicesCustomPager{}, Path: fmt.Sprintf("%s/listAppServices", id.ID()), } diff --git a/resource-manager/dynatrace/2023-04-27/monitors/method_listbyresourcegroup.go b/resource-manager/dynatrace/2023-04-27/monitors/method_listbyresourcegroup.go index 6a95edffcf6..1f16f7513cb 100644 --- a/resource-manager/dynatrace/2023-04-27/monitors/method_listbyresourcegroup.go +++ b/resource-manager/dynatrace/2023-04-27/monitors/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []MonitorResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c MonitorsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Dynatrace.Observability/monitors", id.ID()), } diff --git a/resource-manager/dynatrace/2023-04-27/monitors/method_listbysubscriptionid.go b/resource-manager/dynatrace/2023-04-27/monitors/method_listbysubscriptionid.go index e252f5c7064..f1b3eb5736d 100644 --- a/resource-manager/dynatrace/2023-04-27/monitors/method_listbysubscriptionid.go +++ b/resource-manager/dynatrace/2023-04-27/monitors/method_listbysubscriptionid.go @@ -24,6 +24,18 @@ type ListBySubscriptionIdCompleteResult struct { Items []MonitorResource } +type ListBySubscriptionIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscriptionId ... func (c MonitorsClient) ListBySubscriptionId(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsClient) ListBySubscriptionId(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionIdCustomPager{}, Path: fmt.Sprintf("%s/providers/Dynatrace.Observability/monitors", id.ID()), } diff --git a/resource-manager/dynatrace/2023-04-27/monitors/method_listhosts.go b/resource-manager/dynatrace/2023-04-27/monitors/method_listhosts.go index d0a9d4703e3..e4352ba0ab2 100644 --- a/resource-manager/dynatrace/2023-04-27/monitors/method_listhosts.go +++ b/resource-manager/dynatrace/2023-04-27/monitors/method_listhosts.go @@ -23,6 +23,18 @@ type ListHostsCompleteResult struct { Items []VMInfo } +type ListHostsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHostsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHosts ... func (c MonitorsClient) ListHosts(ctx context.Context, id MonitorId) (result ListHostsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListHosts(ctx context.Context, id MonitorId) (result Lis http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListHostsCustomPager{}, Path: fmt.Sprintf("%s/listHosts", id.ID()), } diff --git a/resource-manager/dynatrace/2023-04-27/monitors/method_listlinkableenvironments.go b/resource-manager/dynatrace/2023-04-27/monitors/method_listlinkableenvironments.go index b852ec5324f..d003433e729 100644 --- a/resource-manager/dynatrace/2023-04-27/monitors/method_listlinkableenvironments.go +++ b/resource-manager/dynatrace/2023-04-27/monitors/method_listlinkableenvironments.go @@ -23,6 +23,18 @@ type ListLinkableEnvironmentsCompleteResult struct { Items []LinkableEnvironmentResponse } +type ListLinkableEnvironmentsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListLinkableEnvironmentsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListLinkableEnvironments ... func (c MonitorsClient) ListLinkableEnvironments(ctx context.Context, id MonitorId, input LinkableEnvironmentRequest) (result ListLinkableEnvironmentsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListLinkableEnvironments(ctx context.Context, id Monitor http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListLinkableEnvironmentsCustomPager{}, Path: fmt.Sprintf("%s/listLinkableEnvironments", id.ID()), } diff --git a/resource-manager/dynatrace/2023-04-27/monitors/method_listmonitoredresources.go b/resource-manager/dynatrace/2023-04-27/monitors/method_listmonitoredresources.go index 581168f2718..d0bd5640be2 100644 --- a/resource-manager/dynatrace/2023-04-27/monitors/method_listmonitoredresources.go +++ b/resource-manager/dynatrace/2023-04-27/monitors/method_listmonitoredresources.go @@ -23,6 +23,18 @@ type ListMonitoredResourcesCompleteResult struct { Items []MonitoredResource } +type ListMonitoredResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMonitoredResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMonitoredResources ... func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId) (result ListMonitoredResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListMonitoredResourcesCustomPager{}, Path: fmt.Sprintf("%s/listMonitoredResources", id.ID()), } diff --git a/resource-manager/dynatrace/2023-04-27/singlesignon/method_list.go b/resource-manager/dynatrace/2023-04-27/singlesignon/method_list.go index ba3b4677e3a..4712baf39b0 100644 --- a/resource-manager/dynatrace/2023-04-27/singlesignon/method_list.go +++ b/resource-manager/dynatrace/2023-04-27/singlesignon/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []DynatraceSingleSignOnResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SingleSignOnClient) List(ctx context.Context, id MonitorId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SingleSignOnClient) List(ctx context.Context, id MonitorId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/singleSignOnConfigurations", id.ID()), } diff --git a/resource-manager/dynatrace/2023-04-27/tagrules/method_list.go b/resource-manager/dynatrace/2023-04-27/tagrules/method_list.go index 0c05c3d408a..6c952d3f97e 100644 --- a/resource-manager/dynatrace/2023-04-27/tagrules/method_list.go +++ b/resource-manager/dynatrace/2023-04-27/tagrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []TagRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TagRulesClient) List(ctx context.Context, id MonitorId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TagRulesClient) List(ctx context.Context, id MonitorId) (result ListOper http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/tagRules", id.ID()), } diff --git a/resource-manager/elastic/2023-06-01/elasticversions/method_list.go b/resource-manager/elastic/2023-06-01/elasticversions/method_list.go index fcb1ba08f68..28ee1ce4701 100644 --- a/resource-manager/elastic/2023-06-01/elasticversions/method_list.go +++ b/resource-manager/elastic/2023-06-01/elasticversions/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ElasticVersionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ElasticVersionsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Elastic/elasticVersions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Elastic/elasticVersions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elastic/2023-06-01/monitoredresources/method_list.go b/resource-manager/elastic/2023-06-01/monitoredresources/method_list.go index 8ea4afadd9f..06bc13c62f9 100644 --- a/resource-manager/elastic/2023-06-01/monitoredresources/method_list.go +++ b/resource-manager/elastic/2023-06-01/monitoredresources/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MonitoredResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MonitoredResourcesClient) List(ctx context.Context, id MonitorId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitoredResourcesClient) List(ctx context.Context, id MonitorId) (resul http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/listMonitoredResources", id.ID()), } diff --git a/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorslist.go b/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorslist.go index 8668995031d..51c5fb597e5 100644 --- a/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorslist.go +++ b/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorslist.go @@ -24,6 +24,18 @@ type MonitorsListCompleteResult struct { Items []ElasticMonitorResource } +type MonitorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsList ... func (c MonitorsResourceClient) MonitorsList(ctx context.Context, id commonids.SubscriptionId) (result MonitorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsResourceClient) MonitorsList(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MonitorsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Elastic/monitors", id.ID()), } diff --git a/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorslistbyresourcegroup.go b/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorslistbyresourcegroup.go index e4dfd9e3b85..f9c2480f320 100644 --- a/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorslistbyresourcegroup.go +++ b/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorslistbyresourcegroup.go @@ -24,6 +24,18 @@ type MonitorsListByResourceGroupCompleteResult struct { Items []ElasticMonitorResource } +type MonitorsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListByResourceGroup ... func (c MonitorsResourceClient) MonitorsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result MonitorsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsResourceClient) MonitorsListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MonitorsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Elastic/monitors", id.ID()), } diff --git a/resource-manager/elastic/2023-06-01/rules/method_tagruleslist.go b/resource-manager/elastic/2023-06-01/rules/method_tagruleslist.go index 630aeab9792..07a4cb77f27 100644 --- a/resource-manager/elastic/2023-06-01/rules/method_tagruleslist.go +++ b/resource-manager/elastic/2023-06-01/rules/method_tagruleslist.go @@ -23,6 +23,18 @@ type TagRulesListCompleteResult struct { Items []MonitoringTagRules } +type TagRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TagRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TagRulesList ... func (c RulesClient) TagRulesList(ctx context.Context, id MonitorId) (result TagRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RulesClient) TagRulesList(ctx context.Context, id MonitorId) (result Tag http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &TagRulesListCustomPager{}, Path: fmt.Sprintf("%s/tagRules", id.ID()), } diff --git a/resource-manager/elastic/2023-06-01/trafficfilter/method_associatetrafficfilterassociate.go b/resource-manager/elastic/2023-06-01/trafficfilter/method_associatetrafficfilterassociate.go index 2060cd441a4..f352f0bf59a 100644 --- a/resource-manager/elastic/2023-06-01/trafficfilter/method_associatetrafficfilterassociate.go +++ b/resource-manager/elastic/2023-06-01/trafficfilter/method_associatetrafficfilterassociate.go @@ -55,8 +55,8 @@ func (c TrafficFilterClient) AssociateTrafficFilterAssociate(ctx context.Context http.StatusAccepted, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/associateTrafficFilter", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/associateTrafficFilter", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elastic/2023-06-01/trafficfilter/method_createandassociateipfiltercreate.go b/resource-manager/elastic/2023-06-01/trafficfilter/method_createandassociateipfiltercreate.go index a95b2ee1c40..1ef08b568b9 100644 --- a/resource-manager/elastic/2023-06-01/trafficfilter/method_createandassociateipfiltercreate.go +++ b/resource-manager/elastic/2023-06-01/trafficfilter/method_createandassociateipfiltercreate.go @@ -60,8 +60,8 @@ func (c TrafficFilterClient) CreateAndAssociateIPFilterCreate(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/createAndAssociateIPFilter", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/createAndAssociateIPFilter", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elastic/2023-06-01/trafficfilter/method_createandassociateplfiltercreate.go b/resource-manager/elastic/2023-06-01/trafficfilter/method_createandassociateplfiltercreate.go index fa4df7ee6ce..10af333d4a0 100644 --- a/resource-manager/elastic/2023-06-01/trafficfilter/method_createandassociateplfiltercreate.go +++ b/resource-manager/elastic/2023-06-01/trafficfilter/method_createandassociateplfiltercreate.go @@ -64,8 +64,8 @@ func (c TrafficFilterClient) CreateAndAssociatePLFilterCreate(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/createAndAssociatePLFilter", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/createAndAssociatePLFilter", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elastic/2023-06-01/trafficfilter/method_delete.go b/resource-manager/elastic/2023-06-01/trafficfilter/method_delete.go index be52f27189f..e3539d97044 100644 --- a/resource-manager/elastic/2023-06-01/trafficfilter/method_delete.go +++ b/resource-manager/elastic/2023-06-01/trafficfilter/method_delete.go @@ -52,8 +52,8 @@ func (c TrafficFilterClient) Delete(ctx context.Context, id MonitorId, options D http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/deleteTrafficFilter", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/deleteTrafficFilter", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elastic/2023-06-01/trafficfilter/method_detachanddeletetrafficfilterdelete.go b/resource-manager/elastic/2023-06-01/trafficfilter/method_detachanddeletetrafficfilterdelete.go index 7610df5566e..b6de18ba3b4 100644 --- a/resource-manager/elastic/2023-06-01/trafficfilter/method_detachanddeletetrafficfilterdelete.go +++ b/resource-manager/elastic/2023-06-01/trafficfilter/method_detachanddeletetrafficfilterdelete.go @@ -52,8 +52,8 @@ func (c TrafficFilterClient) DetachAndDeleteTrafficFilterDelete(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/detachAndDeleteTrafficFilter", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/detachAndDeleteTrafficFilter", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elastic/2023-06-01/trafficfilter/method_detachtrafficfilterupdate.go b/resource-manager/elastic/2023-06-01/trafficfilter/method_detachtrafficfilterupdate.go index 08dc04f8844..db8fe54452c 100644 --- a/resource-manager/elastic/2023-06-01/trafficfilter/method_detachtrafficfilterupdate.go +++ b/resource-manager/elastic/2023-06-01/trafficfilter/method_detachtrafficfilterupdate.go @@ -55,8 +55,8 @@ func (c TrafficFilterClient) DetachTrafficFilterUpdate(ctx context.Context, id M http.StatusAccepted, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/detachTrafficFilter", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/detachTrafficFilter", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elastic/2023-06-01/vmhhostlist/method_vmhostlist.go b/resource-manager/elastic/2023-06-01/vmhhostlist/method_vmhostlist.go index ab738f88fd0..3a2eba7562f 100644 --- a/resource-manager/elastic/2023-06-01/vmhhostlist/method_vmhostlist.go +++ b/resource-manager/elastic/2023-06-01/vmhhostlist/method_vmhostlist.go @@ -23,6 +23,18 @@ type VMHostListCompleteResult struct { Items []VMResources } +type VMHostListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VMHostListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VMHostList ... func (c VMHHostListClient) VMHostList(ctx context.Context, id MonitorId) (result VMHostListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMHHostListClient) VMHostList(ctx context.Context, id MonitorId) (result http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &VMHostListCustomPager{}, Path: fmt.Sprintf("%s/listVMHost", id.ID()), } diff --git a/resource-manager/elastic/2024-03-01/connectedresources/method_connectedpartnerresourceslist.go b/resource-manager/elastic/2024-03-01/connectedresources/method_connectedpartnerresourceslist.go index c2808c4674b..55c9168618e 100644 --- a/resource-manager/elastic/2024-03-01/connectedresources/method_connectedpartnerresourceslist.go +++ b/resource-manager/elastic/2024-03-01/connectedresources/method_connectedpartnerresourceslist.go @@ -23,6 +23,18 @@ type ConnectedPartnerResourcesListCompleteResult struct { Items []ConnectedPartnerResourcesListFormat } +type ConnectedPartnerResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConnectedPartnerResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConnectedPartnerResourcesList ... func (c ConnectedResourcesClient) ConnectedPartnerResourcesList(ctx context.Context, id MonitorId) (result ConnectedPartnerResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectedResourcesClient) ConnectedPartnerResourcesList(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ConnectedPartnerResourcesListCustomPager{}, Path: fmt.Sprintf("%s/listConnectedPartnerResources", id.ID()), } diff --git a/resource-manager/elastic/2024-03-01/elasticversions/method_list.go b/resource-manager/elastic/2024-03-01/elasticversions/method_list.go index fcb1ba08f68..28ee1ce4701 100644 --- a/resource-manager/elastic/2024-03-01/elasticversions/method_list.go +++ b/resource-manager/elastic/2024-03-01/elasticversions/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ElasticVersionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ElasticVersionsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Elastic/elasticVersions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Elastic/elasticVersions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elastic/2024-03-01/monitoredresources/method_list.go b/resource-manager/elastic/2024-03-01/monitoredresources/method_list.go index 8ea4afadd9f..06bc13c62f9 100644 --- a/resource-manager/elastic/2024-03-01/monitoredresources/method_list.go +++ b/resource-manager/elastic/2024-03-01/monitoredresources/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MonitoredResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MonitoredResourcesClient) List(ctx context.Context, id MonitorId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitoredResourcesClient) List(ctx context.Context, id MonitorId) (resul http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/listMonitoredResources", id.ID()), } diff --git a/resource-manager/elastic/2024-03-01/monitorsresource/method_monitorslist.go b/resource-manager/elastic/2024-03-01/monitorsresource/method_monitorslist.go index 8668995031d..51c5fb597e5 100644 --- a/resource-manager/elastic/2024-03-01/monitorsresource/method_monitorslist.go +++ b/resource-manager/elastic/2024-03-01/monitorsresource/method_monitorslist.go @@ -24,6 +24,18 @@ type MonitorsListCompleteResult struct { Items []ElasticMonitorResource } +type MonitorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsList ... func (c MonitorsResourceClient) MonitorsList(ctx context.Context, id commonids.SubscriptionId) (result MonitorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsResourceClient) MonitorsList(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MonitorsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Elastic/monitors", id.ID()), } diff --git a/resource-manager/elastic/2024-03-01/monitorsresource/method_monitorslistbyresourcegroup.go b/resource-manager/elastic/2024-03-01/monitorsresource/method_monitorslistbyresourcegroup.go index e4dfd9e3b85..f9c2480f320 100644 --- a/resource-manager/elastic/2024-03-01/monitorsresource/method_monitorslistbyresourcegroup.go +++ b/resource-manager/elastic/2024-03-01/monitorsresource/method_monitorslistbyresourcegroup.go @@ -24,6 +24,18 @@ type MonitorsListByResourceGroupCompleteResult struct { Items []ElasticMonitorResource } +type MonitorsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListByResourceGroup ... func (c MonitorsResourceClient) MonitorsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result MonitorsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsResourceClient) MonitorsListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MonitorsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Elastic/monitors", id.ID()), } diff --git a/resource-manager/elastic/2024-03-01/openaiintegration/method_openailist.go b/resource-manager/elastic/2024-03-01/openaiintegration/method_openailist.go index 8ee60568064..7de5ee682bc 100644 --- a/resource-manager/elastic/2024-03-01/openaiintegration/method_openailist.go +++ b/resource-manager/elastic/2024-03-01/openaiintegration/method_openailist.go @@ -23,6 +23,18 @@ type OpenAIListCompleteResult struct { Items []OpenAIIntegrationRPModel } +type OpenAIListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *OpenAIListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // OpenAIList ... func (c OpenAIIntegrationClient) OpenAIList(ctx context.Context, id MonitorId) (result OpenAIListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c OpenAIIntegrationClient) OpenAIList(ctx context.Context, id MonitorId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &OpenAIListCustomPager{}, Path: fmt.Sprintf("%s/openAIIntegrations", id.ID()), } diff --git a/resource-manager/elastic/2024-03-01/rules/method_tagruleslist.go b/resource-manager/elastic/2024-03-01/rules/method_tagruleslist.go index 630aeab9792..07a4cb77f27 100644 --- a/resource-manager/elastic/2024-03-01/rules/method_tagruleslist.go +++ b/resource-manager/elastic/2024-03-01/rules/method_tagruleslist.go @@ -23,6 +23,18 @@ type TagRulesListCompleteResult struct { Items []MonitoringTagRules } +type TagRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TagRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TagRulesList ... func (c RulesClient) TagRulesList(ctx context.Context, id MonitorId) (result TagRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RulesClient) TagRulesList(ctx context.Context, id MonitorId) (result Tag http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &TagRulesListCustomPager{}, Path: fmt.Sprintf("%s/tagRules", id.ID()), } diff --git a/resource-manager/elastic/2024-03-01/trafficfilter/method_associatetrafficfilterassociate.go b/resource-manager/elastic/2024-03-01/trafficfilter/method_associatetrafficfilterassociate.go index 2060cd441a4..f352f0bf59a 100644 --- a/resource-manager/elastic/2024-03-01/trafficfilter/method_associatetrafficfilterassociate.go +++ b/resource-manager/elastic/2024-03-01/trafficfilter/method_associatetrafficfilterassociate.go @@ -55,8 +55,8 @@ func (c TrafficFilterClient) AssociateTrafficFilterAssociate(ctx context.Context http.StatusAccepted, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/associateTrafficFilter", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/associateTrafficFilter", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elastic/2024-03-01/trafficfilter/method_createandassociateipfiltercreate.go b/resource-manager/elastic/2024-03-01/trafficfilter/method_createandassociateipfiltercreate.go index a95b2ee1c40..1ef08b568b9 100644 --- a/resource-manager/elastic/2024-03-01/trafficfilter/method_createandassociateipfiltercreate.go +++ b/resource-manager/elastic/2024-03-01/trafficfilter/method_createandassociateipfiltercreate.go @@ -60,8 +60,8 @@ func (c TrafficFilterClient) CreateAndAssociateIPFilterCreate(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/createAndAssociateIPFilter", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/createAndAssociateIPFilter", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elastic/2024-03-01/trafficfilter/method_createandassociateplfiltercreate.go b/resource-manager/elastic/2024-03-01/trafficfilter/method_createandassociateplfiltercreate.go index fa4df7ee6ce..10af333d4a0 100644 --- a/resource-manager/elastic/2024-03-01/trafficfilter/method_createandassociateplfiltercreate.go +++ b/resource-manager/elastic/2024-03-01/trafficfilter/method_createandassociateplfiltercreate.go @@ -64,8 +64,8 @@ func (c TrafficFilterClient) CreateAndAssociatePLFilterCreate(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/createAndAssociatePLFilter", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/createAndAssociatePLFilter", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elastic/2024-03-01/trafficfilter/method_delete.go b/resource-manager/elastic/2024-03-01/trafficfilter/method_delete.go index be52f27189f..e3539d97044 100644 --- a/resource-manager/elastic/2024-03-01/trafficfilter/method_delete.go +++ b/resource-manager/elastic/2024-03-01/trafficfilter/method_delete.go @@ -52,8 +52,8 @@ func (c TrafficFilterClient) Delete(ctx context.Context, id MonitorId, options D http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/deleteTrafficFilter", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/deleteTrafficFilter", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elastic/2024-03-01/trafficfilter/method_detachanddeletetrafficfilterdelete.go b/resource-manager/elastic/2024-03-01/trafficfilter/method_detachanddeletetrafficfilterdelete.go index 7610df5566e..b6de18ba3b4 100644 --- a/resource-manager/elastic/2024-03-01/trafficfilter/method_detachanddeletetrafficfilterdelete.go +++ b/resource-manager/elastic/2024-03-01/trafficfilter/method_detachanddeletetrafficfilterdelete.go @@ -52,8 +52,8 @@ func (c TrafficFilterClient) DetachAndDeleteTrafficFilterDelete(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/detachAndDeleteTrafficFilter", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/detachAndDeleteTrafficFilter", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elastic/2024-03-01/trafficfilter/method_detachtrafficfilterupdate.go b/resource-manager/elastic/2024-03-01/trafficfilter/method_detachtrafficfilterupdate.go index 08dc04f8844..db8fe54452c 100644 --- a/resource-manager/elastic/2024-03-01/trafficfilter/method_detachtrafficfilterupdate.go +++ b/resource-manager/elastic/2024-03-01/trafficfilter/method_detachtrafficfilterupdate.go @@ -55,8 +55,8 @@ func (c TrafficFilterClient) DetachTrafficFilterUpdate(ctx context.Context, id M http.StatusAccepted, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/detachTrafficFilter", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/detachTrafficFilter", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elastic/2024-03-01/vmhhostlist/method_vmhostlist.go b/resource-manager/elastic/2024-03-01/vmhhostlist/method_vmhostlist.go index ab738f88fd0..3a2eba7562f 100644 --- a/resource-manager/elastic/2024-03-01/vmhhostlist/method_vmhostlist.go +++ b/resource-manager/elastic/2024-03-01/vmhhostlist/method_vmhostlist.go @@ -23,6 +23,18 @@ type VMHostListCompleteResult struct { Items []VMResources } +type VMHostListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VMHostListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VMHostList ... func (c VMHHostListClient) VMHostList(ctx context.Context, id MonitorId) (result VMHostListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMHHostListClient) VMHostList(ctx context.Context, id MonitorId) (result http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &VMHostListCustomPager{}, Path: fmt.Sprintf("%s/listVMHost", id.ID()), } diff --git a/resource-manager/elasticsan/2023-01-01/elasticsan/method_listbyresourcegroup.go b/resource-manager/elasticsan/2023-01-01/elasticsan/method_listbyresourcegroup.go index fe5c3a315a8..b90f85dc7a4 100644 --- a/resource-manager/elasticsan/2023-01-01/elasticsan/method_listbyresourcegroup.go +++ b/resource-manager/elasticsan/2023-01-01/elasticsan/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ElasticSan } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ElasticSanClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ElasticSanClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ElasticSan/elasticSans", id.ID()), } diff --git a/resource-manager/elasticsan/2023-01-01/elasticsans/method_listbysubscription.go b/resource-manager/elasticsan/2023-01-01/elasticsans/method_listbysubscription.go index b71bd3b7175..98891705a22 100644 --- a/resource-manager/elasticsan/2023-01-01/elasticsans/method_listbysubscription.go +++ b/resource-manager/elasticsan/2023-01-01/elasticsans/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ElasticSan } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ElasticSansClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ElasticSansClient) ListBySubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ElasticSan/elasticSans", id.ID()), } diff --git a/resource-manager/elasticsan/2023-01-01/elasticsanskus/method_skuslist.go b/resource-manager/elasticsan/2023-01-01/elasticsanskus/method_skuslist.go index 11c2c3dfaa4..6dd24ff9f5d 100644 --- a/resource-manager/elasticsan/2023-01-01/elasticsanskus/method_skuslist.go +++ b/resource-manager/elasticsan/2023-01-01/elasticsanskus/method_skuslist.go @@ -51,6 +51,18 @@ func (o SkusListOperationOptions) ToQuery() *client.QueryParams { return &out } +type SkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SkusList ... func (c ElasticSanSkusClient) SkusList(ctx context.Context, id commonids.SubscriptionId, options SkusListOperationOptions) (result SkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ElasticSanSkusClient) SkusList(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.ElasticSan/skus", id.ID()), OptionsObject: options, + Pager: &SkusListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.ElasticSan/skus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elasticsan/2023-01-01/privateendpointconnections/method_list.go b/resource-manager/elasticsan/2023-01-01/privateendpointconnections/method_list.go index 7b85b242932..5af5da982be 100644 --- a/resource-manager/elasticsan/2023-01-01/privateendpointconnections/method_list.go +++ b/resource-manager/elasticsan/2023-01-01/privateendpointconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id ElasticSanId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id ElasticSa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/elasticsan/2023-01-01/privatelinkresources/method_listbyelasticsan.go b/resource-manager/elasticsan/2023-01-01/privatelinkresources/method_listbyelasticsan.go index 6e4ce04c750..f960c3cf8ac 100644 --- a/resource-manager/elasticsan/2023-01-01/privatelinkresources/method_listbyelasticsan.go +++ b/resource-manager/elasticsan/2023-01-01/privatelinkresources/method_listbyelasticsan.go @@ -23,6 +23,18 @@ type ListByElasticSanCompleteResult struct { Items []PrivateLinkResource } +type ListByElasticSanCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByElasticSanCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByElasticSan ... func (c PrivateLinkResourcesClient) ListByElasticSan(ctx context.Context, id ElasticSanId) (result ListByElasticSanOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) ListByElasticSan(ctx context.Context, id Ela http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByElasticSanCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/elasticsan/2023-01-01/snapshots/method_volumesnapshotslistbyvolumegroup.go b/resource-manager/elasticsan/2023-01-01/snapshots/method_volumesnapshotslistbyvolumegroup.go index 25b3830ba4f..44fdd973eed 100644 --- a/resource-manager/elasticsan/2023-01-01/snapshots/method_volumesnapshotslistbyvolumegroup.go +++ b/resource-manager/elasticsan/2023-01-01/snapshots/method_volumesnapshotslistbyvolumegroup.go @@ -50,6 +50,18 @@ func (o VolumeSnapshotsListByVolumeGroupOperationOptions) ToQuery() *client.Quer return &out } +type VolumeSnapshotsListByVolumeGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VolumeSnapshotsListByVolumeGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VolumeSnapshotsListByVolumeGroup ... func (c SnapshotsClient) VolumeSnapshotsListByVolumeGroup(ctx context.Context, id VolumeGroupId, options VolumeSnapshotsListByVolumeGroupOperationOptions) (result VolumeSnapshotsListByVolumeGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SnapshotsClient) VolumeSnapshotsListByVolumeGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/snapshots", id.ID()), OptionsObject: options, + Pager: &VolumeSnapshotsListByVolumeGroupCustomPager{}, + Path: fmt.Sprintf("%s/snapshots", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elasticsan/2023-01-01/volumegroups/method_listbyelasticsan.go b/resource-manager/elasticsan/2023-01-01/volumegroups/method_listbyelasticsan.go index 423f37dda13..2e96b67970b 100644 --- a/resource-manager/elasticsan/2023-01-01/volumegroups/method_listbyelasticsan.go +++ b/resource-manager/elasticsan/2023-01-01/volumegroups/method_listbyelasticsan.go @@ -23,6 +23,18 @@ type ListByElasticSanCompleteResult struct { Items []VolumeGroup } +type ListByElasticSanCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByElasticSanCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByElasticSan ... func (c VolumeGroupsClient) ListByElasticSan(ctx context.Context, id ElasticSanId) (result ListByElasticSanOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VolumeGroupsClient) ListByElasticSan(ctx context.Context, id ElasticSanI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByElasticSanCustomPager{}, Path: fmt.Sprintf("%s/volumeGroups", id.ID()), } diff --git a/resource-manager/elasticsan/2023-01-01/volumes/method_delete.go b/resource-manager/elasticsan/2023-01-01/volumes/method_delete.go index f1b5ccc9560..1ba07cae1c0 100644 --- a/resource-manager/elasticsan/2023-01-01/volumes/method_delete.go +++ b/resource-manager/elasticsan/2023-01-01/volumes/method_delete.go @@ -61,8 +61,8 @@ func (c VolumesClient) Delete(ctx context.Context, id VolumeId, options DeleteOp http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elasticsan/2023-01-01/volumes/method_listbyvolumegroup.go b/resource-manager/elasticsan/2023-01-01/volumes/method_listbyvolumegroup.go index ab60b05f226..203e7541ecd 100644 --- a/resource-manager/elasticsan/2023-01-01/volumes/method_listbyvolumegroup.go +++ b/resource-manager/elasticsan/2023-01-01/volumes/method_listbyvolumegroup.go @@ -23,6 +23,18 @@ type ListByVolumeGroupCompleteResult struct { Items []Volume } +type ListByVolumeGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVolumeGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVolumeGroup ... func (c VolumesClient) ListByVolumeGroup(ctx context.Context, id VolumeGroupId) (result ListByVolumeGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VolumesClient) ListByVolumeGroup(ctx context.Context, id VolumeGroupId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVolumeGroupCustomPager{}, Path: fmt.Sprintf("%s/volumes", id.ID()), } diff --git a/resource-manager/elasticsan/2024-05-01/elasticsan/method_listbyresourcegroup.go b/resource-manager/elasticsan/2024-05-01/elasticsan/method_listbyresourcegroup.go index fe5c3a315a8..b90f85dc7a4 100644 --- a/resource-manager/elasticsan/2024-05-01/elasticsan/method_listbyresourcegroup.go +++ b/resource-manager/elasticsan/2024-05-01/elasticsan/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ElasticSan } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ElasticSanClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ElasticSanClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ElasticSan/elasticSans", id.ID()), } diff --git a/resource-manager/elasticsan/2024-05-01/elasticsans/method_listbysubscription.go b/resource-manager/elasticsan/2024-05-01/elasticsans/method_listbysubscription.go index b71bd3b7175..98891705a22 100644 --- a/resource-manager/elasticsan/2024-05-01/elasticsans/method_listbysubscription.go +++ b/resource-manager/elasticsan/2024-05-01/elasticsans/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ElasticSan } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ElasticSansClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ElasticSansClient) ListBySubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ElasticSan/elasticSans", id.ID()), } diff --git a/resource-manager/elasticsan/2024-05-01/elasticsanskus/method_skuslist.go b/resource-manager/elasticsan/2024-05-01/elasticsanskus/method_skuslist.go index 11c2c3dfaa4..6dd24ff9f5d 100644 --- a/resource-manager/elasticsan/2024-05-01/elasticsanskus/method_skuslist.go +++ b/resource-manager/elasticsan/2024-05-01/elasticsanskus/method_skuslist.go @@ -51,6 +51,18 @@ func (o SkusListOperationOptions) ToQuery() *client.QueryParams { return &out } +type SkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SkusList ... func (c ElasticSanSkusClient) SkusList(ctx context.Context, id commonids.SubscriptionId, options SkusListOperationOptions) (result SkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ElasticSanSkusClient) SkusList(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.ElasticSan/skus", id.ID()), OptionsObject: options, + Pager: &SkusListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.ElasticSan/skus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elasticsan/2024-05-01/privateendpointconnections/method_list.go b/resource-manager/elasticsan/2024-05-01/privateendpointconnections/method_list.go index 7b85b242932..5af5da982be 100644 --- a/resource-manager/elasticsan/2024-05-01/privateendpointconnections/method_list.go +++ b/resource-manager/elasticsan/2024-05-01/privateendpointconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id ElasticSanId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id ElasticSa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/elasticsan/2024-05-01/privatelinkresources/method_listbyelasticsan.go b/resource-manager/elasticsan/2024-05-01/privatelinkresources/method_listbyelasticsan.go index 6e4ce04c750..f960c3cf8ac 100644 --- a/resource-manager/elasticsan/2024-05-01/privatelinkresources/method_listbyelasticsan.go +++ b/resource-manager/elasticsan/2024-05-01/privatelinkresources/method_listbyelasticsan.go @@ -23,6 +23,18 @@ type ListByElasticSanCompleteResult struct { Items []PrivateLinkResource } +type ListByElasticSanCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByElasticSanCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByElasticSan ... func (c PrivateLinkResourcesClient) ListByElasticSan(ctx context.Context, id ElasticSanId) (result ListByElasticSanOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) ListByElasticSan(ctx context.Context, id Ela http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByElasticSanCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/elasticsan/2024-05-01/snapshots/method_volumesnapshotslistbyvolumegroup.go b/resource-manager/elasticsan/2024-05-01/snapshots/method_volumesnapshotslistbyvolumegroup.go index 25b3830ba4f..44fdd973eed 100644 --- a/resource-manager/elasticsan/2024-05-01/snapshots/method_volumesnapshotslistbyvolumegroup.go +++ b/resource-manager/elasticsan/2024-05-01/snapshots/method_volumesnapshotslistbyvolumegroup.go @@ -50,6 +50,18 @@ func (o VolumeSnapshotsListByVolumeGroupOperationOptions) ToQuery() *client.Quer return &out } +type VolumeSnapshotsListByVolumeGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VolumeSnapshotsListByVolumeGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VolumeSnapshotsListByVolumeGroup ... func (c SnapshotsClient) VolumeSnapshotsListByVolumeGroup(ctx context.Context, id VolumeGroupId, options VolumeSnapshotsListByVolumeGroupOperationOptions) (result VolumeSnapshotsListByVolumeGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SnapshotsClient) VolumeSnapshotsListByVolumeGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/snapshots", id.ID()), OptionsObject: options, + Pager: &VolumeSnapshotsListByVolumeGroupCustomPager{}, + Path: fmt.Sprintf("%s/snapshots", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elasticsan/2024-05-01/volumegroups/method_listbyelasticsan.go b/resource-manager/elasticsan/2024-05-01/volumegroups/method_listbyelasticsan.go index 423f37dda13..2e96b67970b 100644 --- a/resource-manager/elasticsan/2024-05-01/volumegroups/method_listbyelasticsan.go +++ b/resource-manager/elasticsan/2024-05-01/volumegroups/method_listbyelasticsan.go @@ -23,6 +23,18 @@ type ListByElasticSanCompleteResult struct { Items []VolumeGroup } +type ListByElasticSanCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByElasticSanCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByElasticSan ... func (c VolumeGroupsClient) ListByElasticSan(ctx context.Context, id ElasticSanId) (result ListByElasticSanOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VolumeGroupsClient) ListByElasticSan(ctx context.Context, id ElasticSanI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByElasticSanCustomPager{}, Path: fmt.Sprintf("%s/volumeGroups", id.ID()), } diff --git a/resource-manager/elasticsan/2024-05-01/volumes/method_delete.go b/resource-manager/elasticsan/2024-05-01/volumes/method_delete.go index f1b5ccc9560..1ba07cae1c0 100644 --- a/resource-manager/elasticsan/2024-05-01/volumes/method_delete.go +++ b/resource-manager/elasticsan/2024-05-01/volumes/method_delete.go @@ -61,8 +61,8 @@ func (c VolumesClient) Delete(ctx context.Context, id VolumeId, options DeleteOp http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/elasticsan/2024-05-01/volumes/method_listbyvolumegroup.go b/resource-manager/elasticsan/2024-05-01/volumes/method_listbyvolumegroup.go index ab60b05f226..203e7541ecd 100644 --- a/resource-manager/elasticsan/2024-05-01/volumes/method_listbyvolumegroup.go +++ b/resource-manager/elasticsan/2024-05-01/volumes/method_listbyvolumegroup.go @@ -23,6 +23,18 @@ type ListByVolumeGroupCompleteResult struct { Items []Volume } +type ListByVolumeGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVolumeGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVolumeGroup ... func (c VolumesClient) ListByVolumeGroup(ctx context.Context, id VolumeGroupId) (result ListByVolumeGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VolumesClient) ListByVolumeGroup(ctx context.Context, id VolumeGroupId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVolumeGroupCustomPager{}, Path: fmt.Sprintf("%s/volumes", id.ID()), } diff --git a/resource-manager/eventgrid/2022-06-15/channels/method_listbypartnernamespace.go b/resource-manager/eventgrid/2022-06-15/channels/method_listbypartnernamespace.go index 5592e197d78..49c21e5d821 100644 --- a/resource-manager/eventgrid/2022-06-15/channels/method_listbypartnernamespace.go +++ b/resource-manager/eventgrid/2022-06-15/channels/method_listbypartnernamespace.go @@ -54,6 +54,18 @@ func (o ListByPartnerNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByPartnerNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPartnerNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPartnerNamespace ... func (c ChannelsClient) ListByPartnerNamespace(ctx context.Context, id PartnerNamespaceId, options ListByPartnerNamespaceOperationOptions) (result ListByPartnerNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ChannelsClient) ListByPartnerNamespace(ctx context.Context, id PartnerNa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/channels", id.ID()), OptionsObject: options, + Pager: &ListByPartnerNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/channels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/domains/method_listbyresourcegroup.go b/resource-manager/eventgrid/2022-06-15/domains/method_listbyresourcegroup.go index 17c3da70bd8..b793c81e83c 100644 --- a/resource-manager/eventgrid/2022-06-15/domains/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2022-06-15/domains/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DomainsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DomainsClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/domains", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/domains", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/domains/method_listbysubscription.go b/resource-manager/eventgrid/2022-06-15/domains/method_listbysubscription.go index 41096b5c469..9f6e9c9d05b 100644 --- a/resource-manager/eventgrid/2022-06-15/domains/method_listbysubscription.go +++ b/resource-manager/eventgrid/2022-06-15/domains/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DomainsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DomainsClient) ListBySubscription(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/domains", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/domains", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/domaintopics/method_listbydomain.go b/resource-manager/eventgrid/2022-06-15/domaintopics/method_listbydomain.go index 9a3625ca321..4651caedf5b 100644 --- a/resource-manager/eventgrid/2022-06-15/domaintopics/method_listbydomain.go +++ b/resource-manager/eventgrid/2022-06-15/domaintopics/method_listbydomain.go @@ -54,6 +54,18 @@ func (o ListByDomainOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDomainCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDomainCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDomain ... func (c DomainTopicsClient) ListByDomain(ctx context.Context, id DomainId, options ListByDomainOperationOptions) (result ListByDomainOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c DomainTopicsClient) ListByDomain(ctx context.Context, id DomainId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/topics", id.ID()), OptionsObject: options, + Pager: &ListByDomainCustomPager{}, + Path: fmt.Sprintf("%s/topics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionslist.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionslist.go index e4cda12e6e0..42004520924 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionslist.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionslist.go @@ -54,6 +54,18 @@ func (o DomainEventSubscriptionsListOperationOptions) ToQuery() *client.QueryPar return &out } +type DomainEventSubscriptionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DomainEventSubscriptionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DomainEventSubscriptionsList ... func (c EventSubscriptionsClient) DomainEventSubscriptionsList(ctx context.Context, id DomainId, options DomainEventSubscriptionsListOperationOptions) (result DomainEventSubscriptionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) DomainEventSubscriptionsList(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &DomainEventSubscriptionsListCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionslist.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionslist.go index 798137ca570..8e3ffb34d28 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionslist.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionslist.go @@ -54,6 +54,18 @@ func (o DomainTopicEventSubscriptionsListOperationOptions) ToQuery() *client.Que return &out } +type DomainTopicEventSubscriptionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DomainTopicEventSubscriptionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DomainTopicEventSubscriptionsList ... func (c EventSubscriptionsClient) DomainTopicEventSubscriptionsList(ctx context.Context, id DomainTopicId, options DomainTopicEventSubscriptionsListOperationOptions) (result DomainTopicEventSubscriptionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) DomainTopicEventSubscriptionsList(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &DomainTopicEventSubscriptionsListCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbydomaintopic.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbydomaintopic.go index a97991d6c26..4a638a74722 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbydomaintopic.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbydomaintopic.go @@ -54,6 +54,18 @@ func (o ListByDomainTopicOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDomainTopicCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDomainTopicCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDomainTopic ... func (c EventSubscriptionsClient) ListByDomainTopic(ctx context.Context, id DomainTopicId, options ListByDomainTopicOperationOptions) (result ListByDomainTopicOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) ListByDomainTopic(ctx context.Context, id Doma http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListByDomainTopicCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbyresource.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbyresource.go index 822c277ce48..8b99a4bb3fa 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbyresource.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbyresource.go @@ -55,6 +55,18 @@ func (o ListByResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResource ... func (c EventSubscriptionsClient) ListByResource(ctx context.Context, id commonids.ScopeId, options ListByResourceOperationOptions) (result ListByResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c EventSubscriptionsClient) ListByResource(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListByResourceCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroup.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroup.go index 690e65a401a..fb150fef62f 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroup.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListGlobalByResourceGroupOperationOptions) ToQuery() *client.QueryParams return &out } +type ListGlobalByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListGlobalByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListGlobalByResourceGroup ... func (c EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListGlobalByResourceGroupOperationOptions) (result ListGlobalByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListGlobalByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroupfortopictype.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroupfortopictype.go index 766e5cb40ce..219a6798cab 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroupfortopictype.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroupfortopictype.go @@ -54,6 +54,18 @@ func (o ListGlobalByResourceGroupForTopicTypeOperationOptions) ToQuery() *client return &out } +type ListGlobalByResourceGroupForTopicTypeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListGlobalByResourceGroupForTopicTypeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListGlobalByResourceGroupForTopicType ... func (c EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx context.Context, id ResourceGroupProviderTopicTypeId, options ListGlobalByResourceGroupForTopicTypeOperationOptions) (result ListGlobalByResourceGroupForTopicTypeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListGlobalByResourceGroupForTopicTypeCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscription.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscription.go index 127c86904d0..f90051169bf 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscription.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscription.go @@ -55,6 +55,18 @@ func (o ListGlobalBySubscriptionOperationOptions) ToQuery() *client.QueryParams return &out } +type ListGlobalBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListGlobalBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListGlobalBySubscription ... func (c EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListGlobalBySubscriptionOperationOptions) (result ListGlobalBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListGlobalBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscriptionfortopictype.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscriptionfortopictype.go index 18c19a8865f..acef9347884 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscriptionfortopictype.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscriptionfortopictype.go @@ -54,6 +54,18 @@ func (o ListGlobalBySubscriptionForTopicTypeOperationOptions) ToQuery() *client. return &out } +type ListGlobalBySubscriptionForTopicTypeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListGlobalBySubscriptionForTopicTypeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListGlobalBySubscriptionForTopicType ... func (c EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx context.Context, id ProviderTopicTypeId, options ListGlobalBySubscriptionForTopicTypeOperationOptions) (result ListGlobalBySubscriptionForTopicTypeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListGlobalBySubscriptionForTopicTypeCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroup.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroup.go index 413802bfac4..6c25ecd8ec5 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroup.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroup.go @@ -54,6 +54,18 @@ func (o ListRegionalByResourceGroupOperationOptions) ToQuery() *client.QueryPara return &out } +type ListRegionalByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRegionalByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRegionalByResourceGroup ... func (c EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.Context, id ProviderLocationId, options ListRegionalByResourceGroupOperationOptions) (result ListRegionalByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListRegionalByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroupfortopictype.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroupfortopictype.go index 390eb93271a..eb5cb67bd6b 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroupfortopictype.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroupfortopictype.go @@ -54,6 +54,18 @@ func (o ListRegionalByResourceGroupForTopicTypeOperationOptions) ToQuery() *clie return &out } +type ListRegionalByResourceGroupForTopicTypeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRegionalByResourceGroupForTopicTypeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRegionalByResourceGroupForTopicType ... func (c EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(ctx context.Context, id ProviderLocationTopicTypeId, options ListRegionalByResourceGroupForTopicTypeOperationOptions) (result ListRegionalByResourceGroupForTopicTypeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListRegionalByResourceGroupForTopicTypeCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscription.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscription.go index 0d4b507d4b5..1ca5c1df4b3 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscription.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscription.go @@ -54,6 +54,18 @@ func (o ListRegionalBySubscriptionOperationOptions) ToQuery() *client.QueryParam return &out } +type ListRegionalBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRegionalBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRegionalBySubscription ... func (c EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Context, id LocationId, options ListRegionalBySubscriptionOperationOptions) (result ListRegionalBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListRegionalBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscriptionfortopictype.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscriptionfortopictype.go index 66c5dfe58db..bf76a249348 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscriptionfortopictype.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscriptionfortopictype.go @@ -54,6 +54,18 @@ func (o ListRegionalBySubscriptionForTopicTypeOperationOptions) ToQuery() *clien return &out } +type ListRegionalBySubscriptionForTopicTypeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRegionalBySubscriptionForTopicTypeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRegionalBySubscriptionForTopicType ... func (c EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ctx context.Context, id LocationTopicTypeId, options ListRegionalBySubscriptionForTopicTypeOperationOptions) (result ListRegionalBySubscriptionForTopicTypeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListRegionalBySubscriptionForTopicTypeCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionslistbypartnertopic.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionslistbypartnertopic.go index 17e732881c1..873f970532f 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionslistbypartnertopic.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionslistbypartnertopic.go @@ -54,6 +54,18 @@ func (o PartnerTopicEventSubscriptionsListByPartnerTopicOperationOptions) ToQuer return &out } +type PartnerTopicEventSubscriptionsListByPartnerTopicCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PartnerTopicEventSubscriptionsListByPartnerTopicCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PartnerTopicEventSubscriptionsListByPartnerTopic ... func (c EventSubscriptionsClient) PartnerTopicEventSubscriptionsListByPartnerTopic(ctx context.Context, id PartnerTopicId, options PartnerTopicEventSubscriptionsListByPartnerTopicOperationOptions) (result PartnerTopicEventSubscriptionsListByPartnerTopicOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) PartnerTopicEventSubscriptionsListByPartnerTop http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &PartnerTopicEventSubscriptionsListByPartnerTopicCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionslistbysystemtopic.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionslistbysystemtopic.go index a5d05bd21f6..5428359059b 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionslistbysystemtopic.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionslistbysystemtopic.go @@ -54,6 +54,18 @@ func (o SystemTopicEventSubscriptionsListBySystemTopicOperationOptions) ToQuery( return &out } +type SystemTopicEventSubscriptionsListBySystemTopicCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SystemTopicEventSubscriptionsListBySystemTopicCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SystemTopicEventSubscriptionsListBySystemTopic ... func (c EventSubscriptionsClient) SystemTopicEventSubscriptionsListBySystemTopic(ctx context.Context, id SystemTopicId, options SystemTopicEventSubscriptionsListBySystemTopicOperationOptions) (result SystemTopicEventSubscriptionsListBySystemTopicOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) SystemTopicEventSubscriptionsListBySystemTopic http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &SystemTopicEventSubscriptionsListBySystemTopicCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionslist.go b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionslist.go index 60149cfc5a2..fd1ace3bff7 100644 --- a/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionslist.go +++ b/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionslist.go @@ -54,6 +54,18 @@ func (o TopicEventSubscriptionsListOperationOptions) ToQuery() *client.QueryPara return &out } +type TopicEventSubscriptionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TopicEventSubscriptionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TopicEventSubscriptionsList ... func (c EventSubscriptionsClient) TopicEventSubscriptionsList(ctx context.Context, id TopicId, options TopicEventSubscriptionsListOperationOptions) (result TopicEventSubscriptionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) TopicEventSubscriptionsList(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &TopicEventSubscriptionsListCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_listbyresourcegroup.go b/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_listbyresourcegroup.go index 129824f9eaf..0edb4846916 100644 --- a/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []PartnerConfiguration } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PartnerConfigurationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PartnerConfigurationsClient) ListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerConfigurations", id.ID()), } diff --git a/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_listbysubscription.go b/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_listbysubscription.go index 8f8b77223e0..b2664083fe2 100644 --- a/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_listbysubscription.go +++ b/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PartnerConfigurationsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerConfigurationsClient) ListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerConfigurations", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbyresourcegroup.go b/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbyresourcegroup.go index ecf93f42ec9..73f19ca4eea 100644 --- a/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PartnerNamespacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerNamespacesClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerNamespaces", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerNamespaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbysubscription.go b/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbysubscription.go index f9daa57fd0f..5cea56ba9bb 100644 --- a/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbysubscription.go +++ b/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PartnerNamespacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerNamespacesClient) ListBySubscription(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerNamespaces", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerNamespaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbyresourcegroup.go b/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbyresourcegroup.go index f039585ca5d..8da1cb23a34 100644 --- a/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PartnerRegistrationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerRegistrationsClient) ListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerRegistrations", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerRegistrations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbysubscription.go b/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbysubscription.go index 7dbc5c042af..921b13c6f9a 100644 --- a/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbysubscription.go +++ b/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PartnerRegistrationsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerRegistrationsClient) ListBySubscription(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerRegistrations", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerRegistrations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbyresourcegroup.go b/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbyresourcegroup.go index 4ee8ddc9584..0ffc6566a8c 100644 --- a/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PartnerTopicsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerTopicsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerTopics", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerTopics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbysubscription.go b/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbysubscription.go index efa638b843c..1ed231e02ad 100644 --- a/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbysubscription.go +++ b/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PartnerTopicsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerTopicsClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerTopics", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerTopics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/privateendpointconnections/method_listbyresource.go b/resource-manager/eventgrid/2022-06-15/privateendpointconnections/method_listbyresource.go index fe6d1a0a88c..4218ee362a8 100644 --- a/resource-manager/eventgrid/2022-06-15/privateendpointconnections/method_listbyresource.go +++ b/resource-manager/eventgrid/2022-06-15/privateendpointconnections/method_listbyresource.go @@ -55,6 +55,18 @@ func (o ListByResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResource ... func (c PrivateEndpointConnectionsClient) ListByResource(ctx context.Context, id commonids.ScopeId, options ListByResourceOperationOptions) (result ListByResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PrivateEndpointConnectionsClient) ListByResource(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), OptionsObject: options, + Pager: &ListByResourceCustomPager{}, + Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/privatelinkresources/method_listbyresource.go b/resource-manager/eventgrid/2022-06-15/privatelinkresources/method_listbyresource.go index 04f9478ae8b..9f9dcd49707 100644 --- a/resource-manager/eventgrid/2022-06-15/privatelinkresources/method_listbyresource.go +++ b/resource-manager/eventgrid/2022-06-15/privatelinkresources/method_listbyresource.go @@ -55,6 +55,18 @@ func (o ListByResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResource ... func (c PrivateLinkResourcesClient) ListByResource(ctx context.Context, id commonids.ScopeId, options ListByResourceOperationOptions) (result ListByResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PrivateLinkResourcesClient) ListByResource(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), OptionsObject: options, + Pager: &ListByResourceCustomPager{}, + Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbyresourcegroup.go b/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbyresourcegroup.go index 6cba8fb92c7..04b5a7090c9 100644 --- a/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SystemTopicsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c SystemTopicsClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/systemTopics", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/systemTopics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbysubscription.go b/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbysubscription.go index a199fd7e25e..5424d6f67ff 100644 --- a/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbysubscription.go +++ b/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SystemTopicsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c SystemTopicsClient) ListBySubscription(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/systemTopics", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/systemTopics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/topics/method_listbyresourcegroup.go b/resource-manager/eventgrid/2022-06-15/topics/method_listbyresourcegroup.go index 6d1303a2d93..b322ef0d4af 100644 --- a/resource-manager/eventgrid/2022-06-15/topics/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2022-06-15/topics/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c TopicsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c TopicsClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/topics", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/topics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/topics/method_listbysubscription.go b/resource-manager/eventgrid/2022-06-15/topics/method_listbysubscription.go index 367c93a9639..a4f4ebfc334 100644 --- a/resource-manager/eventgrid/2022-06-15/topics/method_listbysubscription.go +++ b/resource-manager/eventgrid/2022-06-15/topics/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c TopicsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c TopicsClient) ListBySubscription(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/topics", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/topics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2022-06-15/verifiedpartners/method_list.go b/resource-manager/eventgrid/2022-06-15/verifiedpartners/method_list.go index 164b3946a62..9229769b5dc 100644 --- a/resource-manager/eventgrid/2022-06-15/verifiedpartners/method_list.go +++ b/resource-manager/eventgrid/2022-06-15/verifiedpartners/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VerifiedPartnersClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c VerifiedPartnersClient) List(ctx context.Context, options ListOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.EventGrid/verifiedPartners", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.EventGrid/verifiedPartners", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/cacertificates/method_listbynamespace.go b/resource-manager/eventgrid/2023-12-15-preview/cacertificates/method_listbynamespace.go index 6608615a1f3..788282c1f73 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/cacertificates/method_listbynamespace.go +++ b/resource-manager/eventgrid/2023-12-15-preview/cacertificates/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c CaCertificatesClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c CaCertificatesClient) ListByNamespace(ctx context.Context, id NamespaceI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/caCertificates", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/caCertificates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/channels/method_listbypartnernamespace.go b/resource-manager/eventgrid/2023-12-15-preview/channels/method_listbypartnernamespace.go index 5592e197d78..49c21e5d821 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/channels/method_listbypartnernamespace.go +++ b/resource-manager/eventgrid/2023-12-15-preview/channels/method_listbypartnernamespace.go @@ -54,6 +54,18 @@ func (o ListByPartnerNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByPartnerNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPartnerNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPartnerNamespace ... func (c ChannelsClient) ListByPartnerNamespace(ctx context.Context, id PartnerNamespaceId, options ListByPartnerNamespaceOperationOptions) (result ListByPartnerNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ChannelsClient) ListByPartnerNamespace(ctx context.Context, id PartnerNa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/channels", id.ID()), OptionsObject: options, + Pager: &ListByPartnerNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/channels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/clientgroups/method_listbynamespace.go b/resource-manager/eventgrid/2023-12-15-preview/clientgroups/method_listbynamespace.go index 819c4b4d7b8..aef6069581d 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/clientgroups/method_listbynamespace.go +++ b/resource-manager/eventgrid/2023-12-15-preview/clientgroups/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c ClientGroupsClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ClientGroupsClient) ListByNamespace(ctx context.Context, id NamespaceId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/clientGroups", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/clientGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/clients/method_listbynamespace.go b/resource-manager/eventgrid/2023-12-15-preview/clients/method_listbynamespace.go index d9939c99625..4d30123f3f2 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/clients/method_listbynamespace.go +++ b/resource-manager/eventgrid/2023-12-15-preview/clients/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c ClientsClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ClientsClient) ListByNamespace(ctx context.Context, id NamespaceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/clients", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/clients", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/domains/method_listbyresourcegroup.go b/resource-manager/eventgrid/2023-12-15-preview/domains/method_listbyresourcegroup.go index 17c3da70bd8..b793c81e83c 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/domains/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2023-12-15-preview/domains/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DomainsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DomainsClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/domains", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/domains", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/domains/method_listbysubscription.go b/resource-manager/eventgrid/2023-12-15-preview/domains/method_listbysubscription.go index 41096b5c469..9f6e9c9d05b 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/domains/method_listbysubscription.go +++ b/resource-manager/eventgrid/2023-12-15-preview/domains/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DomainsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DomainsClient) ListBySubscription(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/domains", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/domains", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/domaintopics/method_listbydomain.go b/resource-manager/eventgrid/2023-12-15-preview/domaintopics/method_listbydomain.go index 9a3625ca321..4651caedf5b 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/domaintopics/method_listbydomain.go +++ b/resource-manager/eventgrid/2023-12-15-preview/domaintopics/method_listbydomain.go @@ -54,6 +54,18 @@ func (o ListByDomainOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDomainCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDomainCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDomain ... func (c DomainTopicsClient) ListByDomain(ctx context.Context, id DomainId, options ListByDomainOperationOptions) (result ListByDomainOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c DomainTopicsClient) ListByDomain(ctx context.Context, id DomainId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/topics", id.ID()), OptionsObject: options, + Pager: &ListByDomainCustomPager{}, + Path: fmt.Sprintf("%s/topics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_domaineventsubscriptionslist.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_domaineventsubscriptionslist.go index e4cda12e6e0..42004520924 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_domaineventsubscriptionslist.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_domaineventsubscriptionslist.go @@ -54,6 +54,18 @@ func (o DomainEventSubscriptionsListOperationOptions) ToQuery() *client.QueryPar return &out } +type DomainEventSubscriptionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DomainEventSubscriptionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DomainEventSubscriptionsList ... func (c EventSubscriptionsClient) DomainEventSubscriptionsList(ctx context.Context, id DomainId, options DomainEventSubscriptionsListOperationOptions) (result DomainEventSubscriptionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) DomainEventSubscriptionsList(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &DomainEventSubscriptionsListCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_domaintopiceventsubscriptionslist.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_domaintopiceventsubscriptionslist.go index 798137ca570..8e3ffb34d28 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_domaintopiceventsubscriptionslist.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_domaintopiceventsubscriptionslist.go @@ -54,6 +54,18 @@ func (o DomainTopicEventSubscriptionsListOperationOptions) ToQuery() *client.Que return &out } +type DomainTopicEventSubscriptionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DomainTopicEventSubscriptionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DomainTopicEventSubscriptionsList ... func (c EventSubscriptionsClient) DomainTopicEventSubscriptionsList(ctx context.Context, id DomainTopicId, options DomainTopicEventSubscriptionsListOperationOptions) (result DomainTopicEventSubscriptionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) DomainTopicEventSubscriptionsList(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &DomainTopicEventSubscriptionsListCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listbydomaintopic.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listbydomaintopic.go index a97991d6c26..4a638a74722 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listbydomaintopic.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listbydomaintopic.go @@ -54,6 +54,18 @@ func (o ListByDomainTopicOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDomainTopicCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDomainTopicCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDomainTopic ... func (c EventSubscriptionsClient) ListByDomainTopic(ctx context.Context, id DomainTopicId, options ListByDomainTopicOperationOptions) (result ListByDomainTopicOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) ListByDomainTopic(ctx context.Context, id Doma http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListByDomainTopicCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listbyresource.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listbyresource.go index 822c277ce48..8b99a4bb3fa 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listbyresource.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listbyresource.go @@ -55,6 +55,18 @@ func (o ListByResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResource ... func (c EventSubscriptionsClient) ListByResource(ctx context.Context, id commonids.ScopeId, options ListByResourceOperationOptions) (result ListByResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c EventSubscriptionsClient) ListByResource(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListByResourceCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbyresourcegroup.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbyresourcegroup.go index 690e65a401a..fb150fef62f 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbyresourcegroup.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListGlobalByResourceGroupOperationOptions) ToQuery() *client.QueryParams return &out } +type ListGlobalByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListGlobalByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListGlobalByResourceGroup ... func (c EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListGlobalByResourceGroupOperationOptions) (result ListGlobalByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c EventSubscriptionsClient) ListGlobalByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListGlobalByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbyresourcegroupfortopictype.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbyresourcegroupfortopictype.go index 766e5cb40ce..219a6798cab 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbyresourcegroupfortopictype.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbyresourcegroupfortopictype.go @@ -54,6 +54,18 @@ func (o ListGlobalByResourceGroupForTopicTypeOperationOptions) ToQuery() *client return &out } +type ListGlobalByResourceGroupForTopicTypeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListGlobalByResourceGroupForTopicTypeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListGlobalByResourceGroupForTopicType ... func (c EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx context.Context, id ResourceGroupProviderTopicTypeId, options ListGlobalByResourceGroupForTopicTypeOperationOptions) (result ListGlobalByResourceGroupForTopicTypeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) ListGlobalByResourceGroupForTopicType(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListGlobalByResourceGroupForTopicTypeCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbysubscription.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbysubscription.go index 127c86904d0..f90051169bf 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbysubscription.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbysubscription.go @@ -55,6 +55,18 @@ func (o ListGlobalBySubscriptionOperationOptions) ToQuery() *client.QueryParams return &out } +type ListGlobalBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListGlobalBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListGlobalBySubscription ... func (c EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListGlobalBySubscriptionOperationOptions) (result ListGlobalBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c EventSubscriptionsClient) ListGlobalBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListGlobalBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbysubscriptionfortopictype.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbysubscriptionfortopictype.go index 18c19a8865f..acef9347884 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbysubscriptionfortopictype.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listglobalbysubscriptionfortopictype.go @@ -54,6 +54,18 @@ func (o ListGlobalBySubscriptionForTopicTypeOperationOptions) ToQuery() *client. return &out } +type ListGlobalBySubscriptionForTopicTypeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListGlobalBySubscriptionForTopicTypeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListGlobalBySubscriptionForTopicType ... func (c EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx context.Context, id ProviderTopicTypeId, options ListGlobalBySubscriptionForTopicTypeOperationOptions) (result ListGlobalBySubscriptionForTopicTypeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) ListGlobalBySubscriptionForTopicType(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListGlobalBySubscriptionForTopicTypeCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbyresourcegroup.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbyresourcegroup.go index 413802bfac4..6c25ecd8ec5 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbyresourcegroup.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbyresourcegroup.go @@ -54,6 +54,18 @@ func (o ListRegionalByResourceGroupOperationOptions) ToQuery() *client.QueryPara return &out } +type ListRegionalByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRegionalByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRegionalByResourceGroup ... func (c EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.Context, id ProviderLocationId, options ListRegionalByResourceGroupOperationOptions) (result ListRegionalByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) ListRegionalByResourceGroup(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListRegionalByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbyresourcegroupfortopictype.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbyresourcegroupfortopictype.go index 390eb93271a..eb5cb67bd6b 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbyresourcegroupfortopictype.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbyresourcegroupfortopictype.go @@ -54,6 +54,18 @@ func (o ListRegionalByResourceGroupForTopicTypeOperationOptions) ToQuery() *clie return &out } +type ListRegionalByResourceGroupForTopicTypeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRegionalByResourceGroupForTopicTypeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRegionalByResourceGroupForTopicType ... func (c EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(ctx context.Context, id ProviderLocationTopicTypeId, options ListRegionalByResourceGroupForTopicTypeOperationOptions) (result ListRegionalByResourceGroupForTopicTypeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) ListRegionalByResourceGroupForTopicType(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListRegionalByResourceGroupForTopicTypeCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbysubscription.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbysubscription.go index 0d4b507d4b5..1ca5c1df4b3 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbysubscription.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbysubscription.go @@ -54,6 +54,18 @@ func (o ListRegionalBySubscriptionOperationOptions) ToQuery() *client.QueryParam return &out } +type ListRegionalBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRegionalBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRegionalBySubscription ... func (c EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Context, id LocationId, options ListRegionalBySubscriptionOperationOptions) (result ListRegionalBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) ListRegionalBySubscription(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListRegionalBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbysubscriptionfortopictype.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbysubscriptionfortopictype.go index 66c5dfe58db..bf76a249348 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbysubscriptionfortopictype.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_listregionalbysubscriptionfortopictype.go @@ -54,6 +54,18 @@ func (o ListRegionalBySubscriptionForTopicTypeOperationOptions) ToQuery() *clien return &out } +type ListRegionalBySubscriptionForTopicTypeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRegionalBySubscriptionForTopicTypeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRegionalBySubscriptionForTopicType ... func (c EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ctx context.Context, id LocationTopicTypeId, options ListRegionalBySubscriptionForTopicTypeOperationOptions) (result ListRegionalBySubscriptionForTopicTypeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) ListRegionalBySubscriptionForTopicType(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListRegionalBySubscriptionForTopicTypeCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_namespacetopiceventsubscriptionslistbynamespacetopic.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_namespacetopiceventsubscriptionslistbynamespacetopic.go index 89d7be40e30..e8a53c78eb0 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_namespacetopiceventsubscriptionslistbynamespacetopic.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_namespacetopiceventsubscriptionslistbynamespacetopic.go @@ -54,6 +54,18 @@ func (o NamespaceTopicEventSubscriptionsListByNamespaceTopicOperationOptions) To return &out } +type NamespaceTopicEventSubscriptionsListByNamespaceTopicCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NamespaceTopicEventSubscriptionsListByNamespaceTopicCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NamespaceTopicEventSubscriptionsListByNamespaceTopic ... func (c EventSubscriptionsClient) NamespaceTopicEventSubscriptionsListByNamespaceTopic(ctx context.Context, id NamespaceTopicId, options NamespaceTopicEventSubscriptionsListByNamespaceTopicOperationOptions) (result NamespaceTopicEventSubscriptionsListByNamespaceTopicOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) NamespaceTopicEventSubscriptionsListByNamespac http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &NamespaceTopicEventSubscriptionsListByNamespaceTopicCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_partnertopiceventsubscriptionslistbypartnertopic.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_partnertopiceventsubscriptionslistbypartnertopic.go index 17e732881c1..873f970532f 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_partnertopiceventsubscriptionslistbypartnertopic.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_partnertopiceventsubscriptionslistbypartnertopic.go @@ -54,6 +54,18 @@ func (o PartnerTopicEventSubscriptionsListByPartnerTopicOperationOptions) ToQuer return &out } +type PartnerTopicEventSubscriptionsListByPartnerTopicCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PartnerTopicEventSubscriptionsListByPartnerTopicCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PartnerTopicEventSubscriptionsListByPartnerTopic ... func (c EventSubscriptionsClient) PartnerTopicEventSubscriptionsListByPartnerTopic(ctx context.Context, id PartnerTopicId, options PartnerTopicEventSubscriptionsListByPartnerTopicOperationOptions) (result PartnerTopicEventSubscriptionsListByPartnerTopicOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) PartnerTopicEventSubscriptionsListByPartnerTop http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &PartnerTopicEventSubscriptionsListByPartnerTopicCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_systemtopiceventsubscriptionslistbysystemtopic.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_systemtopiceventsubscriptionslistbysystemtopic.go index a5d05bd21f6..5428359059b 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_systemtopiceventsubscriptionslistbysystemtopic.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_systemtopiceventsubscriptionslistbysystemtopic.go @@ -54,6 +54,18 @@ func (o SystemTopicEventSubscriptionsListBySystemTopicOperationOptions) ToQuery( return &out } +type SystemTopicEventSubscriptionsListBySystemTopicCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SystemTopicEventSubscriptionsListBySystemTopicCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SystemTopicEventSubscriptionsListBySystemTopic ... func (c EventSubscriptionsClient) SystemTopicEventSubscriptionsListBySystemTopic(ctx context.Context, id SystemTopicId, options SystemTopicEventSubscriptionsListBySystemTopicOperationOptions) (result SystemTopicEventSubscriptionsListBySystemTopicOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) SystemTopicEventSubscriptionsListBySystemTopic http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &SystemTopicEventSubscriptionsListBySystemTopicCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_topiceventsubscriptionslist.go b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_topiceventsubscriptionslist.go index 60149cfc5a2..fd1ace3bff7 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_topiceventsubscriptionslist.go +++ b/resource-manager/eventgrid/2023-12-15-preview/eventsubscriptions/method_topiceventsubscriptionslist.go @@ -54,6 +54,18 @@ func (o TopicEventSubscriptionsListOperationOptions) ToQuery() *client.QueryPara return &out } +type TopicEventSubscriptionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TopicEventSubscriptionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TopicEventSubscriptionsList ... func (c EventSubscriptionsClient) TopicEventSubscriptionsList(ctx context.Context, id TopicId, options TopicEventSubscriptionsListOperationOptions) (result TopicEventSubscriptionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventSubscriptionsClient) TopicEventSubscriptionsList(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), OptionsObject: options, + Pager: &TopicEventSubscriptionsListCustomPager{}, + Path: fmt.Sprintf("%s/eventSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listbyresourcegroup.go b/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listbyresourcegroup.go index a8ca3f87103..29f53c42ce1 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/namespaces", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/namespaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listbysubscription.go b/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listbysubscription.go index 51e99d5e4fb..de45a811c55 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listbysubscription.go +++ b/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c NamespacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c NamespacesClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/namespaces", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/namespaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/namespacetopics/method_listbynamespace.go b/resource-manager/eventgrid/2023-12-15-preview/namespacetopics/method_listbynamespace.go index 87fe0239d9c..5bbf00172e1 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/namespacetopics/method_listbynamespace.go +++ b/resource-manager/eventgrid/2023-12-15-preview/namespacetopics/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c NamespaceTopicsClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c NamespaceTopicsClient) ListByNamespace(ctx context.Context, id Namespace http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/topics", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/topics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/partnerconfigurations/method_listbyresourcegroup.go b/resource-manager/eventgrid/2023-12-15-preview/partnerconfigurations/method_listbyresourcegroup.go index 129824f9eaf..0edb4846916 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/partnerconfigurations/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2023-12-15-preview/partnerconfigurations/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []PartnerConfiguration } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PartnerConfigurationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PartnerConfigurationsClient) ListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerConfigurations", id.ID()), } diff --git a/resource-manager/eventgrid/2023-12-15-preview/partnerconfigurations/method_listbysubscription.go b/resource-manager/eventgrid/2023-12-15-preview/partnerconfigurations/method_listbysubscription.go index 8f8b77223e0..b2664083fe2 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/partnerconfigurations/method_listbysubscription.go +++ b/resource-manager/eventgrid/2023-12-15-preview/partnerconfigurations/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PartnerConfigurationsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerConfigurationsClient) ListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerConfigurations", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/partnerdestinations/method_listbyresourcegroup.go b/resource-manager/eventgrid/2023-12-15-preview/partnerdestinations/method_listbyresourcegroup.go index a8cc585e214..75deb5bd6a8 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/partnerdestinations/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2023-12-15-preview/partnerdestinations/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PartnerDestinationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerDestinationsClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerDestinations", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerDestinations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/partnerdestinations/method_listbysubscription.go b/resource-manager/eventgrid/2023-12-15-preview/partnerdestinations/method_listbysubscription.go index 46c16c087ed..85e682cb87f 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/partnerdestinations/method_listbysubscription.go +++ b/resource-manager/eventgrid/2023-12-15-preview/partnerdestinations/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PartnerDestinationsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerDestinationsClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerDestinations", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerDestinations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/partnernamespaces/method_listbyresourcegroup.go b/resource-manager/eventgrid/2023-12-15-preview/partnernamespaces/method_listbyresourcegroup.go index ecf93f42ec9..73f19ca4eea 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/partnernamespaces/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2023-12-15-preview/partnernamespaces/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PartnerNamespacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerNamespacesClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerNamespaces", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerNamespaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/partnernamespaces/method_listbysubscription.go b/resource-manager/eventgrid/2023-12-15-preview/partnernamespaces/method_listbysubscription.go index f9daa57fd0f..5cea56ba9bb 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/partnernamespaces/method_listbysubscription.go +++ b/resource-manager/eventgrid/2023-12-15-preview/partnernamespaces/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PartnerNamespacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerNamespacesClient) ListBySubscription(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerNamespaces", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerNamespaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/partnerregistrations/method_listbyresourcegroup.go b/resource-manager/eventgrid/2023-12-15-preview/partnerregistrations/method_listbyresourcegroup.go index f039585ca5d..8da1cb23a34 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/partnerregistrations/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2023-12-15-preview/partnerregistrations/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PartnerRegistrationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerRegistrationsClient) ListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerRegistrations", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerRegistrations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/partnerregistrations/method_listbysubscription.go b/resource-manager/eventgrid/2023-12-15-preview/partnerregistrations/method_listbysubscription.go index 7dbc5c042af..921b13c6f9a 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/partnerregistrations/method_listbysubscription.go +++ b/resource-manager/eventgrid/2023-12-15-preview/partnerregistrations/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PartnerRegistrationsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerRegistrationsClient) ListBySubscription(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerRegistrations", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerRegistrations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/partnertopics/method_listbyresourcegroup.go b/resource-manager/eventgrid/2023-12-15-preview/partnertopics/method_listbyresourcegroup.go index 4ee8ddc9584..0ffc6566a8c 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/partnertopics/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2023-12-15-preview/partnertopics/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PartnerTopicsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerTopicsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerTopics", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerTopics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/partnertopics/method_listbysubscription.go b/resource-manager/eventgrid/2023-12-15-preview/partnertopics/method_listbysubscription.go index efa638b843c..1ed231e02ad 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/partnertopics/method_listbysubscription.go +++ b/resource-manager/eventgrid/2023-12-15-preview/partnertopics/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PartnerTopicsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PartnerTopicsClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerTopics", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/partnerTopics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/perimeterassociationproxies/method_networksecurityperimeterconfigurationslist.go b/resource-manager/eventgrid/2023-12-15-preview/perimeterassociationproxies/method_networksecurityperimeterconfigurationslist.go index cbf303850b3..4f33d8233ef 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/perimeterassociationproxies/method_networksecurityperimeterconfigurationslist.go +++ b/resource-manager/eventgrid/2023-12-15-preview/perimeterassociationproxies/method_networksecurityperimeterconfigurationslist.go @@ -24,6 +24,18 @@ type NetworkSecurityPerimeterConfigurationsListCompleteResult struct { Items []NetworkSecurityPerimeterConfiguration } +type NetworkSecurityPerimeterConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkSecurityPerimeterConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkSecurityPerimeterConfigurationsList ... func (c PerimeterAssociationProxiesClient) NetworkSecurityPerimeterConfigurationsList(ctx context.Context, id commonids.ScopeId) (result NetworkSecurityPerimeterConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PerimeterAssociationProxiesClient) NetworkSecurityPerimeterConfiguration http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkSecurityPerimeterConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/networkSecurityPerimeterConfigurations", id.ID()), } diff --git a/resource-manager/eventgrid/2023-12-15-preview/permissionbindings/method_listbynamespace.go b/resource-manager/eventgrid/2023-12-15-preview/permissionbindings/method_listbynamespace.go index 92143259617..e5d7fed0406 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/permissionbindings/method_listbynamespace.go +++ b/resource-manager/eventgrid/2023-12-15-preview/permissionbindings/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c PermissionBindingsClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c PermissionBindingsClient) ListByNamespace(ctx context.Context, id Namesp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/permissionBindings", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/permissionBindings", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/privateendpointconnections/method_listbyresource.go b/resource-manager/eventgrid/2023-12-15-preview/privateendpointconnections/method_listbyresource.go index fe6d1a0a88c..4218ee362a8 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/privateendpointconnections/method_listbyresource.go +++ b/resource-manager/eventgrid/2023-12-15-preview/privateendpointconnections/method_listbyresource.go @@ -55,6 +55,18 @@ func (o ListByResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResource ... func (c PrivateEndpointConnectionsClient) ListByResource(ctx context.Context, id commonids.ScopeId, options ListByResourceOperationOptions) (result ListByResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PrivateEndpointConnectionsClient) ListByResource(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), OptionsObject: options, + Pager: &ListByResourceCustomPager{}, + Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/privatelinkresources/method_listbyresource.go b/resource-manager/eventgrid/2023-12-15-preview/privatelinkresources/method_listbyresource.go index 04f9478ae8b..9f9dcd49707 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/privatelinkresources/method_listbyresource.go +++ b/resource-manager/eventgrid/2023-12-15-preview/privatelinkresources/method_listbyresource.go @@ -55,6 +55,18 @@ func (o ListByResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResource ... func (c PrivateLinkResourcesClient) ListByResource(ctx context.Context, id commonids.ScopeId, options ListByResourceOperationOptions) (result ListByResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PrivateLinkResourcesClient) ListByResource(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), OptionsObject: options, + Pager: &ListByResourceCustomPager{}, + Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/systemtopics/method_listbyresourcegroup.go b/resource-manager/eventgrid/2023-12-15-preview/systemtopics/method_listbyresourcegroup.go index 6cba8fb92c7..04b5a7090c9 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/systemtopics/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2023-12-15-preview/systemtopics/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SystemTopicsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c SystemTopicsClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/systemTopics", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/systemTopics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/systemtopics/method_listbysubscription.go b/resource-manager/eventgrid/2023-12-15-preview/systemtopics/method_listbysubscription.go index a199fd7e25e..5424d6f67ff 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/systemtopics/method_listbysubscription.go +++ b/resource-manager/eventgrid/2023-12-15-preview/systemtopics/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SystemTopicsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c SystemTopicsClient) ListBySubscription(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/systemTopics", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/systemTopics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/topics/method_listbyresourcegroup.go b/resource-manager/eventgrid/2023-12-15-preview/topics/method_listbyresourcegroup.go index 6d1303a2d93..b322ef0d4af 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/topics/method_listbyresourcegroup.go +++ b/resource-manager/eventgrid/2023-12-15-preview/topics/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c TopicsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c TopicsClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/topics", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/topics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/topics/method_listbysubscription.go b/resource-manager/eventgrid/2023-12-15-preview/topics/method_listbysubscription.go index 367c93a9639..a4f4ebfc334 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/topics/method_listbysubscription.go +++ b/resource-manager/eventgrid/2023-12-15-preview/topics/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c TopicsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c TopicsClient) ListBySubscription(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/topics", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/topics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/topicspaces/method_listbynamespace.go b/resource-manager/eventgrid/2023-12-15-preview/topicspaces/method_listbynamespace.go index 52da1c930e1..90d5e7cdd0e 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/topicspaces/method_listbynamespace.go +++ b/resource-manager/eventgrid/2023-12-15-preview/topicspaces/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c TopicSpacesClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c TopicSpacesClient) ListByNamespace(ctx context.Context, id NamespaceId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/topicSpaces", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/topicSpaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventgrid/2023-12-15-preview/verifiedpartners/method_list.go b/resource-manager/eventgrid/2023-12-15-preview/verifiedpartners/method_list.go index 164b3946a62..9229769b5dc 100644 --- a/resource-manager/eventgrid/2023-12-15-preview/verifiedpartners/method_list.go +++ b/resource-manager/eventgrid/2023-12-15-preview/verifiedpartners/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VerifiedPartnersClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c VerifiedPartnersClient) List(ctx context.Context, options ListOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.EventGrid/verifiedPartners", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.EventGrid/verifiedPartners", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventhub/2021-11-01/authorizationrulesdisasterrecoveryconfigs/method_disasterrecoveryconfigslistauthorizationrules.go b/resource-manager/eventhub/2021-11-01/authorizationrulesdisasterrecoveryconfigs/method_disasterrecoveryconfigslistauthorizationrules.go index 192f569360c..0b44878b1d7 100644 --- a/resource-manager/eventhub/2021-11-01/authorizationrulesdisasterrecoveryconfigs/method_disasterrecoveryconfigslistauthorizationrules.go +++ b/resource-manager/eventhub/2021-11-01/authorizationrulesdisasterrecoveryconfigs/method_disasterrecoveryconfigslistauthorizationrules.go @@ -23,6 +23,18 @@ type DisasterRecoveryConfigsListAuthorizationRulesCompleteResult struct { Items []AuthorizationRule } +type DisasterRecoveryConfigsListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DisasterRecoveryConfigsListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DisasterRecoveryConfigsListAuthorizationRules ... func (c AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigsListAuthorizationRules(ctx context.Context, id DisasterRecoveryConfigId) (result DisasterRecoveryConfigsListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DisasterRecoveryConfigsListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubslistauthorizationrules.go b/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubslistauthorizationrules.go index 977ba26e197..e489ad07e5d 100644 --- a/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubslistauthorizationrules.go +++ b/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubslistauthorizationrules.go @@ -23,6 +23,18 @@ type EventHubsListAuthorizationRulesCompleteResult struct { Items []AuthorizationRule } +type EventHubsListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *EventHubsListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // EventHubsListAuthorizationRules ... func (c AuthorizationRulesEventHubsClient) EventHubsListAuthorizationRules(ctx context.Context, id EventhubId) (result EventHubsListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AuthorizationRulesEventHubsClient) EventHubsListAuthorizationRules(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &EventHubsListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespaceslistauthorizationrules.go b/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespaceslistauthorizationrules.go index 5851d3bb5e3..8e4df7fab43 100644 --- a/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespaceslistauthorizationrules.go +++ b/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespaceslistauthorizationrules.go @@ -23,6 +23,18 @@ type NamespacesListAuthorizationRulesCompleteResult struct { Items []AuthorizationRule } +type NamespacesListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NamespacesListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NamespacesListAuthorizationRules ... func (c AuthorizationRulesNamespacesClient) NamespacesListAuthorizationRules(ctx context.Context, id NamespaceId) (result NamespacesListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AuthorizationRulesNamespacesClient) NamespacesListAuthorizationRules(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NamespacesListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/eventhub/2021-11-01/consumergroups/method_listbyeventhub.go b/resource-manager/eventhub/2021-11-01/consumergroups/method_listbyeventhub.go index f5230dc2ed8..d3112958e5e 100644 --- a/resource-manager/eventhub/2021-11-01/consumergroups/method_listbyeventhub.go +++ b/resource-manager/eventhub/2021-11-01/consumergroups/method_listbyeventhub.go @@ -54,6 +54,18 @@ func (o ListByEventHubOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByEventHubCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEventHubCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEventHub ... func (c ConsumerGroupsClient) ListByEventHub(ctx context.Context, id EventhubId, options ListByEventHubOperationOptions) (result ListByEventHubOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ConsumerGroupsClient) ListByEventHub(ctx context.Context, id EventhubId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/consumerGroups", id.ID()), OptionsObject: options, + Pager: &ListByEventHubCustomPager{}, + Path: fmt.Sprintf("%s/consumerGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/method_list.go b/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/method_list.go index 5ae1e671440..15ec06bfce6 100644 --- a/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/method_list.go +++ b/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ArmDisasterRecovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/disasterRecoveryConfigs", id.ID()), } diff --git a/resource-manager/eventhub/2021-11-01/eventhubs/method_listbynamespace.go b/resource-manager/eventhub/2021-11-01/eventhubs/method_listbynamespace.go index c8948347845..e146faa0cea 100644 --- a/resource-manager/eventhub/2021-11-01/eventhubs/method_listbynamespace.go +++ b/resource-manager/eventhub/2021-11-01/eventhubs/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c EventHubsClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventHubsClient) ListByNamespace(ctx context.Context, id NamespaceId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventhubs", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/eventhubs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventhub/2021-11-01/eventhubsclusters/method_clusterslistbyresourcegroup.go b/resource-manager/eventhub/2021-11-01/eventhubsclusters/method_clusterslistbyresourcegroup.go index 15809b778b0..7cb5f2d7f9d 100644 --- a/resource-manager/eventhub/2021-11-01/eventhubsclusters/method_clusterslistbyresourcegroup.go +++ b/resource-manager/eventhub/2021-11-01/eventhubsclusters/method_clusterslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ClustersListByResourceGroupCompleteResult struct { Items []Cluster } +type ClustersListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ClustersListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ClustersListByResourceGroup ... func (c EventHubsClustersClient) ClustersListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ClustersListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EventHubsClustersClient) ClustersListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ClustersListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.EventHub/clusters", id.ID()), } diff --git a/resource-manager/eventhub/2021-11-01/eventhubsclusters/method_clusterslistbysubscription.go b/resource-manager/eventhub/2021-11-01/eventhubsclusters/method_clusterslistbysubscription.go index 5b7a95b3b22..6c6e68d544b 100644 --- a/resource-manager/eventhub/2021-11-01/eventhubsclusters/method_clusterslistbysubscription.go +++ b/resource-manager/eventhub/2021-11-01/eventhubsclusters/method_clusterslistbysubscription.go @@ -24,6 +24,18 @@ type ClustersListBySubscriptionCompleteResult struct { Items []Cluster } +type ClustersListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ClustersListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ClustersListBySubscription ... func (c EventHubsClustersClient) ClustersListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ClustersListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EventHubsClustersClient) ClustersListBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ClustersListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.EventHub/clusters", id.ID()), } diff --git a/resource-manager/eventhub/2021-11-01/namespaces/method_list.go b/resource-manager/eventhub/2021-11-01/namespaces/method_list.go index c926699a436..bb002177c0c 100644 --- a/resource-manager/eventhub/2021-11-01/namespaces/method_list.go +++ b/resource-manager/eventhub/2021-11-01/namespaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []EHNamespace } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.EventHub/namespaces", id.ID()), } diff --git a/resource-manager/eventhub/2021-11-01/namespaces/method_listbyresourcegroup.go b/resource-manager/eventhub/2021-11-01/namespaces/method_listbyresourcegroup.go index 0fc599192c1..b9bbe1193ef 100644 --- a/resource-manager/eventhub/2021-11-01/namespaces/method_listbyresourcegroup.go +++ b/resource-manager/eventhub/2021-11-01/namespaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []EHNamespace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.EventHub/namespaces", id.ID()), } diff --git a/resource-manager/eventhub/2021-11-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go b/resource-manager/eventhub/2021-11-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go index 993252c036c..8f81c845b63 100644 --- a/resource-manager/eventhub/2021-11-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go +++ b/resource-manager/eventhub/2021-11-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListCompleteResult struct { Items []PrivateEndpointConnection } +type PrivateEndpointConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsList ... func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsList(ctx context.Context, id NamespaceId) (result PrivateEndpointConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsLi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/eventhub/2021-11-01/namespacesprivatelinkresources/method_privatelinkresourcesget.go b/resource-manager/eventhub/2021-11-01/namespacesprivatelinkresources/method_privatelinkresourcesget.go index 855e0b9db56..88dfb50ec3a 100644 --- a/resource-manager/eventhub/2021-11-01/namespacesprivatelinkresources/method_privatelinkresourcesget.go +++ b/resource-manager/eventhub/2021-11-01/namespacesprivatelinkresources/method_privatelinkresourcesget.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesGetCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesGetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesGetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesGet ... func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesGet(ctx context.Context, id NamespaceId) (result PrivateLinkResourcesGetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesGet(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesGetCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/eventhub/2021-11-01/networkrulesets/method_namespaceslistnetworkruleset.go b/resource-manager/eventhub/2021-11-01/networkrulesets/method_namespaceslistnetworkruleset.go index 5deab828121..9838b2bee88 100644 --- a/resource-manager/eventhub/2021-11-01/networkrulesets/method_namespaceslistnetworkruleset.go +++ b/resource-manager/eventhub/2021-11-01/networkrulesets/method_namespaceslistnetworkruleset.go @@ -23,6 +23,18 @@ type NamespacesListNetworkRuleSetCompleteResult struct { Items []NetworkRuleSet } +type NamespacesListNetworkRuleSetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NamespacesListNetworkRuleSetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NamespacesListNetworkRuleSet ... func (c NetworkRuleSetsClient) NamespacesListNetworkRuleSet(ctx context.Context, id NamespaceId) (result NamespacesListNetworkRuleSetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkRuleSetsClient) NamespacesListNetworkRuleSet(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NamespacesListNetworkRuleSetCustomPager{}, Path: fmt.Sprintf("%s/networkRuleSets", id.ID()), } diff --git a/resource-manager/eventhub/2021-11-01/schemaregistry/method_listbynamespace.go b/resource-manager/eventhub/2021-11-01/schemaregistry/method_listbynamespace.go index 5e30f3cbaef..de10e8b42f6 100644 --- a/resource-manager/eventhub/2021-11-01/schemaregistry/method_listbynamespace.go +++ b/resource-manager/eventhub/2021-11-01/schemaregistry/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c SchemaRegistryClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c SchemaRegistryClient) ListByNamespace(ctx context.Context, id NamespaceI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemaGroups", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/schemaGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventhub/2022-01-01-preview/applicationgroup/method_listbynamespace.go b/resource-manager/eventhub/2022-01-01-preview/applicationgroup/method_listbynamespace.go index 40532b56283..43357a6fa58 100644 --- a/resource-manager/eventhub/2022-01-01-preview/applicationgroup/method_listbynamespace.go +++ b/resource-manager/eventhub/2022-01-01-preview/applicationgroup/method_listbynamespace.go @@ -23,6 +23,18 @@ type ListByNamespaceCompleteResult struct { Items []ApplicationGroup } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c ApplicationGroupClient) ListByNamespace(ctx context.Context, id NamespaceId) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationGroupClient) ListByNamespace(ctx context.Context, id Namespac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByNamespaceCustomPager{}, Path: fmt.Sprintf("%s/applicationGroups", id.ID()), } diff --git a/resource-manager/eventhub/2022-01-01-preview/authorizationrulesdisasterrecoveryconfigs/method_disasterrecoveryconfigslistauthorizationrules.go b/resource-manager/eventhub/2022-01-01-preview/authorizationrulesdisasterrecoveryconfigs/method_disasterrecoveryconfigslistauthorizationrules.go index 192f569360c..0b44878b1d7 100644 --- a/resource-manager/eventhub/2022-01-01-preview/authorizationrulesdisasterrecoveryconfigs/method_disasterrecoveryconfigslistauthorizationrules.go +++ b/resource-manager/eventhub/2022-01-01-preview/authorizationrulesdisasterrecoveryconfigs/method_disasterrecoveryconfigslistauthorizationrules.go @@ -23,6 +23,18 @@ type DisasterRecoveryConfigsListAuthorizationRulesCompleteResult struct { Items []AuthorizationRule } +type DisasterRecoveryConfigsListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DisasterRecoveryConfigsListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DisasterRecoveryConfigsListAuthorizationRules ... func (c AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigsListAuthorizationRules(ctx context.Context, id DisasterRecoveryConfigId) (result DisasterRecoveryConfigsListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DisasterRecoveryConfigsListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/eventhub/2022-01-01-preview/authorizationruleseventhubs/method_eventhubslistauthorizationrules.go b/resource-manager/eventhub/2022-01-01-preview/authorizationruleseventhubs/method_eventhubslistauthorizationrules.go index 977ba26e197..e489ad07e5d 100644 --- a/resource-manager/eventhub/2022-01-01-preview/authorizationruleseventhubs/method_eventhubslistauthorizationrules.go +++ b/resource-manager/eventhub/2022-01-01-preview/authorizationruleseventhubs/method_eventhubslistauthorizationrules.go @@ -23,6 +23,18 @@ type EventHubsListAuthorizationRulesCompleteResult struct { Items []AuthorizationRule } +type EventHubsListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *EventHubsListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // EventHubsListAuthorizationRules ... func (c AuthorizationRulesEventHubsClient) EventHubsListAuthorizationRules(ctx context.Context, id EventhubId) (result EventHubsListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AuthorizationRulesEventHubsClient) EventHubsListAuthorizationRules(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &EventHubsListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/eventhub/2022-01-01-preview/authorizationrulesnamespaces/method_namespaceslistauthorizationrules.go b/resource-manager/eventhub/2022-01-01-preview/authorizationrulesnamespaces/method_namespaceslistauthorizationrules.go index 5851d3bb5e3..8e4df7fab43 100644 --- a/resource-manager/eventhub/2022-01-01-preview/authorizationrulesnamespaces/method_namespaceslistauthorizationrules.go +++ b/resource-manager/eventhub/2022-01-01-preview/authorizationrulesnamespaces/method_namespaceslistauthorizationrules.go @@ -23,6 +23,18 @@ type NamespacesListAuthorizationRulesCompleteResult struct { Items []AuthorizationRule } +type NamespacesListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NamespacesListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NamespacesListAuthorizationRules ... func (c AuthorizationRulesNamespacesClient) NamespacesListAuthorizationRules(ctx context.Context, id NamespaceId) (result NamespacesListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AuthorizationRulesNamespacesClient) NamespacesListAuthorizationRules(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NamespacesListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/eventhub/2022-01-01-preview/consumergroups/method_listbyeventhub.go b/resource-manager/eventhub/2022-01-01-preview/consumergroups/method_listbyeventhub.go index f5230dc2ed8..d3112958e5e 100644 --- a/resource-manager/eventhub/2022-01-01-preview/consumergroups/method_listbyeventhub.go +++ b/resource-manager/eventhub/2022-01-01-preview/consumergroups/method_listbyeventhub.go @@ -54,6 +54,18 @@ func (o ListByEventHubOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByEventHubCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEventHubCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEventHub ... func (c ConsumerGroupsClient) ListByEventHub(ctx context.Context, id EventhubId, options ListByEventHubOperationOptions) (result ListByEventHubOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ConsumerGroupsClient) ListByEventHub(ctx context.Context, id EventhubId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/consumerGroups", id.ID()), OptionsObject: options, + Pager: &ListByEventHubCustomPager{}, + Path: fmt.Sprintf("%s/consumerGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventhub/2022-01-01-preview/disasterrecoveryconfigs/method_list.go b/resource-manager/eventhub/2022-01-01-preview/disasterrecoveryconfigs/method_list.go index 5ae1e671440..15ec06bfce6 100644 --- a/resource-manager/eventhub/2022-01-01-preview/disasterrecoveryconfigs/method_list.go +++ b/resource-manager/eventhub/2022-01-01-preview/disasterrecoveryconfigs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ArmDisasterRecovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/disasterRecoveryConfigs", id.ID()), } diff --git a/resource-manager/eventhub/2022-01-01-preview/eventhubs/method_listbynamespace.go b/resource-manager/eventhub/2022-01-01-preview/eventhubs/method_listbynamespace.go index c8948347845..e146faa0cea 100644 --- a/resource-manager/eventhub/2022-01-01-preview/eventhubs/method_listbynamespace.go +++ b/resource-manager/eventhub/2022-01-01-preview/eventhubs/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c EventHubsClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventHubsClient) ListByNamespace(ctx context.Context, id NamespaceId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventhubs", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/eventhubs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventhub/2022-01-01-preview/eventhubsclusters/method_clusterslistbyresourcegroup.go b/resource-manager/eventhub/2022-01-01-preview/eventhubsclusters/method_clusterslistbyresourcegroup.go index 15809b778b0..7cb5f2d7f9d 100644 --- a/resource-manager/eventhub/2022-01-01-preview/eventhubsclusters/method_clusterslistbyresourcegroup.go +++ b/resource-manager/eventhub/2022-01-01-preview/eventhubsclusters/method_clusterslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ClustersListByResourceGroupCompleteResult struct { Items []Cluster } +type ClustersListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ClustersListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ClustersListByResourceGroup ... func (c EventHubsClustersClient) ClustersListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ClustersListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EventHubsClustersClient) ClustersListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ClustersListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.EventHub/clusters", id.ID()), } diff --git a/resource-manager/eventhub/2022-01-01-preview/eventhubsclusters/method_clusterslistbysubscription.go b/resource-manager/eventhub/2022-01-01-preview/eventhubsclusters/method_clusterslistbysubscription.go index 5b7a95b3b22..6c6e68d544b 100644 --- a/resource-manager/eventhub/2022-01-01-preview/eventhubsclusters/method_clusterslistbysubscription.go +++ b/resource-manager/eventhub/2022-01-01-preview/eventhubsclusters/method_clusterslistbysubscription.go @@ -24,6 +24,18 @@ type ClustersListBySubscriptionCompleteResult struct { Items []Cluster } +type ClustersListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ClustersListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ClustersListBySubscription ... func (c EventHubsClustersClient) ClustersListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ClustersListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EventHubsClustersClient) ClustersListBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ClustersListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.EventHub/clusters", id.ID()), } diff --git a/resource-manager/eventhub/2022-01-01-preview/namespaces/method_list.go b/resource-manager/eventhub/2022-01-01-preview/namespaces/method_list.go index c926699a436..bb002177c0c 100644 --- a/resource-manager/eventhub/2022-01-01-preview/namespaces/method_list.go +++ b/resource-manager/eventhub/2022-01-01-preview/namespaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []EHNamespace } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.EventHub/namespaces", id.ID()), } diff --git a/resource-manager/eventhub/2022-01-01-preview/namespaces/method_listbyresourcegroup.go b/resource-manager/eventhub/2022-01-01-preview/namespaces/method_listbyresourcegroup.go index 0fc599192c1..b9bbe1193ef 100644 --- a/resource-manager/eventhub/2022-01-01-preview/namespaces/method_listbyresourcegroup.go +++ b/resource-manager/eventhub/2022-01-01-preview/namespaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []EHNamespace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.EventHub/namespaces", id.ID()), } diff --git a/resource-manager/eventhub/2022-01-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go b/resource-manager/eventhub/2022-01-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go index 993252c036c..8f81c845b63 100644 --- a/resource-manager/eventhub/2022-01-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go +++ b/resource-manager/eventhub/2022-01-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListCompleteResult struct { Items []PrivateEndpointConnection } +type PrivateEndpointConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsList ... func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsList(ctx context.Context, id NamespaceId) (result PrivateEndpointConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsLi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/eventhub/2022-01-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go b/resource-manager/eventhub/2022-01-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go index 855e0b9db56..88dfb50ec3a 100644 --- a/resource-manager/eventhub/2022-01-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go +++ b/resource-manager/eventhub/2022-01-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesGetCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesGetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesGetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesGet ... func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesGet(ctx context.Context, id NamespaceId) (result PrivateLinkResourcesGetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesGet(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesGetCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/eventhub/2022-01-01-preview/networkrulesets/method_namespaceslistnetworkruleset.go b/resource-manager/eventhub/2022-01-01-preview/networkrulesets/method_namespaceslistnetworkruleset.go index 5deab828121..9838b2bee88 100644 --- a/resource-manager/eventhub/2022-01-01-preview/networkrulesets/method_namespaceslistnetworkruleset.go +++ b/resource-manager/eventhub/2022-01-01-preview/networkrulesets/method_namespaceslistnetworkruleset.go @@ -23,6 +23,18 @@ type NamespacesListNetworkRuleSetCompleteResult struct { Items []NetworkRuleSet } +type NamespacesListNetworkRuleSetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NamespacesListNetworkRuleSetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NamespacesListNetworkRuleSet ... func (c NetworkRuleSetsClient) NamespacesListNetworkRuleSet(ctx context.Context, id NamespaceId) (result NamespacesListNetworkRuleSetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkRuleSetsClient) NamespacesListNetworkRuleSet(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NamespacesListNetworkRuleSetCustomPager{}, Path: fmt.Sprintf("%s/networkRuleSets", id.ID()), } diff --git a/resource-manager/eventhub/2022-01-01-preview/schemaregistry/method_listbynamespace.go b/resource-manager/eventhub/2022-01-01-preview/schemaregistry/method_listbynamespace.go index 5e30f3cbaef..de10e8b42f6 100644 --- a/resource-manager/eventhub/2022-01-01-preview/schemaregistry/method_listbynamespace.go +++ b/resource-manager/eventhub/2022-01-01-preview/schemaregistry/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c SchemaRegistryClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c SchemaRegistryClient) ListByNamespace(ctx context.Context, id NamespaceI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemaGroups", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/schemaGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventhub/2024-01-01/applicationgroup/method_listbynamespace.go b/resource-manager/eventhub/2024-01-01/applicationgroup/method_listbynamespace.go index 40532b56283..43357a6fa58 100644 --- a/resource-manager/eventhub/2024-01-01/applicationgroup/method_listbynamespace.go +++ b/resource-manager/eventhub/2024-01-01/applicationgroup/method_listbynamespace.go @@ -23,6 +23,18 @@ type ListByNamespaceCompleteResult struct { Items []ApplicationGroup } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c ApplicationGroupClient) ListByNamespace(ctx context.Context, id NamespaceId) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationGroupClient) ListByNamespace(ctx context.Context, id Namespac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByNamespaceCustomPager{}, Path: fmt.Sprintf("%s/applicationGroups", id.ID()), } diff --git a/resource-manager/eventhub/2024-01-01/authorizationrulesdisasterrecoveryconfigs/method_disasterrecoveryconfigslistauthorizationrules.go b/resource-manager/eventhub/2024-01-01/authorizationrulesdisasterrecoveryconfigs/method_disasterrecoveryconfigslistauthorizationrules.go index 192f569360c..0b44878b1d7 100644 --- a/resource-manager/eventhub/2024-01-01/authorizationrulesdisasterrecoveryconfigs/method_disasterrecoveryconfigslistauthorizationrules.go +++ b/resource-manager/eventhub/2024-01-01/authorizationrulesdisasterrecoveryconfigs/method_disasterrecoveryconfigslistauthorizationrules.go @@ -23,6 +23,18 @@ type DisasterRecoveryConfigsListAuthorizationRulesCompleteResult struct { Items []AuthorizationRule } +type DisasterRecoveryConfigsListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DisasterRecoveryConfigsListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DisasterRecoveryConfigsListAuthorizationRules ... func (c AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigsListAuthorizationRules(ctx context.Context, id DisasterRecoveryConfigId) (result DisasterRecoveryConfigsListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DisasterRecoveryConfigsListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/eventhub/2024-01-01/authorizationruleseventhubs/method_eventhubslistauthorizationrules.go b/resource-manager/eventhub/2024-01-01/authorizationruleseventhubs/method_eventhubslistauthorizationrules.go index 977ba26e197..e489ad07e5d 100644 --- a/resource-manager/eventhub/2024-01-01/authorizationruleseventhubs/method_eventhubslistauthorizationrules.go +++ b/resource-manager/eventhub/2024-01-01/authorizationruleseventhubs/method_eventhubslistauthorizationrules.go @@ -23,6 +23,18 @@ type EventHubsListAuthorizationRulesCompleteResult struct { Items []AuthorizationRule } +type EventHubsListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *EventHubsListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // EventHubsListAuthorizationRules ... func (c AuthorizationRulesEventHubsClient) EventHubsListAuthorizationRules(ctx context.Context, id EventhubId) (result EventHubsListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AuthorizationRulesEventHubsClient) EventHubsListAuthorizationRules(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &EventHubsListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/eventhub/2024-01-01/authorizationrulesnamespaces/method_namespaceslistauthorizationrules.go b/resource-manager/eventhub/2024-01-01/authorizationrulesnamespaces/method_namespaceslistauthorizationrules.go index 5851d3bb5e3..8e4df7fab43 100644 --- a/resource-manager/eventhub/2024-01-01/authorizationrulesnamespaces/method_namespaceslistauthorizationrules.go +++ b/resource-manager/eventhub/2024-01-01/authorizationrulesnamespaces/method_namespaceslistauthorizationrules.go @@ -23,6 +23,18 @@ type NamespacesListAuthorizationRulesCompleteResult struct { Items []AuthorizationRule } +type NamespacesListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NamespacesListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NamespacesListAuthorizationRules ... func (c AuthorizationRulesNamespacesClient) NamespacesListAuthorizationRules(ctx context.Context, id NamespaceId) (result NamespacesListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AuthorizationRulesNamespacesClient) NamespacesListAuthorizationRules(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NamespacesListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/eventhub/2024-01-01/consumergroups/method_listbyeventhub.go b/resource-manager/eventhub/2024-01-01/consumergroups/method_listbyeventhub.go index f5230dc2ed8..d3112958e5e 100644 --- a/resource-manager/eventhub/2024-01-01/consumergroups/method_listbyeventhub.go +++ b/resource-manager/eventhub/2024-01-01/consumergroups/method_listbyeventhub.go @@ -54,6 +54,18 @@ func (o ListByEventHubOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByEventHubCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEventHubCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEventHub ... func (c ConsumerGroupsClient) ListByEventHub(ctx context.Context, id EventhubId, options ListByEventHubOperationOptions) (result ListByEventHubOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ConsumerGroupsClient) ListByEventHub(ctx context.Context, id EventhubId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/consumerGroups", id.ID()), OptionsObject: options, + Pager: &ListByEventHubCustomPager{}, + Path: fmt.Sprintf("%s/consumerGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventhub/2024-01-01/disasterrecoveryconfigs/method_list.go b/resource-manager/eventhub/2024-01-01/disasterrecoveryconfigs/method_list.go index 5ae1e671440..15ec06bfce6 100644 --- a/resource-manager/eventhub/2024-01-01/disasterrecoveryconfigs/method_list.go +++ b/resource-manager/eventhub/2024-01-01/disasterrecoveryconfigs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ArmDisasterRecovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/disasterRecoveryConfigs", id.ID()), } diff --git a/resource-manager/eventhub/2024-01-01/eventhubs/method_listbynamespace.go b/resource-manager/eventhub/2024-01-01/eventhubs/method_listbynamespace.go index c8948347845..e146faa0cea 100644 --- a/resource-manager/eventhub/2024-01-01/eventhubs/method_listbynamespace.go +++ b/resource-manager/eventhub/2024-01-01/eventhubs/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c EventHubsClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EventHubsClient) ListByNamespace(ctx context.Context, id NamespaceId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/eventhubs", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/eventhubs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/eventhub/2024-01-01/eventhubsclusters/method_clusterslistbyresourcegroup.go b/resource-manager/eventhub/2024-01-01/eventhubsclusters/method_clusterslistbyresourcegroup.go index 15809b778b0..7cb5f2d7f9d 100644 --- a/resource-manager/eventhub/2024-01-01/eventhubsclusters/method_clusterslistbyresourcegroup.go +++ b/resource-manager/eventhub/2024-01-01/eventhubsclusters/method_clusterslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ClustersListByResourceGroupCompleteResult struct { Items []Cluster } +type ClustersListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ClustersListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ClustersListByResourceGroup ... func (c EventHubsClustersClient) ClustersListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ClustersListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EventHubsClustersClient) ClustersListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ClustersListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.EventHub/clusters", id.ID()), } diff --git a/resource-manager/eventhub/2024-01-01/eventhubsclusters/method_clusterslistbysubscription.go b/resource-manager/eventhub/2024-01-01/eventhubsclusters/method_clusterslistbysubscription.go index 5b7a95b3b22..6c6e68d544b 100644 --- a/resource-manager/eventhub/2024-01-01/eventhubsclusters/method_clusterslistbysubscription.go +++ b/resource-manager/eventhub/2024-01-01/eventhubsclusters/method_clusterslistbysubscription.go @@ -24,6 +24,18 @@ type ClustersListBySubscriptionCompleteResult struct { Items []Cluster } +type ClustersListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ClustersListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ClustersListBySubscription ... func (c EventHubsClustersClient) ClustersListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ClustersListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EventHubsClustersClient) ClustersListBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ClustersListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.EventHub/clusters", id.ID()), } diff --git a/resource-manager/eventhub/2024-01-01/namespaces/method_list.go b/resource-manager/eventhub/2024-01-01/namespaces/method_list.go index c926699a436..bb002177c0c 100644 --- a/resource-manager/eventhub/2024-01-01/namespaces/method_list.go +++ b/resource-manager/eventhub/2024-01-01/namespaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []EHNamespace } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.EventHub/namespaces", id.ID()), } diff --git a/resource-manager/eventhub/2024-01-01/namespaces/method_listbyresourcegroup.go b/resource-manager/eventhub/2024-01-01/namespaces/method_listbyresourcegroup.go index 0fc599192c1..b9bbe1193ef 100644 --- a/resource-manager/eventhub/2024-01-01/namespaces/method_listbyresourcegroup.go +++ b/resource-manager/eventhub/2024-01-01/namespaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []EHNamespace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.EventHub/namespaces", id.ID()), } diff --git a/resource-manager/eventhub/2024-01-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go b/resource-manager/eventhub/2024-01-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go index 993252c036c..8f81c845b63 100644 --- a/resource-manager/eventhub/2024-01-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go +++ b/resource-manager/eventhub/2024-01-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListCompleteResult struct { Items []PrivateEndpointConnection } +type PrivateEndpointConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsList ... func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsList(ctx context.Context, id NamespaceId) (result PrivateEndpointConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsLi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/eventhub/2024-01-01/namespacesprivatelinkresources/method_privatelinkresourcesget.go b/resource-manager/eventhub/2024-01-01/namespacesprivatelinkresources/method_privatelinkresourcesget.go index 855e0b9db56..88dfb50ec3a 100644 --- a/resource-manager/eventhub/2024-01-01/namespacesprivatelinkresources/method_privatelinkresourcesget.go +++ b/resource-manager/eventhub/2024-01-01/namespacesprivatelinkresources/method_privatelinkresourcesget.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesGetCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesGetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesGetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesGet ... func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesGet(ctx context.Context, id NamespaceId) (result PrivateLinkResourcesGetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesGet(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesGetCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/eventhub/2024-01-01/networkrulesets/method_namespaceslistnetworkruleset.go b/resource-manager/eventhub/2024-01-01/networkrulesets/method_namespaceslistnetworkruleset.go index 5deab828121..9838b2bee88 100644 --- a/resource-manager/eventhub/2024-01-01/networkrulesets/method_namespaceslistnetworkruleset.go +++ b/resource-manager/eventhub/2024-01-01/networkrulesets/method_namespaceslistnetworkruleset.go @@ -23,6 +23,18 @@ type NamespacesListNetworkRuleSetCompleteResult struct { Items []NetworkRuleSet } +type NamespacesListNetworkRuleSetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NamespacesListNetworkRuleSetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NamespacesListNetworkRuleSet ... func (c NetworkRuleSetsClient) NamespacesListNetworkRuleSet(ctx context.Context, id NamespaceId) (result NamespacesListNetworkRuleSetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkRuleSetsClient) NamespacesListNetworkRuleSet(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NamespacesListNetworkRuleSetCustomPager{}, Path: fmt.Sprintf("%s/networkRuleSets", id.ID()), } diff --git a/resource-manager/eventhub/2024-01-01/schemaregistry/method_listbynamespace.go b/resource-manager/eventhub/2024-01-01/schemaregistry/method_listbynamespace.go index 5e30f3cbaef..de10e8b42f6 100644 --- a/resource-manager/eventhub/2024-01-01/schemaregistry/method_listbynamespace.go +++ b/resource-manager/eventhub/2024-01-01/schemaregistry/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c SchemaRegistryClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c SchemaRegistryClient) ListByNamespace(ctx context.Context, id NamespaceI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemaGroups", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/schemaGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/extendedlocation/2021-08-15/customlocations/method_listbyresourcegroup.go b/resource-manager/extendedlocation/2021-08-15/customlocations/method_listbyresourcegroup.go index 73004a17806..62303583dd3 100644 --- a/resource-manager/extendedlocation/2021-08-15/customlocations/method_listbyresourcegroup.go +++ b/resource-manager/extendedlocation/2021-08-15/customlocations/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []CustomLocation } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CustomLocationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CustomLocationsClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ExtendedLocation/customLocations", id.ID()), } diff --git a/resource-manager/extendedlocation/2021-08-15/customlocations/method_listbysubscription.go b/resource-manager/extendedlocation/2021-08-15/customlocations/method_listbysubscription.go index 882736e1519..58d07b924dc 100644 --- a/resource-manager/extendedlocation/2021-08-15/customlocations/method_listbysubscription.go +++ b/resource-manager/extendedlocation/2021-08-15/customlocations/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []CustomLocation } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c CustomLocationsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CustomLocationsClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ExtendedLocation/customLocations", id.ID()), } diff --git a/resource-manager/extendedlocation/2021-08-15/customlocations/method_listenabledresourcetypes.go b/resource-manager/extendedlocation/2021-08-15/customlocations/method_listenabledresourcetypes.go index b2726f7406d..7d0b2d26d49 100644 --- a/resource-manager/extendedlocation/2021-08-15/customlocations/method_listenabledresourcetypes.go +++ b/resource-manager/extendedlocation/2021-08-15/customlocations/method_listenabledresourcetypes.go @@ -23,6 +23,18 @@ type ListEnabledResourceTypesCompleteResult struct { Items []EnabledResourceType } +type ListEnabledResourceTypesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListEnabledResourceTypesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListEnabledResourceTypes ... func (c CustomLocationsClient) ListEnabledResourceTypes(ctx context.Context, id CustomLocationId) (result ListEnabledResourceTypesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CustomLocationsClient) ListEnabledResourceTypes(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListEnabledResourceTypesCustomPager{}, Path: fmt.Sprintf("%s/enabledResourceTypes", id.ID()), } diff --git a/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/method_listbyfluidrelayservers.go b/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/method_listbyfluidrelayservers.go index b262a20650f..4b539085e11 100644 --- a/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/method_listbyfluidrelayservers.go +++ b/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/method_listbyfluidrelayservers.go @@ -23,6 +23,18 @@ type ListByFluidRelayServersCompleteResult struct { Items []FluidRelayContainer } +type ListByFluidRelayServersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFluidRelayServersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFluidRelayServers ... func (c FluidRelayContainersClient) ListByFluidRelayServers(ctx context.Context, id FluidRelayServerId) (result ListByFluidRelayServersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FluidRelayContainersClient) ListByFluidRelayServers(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFluidRelayServersCustomPager{}, Path: fmt.Sprintf("%s/fluidRelayContainers", id.ID()), } diff --git a/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_listbyresourcegroup.go b/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_listbyresourcegroup.go index fb99c850c84..4ce253d04af 100644 --- a/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_listbyresourcegroup.go +++ b/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []FluidRelayServer } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c FluidRelayServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FluidRelayServersClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.FluidRelay/fluidRelayServers", id.ID()), } diff --git a/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_listbysubscription.go b/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_listbysubscription.go index fd682f0239b..225a8926747 100644 --- a/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_listbysubscription.go +++ b/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []FluidRelayServer } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c FluidRelayServersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FluidRelayServersClient) ListBySubscription(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.FluidRelay/fluidRelayServers", id.ID()), } diff --git a/resource-manager/fluidrelay/2022-06-01/fluidrelaycontainers/method_listbyfluidrelayservers.go b/resource-manager/fluidrelay/2022-06-01/fluidrelaycontainers/method_listbyfluidrelayservers.go index b262a20650f..4b539085e11 100644 --- a/resource-manager/fluidrelay/2022-06-01/fluidrelaycontainers/method_listbyfluidrelayservers.go +++ b/resource-manager/fluidrelay/2022-06-01/fluidrelaycontainers/method_listbyfluidrelayservers.go @@ -23,6 +23,18 @@ type ListByFluidRelayServersCompleteResult struct { Items []FluidRelayContainer } +type ListByFluidRelayServersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFluidRelayServersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFluidRelayServers ... func (c FluidRelayContainersClient) ListByFluidRelayServers(ctx context.Context, id FluidRelayServerId) (result ListByFluidRelayServersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FluidRelayContainersClient) ListByFluidRelayServers(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFluidRelayServersCustomPager{}, Path: fmt.Sprintf("%s/fluidRelayContainers", id.ID()), } diff --git a/resource-manager/fluidrelay/2022-06-01/fluidrelayservers/method_listbyresourcegroup.go b/resource-manager/fluidrelay/2022-06-01/fluidrelayservers/method_listbyresourcegroup.go index fb99c850c84..4ce253d04af 100644 --- a/resource-manager/fluidrelay/2022-06-01/fluidrelayservers/method_listbyresourcegroup.go +++ b/resource-manager/fluidrelay/2022-06-01/fluidrelayservers/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []FluidRelayServer } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c FluidRelayServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FluidRelayServersClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.FluidRelay/fluidRelayServers", id.ID()), } diff --git a/resource-manager/fluidrelay/2022-06-01/fluidrelayservers/method_listbysubscription.go b/resource-manager/fluidrelay/2022-06-01/fluidrelayservers/method_listbysubscription.go index fd682f0239b..225a8926747 100644 --- a/resource-manager/fluidrelay/2022-06-01/fluidrelayservers/method_listbysubscription.go +++ b/resource-manager/fluidrelay/2022-06-01/fluidrelayservers/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []FluidRelayServer } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c FluidRelayServersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FluidRelayServersClient) ListBySubscription(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.FluidRelay/fluidRelayServers", id.ID()), } diff --git a/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountslistbyresourcegroup.go b/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountslistbyresourcegroup.go index fdeccd9ebc0..143e2de08ed 100644 --- a/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountslistbyresourcegroup.go +++ b/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountslistbyresourcegroup.go @@ -24,6 +24,18 @@ type AccountsListByResourceGroupCompleteResult struct { Items []AccountResource } +type AccountsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListByResourceGroup ... func (c GraphservicesprodsClient) AccountsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result AccountsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GraphservicesprodsClient) AccountsListByResourceGroup(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.GraphServices/accounts", id.ID()), } diff --git a/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountslistbysubscription.go b/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountslistbysubscription.go index a66a3e1d54a..d1ce99b380e 100644 --- a/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountslistbysubscription.go +++ b/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountslistbysubscription.go @@ -24,6 +24,18 @@ type AccountsListBySubscriptionCompleteResult struct { Items []AccountResource } +type AccountsListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListBySubscription ... func (c GraphservicesprodsClient) AccountsListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result AccountsListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GraphservicesprodsClient) AccountsListBySubscription(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.GraphServices/accounts", id.ID()), } diff --git a/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbyresourcegroup.go b/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbyresourcegroup.go index 3740aba4951..437035b7daf 100644 --- a/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbyresourcegroup.go +++ b/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbyresourcegroup.go @@ -51,6 +51,18 @@ func (o DedicatedHsmListByResourceGroupOperationOptions) ToQuery() *client.Query return &out } +type DedicatedHsmListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DedicatedHsmListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DedicatedHsmListByResourceGroup ... func (c DedicatedHsmsClient) DedicatedHsmListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options DedicatedHsmListByResourceGroupOperationOptions) (result DedicatedHsmListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DedicatedHsmsClient) DedicatedHsmListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs", id.ID()), OptionsObject: options, + Pager: &DedicatedHsmListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbysubscription.go b/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbysubscription.go index 3d7fc280d51..1b227703e62 100644 --- a/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbysubscription.go +++ b/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbysubscription.go @@ -51,6 +51,18 @@ func (o DedicatedHsmListBySubscriptionOperationOptions) ToQuery() *client.QueryP return &out } +type DedicatedHsmListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DedicatedHsmListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DedicatedHsmListBySubscription ... func (c DedicatedHsmsClient) DedicatedHsmListBySubscription(ctx context.Context, id commonids.SubscriptionId, options DedicatedHsmListBySubscriptionOperationOptions) (result DedicatedHsmListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DedicatedHsmsClient) DedicatedHsmListBySubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs", id.ID()), OptionsObject: options, + Pager: &DedicatedHsmListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistoutboundnetworkdependenciesendpoints.go b/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistoutboundnetworkdependenciesendpoints.go index 6358ed623af..855995e3819 100644 --- a/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistoutboundnetworkdependenciesendpoints.go @@ -23,6 +23,18 @@ type DedicatedHsmListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type DedicatedHsmListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DedicatedHsmListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DedicatedHsmListOutboundNetworkDependenciesEndpoints ... func (c DedicatedHsmsClient) DedicatedHsmListOutboundNetworkDependenciesEndpoints(ctx context.Context, id DedicatedHSMId) (result DedicatedHsmListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DedicatedHsmsClient) DedicatedHsmListOutboundNetworkDependenciesEndpoint http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DedicatedHsmListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/hdinsight/2021-06-01/applications/method_listbycluster.go b/resource-manager/hdinsight/2021-06-01/applications/method_listbycluster.go index 5533d15d4c8..756bd69a22c 100644 --- a/resource-manager/hdinsight/2021-06-01/applications/method_listbycluster.go +++ b/resource-manager/hdinsight/2021-06-01/applications/method_listbycluster.go @@ -24,6 +24,18 @@ type ListByClusterCompleteResult struct { Items []Application } +type ListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCluster ... func (c ApplicationsClient) ListByCluster(ctx context.Context, id commonids.HDInsightClusterId) (result ListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationsClient) ListByCluster(ctx context.Context, id commonids.HDIn http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByClusterCustomPager{}, Path: fmt.Sprintf("%s/applications", id.ID()), } diff --git a/resource-manager/hdinsight/2021-06-01/clusters/method_list.go b/resource-manager/hdinsight/2021-06-01/clusters/method_list.go index c58a8c174fa..267d7e61ed1 100644 --- a/resource-manager/hdinsight/2021-06-01/clusters/method_list.go +++ b/resource-manager/hdinsight/2021-06-01/clusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HDInsight/clusters", id.ID()), } diff --git a/resource-manager/hdinsight/2021-06-01/clusters/method_listbyresourcegroup.go b/resource-manager/hdinsight/2021-06-01/clusters/method_listbyresourcegroup.go index 12634684786..1351046000e 100644 --- a/resource-manager/hdinsight/2021-06-01/clusters/method_listbyresourcegroup.go +++ b/resource-manager/hdinsight/2021-06-01/clusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HDInsight/clusters", id.ID()), } diff --git a/resource-manager/hdinsight/2021-06-01/privateendpointconnections/method_listbycluster.go b/resource-manager/hdinsight/2021-06-01/privateendpointconnections/method_listbycluster.go index f3a35cc42df..f5d25d2bfac 100644 --- a/resource-manager/hdinsight/2021-06-01/privateendpointconnections/method_listbycluster.go +++ b/resource-manager/hdinsight/2021-06-01/privateendpointconnections/method_listbycluster.go @@ -24,6 +24,18 @@ type ListByClusterCompleteResult struct { Items []PrivateEndpointConnection } +type ListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCluster ... func (c PrivateEndpointConnectionsClient) ListByCluster(ctx context.Context, id commonids.HDInsightClusterId) (result ListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateEndpointConnectionsClient) ListByCluster(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByClusterCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/hdinsight/2021-06-01/scriptactions/method_listbycluster.go b/resource-manager/hdinsight/2021-06-01/scriptactions/method_listbycluster.go index 0a966709d88..c9bec4b5c10 100644 --- a/resource-manager/hdinsight/2021-06-01/scriptactions/method_listbycluster.go +++ b/resource-manager/hdinsight/2021-06-01/scriptactions/method_listbycluster.go @@ -24,6 +24,18 @@ type ListByClusterCompleteResult struct { Items []RuntimeScriptActionDetail } +type ListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCluster ... func (c ScriptActionsClient) ListByCluster(ctx context.Context, id commonids.HDInsightClusterId) (result ListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ScriptActionsClient) ListByCluster(ctx context.Context, id commonids.HDI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByClusterCustomPager{}, Path: fmt.Sprintf("%s/scriptActions", id.ID()), } diff --git a/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/method_listbycluster.go b/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/method_listbycluster.go index 4d16f30b5dc..a69c67e83a9 100644 --- a/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/method_listbycluster.go +++ b/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/method_listbycluster.go @@ -24,6 +24,18 @@ type ListByClusterCompleteResult struct { Items []RuntimeScriptActionDetail } +type ListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCluster ... func (c ScriptExecutionHistoryClient) ListByCluster(ctx context.Context, id commonids.HDInsightClusterId) (result ListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ScriptExecutionHistoryClient) ListByCluster(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByClusterCustomPager{}, Path: fmt.Sprintf("%s/scriptExecutionHistory", id.ID()), } diff --git a/resource-manager/healthbot/2022-08-08/healthbots/method_botslist.go b/resource-manager/healthbot/2022-08-08/healthbots/method_botslist.go index 1e52aa777bd..d40ac3e9c25 100644 --- a/resource-manager/healthbot/2022-08-08/healthbots/method_botslist.go +++ b/resource-manager/healthbot/2022-08-08/healthbots/method_botslist.go @@ -24,6 +24,18 @@ type BotsListCompleteResult struct { Items []HealthBot } +type BotsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BotsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BotsList ... func (c HealthbotsClient) BotsList(ctx context.Context, id commonids.SubscriptionId) (result BotsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HealthbotsClient) BotsList(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BotsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthBot/healthBots", id.ID()), } diff --git a/resource-manager/healthbot/2022-08-08/healthbots/method_botslistbyresourcegroup.go b/resource-manager/healthbot/2022-08-08/healthbots/method_botslistbyresourcegroup.go index 46e760867ad..b5f18ef0e1f 100644 --- a/resource-manager/healthbot/2022-08-08/healthbots/method_botslistbyresourcegroup.go +++ b/resource-manager/healthbot/2022-08-08/healthbots/method_botslistbyresourcegroup.go @@ -24,6 +24,18 @@ type BotsListByResourceGroupCompleteResult struct { Items []HealthBot } +type BotsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BotsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BotsListByResourceGroup ... func (c HealthbotsClient) BotsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result BotsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HealthbotsClient) BotsListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BotsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthBot/healthBots", id.ID()), } diff --git a/resource-manager/healthbot/2023-05-01/healthbots/method_botslist.go b/resource-manager/healthbot/2023-05-01/healthbots/method_botslist.go index 1e52aa777bd..d40ac3e9c25 100644 --- a/resource-manager/healthbot/2023-05-01/healthbots/method_botslist.go +++ b/resource-manager/healthbot/2023-05-01/healthbots/method_botslist.go @@ -24,6 +24,18 @@ type BotsListCompleteResult struct { Items []HealthBot } +type BotsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BotsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BotsList ... func (c HealthbotsClient) BotsList(ctx context.Context, id commonids.SubscriptionId) (result BotsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HealthbotsClient) BotsList(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BotsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthBot/healthBots", id.ID()), } diff --git a/resource-manager/healthbot/2023-05-01/healthbots/method_botslistbyresourcegroup.go b/resource-manager/healthbot/2023-05-01/healthbots/method_botslistbyresourcegroup.go index 46e760867ad..b5f18ef0e1f 100644 --- a/resource-manager/healthbot/2023-05-01/healthbots/method_botslistbyresourcegroup.go +++ b/resource-manager/healthbot/2023-05-01/healthbots/method_botslistbyresourcegroup.go @@ -24,6 +24,18 @@ type BotsListByResourceGroupCompleteResult struct { Items []HealthBot } +type BotsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BotsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BotsListByResourceGroup ... func (c HealthbotsClient) BotsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result BotsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c HealthbotsClient) BotsListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BotsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthBot/healthBots", id.ID()), } diff --git a/resource-manager/healthcareapis/2022-12-01/collection/method_serviceslist.go b/resource-manager/healthcareapis/2022-12-01/collection/method_serviceslist.go index 4257c5c961f..3f13e159e11 100644 --- a/resource-manager/healthcareapis/2022-12-01/collection/method_serviceslist.go +++ b/resource-manager/healthcareapis/2022-12-01/collection/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []ServicesDescription } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c CollectionClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CollectionClient) ServicesList(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/services", id.ID()), } diff --git a/resource-manager/healthcareapis/2022-12-01/collection/method_serviceslistbyresourcegroup.go b/resource-manager/healthcareapis/2022-12-01/collection/method_serviceslistbyresourcegroup.go index 5284093817a..17a5950232b 100644 --- a/resource-manager/healthcareapis/2022-12-01/collection/method_serviceslistbyresourcegroup.go +++ b/resource-manager/healthcareapis/2022-12-01/collection/method_serviceslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ServicesListByResourceGroupCompleteResult struct { Items []ServicesDescription } +type ServicesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListByResourceGroup ... func (c CollectionClient) ServicesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CollectionClient) ServicesListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/services", id.ID()), } diff --git a/resource-manager/healthcareapis/2022-12-01/dicomservices/method_listbyworkspace.go b/resource-manager/healthcareapis/2022-12-01/dicomservices/method_listbyworkspace.go index a1b1a422e2a..34c934aa4aa 100644 --- a/resource-manager/healthcareapis/2022-12-01/dicomservices/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2022-12-01/dicomservices/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []DicomService } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/dicomServices", id.ID()), } diff --git a/resource-manager/healthcareapis/2022-12-01/fhirservices/method_listbyworkspace.go b/resource-manager/healthcareapis/2022-12-01/fhirservices/method_listbyworkspace.go index 7620bf528a5..7da01a91b52 100644 --- a/resource-manager/healthcareapis/2022-12-01/fhirservices/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2022-12-01/fhirservices/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []FhirService } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c FhirServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FhirServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/fhirServices", id.ID()), } diff --git a/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go b/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go index 63d76d91ab7..1622bc00b3f 100644 --- a/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go +++ b/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go @@ -23,6 +23,18 @@ type FhirDestinationsListByIotConnectorCompleteResult struct { Items []IotFhirDestination } +type FhirDestinationsListByIotConnectorCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FhirDestinationsListByIotConnectorCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FhirDestinationsListByIotConnector ... func (c IotConnectorsClient) FhirDestinationsListByIotConnector(ctx context.Context, id IotConnectorId) (result FhirDestinationsListByIotConnectorOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IotConnectorsClient) FhirDestinationsListByIotConnector(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &FhirDestinationsListByIotConnectorCustomPager{}, Path: fmt.Sprintf("%s/fhirDestinations", id.ID()), } diff --git a/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_listbyworkspace.go b/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_listbyworkspace.go index d3541e2df21..1a531eda156 100644 --- a/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []IotConnector } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c IotConnectorsClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IotConnectorsClient) ListByWorkspace(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/iotConnectors", id.ID()), } diff --git a/resource-manager/healthcareapis/2022-12-01/workspaces/method_listbyresourcegroup.go b/resource-manager/healthcareapis/2022-12-01/workspaces/method_listbyresourcegroup.go index e7518a5123f..7e8b222b6de 100644 --- a/resource-manager/healthcareapis/2022-12-01/workspaces/method_listbyresourcegroup.go +++ b/resource-manager/healthcareapis/2022-12-01/workspaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Workspace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/workspaces", id.ID()), } diff --git a/resource-manager/healthcareapis/2022-12-01/workspaces/method_listbysubscription.go b/resource-manager/healthcareapis/2022-12-01/workspaces/method_listbysubscription.go index 7b84644a5c6..f92ee059353 100644 --- a/resource-manager/healthcareapis/2022-12-01/workspaces/method_listbysubscription.go +++ b/resource-manager/healthcareapis/2022-12-01/workspaces/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Workspace } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/workspaces", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-02-28/collection/method_serviceslist.go b/resource-manager/healthcareapis/2023-02-28/collection/method_serviceslist.go index 4257c5c961f..3f13e159e11 100644 --- a/resource-manager/healthcareapis/2023-02-28/collection/method_serviceslist.go +++ b/resource-manager/healthcareapis/2023-02-28/collection/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []ServicesDescription } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c CollectionClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CollectionClient) ServicesList(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/services", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-02-28/collection/method_serviceslistbyresourcegroup.go b/resource-manager/healthcareapis/2023-02-28/collection/method_serviceslistbyresourcegroup.go index 5284093817a..17a5950232b 100644 --- a/resource-manager/healthcareapis/2023-02-28/collection/method_serviceslistbyresourcegroup.go +++ b/resource-manager/healthcareapis/2023-02-28/collection/method_serviceslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ServicesListByResourceGroupCompleteResult struct { Items []ServicesDescription } +type ServicesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListByResourceGroup ... func (c CollectionClient) ServicesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CollectionClient) ServicesListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/services", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-02-28/dicomservices/method_listbyworkspace.go b/resource-manager/healthcareapis/2023-02-28/dicomservices/method_listbyworkspace.go index a1b1a422e2a..34c934aa4aa 100644 --- a/resource-manager/healthcareapis/2023-02-28/dicomservices/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2023-02-28/dicomservices/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []DicomService } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/dicomServices", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-02-28/fhirservices/method_listbyworkspace.go b/resource-manager/healthcareapis/2023-02-28/fhirservices/method_listbyworkspace.go index 7620bf528a5..7da01a91b52 100644 --- a/resource-manager/healthcareapis/2023-02-28/fhirservices/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2023-02-28/fhirservices/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []FhirService } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c FhirServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FhirServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/fhirServices", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-02-28/iotconnectors/method_fhirdestinationslistbyiotconnector.go b/resource-manager/healthcareapis/2023-02-28/iotconnectors/method_fhirdestinationslistbyiotconnector.go index 63d76d91ab7..1622bc00b3f 100644 --- a/resource-manager/healthcareapis/2023-02-28/iotconnectors/method_fhirdestinationslistbyiotconnector.go +++ b/resource-manager/healthcareapis/2023-02-28/iotconnectors/method_fhirdestinationslistbyiotconnector.go @@ -23,6 +23,18 @@ type FhirDestinationsListByIotConnectorCompleteResult struct { Items []IotFhirDestination } +type FhirDestinationsListByIotConnectorCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FhirDestinationsListByIotConnectorCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FhirDestinationsListByIotConnector ... func (c IotConnectorsClient) FhirDestinationsListByIotConnector(ctx context.Context, id IotConnectorId) (result FhirDestinationsListByIotConnectorOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IotConnectorsClient) FhirDestinationsListByIotConnector(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &FhirDestinationsListByIotConnectorCustomPager{}, Path: fmt.Sprintf("%s/fhirDestinations", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-02-28/iotconnectors/method_listbyworkspace.go b/resource-manager/healthcareapis/2023-02-28/iotconnectors/method_listbyworkspace.go index d3541e2df21..1a531eda156 100644 --- a/resource-manager/healthcareapis/2023-02-28/iotconnectors/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2023-02-28/iotconnectors/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []IotConnector } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c IotConnectorsClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IotConnectorsClient) ListByWorkspace(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/iotConnectors", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-02-28/workspaces/method_listbyresourcegroup.go b/resource-manager/healthcareapis/2023-02-28/workspaces/method_listbyresourcegroup.go index e7518a5123f..7e8b222b6de 100644 --- a/resource-manager/healthcareapis/2023-02-28/workspaces/method_listbyresourcegroup.go +++ b/resource-manager/healthcareapis/2023-02-28/workspaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Workspace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/workspaces", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-02-28/workspaces/method_listbysubscription.go b/resource-manager/healthcareapis/2023-02-28/workspaces/method_listbysubscription.go index 7b84644a5c6..f92ee059353 100644 --- a/resource-manager/healthcareapis/2023-02-28/workspaces/method_listbysubscription.go +++ b/resource-manager/healthcareapis/2023-02-28/workspaces/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Workspace } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/workspaces", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-09-06/collection/method_serviceslist.go b/resource-manager/healthcareapis/2023-09-06/collection/method_serviceslist.go index 4257c5c961f..3f13e159e11 100644 --- a/resource-manager/healthcareapis/2023-09-06/collection/method_serviceslist.go +++ b/resource-manager/healthcareapis/2023-09-06/collection/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []ServicesDescription } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c CollectionClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CollectionClient) ServicesList(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/services", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-09-06/collection/method_serviceslistbyresourcegroup.go b/resource-manager/healthcareapis/2023-09-06/collection/method_serviceslistbyresourcegroup.go index 5284093817a..17a5950232b 100644 --- a/resource-manager/healthcareapis/2023-09-06/collection/method_serviceslistbyresourcegroup.go +++ b/resource-manager/healthcareapis/2023-09-06/collection/method_serviceslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ServicesListByResourceGroupCompleteResult struct { Items []ServicesDescription } +type ServicesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListByResourceGroup ... func (c CollectionClient) ServicesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CollectionClient) ServicesListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/services", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-09-06/dicomservices/method_listbyworkspace.go b/resource-manager/healthcareapis/2023-09-06/dicomservices/method_listbyworkspace.go index a1b1a422e2a..34c934aa4aa 100644 --- a/resource-manager/healthcareapis/2023-09-06/dicomservices/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2023-09-06/dicomservices/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []DicomService } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/dicomServices", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-09-06/fhirservices/method_listbyworkspace.go b/resource-manager/healthcareapis/2023-09-06/fhirservices/method_listbyworkspace.go index 7620bf528a5..7da01a91b52 100644 --- a/resource-manager/healthcareapis/2023-09-06/fhirservices/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2023-09-06/fhirservices/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []FhirService } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c FhirServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FhirServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/fhirServices", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-09-06/iotconnectors/method_fhirdestinationslistbyiotconnector.go b/resource-manager/healthcareapis/2023-09-06/iotconnectors/method_fhirdestinationslistbyiotconnector.go index 63d76d91ab7..1622bc00b3f 100644 --- a/resource-manager/healthcareapis/2023-09-06/iotconnectors/method_fhirdestinationslistbyiotconnector.go +++ b/resource-manager/healthcareapis/2023-09-06/iotconnectors/method_fhirdestinationslistbyiotconnector.go @@ -23,6 +23,18 @@ type FhirDestinationsListByIotConnectorCompleteResult struct { Items []IotFhirDestination } +type FhirDestinationsListByIotConnectorCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FhirDestinationsListByIotConnectorCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FhirDestinationsListByIotConnector ... func (c IotConnectorsClient) FhirDestinationsListByIotConnector(ctx context.Context, id IotConnectorId) (result FhirDestinationsListByIotConnectorOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IotConnectorsClient) FhirDestinationsListByIotConnector(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &FhirDestinationsListByIotConnectorCustomPager{}, Path: fmt.Sprintf("%s/fhirDestinations", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-09-06/iotconnectors/method_listbyworkspace.go b/resource-manager/healthcareapis/2023-09-06/iotconnectors/method_listbyworkspace.go index d3541e2df21..1a531eda156 100644 --- a/resource-manager/healthcareapis/2023-09-06/iotconnectors/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2023-09-06/iotconnectors/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []IotConnector } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c IotConnectorsClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IotConnectorsClient) ListByWorkspace(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/iotConnectors", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-09-06/workspaces/method_listbyresourcegroup.go b/resource-manager/healthcareapis/2023-09-06/workspaces/method_listbyresourcegroup.go index e7518a5123f..7e8b222b6de 100644 --- a/resource-manager/healthcareapis/2023-09-06/workspaces/method_listbyresourcegroup.go +++ b/resource-manager/healthcareapis/2023-09-06/workspaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Workspace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/workspaces", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-09-06/workspaces/method_listbysubscription.go b/resource-manager/healthcareapis/2023-09-06/workspaces/method_listbysubscription.go index 7b84644a5c6..f92ee059353 100644 --- a/resource-manager/healthcareapis/2023-09-06/workspaces/method_listbysubscription.go +++ b/resource-manager/healthcareapis/2023-09-06/workspaces/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Workspace } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/workspaces", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-11-01/collection/method_serviceslist.go b/resource-manager/healthcareapis/2023-11-01/collection/method_serviceslist.go index 4257c5c961f..3f13e159e11 100644 --- a/resource-manager/healthcareapis/2023-11-01/collection/method_serviceslist.go +++ b/resource-manager/healthcareapis/2023-11-01/collection/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []ServicesDescription } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c CollectionClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CollectionClient) ServicesList(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/services", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-11-01/collection/method_serviceslistbyresourcegroup.go b/resource-manager/healthcareapis/2023-11-01/collection/method_serviceslistbyresourcegroup.go index 5284093817a..17a5950232b 100644 --- a/resource-manager/healthcareapis/2023-11-01/collection/method_serviceslistbyresourcegroup.go +++ b/resource-manager/healthcareapis/2023-11-01/collection/method_serviceslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ServicesListByResourceGroupCompleteResult struct { Items []ServicesDescription } +type ServicesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListByResourceGroup ... func (c CollectionClient) ServicesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CollectionClient) ServicesListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/services", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-11-01/dicomservices/method_listbyworkspace.go b/resource-manager/healthcareapis/2023-11-01/dicomservices/method_listbyworkspace.go index a1b1a422e2a..34c934aa4aa 100644 --- a/resource-manager/healthcareapis/2023-11-01/dicomservices/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2023-11-01/dicomservices/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []DicomService } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/dicomServices", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-11-01/fhirservices/method_listbyworkspace.go b/resource-manager/healthcareapis/2023-11-01/fhirservices/method_listbyworkspace.go index 7620bf528a5..7da01a91b52 100644 --- a/resource-manager/healthcareapis/2023-11-01/fhirservices/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2023-11-01/fhirservices/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []FhirService } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c FhirServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FhirServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/fhirServices", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-11-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go b/resource-manager/healthcareapis/2023-11-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go index 63d76d91ab7..1622bc00b3f 100644 --- a/resource-manager/healthcareapis/2023-11-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go +++ b/resource-manager/healthcareapis/2023-11-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go @@ -23,6 +23,18 @@ type FhirDestinationsListByIotConnectorCompleteResult struct { Items []IotFhirDestination } +type FhirDestinationsListByIotConnectorCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FhirDestinationsListByIotConnectorCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FhirDestinationsListByIotConnector ... func (c IotConnectorsClient) FhirDestinationsListByIotConnector(ctx context.Context, id IotConnectorId) (result FhirDestinationsListByIotConnectorOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IotConnectorsClient) FhirDestinationsListByIotConnector(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &FhirDestinationsListByIotConnectorCustomPager{}, Path: fmt.Sprintf("%s/fhirDestinations", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-11-01/iotconnectors/method_listbyworkspace.go b/resource-manager/healthcareapis/2023-11-01/iotconnectors/method_listbyworkspace.go index d3541e2df21..1a531eda156 100644 --- a/resource-manager/healthcareapis/2023-11-01/iotconnectors/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2023-11-01/iotconnectors/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []IotConnector } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c IotConnectorsClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IotConnectorsClient) ListByWorkspace(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/iotConnectors", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-11-01/workspaces/method_listbyresourcegroup.go b/resource-manager/healthcareapis/2023-11-01/workspaces/method_listbyresourcegroup.go index e7518a5123f..7e8b222b6de 100644 --- a/resource-manager/healthcareapis/2023-11-01/workspaces/method_listbyresourcegroup.go +++ b/resource-manager/healthcareapis/2023-11-01/workspaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Workspace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/workspaces", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-11-01/workspaces/method_listbysubscription.go b/resource-manager/healthcareapis/2023-11-01/workspaces/method_listbysubscription.go index 7b84644a5c6..f92ee059353 100644 --- a/resource-manager/healthcareapis/2023-11-01/workspaces/method_listbysubscription.go +++ b/resource-manager/healthcareapis/2023-11-01/workspaces/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Workspace } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/workspaces", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-12-01/collection/method_serviceslist.go b/resource-manager/healthcareapis/2023-12-01/collection/method_serviceslist.go index 4257c5c961f..3f13e159e11 100644 --- a/resource-manager/healthcareapis/2023-12-01/collection/method_serviceslist.go +++ b/resource-manager/healthcareapis/2023-12-01/collection/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []ServicesDescription } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c CollectionClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CollectionClient) ServicesList(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/services", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-12-01/collection/method_serviceslistbyresourcegroup.go b/resource-manager/healthcareapis/2023-12-01/collection/method_serviceslistbyresourcegroup.go index 5284093817a..17a5950232b 100644 --- a/resource-manager/healthcareapis/2023-12-01/collection/method_serviceslistbyresourcegroup.go +++ b/resource-manager/healthcareapis/2023-12-01/collection/method_serviceslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ServicesListByResourceGroupCompleteResult struct { Items []ServicesDescription } +type ServicesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListByResourceGroup ... func (c CollectionClient) ServicesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CollectionClient) ServicesListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/services", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-12-01/dicomservices/method_listbyworkspace.go b/resource-manager/healthcareapis/2023-12-01/dicomservices/method_listbyworkspace.go index a1b1a422e2a..34c934aa4aa 100644 --- a/resource-manager/healthcareapis/2023-12-01/dicomservices/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2023-12-01/dicomservices/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []DicomService } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/dicomServices", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-12-01/fhirservices/method_listbyworkspace.go b/resource-manager/healthcareapis/2023-12-01/fhirservices/method_listbyworkspace.go index 7620bf528a5..7da01a91b52 100644 --- a/resource-manager/healthcareapis/2023-12-01/fhirservices/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2023-12-01/fhirservices/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []FhirService } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c FhirServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FhirServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/fhirServices", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-12-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go b/resource-manager/healthcareapis/2023-12-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go index 63d76d91ab7..1622bc00b3f 100644 --- a/resource-manager/healthcareapis/2023-12-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go +++ b/resource-manager/healthcareapis/2023-12-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go @@ -23,6 +23,18 @@ type FhirDestinationsListByIotConnectorCompleteResult struct { Items []IotFhirDestination } +type FhirDestinationsListByIotConnectorCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FhirDestinationsListByIotConnectorCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FhirDestinationsListByIotConnector ... func (c IotConnectorsClient) FhirDestinationsListByIotConnector(ctx context.Context, id IotConnectorId) (result FhirDestinationsListByIotConnectorOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IotConnectorsClient) FhirDestinationsListByIotConnector(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &FhirDestinationsListByIotConnectorCustomPager{}, Path: fmt.Sprintf("%s/fhirDestinations", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-12-01/iotconnectors/method_listbyworkspace.go b/resource-manager/healthcareapis/2023-12-01/iotconnectors/method_listbyworkspace.go index d3541e2df21..1a531eda156 100644 --- a/resource-manager/healthcareapis/2023-12-01/iotconnectors/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2023-12-01/iotconnectors/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []IotConnector } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c IotConnectorsClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IotConnectorsClient) ListByWorkspace(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/iotConnectors", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-12-01/workspaces/method_listbyresourcegroup.go b/resource-manager/healthcareapis/2023-12-01/workspaces/method_listbyresourcegroup.go index e7518a5123f..7e8b222b6de 100644 --- a/resource-manager/healthcareapis/2023-12-01/workspaces/method_listbyresourcegroup.go +++ b/resource-manager/healthcareapis/2023-12-01/workspaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Workspace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/workspaces", id.ID()), } diff --git a/resource-manager/healthcareapis/2023-12-01/workspaces/method_listbysubscription.go b/resource-manager/healthcareapis/2023-12-01/workspaces/method_listbysubscription.go index 7b84644a5c6..f92ee059353 100644 --- a/resource-manager/healthcareapis/2023-12-01/workspaces/method_listbysubscription.go +++ b/resource-manager/healthcareapis/2023-12-01/workspaces/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Workspace } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/workspaces", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-01/collection/method_serviceslist.go b/resource-manager/healthcareapis/2024-03-01/collection/method_serviceslist.go index 4257c5c961f..3f13e159e11 100644 --- a/resource-manager/healthcareapis/2024-03-01/collection/method_serviceslist.go +++ b/resource-manager/healthcareapis/2024-03-01/collection/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []ServicesDescription } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c CollectionClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CollectionClient) ServicesList(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/services", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-01/collection/method_serviceslistbyresourcegroup.go b/resource-manager/healthcareapis/2024-03-01/collection/method_serviceslistbyresourcegroup.go index 5284093817a..17a5950232b 100644 --- a/resource-manager/healthcareapis/2024-03-01/collection/method_serviceslistbyresourcegroup.go +++ b/resource-manager/healthcareapis/2024-03-01/collection/method_serviceslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ServicesListByResourceGroupCompleteResult struct { Items []ServicesDescription } +type ServicesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListByResourceGroup ... func (c CollectionClient) ServicesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CollectionClient) ServicesListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/services", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-01/dicomservices/method_listbyworkspace.go b/resource-manager/healthcareapis/2024-03-01/dicomservices/method_listbyworkspace.go index a1b1a422e2a..34c934aa4aa 100644 --- a/resource-manager/healthcareapis/2024-03-01/dicomservices/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2024-03-01/dicomservices/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []DicomService } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/dicomServices", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-01/fhirservices/method_listbyworkspace.go b/resource-manager/healthcareapis/2024-03-01/fhirservices/method_listbyworkspace.go index 7620bf528a5..7da01a91b52 100644 --- a/resource-manager/healthcareapis/2024-03-01/fhirservices/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2024-03-01/fhirservices/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []FhirService } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c FhirServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FhirServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/fhirServices", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go b/resource-manager/healthcareapis/2024-03-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go index 63d76d91ab7..1622bc00b3f 100644 --- a/resource-manager/healthcareapis/2024-03-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go +++ b/resource-manager/healthcareapis/2024-03-01/iotconnectors/method_fhirdestinationslistbyiotconnector.go @@ -23,6 +23,18 @@ type FhirDestinationsListByIotConnectorCompleteResult struct { Items []IotFhirDestination } +type FhirDestinationsListByIotConnectorCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FhirDestinationsListByIotConnectorCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FhirDestinationsListByIotConnector ... func (c IotConnectorsClient) FhirDestinationsListByIotConnector(ctx context.Context, id IotConnectorId) (result FhirDestinationsListByIotConnectorOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IotConnectorsClient) FhirDestinationsListByIotConnector(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &FhirDestinationsListByIotConnectorCustomPager{}, Path: fmt.Sprintf("%s/fhirDestinations", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-01/iotconnectors/method_listbyworkspace.go b/resource-manager/healthcareapis/2024-03-01/iotconnectors/method_listbyworkspace.go index d3541e2df21..1a531eda156 100644 --- a/resource-manager/healthcareapis/2024-03-01/iotconnectors/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2024-03-01/iotconnectors/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []IotConnector } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c IotConnectorsClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IotConnectorsClient) ListByWorkspace(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/iotConnectors", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-01/workspaces/method_listbyresourcegroup.go b/resource-manager/healthcareapis/2024-03-01/workspaces/method_listbyresourcegroup.go index e7518a5123f..7e8b222b6de 100644 --- a/resource-manager/healthcareapis/2024-03-01/workspaces/method_listbyresourcegroup.go +++ b/resource-manager/healthcareapis/2024-03-01/workspaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Workspace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/workspaces", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-01/workspaces/method_listbysubscription.go b/resource-manager/healthcareapis/2024-03-01/workspaces/method_listbysubscription.go index 7b84644a5c6..f92ee059353 100644 --- a/resource-manager/healthcareapis/2024-03-01/workspaces/method_listbysubscription.go +++ b/resource-manager/healthcareapis/2024-03-01/workspaces/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Workspace } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/workspaces", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-31/collection/method_serviceslist.go b/resource-manager/healthcareapis/2024-03-31/collection/method_serviceslist.go index 4257c5c961f..3f13e159e11 100644 --- a/resource-manager/healthcareapis/2024-03-31/collection/method_serviceslist.go +++ b/resource-manager/healthcareapis/2024-03-31/collection/method_serviceslist.go @@ -24,6 +24,18 @@ type ServicesListCompleteResult struct { Items []ServicesDescription } +type ServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesList ... func (c CollectionClient) ServicesList(ctx context.Context, id commonids.SubscriptionId) (result ServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CollectionClient) ServicesList(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/services", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-31/collection/method_serviceslistbyresourcegroup.go b/resource-manager/healthcareapis/2024-03-31/collection/method_serviceslistbyresourcegroup.go index 5284093817a..17a5950232b 100644 --- a/resource-manager/healthcareapis/2024-03-31/collection/method_serviceslistbyresourcegroup.go +++ b/resource-manager/healthcareapis/2024-03-31/collection/method_serviceslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ServicesListByResourceGroupCompleteResult struct { Items []ServicesDescription } +type ServicesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServicesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServicesListByResourceGroup ... func (c CollectionClient) ServicesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ServicesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CollectionClient) ServicesListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServicesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/services", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-31/dicomservices/method_listbyworkspace.go b/resource-manager/healthcareapis/2024-03-31/dicomservices/method_listbyworkspace.go index a1b1a422e2a..34c934aa4aa 100644 --- a/resource-manager/healthcareapis/2024-03-31/dicomservices/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2024-03-31/dicomservices/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []DicomService } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DicomServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/dicomServices", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-31/fhirservices/method_listbyworkspace.go b/resource-manager/healthcareapis/2024-03-31/fhirservices/method_listbyworkspace.go index 7620bf528a5..7da01a91b52 100644 --- a/resource-manager/healthcareapis/2024-03-31/fhirservices/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2024-03-31/fhirservices/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []FhirService } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c FhirServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FhirServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/fhirServices", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-31/iotconnectors/method_fhirdestinationslistbyiotconnector.go b/resource-manager/healthcareapis/2024-03-31/iotconnectors/method_fhirdestinationslistbyiotconnector.go index 63d76d91ab7..1622bc00b3f 100644 --- a/resource-manager/healthcareapis/2024-03-31/iotconnectors/method_fhirdestinationslistbyiotconnector.go +++ b/resource-manager/healthcareapis/2024-03-31/iotconnectors/method_fhirdestinationslistbyiotconnector.go @@ -23,6 +23,18 @@ type FhirDestinationsListByIotConnectorCompleteResult struct { Items []IotFhirDestination } +type FhirDestinationsListByIotConnectorCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FhirDestinationsListByIotConnectorCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FhirDestinationsListByIotConnector ... func (c IotConnectorsClient) FhirDestinationsListByIotConnector(ctx context.Context, id IotConnectorId) (result FhirDestinationsListByIotConnectorOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IotConnectorsClient) FhirDestinationsListByIotConnector(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &FhirDestinationsListByIotConnectorCustomPager{}, Path: fmt.Sprintf("%s/fhirDestinations", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-31/iotconnectors/method_listbyworkspace.go b/resource-manager/healthcareapis/2024-03-31/iotconnectors/method_listbyworkspace.go index d3541e2df21..1a531eda156 100644 --- a/resource-manager/healthcareapis/2024-03-31/iotconnectors/method_listbyworkspace.go +++ b/resource-manager/healthcareapis/2024-03-31/iotconnectors/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []IotConnector } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c IotConnectorsClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IotConnectorsClient) ListByWorkspace(ctx context.Context, id WorkspaceId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/iotConnectors", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-31/workspaces/method_listbyresourcegroup.go b/resource-manager/healthcareapis/2024-03-31/workspaces/method_listbyresourcegroup.go index e7518a5123f..7e8b222b6de 100644 --- a/resource-manager/healthcareapis/2024-03-31/workspaces/method_listbyresourcegroup.go +++ b/resource-manager/healthcareapis/2024-03-31/workspaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Workspace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/workspaces", id.ID()), } diff --git a/resource-manager/healthcareapis/2024-03-31/workspaces/method_listbysubscription.go b/resource-manager/healthcareapis/2024-03-31/workspaces/method_listbysubscription.go index 7b84644a5c6..f92ee059353 100644 --- a/resource-manager/healthcareapis/2024-03-31/workspaces/method_listbysubscription.go +++ b/resource-manager/healthcareapis/2024-03-31/workspaces/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Workspace } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HealthcareApis/workspaces", id.ID()), } diff --git a/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoollistbyprovisionedcluster.go b/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoollistbyprovisionedcluster.go index ff74fa001e3..a68a50ee246 100644 --- a/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoollistbyprovisionedcluster.go +++ b/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_agentpoollistbyprovisionedcluster.go @@ -24,6 +24,18 @@ type AgentPoolListByProvisionedClusterCompleteResult struct { Items []AgentPool } +type AgentPoolListByProvisionedClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AgentPoolListByProvisionedClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AgentPoolListByProvisionedCluster ... func (c ProvisionedClusterInstancesClient) AgentPoolListByProvisionedCluster(ctx context.Context, id commonids.ScopeId) (result AgentPoolListByProvisionedClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProvisionedClusterInstancesClient) AgentPoolListByProvisionedCluster(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AgentPoolListByProvisionedClusterCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/agentPools", id.ID()), } diff --git a/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatalistbycluster.go b/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatalistbycluster.go index 8ed6dd3a351..173a8777741 100644 --- a/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatalistbycluster.go +++ b/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_hybrididentitymetadatalistbycluster.go @@ -24,6 +24,18 @@ type HybridIdentityMetadataListByClusterCompleteResult struct { Items []HybridIdentityMetadata } +type HybridIdentityMetadataListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HybridIdentityMetadataListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // HybridIdentityMetadataListByCluster ... func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataListByCluster(ctx context.Context, id commonids.ScopeId) (result HybridIdentityMetadataListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProvisionedClusterInstancesClient) HybridIdentityMetadataListByCluster(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &HybridIdentityMetadataListByClusterCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances/default/hybridIdentityMetadata", id.ID()), } diff --git a/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_kubernetesversionslist.go b/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_kubernetesversionslist.go index a0baf89d86b..2f3de43b89a 100644 --- a/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_kubernetesversionslist.go +++ b/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_kubernetesversionslist.go @@ -24,6 +24,18 @@ type KubernetesVersionsListCompleteResult struct { Items []KubernetesVersionProfile } +type KubernetesVersionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *KubernetesVersionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // KubernetesVersionsList ... func (c ProvisionedClusterInstancesClient) KubernetesVersionsList(ctx context.Context, id commonids.ScopeId) (result KubernetesVersionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProvisionedClusterInstancesClient) KubernetesVersionsList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &KubernetesVersionsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/kubernetesVersions", id.ID()), } diff --git a/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstanceslist.go b/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstanceslist.go index bb8069612e0..7f2aff66196 100644 --- a/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstanceslist.go +++ b/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_provisionedclusterinstanceslist.go @@ -24,6 +24,18 @@ type ProvisionedClusterInstancesListCompleteResult struct { Items []ProvisionedCluster } +type ProvisionedClusterInstancesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProvisionedClusterInstancesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProvisionedClusterInstancesList ... func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesList(ctx context.Context, id commonids.ScopeId) (result ProvisionedClusterInstancesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProvisionedClusterInstancesClient) ProvisionedClusterInstancesList(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ProvisionedClusterInstancesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/provisionedClusterInstances", id.ID()), } diff --git a/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_vmskuslist.go b/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_vmskuslist.go index 07e4da521a7..2739c8e7dcd 100644 --- a/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_vmskuslist.go +++ b/resource-manager/hybridazurekubernetesservice/2024-01-01/provisionedclusterinstances/method_vmskuslist.go @@ -24,6 +24,18 @@ type VMSkusListCompleteResult struct { Items []VMSkuProfile } +type VMSkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VMSkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VMSkusList ... func (c ProvisionedClusterInstancesClient) VMSkusList(ctx context.Context, id commonids.ScopeId) (result VMSkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProvisionedClusterInstancesClient) VMSkusList(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VMSkusListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/skus", id.ID()), } diff --git a/resource-manager/hybridazurekubernetesservice/2024-01-01/virtualnetworks/method_listbyresourcegroup.go b/resource-manager/hybridazurekubernetesservice/2024-01-01/virtualnetworks/method_listbyresourcegroup.go index e60678f8e0e..6d4017ecf6a 100644 --- a/resource-manager/hybridazurekubernetesservice/2024-01-01/virtualnetworks/method_listbyresourcegroup.go +++ b/resource-manager/hybridazurekubernetesservice/2024-01-01/virtualnetworks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualNetwork } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualNetworksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/virtualNetworks", id.ID()), } diff --git a/resource-manager/hybridazurekubernetesservice/2024-01-01/virtualnetworks/method_listbysubscription.go b/resource-manager/hybridazurekubernetesservice/2024-01-01/virtualnetworks/method_listbysubscription.go index 66b5e672c88..24e73d822f7 100644 --- a/resource-manager/hybridazurekubernetesservice/2024-01-01/virtualnetworks/method_listbysubscription.go +++ b/resource-manager/hybridazurekubernetesservice/2024-01-01/virtualnetworks/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []VirtualNetwork } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c VirtualNetworksClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridContainerService/virtualNetworks", id.ID()), } diff --git a/resource-manager/hybridcompute/2022-11-10/machineextensions/method_list.go b/resource-manager/hybridcompute/2022-11-10/machineextensions/method_list.go index fb76773363f..d9646c3c81e 100644 --- a/resource-manager/hybridcompute/2022-11-10/machineextensions/method_list.go +++ b/resource-manager/hybridcompute/2022-11-10/machineextensions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MachineExtensionsClient) List(ctx context.Context, id MachineId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c MachineExtensionsClient) List(ctx context.Context, id MachineId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/extensions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/extensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/hybridcompute/2022-11-10/machines/method_get.go b/resource-manager/hybridcompute/2022-11-10/machines/method_get.go index bfc7785a109..4cc80ee5628 100644 --- a/resource-manager/hybridcompute/2022-11-10/machines/method_get.go +++ b/resource-manager/hybridcompute/2022-11-10/machines/method_get.go @@ -53,8 +53,8 @@ func (c MachinesClient) Get(ctx context.Context, id MachineId, options GetOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/hybridcompute/2022-11-10/machines/method_listbyresourcegroup.go b/resource-manager/hybridcompute/2022-11-10/machines/method_listbyresourcegroup.go index 1d1206df163..998aad16bff 100644 --- a/resource-manager/hybridcompute/2022-11-10/machines/method_listbyresourcegroup.go +++ b/resource-manager/hybridcompute/2022-11-10/machines/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Machine } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c MachinesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MachinesClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridCompute/machines", id.ID()), } diff --git a/resource-manager/hybridcompute/2022-11-10/machines/method_listbysubscription.go b/resource-manager/hybridcompute/2022-11-10/machines/method_listbysubscription.go index 283e36e16ee..ea000d8d739 100644 --- a/resource-manager/hybridcompute/2022-11-10/machines/method_listbysubscription.go +++ b/resource-manager/hybridcompute/2022-11-10/machines/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Machine } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c MachinesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MachinesClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridCompute/machines", id.ID()), } diff --git a/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/method_listbyprivatelinkscope.go b/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/method_listbyprivatelinkscope.go index 39cb2d8a58a..6f549ecb04d 100644 --- a/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/method_listbyprivatelinkscope.go +++ b/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/method_listbyprivatelinkscope.go @@ -23,6 +23,18 @@ type ListByPrivateLinkScopeCompleteResult struct { Items []PrivateEndpointConnection } +type ListByPrivateLinkScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPrivateLinkScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPrivateLinkScope ... func (c PrivateEndpointConnectionsClient) ListByPrivateLinkScope(ctx context.Context, id ProviderPrivateLinkScopeId) (result ListByPrivateLinkScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) ListByPrivateLinkScope(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPrivateLinkScopeCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/hybridcompute/2022-11-10/privatelinkresources/method_listbyprivatelinkscope.go b/resource-manager/hybridcompute/2022-11-10/privatelinkresources/method_listbyprivatelinkscope.go index c7d14ac52a4..3d0cadde9f7 100644 --- a/resource-manager/hybridcompute/2022-11-10/privatelinkresources/method_listbyprivatelinkscope.go +++ b/resource-manager/hybridcompute/2022-11-10/privatelinkresources/method_listbyprivatelinkscope.go @@ -23,6 +23,18 @@ type ListByPrivateLinkScopeCompleteResult struct { Items []PrivateLinkResource } +type ListByPrivateLinkScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPrivateLinkScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPrivateLinkScope ... func (c PrivateLinkResourcesClient) ListByPrivateLinkScope(ctx context.Context, id ProviderPrivateLinkScopeId) (result ListByPrivateLinkScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) ListByPrivateLinkScope(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPrivateLinkScopeCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_list.go b/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_list.go index a20038d89a9..cf7cb6a98b9 100644 --- a/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_list.go +++ b/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []HybridComputePrivateLinkScope } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkScopesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkScopesClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridCompute/privateLinkScopes", id.ID()), } diff --git a/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_listbyresourcegroup.go b/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_listbyresourcegroup.go index 76b362ffae7..816a40b7f9e 100644 --- a/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_listbyresourcegroup.go +++ b/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []HybridComputePrivateLinkScope } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PrivateLinkScopesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkScopesClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridCompute/privateLinkScopes", id.ID()), } diff --git a/resource-manager/hybridcompute/2022-12-27/machineextensions/method_list.go b/resource-manager/hybridcompute/2022-12-27/machineextensions/method_list.go index fb76773363f..d9646c3c81e 100644 --- a/resource-manager/hybridcompute/2022-12-27/machineextensions/method_list.go +++ b/resource-manager/hybridcompute/2022-12-27/machineextensions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MachineExtensionsClient) List(ctx context.Context, id MachineId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c MachineExtensionsClient) List(ctx context.Context, id MachineId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/extensions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/extensions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/hybridcompute/2022-12-27/machines/method_get.go b/resource-manager/hybridcompute/2022-12-27/machines/method_get.go index bfc7785a109..4cc80ee5628 100644 --- a/resource-manager/hybridcompute/2022-12-27/machines/method_get.go +++ b/resource-manager/hybridcompute/2022-12-27/machines/method_get.go @@ -53,8 +53,8 @@ func (c MachinesClient) Get(ctx context.Context, id MachineId, options GetOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/hybridcompute/2022-12-27/machines/method_listbyresourcegroup.go b/resource-manager/hybridcompute/2022-12-27/machines/method_listbyresourcegroup.go index 1d1206df163..998aad16bff 100644 --- a/resource-manager/hybridcompute/2022-12-27/machines/method_listbyresourcegroup.go +++ b/resource-manager/hybridcompute/2022-12-27/machines/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Machine } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c MachinesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MachinesClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridCompute/machines", id.ID()), } diff --git a/resource-manager/hybridcompute/2022-12-27/machines/method_listbysubscription.go b/resource-manager/hybridcompute/2022-12-27/machines/method_listbysubscription.go index 283e36e16ee..ea000d8d739 100644 --- a/resource-manager/hybridcompute/2022-12-27/machines/method_listbysubscription.go +++ b/resource-manager/hybridcompute/2022-12-27/machines/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Machine } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c MachinesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MachinesClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridCompute/machines", id.ID()), } diff --git a/resource-manager/hybridcompute/2022-12-27/privateendpointconnections/method_listbyprivatelinkscope.go b/resource-manager/hybridcompute/2022-12-27/privateendpointconnections/method_listbyprivatelinkscope.go index 39cb2d8a58a..6f549ecb04d 100644 --- a/resource-manager/hybridcompute/2022-12-27/privateendpointconnections/method_listbyprivatelinkscope.go +++ b/resource-manager/hybridcompute/2022-12-27/privateendpointconnections/method_listbyprivatelinkscope.go @@ -23,6 +23,18 @@ type ListByPrivateLinkScopeCompleteResult struct { Items []PrivateEndpointConnection } +type ListByPrivateLinkScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPrivateLinkScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPrivateLinkScope ... func (c PrivateEndpointConnectionsClient) ListByPrivateLinkScope(ctx context.Context, id ProviderPrivateLinkScopeId) (result ListByPrivateLinkScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) ListByPrivateLinkScope(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPrivateLinkScopeCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/hybridcompute/2022-12-27/privatelinkresources/method_listbyprivatelinkscope.go b/resource-manager/hybridcompute/2022-12-27/privatelinkresources/method_listbyprivatelinkscope.go index c7d14ac52a4..3d0cadde9f7 100644 --- a/resource-manager/hybridcompute/2022-12-27/privatelinkresources/method_listbyprivatelinkscope.go +++ b/resource-manager/hybridcompute/2022-12-27/privatelinkresources/method_listbyprivatelinkscope.go @@ -23,6 +23,18 @@ type ListByPrivateLinkScopeCompleteResult struct { Items []PrivateLinkResource } +type ListByPrivateLinkScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPrivateLinkScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPrivateLinkScope ... func (c PrivateLinkResourcesClient) ListByPrivateLinkScope(ctx context.Context, id ProviderPrivateLinkScopeId) (result ListByPrivateLinkScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) ListByPrivateLinkScope(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPrivateLinkScopeCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/hybridcompute/2022-12-27/privatelinkscopes/method_list.go b/resource-manager/hybridcompute/2022-12-27/privatelinkscopes/method_list.go index a20038d89a9..cf7cb6a98b9 100644 --- a/resource-manager/hybridcompute/2022-12-27/privatelinkscopes/method_list.go +++ b/resource-manager/hybridcompute/2022-12-27/privatelinkscopes/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []HybridComputePrivateLinkScope } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkScopesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkScopesClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridCompute/privateLinkScopes", id.ID()), } diff --git a/resource-manager/hybridcompute/2022-12-27/privatelinkscopes/method_listbyresourcegroup.go b/resource-manager/hybridcompute/2022-12-27/privatelinkscopes/method_listbyresourcegroup.go index 76b362ffae7..816a40b7f9e 100644 --- a/resource-manager/hybridcompute/2022-12-27/privatelinkscopes/method_listbyresourcegroup.go +++ b/resource-manager/hybridcompute/2022-12-27/privatelinkscopes/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []HybridComputePrivateLinkScope } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PrivateLinkScopesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkScopesClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.HybridCompute/privateLinkScopes", id.ID()), } diff --git a/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterlistbyresourcegroup.go b/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterlistbyresourcegroup.go index 22b793a5c68..4429def6a6f 100644 --- a/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterlistbyresourcegroup.go +++ b/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterlistbyresourcegroup.go @@ -24,6 +24,18 @@ type ConnectedClusterListByResourceGroupCompleteResult struct { Items []ConnectedCluster } +type ConnectedClusterListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConnectedClusterListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConnectedClusterListByResourceGroup ... func (c ConnectedClustersClient) ConnectedClusterListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ConnectedClusterListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConnectedClustersClient) ConnectedClusterListByResourceGroup(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConnectedClusterListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Kubernetes/connectedClusters", id.ID()), } diff --git a/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterlistbysubscription.go b/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterlistbysubscription.go index 62404873270..6abe9817dda 100644 --- a/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterlistbysubscription.go +++ b/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterlistbysubscription.go @@ -24,6 +24,18 @@ type ConnectedClusterListBySubscriptionCompleteResult struct { Items []ConnectedCluster } +type ConnectedClusterListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConnectedClusterListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConnectedClusterListBySubscription ... func (c ConnectedClustersClient) ConnectedClusterListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ConnectedClusterListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConnectedClustersClient) ConnectedClusterListBySubscription(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConnectedClusterListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Kubernetes/connectedClusters", id.ID()), } diff --git a/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterlistbyresourcegroup.go b/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterlistbyresourcegroup.go index 22b793a5c68..4429def6a6f 100644 --- a/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterlistbyresourcegroup.go +++ b/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterlistbyresourcegroup.go @@ -24,6 +24,18 @@ type ConnectedClusterListByResourceGroupCompleteResult struct { Items []ConnectedCluster } +type ConnectedClusterListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConnectedClusterListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConnectedClusterListByResourceGroup ... func (c ConnectedClustersClient) ConnectedClusterListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ConnectedClusterListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConnectedClustersClient) ConnectedClusterListByResourceGroup(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConnectedClusterListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Kubernetes/connectedClusters", id.ID()), } diff --git a/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterlistbysubscription.go b/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterlistbysubscription.go index 62404873270..6abe9817dda 100644 --- a/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterlistbysubscription.go +++ b/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterlistbysubscription.go @@ -24,6 +24,18 @@ type ConnectedClusterListBySubscriptionCompleteResult struct { Items []ConnectedCluster } +type ConnectedClusterListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConnectedClusterListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConnectedClusterListBySubscription ... func (c ConnectedClustersClient) ConnectedClusterListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ConnectedClusterListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ConnectedClustersClient) ConnectedClusterListBySubscription(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConnectedClusterListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Kubernetes/connectedClusters", id.ID()), } diff --git a/resource-manager/insights/2015-04-01/activitylogs/method_list.go b/resource-manager/insights/2015-04-01/activitylogs/method_list.go index 0acdf24324f..5d3d59051b8 100644 --- a/resource-manager/insights/2015-04-01/activitylogs/method_list.go +++ b/resource-manager/insights/2015-04-01/activitylogs/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ActivityLogsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ActivityLogsClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/eventtypes/management/values", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/eventtypes/management/values", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2015-04-01/autoscalesettings/method_listbyresourcegroup.go b/resource-manager/insights/2015-04-01/autoscalesettings/method_listbyresourcegroup.go index 7e33dafeea6..925e271e6bf 100644 --- a/resource-manager/insights/2015-04-01/autoscalesettings/method_listbyresourcegroup.go +++ b/resource-manager/insights/2015-04-01/autoscalesettings/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AutoscaleSettingResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AutoScaleSettingsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutoScaleSettingsClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/autoScaleSettings", id.ID()), } diff --git a/resource-manager/insights/2015-04-01/autoscalesettings/method_listbysubscription.go b/resource-manager/insights/2015-04-01/autoscalesettings/method_listbysubscription.go index 1f90420d20e..94125e60c43 100644 --- a/resource-manager/insights/2015-04-01/autoscalesettings/method_listbysubscription.go +++ b/resource-manager/insights/2015-04-01/autoscalesettings/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []AutoscaleSettingResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AutoScaleSettingsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutoScaleSettingsClient) ListBySubscription(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/autoScaleSettings", id.ID()), } diff --git a/resource-manager/insights/2015-04-01/tenantactivitylogs/method_list.go b/resource-manager/insights/2015-04-01/tenantactivitylogs/method_list.go index aa6c4fea8d8..ae54dc4863d 100644 --- a/resource-manager/insights/2015-04-01/tenantactivitylogs/method_list.go +++ b/resource-manager/insights/2015-04-01/tenantactivitylogs/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TenantActivityLogsClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c TenantActivityLogsClient) List(ctx context.Context, options ListOperatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Insights/eventtypes/management/values", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.Insights/eventtypes/management/values", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2016-03-01/metricdefinitions/method_list.go b/resource-manager/insights/2016-03-01/metricdefinitions/method_list.go index a873246675c..03b7a8e4145 100644 --- a/resource-manager/insights/2016-03-01/metricdefinitions/method_list.go +++ b/resource-manager/insights/2016-03-01/metricdefinitions/method_list.go @@ -54,8 +54,8 @@ func (c MetricDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metricDefinitions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metricDefinitions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2018-03-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go b/resource-manager/insights/2018-03-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go index 26c637b842b..03471e5c252 100644 --- a/resource-manager/insights/2018-03-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go +++ b/resource-manager/insights/2018-03-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ActionGroupsListByResourceGroupCompleteResult struct { Items []ActionGroupResource } +type ActionGroupsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ActionGroupsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ActionGroupsListByResourceGroup ... func (c ActionGroupsAPIsClient) ActionGroupsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ActionGroupsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ActionGroupsAPIsClient) ActionGroupsListByResourceGroup(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ActionGroupsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/actionGroups", id.ID()), } diff --git a/resource-manager/insights/2018-03-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go b/resource-manager/insights/2018-03-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go index 8b6331ffa9b..f24c1abb031 100644 --- a/resource-manager/insights/2018-03-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go +++ b/resource-manager/insights/2018-03-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go @@ -24,6 +24,18 @@ type ActionGroupsListBySubscriptionIdCompleteResult struct { Items []ActionGroupResource } +type ActionGroupsListBySubscriptionIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ActionGroupsListBySubscriptionIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ActionGroupsListBySubscriptionId ... func (c ActionGroupsAPIsClient) ActionGroupsListBySubscriptionId(ctx context.Context, id commonids.SubscriptionId) (result ActionGroupsListBySubscriptionIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ActionGroupsAPIsClient) ActionGroupsListBySubscriptionId(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ActionGroupsListBySubscriptionIdCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/actionGroups", id.ID()), } diff --git a/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbyresourcegroup.go b/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbyresourcegroup.go index f9f576d3161..934e91c964b 100644 --- a/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbyresourcegroup.go +++ b/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbyresourcegroup.go @@ -54,8 +54,8 @@ func (c ScheduledQueryRulesClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/scheduledQueryRules", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/scheduledQueryRules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbysubscription.go b/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbysubscription.go index dccc6159bf8..39bc8520cb9 100644 --- a/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbysubscription.go +++ b/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbysubscription.go @@ -54,8 +54,8 @@ func (c ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/scheduledQueryRules", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/scheduledQueryRules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2019-10-17-preview/privateendpointconnections/method_listbyprivatelinkscope.go b/resource-manager/insights/2019-10-17-preview/privateendpointconnections/method_listbyprivatelinkscope.go index 537e7479fcb..368695611df 100644 --- a/resource-manager/insights/2019-10-17-preview/privateendpointconnections/method_listbyprivatelinkscope.go +++ b/resource-manager/insights/2019-10-17-preview/privateendpointconnections/method_listbyprivatelinkscope.go @@ -23,6 +23,18 @@ type ListByPrivateLinkScopeCompleteResult struct { Items []PrivateEndpointConnection } +type ListByPrivateLinkScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPrivateLinkScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPrivateLinkScope ... func (c PrivateEndpointConnectionsClient) ListByPrivateLinkScope(ctx context.Context, id PrivateLinkScopeId) (result ListByPrivateLinkScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) ListByPrivateLinkScope(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPrivateLinkScopeCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/insights/2019-10-17-preview/privatelinkresources/method_listbyprivatelinkscope.go b/resource-manager/insights/2019-10-17-preview/privatelinkresources/method_listbyprivatelinkscope.go index 2aecdb52eae..8b310a85ed9 100644 --- a/resource-manager/insights/2019-10-17-preview/privatelinkresources/method_listbyprivatelinkscope.go +++ b/resource-manager/insights/2019-10-17-preview/privatelinkresources/method_listbyprivatelinkscope.go @@ -23,6 +23,18 @@ type ListByPrivateLinkScopeCompleteResult struct { Items []PrivateLinkResource } +type ListByPrivateLinkScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPrivateLinkScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPrivateLinkScope ... func (c PrivateLinkResourcesClient) ListByPrivateLinkScope(ctx context.Context, id PrivateLinkScopeId) (result ListByPrivateLinkScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) ListByPrivateLinkScope(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPrivateLinkScopeCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/method_listbyprivatelinkscope.go b/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/method_listbyprivatelinkscope.go index f73e54130f7..5ca38cc4fe7 100644 --- a/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/method_listbyprivatelinkscope.go +++ b/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/method_listbyprivatelinkscope.go @@ -23,6 +23,18 @@ type ListByPrivateLinkScopeCompleteResult struct { Items []ScopedResource } +type ListByPrivateLinkScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPrivateLinkScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPrivateLinkScope ... func (c PrivateLinkScopedResourcesClient) ListByPrivateLinkScope(ctx context.Context, id PrivateLinkScopeId) (result ListByPrivateLinkScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkScopedResourcesClient) ListByPrivateLinkScope(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPrivateLinkScopeCustomPager{}, Path: fmt.Sprintf("%s/scopedResources", id.ID()), } diff --git a/resource-manager/insights/2019-10-17-preview/privatelinkscopesapis/method_privatelinkscopeslist.go b/resource-manager/insights/2019-10-17-preview/privatelinkscopesapis/method_privatelinkscopeslist.go index 07b8e02564c..dd55ac5100d 100644 --- a/resource-manager/insights/2019-10-17-preview/privatelinkscopesapis/method_privatelinkscopeslist.go +++ b/resource-manager/insights/2019-10-17-preview/privatelinkscopesapis/method_privatelinkscopeslist.go @@ -24,6 +24,18 @@ type PrivateLinkScopesListCompleteResult struct { Items []AzureMonitorPrivateLinkScope } +type PrivateLinkScopesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkScopesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkScopesList ... func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesList(ctx context.Context, id commonids.SubscriptionId) (result PrivateLinkScopesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkScopesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/privateLinkScopes", id.ID()), } diff --git a/resource-manager/insights/2019-10-17-preview/privatelinkscopesapis/method_privatelinkscopeslistbyresourcegroup.go b/resource-manager/insights/2019-10-17-preview/privatelinkscopesapis/method_privatelinkscopeslistbyresourcegroup.go index 08db56b6bbe..22d1546ed6c 100644 --- a/resource-manager/insights/2019-10-17-preview/privatelinkscopesapis/method_privatelinkscopeslistbyresourcegroup.go +++ b/resource-manager/insights/2019-10-17-preview/privatelinkscopesapis/method_privatelinkscopeslistbyresourcegroup.go @@ -24,6 +24,18 @@ type PrivateLinkScopesListByResourceGroupCompleteResult struct { Items []AzureMonitorPrivateLinkScope } +type PrivateLinkScopesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkScopesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkScopesListByResourceGroup ... func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result PrivateLinkScopesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroup(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkScopesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/privateLinkScopes", id.ID()), } diff --git a/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertslistbyresourcegroup.go b/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertslistbyresourcegroup.go index 1dbdd6b9808..e3a023b005f 100644 --- a/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertslistbyresourcegroup.go +++ b/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ActivityLogAlertsListByResourceGroupCompleteResult struct { Items []ActivityLogAlertResource } +type ActivityLogAlertsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ActivityLogAlertsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ActivityLogAlertsListByResourceGroup ... func (c ActivityLogAlertsAPIsClient) ActivityLogAlertsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ActivityLogAlertsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ActivityLogAlertsAPIsClient) ActivityLogAlertsListByResourceGroup(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ActivityLogAlertsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/activityLogAlerts", id.ID()), } diff --git a/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertslistbysubscriptionid.go b/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertslistbysubscriptionid.go index 13d4c7547e7..da52a350a88 100644 --- a/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertslistbysubscriptionid.go +++ b/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertslistbysubscriptionid.go @@ -24,6 +24,18 @@ type ActivityLogAlertsListBySubscriptionIdCompleteResult struct { Items []ActivityLogAlertResource } +type ActivityLogAlertsListBySubscriptionIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ActivityLogAlertsListBySubscriptionIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ActivityLogAlertsListBySubscriptionId ... func (c ActivityLogAlertsAPIsClient) ActivityLogAlertsListBySubscriptionId(ctx context.Context, id commonids.SubscriptionId) (result ActivityLogAlertsListBySubscriptionIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ActivityLogAlertsAPIsClient) ActivityLogAlertsListBySubscriptionId(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ActivityLogAlertsListBySubscriptionIdCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/activityLogAlerts", id.ID()), } diff --git a/resource-manager/insights/2021-05-01-preview/autoscalesettings/method_listbyresourcegroup.go b/resource-manager/insights/2021-05-01-preview/autoscalesettings/method_listbyresourcegroup.go index 7e33dafeea6..925e271e6bf 100644 --- a/resource-manager/insights/2021-05-01-preview/autoscalesettings/method_listbyresourcegroup.go +++ b/resource-manager/insights/2021-05-01-preview/autoscalesettings/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AutoscaleSettingResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AutoScaleSettingsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutoScaleSettingsClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/autoScaleSettings", id.ID()), } diff --git a/resource-manager/insights/2021-05-01-preview/autoscalesettings/method_listbysubscription.go b/resource-manager/insights/2021-05-01-preview/autoscalesettings/method_listbysubscription.go index 1f90420d20e..94125e60c43 100644 --- a/resource-manager/insights/2021-05-01-preview/autoscalesettings/method_listbysubscription.go +++ b/resource-manager/insights/2021-05-01-preview/autoscalesettings/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []AutoscaleSettingResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AutoScaleSettingsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutoScaleSettingsClient) ListBySubscription(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/autoScaleSettings", id.ID()), } diff --git a/resource-manager/insights/2021-05-01-preview/metrics/method_predictivemetricget.go b/resource-manager/insights/2021-05-01-preview/metrics/method_predictivemetricget.go index 8466f32098f..3b5b932c96d 100644 --- a/resource-manager/insights/2021-05-01-preview/metrics/method_predictivemetricget.go +++ b/resource-manager/insights/2021-05-01-preview/metrics/method_predictivemetricget.go @@ -69,8 +69,8 @@ func (c MetricsClient) PredictiveMetricGet(ctx context.Context, id AutoScaleSett http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/predictiveMetrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/predictiveMetrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2021-07-01-preview/privatelinkscopedresources/method_listbyprivatelinkscope.go b/resource-manager/insights/2021-07-01-preview/privatelinkscopedresources/method_listbyprivatelinkscope.go index f73e54130f7..5ca38cc4fe7 100644 --- a/resource-manager/insights/2021-07-01-preview/privatelinkscopedresources/method_listbyprivatelinkscope.go +++ b/resource-manager/insights/2021-07-01-preview/privatelinkscopedresources/method_listbyprivatelinkscope.go @@ -23,6 +23,18 @@ type ListByPrivateLinkScopeCompleteResult struct { Items []ScopedResource } +type ListByPrivateLinkScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPrivateLinkScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPrivateLinkScope ... func (c PrivateLinkScopedResourcesClient) ListByPrivateLinkScope(ctx context.Context, id PrivateLinkScopeId) (result ListByPrivateLinkScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkScopedResourcesClient) ListByPrivateLinkScope(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPrivateLinkScopeCustomPager{}, Path: fmt.Sprintf("%s/scopedResources", id.ID()), } diff --git a/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopeslist.go b/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopeslist.go index 07b8e02564c..dd55ac5100d 100644 --- a/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopeslist.go +++ b/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopeslist.go @@ -24,6 +24,18 @@ type PrivateLinkScopesListCompleteResult struct { Items []AzureMonitorPrivateLinkScope } +type PrivateLinkScopesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkScopesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkScopesList ... func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesList(ctx context.Context, id commonids.SubscriptionId) (result PrivateLinkScopesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkScopesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/privateLinkScopes", id.ID()), } diff --git a/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopeslistbyresourcegroup.go b/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopeslistbyresourcegroup.go index 08db56b6bbe..22d1546ed6c 100644 --- a/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopeslistbyresourcegroup.go +++ b/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopeslistbyresourcegroup.go @@ -24,6 +24,18 @@ type PrivateLinkScopesListByResourceGroupCompleteResult struct { Items []AzureMonitorPrivateLinkScope } +type PrivateLinkScopesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkScopesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkScopesListByResourceGroup ... func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result PrivateLinkScopesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesListByResourceGroup(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkScopesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/privateLinkScopes", id.ID()), } diff --git a/resource-manager/insights/2021-08-01/scheduledqueryrules/method_listbyresourcegroup.go b/resource-manager/insights/2021-08-01/scheduledqueryrules/method_listbyresourcegroup.go index 82919fcf9ac..a5dfa782c08 100644 --- a/resource-manager/insights/2021-08-01/scheduledqueryrules/method_listbyresourcegroup.go +++ b/resource-manager/insights/2021-08-01/scheduledqueryrules/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ScheduledQueryRuleResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ScheduledQueryRulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ScheduledQueryRulesClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/scheduledQueryRules", id.ID()), } diff --git a/resource-manager/insights/2021-08-01/scheduledqueryrules/method_listbysubscription.go b/resource-manager/insights/2021-08-01/scheduledqueryrules/method_listbysubscription.go index caf2c80de31..772fec7f8ff 100644 --- a/resource-manager/insights/2021-08-01/scheduledqueryrules/method_listbysubscription.go +++ b/resource-manager/insights/2021-08-01/scheduledqueryrules/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ScheduledQueryRuleResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/scheduledQueryRules", id.ID()), } diff --git a/resource-manager/insights/2021-09-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go b/resource-manager/insights/2021-09-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go index 26c637b842b..03471e5c252 100644 --- a/resource-manager/insights/2021-09-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go +++ b/resource-manager/insights/2021-09-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ActionGroupsListByResourceGroupCompleteResult struct { Items []ActionGroupResource } +type ActionGroupsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ActionGroupsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ActionGroupsListByResourceGroup ... func (c ActionGroupsAPIsClient) ActionGroupsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ActionGroupsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ActionGroupsAPIsClient) ActionGroupsListByResourceGroup(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ActionGroupsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/actionGroups", id.ID()), } diff --git a/resource-manager/insights/2021-09-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go b/resource-manager/insights/2021-09-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go index 8b6331ffa9b..f24c1abb031 100644 --- a/resource-manager/insights/2021-09-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go +++ b/resource-manager/insights/2021-09-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go @@ -24,6 +24,18 @@ type ActionGroupsListBySubscriptionIdCompleteResult struct { Items []ActionGroupResource } +type ActionGroupsListBySubscriptionIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ActionGroupsListBySubscriptionIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ActionGroupsListBySubscriptionId ... func (c ActionGroupsAPIsClient) ActionGroupsListBySubscriptionId(ctx context.Context, id commonids.SubscriptionId) (result ActionGroupsListBySubscriptionIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ActionGroupsAPIsClient) ActionGroupsListBySubscriptionId(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ActionGroupsListBySubscriptionIdCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/actionGroups", id.ID()), } diff --git a/resource-manager/insights/2022-06-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go b/resource-manager/insights/2022-06-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go index 26c637b842b..03471e5c252 100644 --- a/resource-manager/insights/2022-06-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go +++ b/resource-manager/insights/2022-06-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ActionGroupsListByResourceGroupCompleteResult struct { Items []ActionGroupResource } +type ActionGroupsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ActionGroupsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ActionGroupsListByResourceGroup ... func (c ActionGroupsAPIsClient) ActionGroupsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ActionGroupsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ActionGroupsAPIsClient) ActionGroupsListByResourceGroup(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ActionGroupsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/actionGroups", id.ID()), } diff --git a/resource-manager/insights/2022-06-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go b/resource-manager/insights/2022-06-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go index 8b6331ffa9b..f24c1abb031 100644 --- a/resource-manager/insights/2022-06-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go +++ b/resource-manager/insights/2022-06-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go @@ -24,6 +24,18 @@ type ActionGroupsListBySubscriptionIdCompleteResult struct { Items []ActionGroupResource } +type ActionGroupsListBySubscriptionIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ActionGroupsListBySubscriptionIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ActionGroupsListBySubscriptionId ... func (c ActionGroupsAPIsClient) ActionGroupsListBySubscriptionId(ctx context.Context, id commonids.SubscriptionId) (result ActionGroupsListBySubscriptionIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ActionGroupsAPIsClient) ActionGroupsListBySubscriptionId(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ActionGroupsListBySubscriptionIdCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/actionGroups", id.ID()), } diff --git a/resource-manager/insights/2022-06-01/datacollectionendpoints/method_listbyresourcegroup.go b/resource-manager/insights/2022-06-01/datacollectionendpoints/method_listbyresourcegroup.go index c7f531eb752..638f08686a7 100644 --- a/resource-manager/insights/2022-06-01/datacollectionendpoints/method_listbyresourcegroup.go +++ b/resource-manager/insights/2022-06-01/datacollectionendpoints/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DataCollectionEndpointResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DataCollectionEndpointsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataCollectionEndpointsClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/dataCollectionEndpoints", id.ID()), } diff --git a/resource-manager/insights/2022-06-01/datacollectionendpoints/method_listbysubscription.go b/resource-manager/insights/2022-06-01/datacollectionendpoints/method_listbysubscription.go index 11bb203be1f..b434774049f 100644 --- a/resource-manager/insights/2022-06-01/datacollectionendpoints/method_listbysubscription.go +++ b/resource-manager/insights/2022-06-01/datacollectionendpoints/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DataCollectionEndpointResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DataCollectionEndpointsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataCollectionEndpointsClient) ListBySubscription(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/dataCollectionEndpoints", id.ID()), } diff --git a/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_listbydatacollectionendpoint.go b/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_listbydatacollectionendpoint.go index cc1a8f8b48b..c94312cf352 100644 --- a/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_listbydatacollectionendpoint.go +++ b/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_listbydatacollectionendpoint.go @@ -23,6 +23,18 @@ type ListByDataCollectionEndpointCompleteResult struct { Items []DataCollectionRuleAssociationProxyOnlyResource } +type ListByDataCollectionEndpointCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataCollectionEndpointCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataCollectionEndpoint ... func (c DataCollectionRuleAssociationsClient) ListByDataCollectionEndpoint(ctx context.Context, id DataCollectionEndpointId) (result ListByDataCollectionEndpointOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DataCollectionRuleAssociationsClient) ListByDataCollectionEndpoint(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataCollectionEndpointCustomPager{}, Path: fmt.Sprintf("%s/associations", id.ID()), } diff --git a/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_listbyresource.go b/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_listbyresource.go index 740ef348af9..75c62de6ac1 100644 --- a/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_listbyresource.go +++ b/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_listbyresource.go @@ -24,6 +24,18 @@ type ListByResourceCompleteResult struct { Items []DataCollectionRuleAssociationProxyOnlyResource } +type ListByResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResource ... func (c DataCollectionRuleAssociationsClient) ListByResource(ctx context.Context, id commonids.ScopeId) (result ListByResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataCollectionRuleAssociationsClient) ListByResource(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/dataCollectionRuleAssociations", id.ID()), } diff --git a/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_listbyrule.go b/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_listbyrule.go index 2d21d8525ff..a05a862e13e 100644 --- a/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_listbyrule.go +++ b/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_listbyrule.go @@ -23,6 +23,18 @@ type ListByRuleCompleteResult struct { Items []DataCollectionRuleAssociationProxyOnlyResource } +type ListByRuleCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByRuleCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByRule ... func (c DataCollectionRuleAssociationsClient) ListByRule(ctx context.Context, id DataCollectionRuleId) (result ListByRuleOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DataCollectionRuleAssociationsClient) ListByRule(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByRuleCustomPager{}, Path: fmt.Sprintf("%s/associations", id.ID()), } diff --git a/resource-manager/insights/2022-06-01/datacollectionrules/method_listbyresourcegroup.go b/resource-manager/insights/2022-06-01/datacollectionrules/method_listbyresourcegroup.go index 6ec561bf24f..13c62088a3d 100644 --- a/resource-manager/insights/2022-06-01/datacollectionrules/method_listbyresourcegroup.go +++ b/resource-manager/insights/2022-06-01/datacollectionrules/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DataCollectionRuleResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DataCollectionRulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataCollectionRulesClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/dataCollectionRules", id.ID()), } diff --git a/resource-manager/insights/2022-06-01/datacollectionrules/method_listbysubscription.go b/resource-manager/insights/2022-06-01/datacollectionrules/method_listbysubscription.go index a46c6152ca0..564c15b7626 100644 --- a/resource-manager/insights/2022-06-01/datacollectionrules/method_listbysubscription.go +++ b/resource-manager/insights/2022-06-01/datacollectionrules/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DataCollectionRuleResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DataCollectionRulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataCollectionRulesClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/dataCollectionRules", id.ID()), } diff --git a/resource-manager/insights/2022-10-01/autoscalesettings/method_listbyresourcegroup.go b/resource-manager/insights/2022-10-01/autoscalesettings/method_listbyresourcegroup.go index 7e33dafeea6..925e271e6bf 100644 --- a/resource-manager/insights/2022-10-01/autoscalesettings/method_listbyresourcegroup.go +++ b/resource-manager/insights/2022-10-01/autoscalesettings/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AutoscaleSettingResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AutoScaleSettingsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutoScaleSettingsClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/autoScaleSettings", id.ID()), } diff --git a/resource-manager/insights/2022-10-01/autoscalesettings/method_listbysubscription.go b/resource-manager/insights/2022-10-01/autoscalesettings/method_listbysubscription.go index 1f90420d20e..94125e60c43 100644 --- a/resource-manager/insights/2022-10-01/autoscalesettings/method_listbysubscription.go +++ b/resource-manager/insights/2022-10-01/autoscalesettings/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []AutoscaleSettingResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AutoScaleSettingsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutoScaleSettingsClient) ListBySubscription(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/autoScaleSettings", id.ID()), } diff --git a/resource-manager/insights/2022-10-01/metrics/method_predictivemetricget.go b/resource-manager/insights/2022-10-01/metrics/method_predictivemetricget.go index 8466f32098f..3b5b932c96d 100644 --- a/resource-manager/insights/2022-10-01/metrics/method_predictivemetricget.go +++ b/resource-manager/insights/2022-10-01/metrics/method_predictivemetricget.go @@ -69,8 +69,8 @@ func (c MetricsClient) PredictiveMetricGet(ctx context.Context, id AutoScaleSett http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/predictiveMetrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/predictiveMetrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go b/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go index 26c637b842b..03471e5c252 100644 --- a/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go +++ b/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ActionGroupsListByResourceGroupCompleteResult struct { Items []ActionGroupResource } +type ActionGroupsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ActionGroupsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ActionGroupsListByResourceGroup ... func (c ActionGroupsAPIsClient) ActionGroupsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ActionGroupsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ActionGroupsAPIsClient) ActionGroupsListByResourceGroup(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ActionGroupsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/actionGroups", id.ID()), } diff --git a/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go b/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go index 8b6331ffa9b..f24c1abb031 100644 --- a/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go +++ b/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupslistbysubscriptionid.go @@ -24,6 +24,18 @@ type ActionGroupsListBySubscriptionIdCompleteResult struct { Items []ActionGroupResource } +type ActionGroupsListBySubscriptionIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ActionGroupsListBySubscriptionIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ActionGroupsListBySubscriptionId ... func (c ActionGroupsAPIsClient) ActionGroupsListBySubscriptionId(ctx context.Context, id commonids.SubscriptionId) (result ActionGroupsListBySubscriptionIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ActionGroupsAPIsClient) ActionGroupsListBySubscriptionId(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ActionGroupsListBySubscriptionIdCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/actionGroups", id.ID()), } diff --git a/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_listbyresourcegroup.go b/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_listbyresourcegroup.go index 82919fcf9ac..a5dfa782c08 100644 --- a/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_listbyresourcegroup.go +++ b/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ScheduledQueryRuleResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ScheduledQueryRulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ScheduledQueryRulesClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/scheduledQueryRules", id.ID()), } diff --git a/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_listbysubscription.go b/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_listbysubscription.go index caf2c80de31..772fec7f8ff 100644 --- a/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_listbysubscription.go +++ b/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ScheduledQueryRuleResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Insights/scheduledQueryRules", id.ID()), } diff --git a/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_listbyresourcegroup.go b/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_listbyresourcegroup.go index cd749c5dd45..37e6b5cad1b 100644 --- a/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_listbyresourcegroup.go +++ b/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AzureMonitorWorkspaceResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AzureMonitorWorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AzureMonitorWorkspacesClient) ListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Monitor/accounts", id.ID()), } diff --git a/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_listbysubscription.go b/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_listbysubscription.go index 732fe122c45..b8245575199 100644 --- a/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_listbysubscription.go +++ b/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []AzureMonitorWorkspaceResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AzureMonitorWorkspacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AzureMonitorWorkspacesClient) ListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Monitor/accounts", id.ID()), } diff --git a/resource-manager/insights/2023-10-01/metricdefinitions/method_list.go b/resource-manager/insights/2023-10-01/metricdefinitions/method_list.go index fcd800e9cae..e6938e8761a 100644 --- a/resource-manager/insights/2023-10-01/metricdefinitions/method_list.go +++ b/resource-manager/insights/2023-10-01/metricdefinitions/method_list.go @@ -54,8 +54,8 @@ func (c MetricDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metricDefinitions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metricDefinitions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2023-10-01/metricdefinitions/method_listatsubscriptionscope.go b/resource-manager/insights/2023-10-01/metricdefinitions/method_listatsubscriptionscope.go index 5c733713af6..7bfa5b10a49 100644 --- a/resource-manager/insights/2023-10-01/metricdefinitions/method_listatsubscriptionscope.go +++ b/resource-manager/insights/2023-10-01/metricdefinitions/method_listatsubscriptionscope.go @@ -58,8 +58,8 @@ func (c MetricDefinitionsClient) ListAtSubscriptionScope(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metricDefinitions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metricDefinitions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2023-10-01/metrics/method_list.go b/resource-manager/insights/2023-10-01/metrics/method_list.go index e3d7e6a7096..22655ca7850 100644 --- a/resource-manager/insights/2023-10-01/metrics/method_list.go +++ b/resource-manager/insights/2023-10-01/metrics/method_list.go @@ -98,8 +98,8 @@ func (c MetricsClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2023-10-01/metrics/method_listatsubscriptionscope.go b/resource-manager/insights/2023-10-01/metrics/method_listatsubscriptionscope.go index c6feb0b5832..79081037522 100644 --- a/resource-manager/insights/2023-10-01/metrics/method_listatsubscriptionscope.go +++ b/resource-manager/insights/2023-10-01/metrics/method_listatsubscriptionscope.go @@ -102,8 +102,8 @@ func (c MetricsClient) ListAtSubscriptionScope(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2023-10-01/metrics/method_listatsubscriptionscopepost.go b/resource-manager/insights/2023-10-01/metrics/method_listatsubscriptionscopepost.go index 2b940d5292a..871dd051eac 100644 --- a/resource-manager/insights/2023-10-01/metrics/method_listatsubscriptionscopepost.go +++ b/resource-manager/insights/2023-10-01/metrics/method_listatsubscriptionscopepost.go @@ -102,8 +102,8 @@ func (c MetricsClient) ListAtSubscriptionScopePost(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2024-02-01/metricdefinitions/method_list.go b/resource-manager/insights/2024-02-01/metricdefinitions/method_list.go index fcd800e9cae..e6938e8761a 100644 --- a/resource-manager/insights/2024-02-01/metricdefinitions/method_list.go +++ b/resource-manager/insights/2024-02-01/metricdefinitions/method_list.go @@ -54,8 +54,8 @@ func (c MetricDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metricDefinitions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metricDefinitions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2024-02-01/metricdefinitions/method_listatsubscriptionscope.go b/resource-manager/insights/2024-02-01/metricdefinitions/method_listatsubscriptionscope.go index 5c733713af6..7bfa5b10a49 100644 --- a/resource-manager/insights/2024-02-01/metricdefinitions/method_listatsubscriptionscope.go +++ b/resource-manager/insights/2024-02-01/metricdefinitions/method_listatsubscriptionscope.go @@ -58,8 +58,8 @@ func (c MetricDefinitionsClient) ListAtSubscriptionScope(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metricDefinitions", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metricDefinitions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2024-02-01/metricnamespaces/method_list.go b/resource-manager/insights/2024-02-01/metricnamespaces/method_list.go index f4ae9573ad9..c992c6f3b99 100644 --- a/resource-manager/insights/2024-02-01/metricnamespaces/method_list.go +++ b/resource-manager/insights/2024-02-01/metricnamespaces/method_list.go @@ -54,8 +54,8 @@ func (c MetricNamespacesClient) List(ctx context.Context, id commonids.ScopeId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metricNamespaces", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metricNamespaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2024-02-01/metrics/method_list.go b/resource-manager/insights/2024-02-01/metrics/method_list.go index e3d7e6a7096..22655ca7850 100644 --- a/resource-manager/insights/2024-02-01/metrics/method_list.go +++ b/resource-manager/insights/2024-02-01/metrics/method_list.go @@ -98,8 +98,8 @@ func (c MetricsClient) List(ctx context.Context, id commonids.ScopeId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2024-02-01/metrics/method_listatsubscriptionscope.go b/resource-manager/insights/2024-02-01/metrics/method_listatsubscriptionscope.go index c6feb0b5832..79081037522 100644 --- a/resource-manager/insights/2024-02-01/metrics/method_listatsubscriptionscope.go +++ b/resource-manager/insights/2024-02-01/metrics/method_listatsubscriptionscope.go @@ -102,8 +102,8 @@ func (c MetricsClient) ListAtSubscriptionScope(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/insights/2024-02-01/metrics/method_listatsubscriptionscopepost.go b/resource-manager/insights/2024-02-01/metrics/method_listatsubscriptionscopepost.go index 2b940d5292a..871dd051eac 100644 --- a/resource-manager/insights/2024-02-01/metrics/method_listatsubscriptionscopepost.go +++ b/resource-manager/insights/2024-02-01/metrics/method_listatsubscriptionscopepost.go @@ -102,8 +102,8 @@ func (c MetricsClient) ListAtSubscriptionScopePost(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metrics", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Insights/metrics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/iotcentral/2021-11-01-preview/apps/method_listbyresourcegroup.go b/resource-manager/iotcentral/2021-11-01-preview/apps/method_listbyresourcegroup.go index 02628499bf1..9f3da214707 100644 --- a/resource-manager/iotcentral/2021-11-01-preview/apps/method_listbyresourcegroup.go +++ b/resource-manager/iotcentral/2021-11-01-preview/apps/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []App } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AppsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppsClient) ListByResourceGroup(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.IoTCentral/iotApps", id.ID()), } diff --git a/resource-manager/iotcentral/2021-11-01-preview/apps/method_listbysubscription.go b/resource-manager/iotcentral/2021-11-01-preview/apps/method_listbysubscription.go index ca1c23b312c..4b3dfa8d961 100644 --- a/resource-manager/iotcentral/2021-11-01-preview/apps/method_listbysubscription.go +++ b/resource-manager/iotcentral/2021-11-01-preview/apps/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []App } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AppsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppsClient) ListBySubscription(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.IoTCentral/iotApps", id.ID()), } diff --git a/resource-manager/iotcentral/2021-11-01-preview/apps/method_listtemplates.go b/resource-manager/iotcentral/2021-11-01-preview/apps/method_listtemplates.go index b50bd57a494..50fe40c6069 100644 --- a/resource-manager/iotcentral/2021-11-01-preview/apps/method_listtemplates.go +++ b/resource-manager/iotcentral/2021-11-01-preview/apps/method_listtemplates.go @@ -24,6 +24,18 @@ type ListTemplatesCompleteResult struct { Items []AppTemplate } +type ListTemplatesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListTemplatesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListTemplates ... func (c AppsClient) ListTemplates(ctx context.Context, id commonids.SubscriptionId) (result ListTemplatesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppsClient) ListTemplates(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListTemplatesCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.IoTCentral/appTemplates", id.ID()), } diff --git a/resource-manager/keyvault/2023-07-01/keys/method_list.go b/resource-manager/keyvault/2023-07-01/keys/method_list.go index c5a502c8af3..ccd7ed01000 100644 --- a/resource-manager/keyvault/2023-07-01/keys/method_list.go +++ b/resource-manager/keyvault/2023-07-01/keys/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Key } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c KeysClient) List(ctx context.Context, id commonids.KeyVaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c KeysClient) List(ctx context.Context, id commonids.KeyVaultId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/keys", id.ID()), } diff --git a/resource-manager/keyvault/2023-07-01/keys/method_listversions.go b/resource-manager/keyvault/2023-07-01/keys/method_listversions.go index c48d6669abe..e1b713d0eac 100644 --- a/resource-manager/keyvault/2023-07-01/keys/method_listversions.go +++ b/resource-manager/keyvault/2023-07-01/keys/method_listversions.go @@ -24,6 +24,18 @@ type ListVersionsCompleteResult struct { Items []Key } +type ListVersionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVersionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVersions ... func (c KeysClient) ListVersions(ctx context.Context, id commonids.KeyVaultKeyId) (result ListVersionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c KeysClient) ListVersions(ctx context.Context, id commonids.KeyVaultKeyId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListVersionsCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/keyvault/2023-07-01/managedhsmkeys/method_list.go b/resource-manager/keyvault/2023-07-01/managedhsmkeys/method_list.go index 494ba072904..8cc0898e8b5 100644 --- a/resource-manager/keyvault/2023-07-01/managedhsmkeys/method_list.go +++ b/resource-manager/keyvault/2023-07-01/managedhsmkeys/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ManagedHsmKey } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedHsmKeysClient) List(ctx context.Context, id ManagedHSMId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedHsmKeysClient) List(ctx context.Context, id ManagedHSMId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/keys", id.ID()), } diff --git a/resource-manager/keyvault/2023-07-01/managedhsmkeys/method_listversions.go b/resource-manager/keyvault/2023-07-01/managedhsmkeys/method_listversions.go index dc6dcc58848..cd76bd50eda 100644 --- a/resource-manager/keyvault/2023-07-01/managedhsmkeys/method_listversions.go +++ b/resource-manager/keyvault/2023-07-01/managedhsmkeys/method_listversions.go @@ -23,6 +23,18 @@ type ListVersionsCompleteResult struct { Items []ManagedHsmKey } +type ListVersionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVersionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVersions ... func (c ManagedHsmKeysClient) ListVersions(ctx context.Context, id KeyId) (result ListVersionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedHsmKeysClient) ListVersions(ctx context.Context, id KeyId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListVersionsCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/keyvault/2023-07-01/managedhsms/method_listbyresourcegroup.go b/resource-manager/keyvault/2023-07-01/managedhsms/method_listbyresourcegroup.go index c5a28e8b605..41dff99fa32 100644 --- a/resource-manager/keyvault/2023-07-01/managedhsms/method_listbyresourcegroup.go +++ b/resource-manager/keyvault/2023-07-01/managedhsms/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedHsmsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagedHsmsClient) ListByResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.KeyVault/managedHSMs", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.KeyVault/managedHSMs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/keyvault/2023-07-01/managedhsms/method_listbysubscription.go b/resource-manager/keyvault/2023-07-01/managedhsms/method_listbysubscription.go index 63e6d4240d6..7298c28d3c1 100644 --- a/resource-manager/keyvault/2023-07-01/managedhsms/method_listbysubscription.go +++ b/resource-manager/keyvault/2023-07-01/managedhsms/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ManagedHsmsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagedHsmsClient) ListBySubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.KeyVault/managedHSMs", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.KeyVault/managedHSMs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/keyvault/2023-07-01/managedhsms/method_listdeleted.go b/resource-manager/keyvault/2023-07-01/managedhsms/method_listdeleted.go index fd0fe0c7815..0f1bce806ce 100644 --- a/resource-manager/keyvault/2023-07-01/managedhsms/method_listdeleted.go +++ b/resource-manager/keyvault/2023-07-01/managedhsms/method_listdeleted.go @@ -24,6 +24,18 @@ type ListDeletedCompleteResult struct { Items []DeletedManagedHsm } +type ListDeletedCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDeletedCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDeleted ... func (c ManagedHsmsClient) ListDeleted(ctx context.Context, id commonids.SubscriptionId) (result ListDeletedOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedHsmsClient) ListDeleted(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDeletedCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.KeyVault/deletedManagedHSMs", id.ID()), } diff --git a/resource-manager/keyvault/2023-07-01/mhsmlistprivateendpointconnections/method_mhsmprivateendpointconnectionslistbyresource.go b/resource-manager/keyvault/2023-07-01/mhsmlistprivateendpointconnections/method_mhsmprivateendpointconnectionslistbyresource.go index 737dc9d8aa0..c4d7fb3fc39 100644 --- a/resource-manager/keyvault/2023-07-01/mhsmlistprivateendpointconnections/method_mhsmprivateendpointconnectionslistbyresource.go +++ b/resource-manager/keyvault/2023-07-01/mhsmlistprivateendpointconnections/method_mhsmprivateendpointconnectionslistbyresource.go @@ -23,6 +23,18 @@ type MHSMPrivateEndpointConnectionsListByResourceCompleteResult struct { Items []MHSMPrivateEndpointConnection } +type MHSMPrivateEndpointConnectionsListByResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MHSMPrivateEndpointConnectionsListByResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MHSMPrivateEndpointConnectionsListByResource ... func (c MHSMListPrivateEndpointConnectionsClient) MHSMPrivateEndpointConnectionsListByResource(ctx context.Context, id ManagedHSMId) (result MHSMPrivateEndpointConnectionsListByResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MHSMListPrivateEndpointConnectionsClient) MHSMPrivateEndpointConnections http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MHSMPrivateEndpointConnectionsListByResourceCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/keyvault/2023-07-01/mhsmlistregions/method_mhsmregionslistbyresource.go b/resource-manager/keyvault/2023-07-01/mhsmlistregions/method_mhsmregionslistbyresource.go index 5d11ae76bc1..e8ac772dc0c 100644 --- a/resource-manager/keyvault/2023-07-01/mhsmlistregions/method_mhsmregionslistbyresource.go +++ b/resource-manager/keyvault/2023-07-01/mhsmlistregions/method_mhsmregionslistbyresource.go @@ -23,6 +23,18 @@ type MHSMRegionsListByResourceCompleteResult struct { Items []MHSMGeoReplicatedRegion } +type MHSMRegionsListByResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MHSMRegionsListByResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MHSMRegionsListByResource ... func (c MHSMListRegionsClient) MHSMRegionsListByResource(ctx context.Context, id ManagedHSMId) (result MHSMRegionsListByResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MHSMListRegionsClient) MHSMRegionsListByResource(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MHSMRegionsListByResourceCustomPager{}, Path: fmt.Sprintf("%s/regions", id.ID()), } diff --git a/resource-manager/keyvault/2023-07-01/privateendpointconnections/method_listbyresource.go b/resource-manager/keyvault/2023-07-01/privateendpointconnections/method_listbyresource.go index 035da76208a..a593ebd4593 100644 --- a/resource-manager/keyvault/2023-07-01/privateendpointconnections/method_listbyresource.go +++ b/resource-manager/keyvault/2023-07-01/privateendpointconnections/method_listbyresource.go @@ -24,6 +24,18 @@ type ListByResourceCompleteResult struct { Items []PrivateEndpointConnection } +type ListByResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResource ... func (c PrivateEndpointConnectionsClient) ListByResource(ctx context.Context, id commonids.KeyVaultId) (result ListByResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateEndpointConnectionsClient) ListByResource(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/keyvault/2023-07-01/secrets/method_list.go b/resource-manager/keyvault/2023-07-01/secrets/method_list.go index cf63d738e54..772c75da33b 100644 --- a/resource-manager/keyvault/2023-07-01/secrets/method_list.go +++ b/resource-manager/keyvault/2023-07-01/secrets/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecretsClient) List(ctx context.Context, id commonids.KeyVaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SecretsClient) List(ctx context.Context, id commonids.KeyVaultId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/secrets", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/secrets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/keyvault/2023-07-01/vaults/method_list.go b/resource-manager/keyvault/2023-07-01/vaults/method_list.go index 37aefadcee5..30ab33d8c93 100644 --- a/resource-manager/keyvault/2023-07-01/vaults/method_list.go +++ b/resource-manager/keyvault/2023-07-01/vaults/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VaultsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c VaultsClient) List(ctx context.Context, id commonids.SubscriptionId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resources", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/resources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/keyvault/2023-07-01/vaults/method_listbyresourcegroup.go b/resource-manager/keyvault/2023-07-01/vaults/method_listbyresourcegroup.go index 1c29ec9b8f1..dc0786bc437 100644 --- a/resource-manager/keyvault/2023-07-01/vaults/method_listbyresourcegroup.go +++ b/resource-manager/keyvault/2023-07-01/vaults/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VaultsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c VaultsClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.KeyVault/vaults", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.KeyVault/vaults", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/keyvault/2023-07-01/vaults/method_listbysubscription.go b/resource-manager/keyvault/2023-07-01/vaults/method_listbysubscription.go index 9785990d603..e062a696382 100644 --- a/resource-manager/keyvault/2023-07-01/vaults/method_listbysubscription.go +++ b/resource-manager/keyvault/2023-07-01/vaults/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c VaultsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c VaultsClient) ListBySubscription(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.KeyVault/vaults", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.KeyVault/vaults", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/keyvault/2023-07-01/vaults/method_listdeleted.go b/resource-manager/keyvault/2023-07-01/vaults/method_listdeleted.go index a82c43d0626..be4737ce398 100644 --- a/resource-manager/keyvault/2023-07-01/vaults/method_listdeleted.go +++ b/resource-manager/keyvault/2023-07-01/vaults/method_listdeleted.go @@ -24,6 +24,18 @@ type ListDeletedCompleteResult struct { Items []DeletedVault } +type ListDeletedCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDeletedCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDeleted ... func (c VaultsClient) ListDeleted(ctx context.Context, id commonids.SubscriptionId) (result ListDeletedOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VaultsClient) ListDeleted(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDeletedCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.KeyVault/deletedVaults", id.ID()), } diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/clusterextensions/method_extensionsdelete.go b/resource-manager/kubernetesconfiguration/2022-11-01/clusterextensions/method_extensionsdelete.go index cc7f4a9467f..3e3877ecd8b 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/clusterextensions/method_extensionsdelete.go +++ b/resource-manager/kubernetesconfiguration/2022-11-01/clusterextensions/method_extensionsdelete.go @@ -57,8 +57,8 @@ func (c ClusterExtensionsClient) ExtensionsDelete(ctx context.Context, id Scoped http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/clusterextensions/method_extensionslist.go b/resource-manager/kubernetesconfiguration/2022-11-01/clusterextensions/method_extensionslist.go index bb6c82465fd..a7c029379e7 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/clusterextensions/method_extensionslist.go +++ b/resource-manager/kubernetesconfiguration/2022-11-01/clusterextensions/method_extensionslist.go @@ -24,6 +24,18 @@ type ExtensionsListCompleteResult struct { Items []Extension } +type ExtensionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExtensionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExtensionsList ... func (c ClusterExtensionsClient) ExtensionsList(ctx context.Context, id commonids.ScopeId) (result ExtensionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClusterExtensionsClient) ExtensionsList(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ExtensionsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.KubernetesConfiguration/extensions", id.ID()), } diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_delete.go b/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_delete.go index b80bc526395..92ebf4e2280 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_delete.go +++ b/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_delete.go @@ -57,8 +57,8 @@ func (c ExtensionsClient) Delete(ctx context.Context, id ScopedExtensionId, opti http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_list.go b/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_list.go index d9e7eb4c587..a5aefb37fc6 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_list.go +++ b/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Extension } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExtensionsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExtensionsClient) List(ctx context.Context, id commonids.ScopeId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.KubernetesConfiguration/extensions", id.ID()), } diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/flux/method_configurationsdelete.go b/resource-manager/kubernetesconfiguration/2022-11-01/flux/method_configurationsdelete.go index 5ae8ceb6b4e..cb78c710f5e 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/flux/method_configurationsdelete.go +++ b/resource-manager/kubernetesconfiguration/2022-11-01/flux/method_configurationsdelete.go @@ -57,8 +57,8 @@ func (c FluxClient) ConfigurationsDelete(ctx context.Context, id ScopedFluxConfi http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/flux/method_configurationslist.go b/resource-manager/kubernetesconfiguration/2022-11-01/flux/method_configurationslist.go index 0cb09c05ca8..a0225d7fab4 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/flux/method_configurationslist.go +++ b/resource-manager/kubernetesconfiguration/2022-11-01/flux/method_configurationslist.go @@ -24,6 +24,18 @@ type ConfigurationsListCompleteResult struct { Items []FluxConfiguration } +type ConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationsList ... func (c FluxClient) ConfigurationsList(ctx context.Context, id commonids.ScopeId) (result ConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FluxClient) ConfigurationsList(ctx context.Context, id commonids.ScopeId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.KubernetesConfiguration/fluxConfigurations", id.ID()), } diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_delete.go b/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_delete.go index 2ad43c6f9e6..64a49d42f18 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_delete.go +++ b/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_delete.go @@ -57,8 +57,8 @@ func (c FluxConfigurationClient) Delete(ctx context.Context, id ScopedFluxConfig http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_list.go b/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_list.go index ad59f04a388..312f368f1ca 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_list.go +++ b/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []FluxConfiguration } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FluxConfigurationClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FluxConfigurationClient) List(ctx context.Context, id commonids.ScopeId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.KubernetesConfiguration/fluxConfigurations", id.ID()), } diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/operationsinacluster/method_operationstatuslist.go b/resource-manager/kubernetesconfiguration/2022-11-01/operationsinacluster/method_operationstatuslist.go index a063361fa1c..0b1da8f97c0 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/operationsinacluster/method_operationstatuslist.go +++ b/resource-manager/kubernetesconfiguration/2022-11-01/operationsinacluster/method_operationstatuslist.go @@ -24,6 +24,18 @@ type OperationStatusListCompleteResult struct { Items []OperationStatusResult } +type OperationStatusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *OperationStatusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // OperationStatusList ... func (c OperationsInAClusterClient) OperationStatusList(ctx context.Context, id commonids.ScopeId) (result OperationStatusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OperationsInAClusterClient) OperationStatusList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &OperationStatusListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.KubernetesConfiguration/operations", id.ID()), } diff --git a/resource-manager/kubernetesconfiguration/2022-11-01/sourcecontrolconfiguration/method_list.go b/resource-manager/kubernetesconfiguration/2022-11-01/sourcecontrolconfiguration/method_list.go index b854076cd79..4c205b7430b 100644 --- a/resource-manager/kubernetesconfiguration/2022-11-01/sourcecontrolconfiguration/method_list.go +++ b/resource-manager/kubernetesconfiguration/2022-11-01/sourcecontrolconfiguration/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SourceControlConfiguration } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SourceControlConfigurationClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SourceControlConfigurationClient) List(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations", id.ID()), } diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/clusterextensions/method_extensionsdelete.go b/resource-manager/kubernetesconfiguration/2023-05-01/clusterextensions/method_extensionsdelete.go index cc7f4a9467f..3e3877ecd8b 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/clusterextensions/method_extensionsdelete.go +++ b/resource-manager/kubernetesconfiguration/2023-05-01/clusterextensions/method_extensionsdelete.go @@ -57,8 +57,8 @@ func (c ClusterExtensionsClient) ExtensionsDelete(ctx context.Context, id Scoped http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/clusterextensions/method_extensionslist.go b/resource-manager/kubernetesconfiguration/2023-05-01/clusterextensions/method_extensionslist.go index bb6c82465fd..a7c029379e7 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/clusterextensions/method_extensionslist.go +++ b/resource-manager/kubernetesconfiguration/2023-05-01/clusterextensions/method_extensionslist.go @@ -24,6 +24,18 @@ type ExtensionsListCompleteResult struct { Items []Extension } +type ExtensionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExtensionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExtensionsList ... func (c ClusterExtensionsClient) ExtensionsList(ctx context.Context, id commonids.ScopeId) (result ExtensionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClusterExtensionsClient) ExtensionsList(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ExtensionsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.KubernetesConfiguration/extensions", id.ID()), } diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/extensions/method_delete.go b/resource-manager/kubernetesconfiguration/2023-05-01/extensions/method_delete.go index b80bc526395..92ebf4e2280 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/extensions/method_delete.go +++ b/resource-manager/kubernetesconfiguration/2023-05-01/extensions/method_delete.go @@ -57,8 +57,8 @@ func (c ExtensionsClient) Delete(ctx context.Context, id ScopedExtensionId, opti http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/extensions/method_list.go b/resource-manager/kubernetesconfiguration/2023-05-01/extensions/method_list.go index d9e7eb4c587..a5aefb37fc6 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/extensions/method_list.go +++ b/resource-manager/kubernetesconfiguration/2023-05-01/extensions/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Extension } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExtensionsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExtensionsClient) List(ctx context.Context, id commonids.ScopeId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.KubernetesConfiguration/extensions", id.ID()), } diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/flux/method_configurationsdelete.go b/resource-manager/kubernetesconfiguration/2023-05-01/flux/method_configurationsdelete.go index 5ae8ceb6b4e..cb78c710f5e 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/flux/method_configurationsdelete.go +++ b/resource-manager/kubernetesconfiguration/2023-05-01/flux/method_configurationsdelete.go @@ -57,8 +57,8 @@ func (c FluxClient) ConfigurationsDelete(ctx context.Context, id ScopedFluxConfi http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/flux/method_configurationslist.go b/resource-manager/kubernetesconfiguration/2023-05-01/flux/method_configurationslist.go index 0cb09c05ca8..a0225d7fab4 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/flux/method_configurationslist.go +++ b/resource-manager/kubernetesconfiguration/2023-05-01/flux/method_configurationslist.go @@ -24,6 +24,18 @@ type ConfigurationsListCompleteResult struct { Items []FluxConfiguration } +type ConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationsList ... func (c FluxClient) ConfigurationsList(ctx context.Context, id commonids.ScopeId) (result ConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FluxClient) ConfigurationsList(ctx context.Context, id commonids.ScopeId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.KubernetesConfiguration/fluxConfigurations", id.ID()), } diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_delete.go b/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_delete.go index 2ad43c6f9e6..64a49d42f18 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_delete.go +++ b/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_delete.go @@ -57,8 +57,8 @@ func (c FluxConfigurationClient) Delete(ctx context.Context, id ScopedFluxConfig http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_list.go b/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_list.go index ad59f04a388..312f368f1ca 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_list.go +++ b/resource-manager/kubernetesconfiguration/2023-05-01/fluxconfiguration/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []FluxConfiguration } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FluxConfigurationClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FluxConfigurationClient) List(ctx context.Context, id commonids.ScopeId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.KubernetesConfiguration/fluxConfigurations", id.ID()), } diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/operationsinacluster/method_operationstatuslist.go b/resource-manager/kubernetesconfiguration/2023-05-01/operationsinacluster/method_operationstatuslist.go index a063361fa1c..0b1da8f97c0 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/operationsinacluster/method_operationstatuslist.go +++ b/resource-manager/kubernetesconfiguration/2023-05-01/operationsinacluster/method_operationstatuslist.go @@ -24,6 +24,18 @@ type OperationStatusListCompleteResult struct { Items []OperationStatusResult } +type OperationStatusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *OperationStatusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // OperationStatusList ... func (c OperationsInAClusterClient) OperationStatusList(ctx context.Context, id commonids.ScopeId) (result OperationStatusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OperationsInAClusterClient) OperationStatusList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &OperationStatusListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.KubernetesConfiguration/operations", id.ID()), } diff --git a/resource-manager/kubernetesconfiguration/2023-05-01/sourcecontrolconfiguration/method_list.go b/resource-manager/kubernetesconfiguration/2023-05-01/sourcecontrolconfiguration/method_list.go index b854076cd79..4c205b7430b 100644 --- a/resource-manager/kubernetesconfiguration/2023-05-01/sourcecontrolconfiguration/method_list.go +++ b/resource-manager/kubernetesconfiguration/2023-05-01/sourcecontrolconfiguration/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SourceControlConfiguration } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SourceControlConfigurationClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SourceControlConfigurationClient) List(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.KubernetesConfiguration/sourceControlConfigurations", id.ID()), } diff --git a/resource-manager/kusto/2023-08-15/clusters/method_createorupdate.go b/resource-manager/kusto/2023-08-15/clusters/method_createorupdate.go index 589ae7be020..81d4b801d44 100644 --- a/resource-manager/kusto/2023-08-15/clusters/method_createorupdate.go +++ b/resource-manager/kusto/2023-08-15/clusters/method_createorupdate.go @@ -62,8 +62,8 @@ func (c ClustersClient) CreateOrUpdate(ctx context.Context, id commonids.KustoCl http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/kusto/2023-08-15/clusters/method_update.go b/resource-manager/kusto/2023-08-15/clusters/method_update.go index 1a04ebe5fc3..877c3019474 100644 --- a/resource-manager/kusto/2023-08-15/clusters/method_update.go +++ b/resource-manager/kusto/2023-08-15/clusters/method_update.go @@ -59,8 +59,8 @@ func (c ClustersClient) Update(ctx context.Context, id commonids.KustoClusterId, http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/kusto/2023-08-15/databases/method_createorupdate.go b/resource-manager/kusto/2023-08-15/databases/method_createorupdate.go index 0371bea55f9..754f7644360 100644 --- a/resource-manager/kusto/2023-08-15/databases/method_createorupdate.go +++ b/resource-manager/kusto/2023-08-15/databases/method_createorupdate.go @@ -59,8 +59,8 @@ func (c DatabasesClient) CreateOrUpdate(ctx context.Context, id commonids.KustoD http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/kusto/2023-08-15/databases/method_listbycluster.go b/resource-manager/kusto/2023-08-15/databases/method_listbycluster.go index 453d8f3fcae..67c4de7c892 100644 --- a/resource-manager/kusto/2023-08-15/databases/method_listbycluster.go +++ b/resource-manager/kusto/2023-08-15/databases/method_listbycluster.go @@ -52,6 +52,18 @@ func (o ListByClusterOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCluster ... func (c DatabasesClient) ListByCluster(ctx context.Context, id commonids.KustoClusterId, options ListByClusterOperationOptions) (result ListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -60,8 +72,9 @@ func (c DatabasesClient) ListByCluster(ctx context.Context, id commonids.KustoCl http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/databases", id.ID()), OptionsObject: options, + Pager: &ListByClusterCustomPager{}, + Path: fmt.Sprintf("%s/databases", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/kusto/2023-08-15/databases/method_update.go b/resource-manager/kusto/2023-08-15/databases/method_update.go index 168211631ca..2ca85eda021 100644 --- a/resource-manager/kusto/2023-08-15/databases/method_update.go +++ b/resource-manager/kusto/2023-08-15/databases/method_update.go @@ -59,8 +59,8 @@ func (c DatabasesClient) Update(ctx context.Context, id commonids.KustoDatabaseI http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/kusto/2023-08-15/outboundnetworkdependenciesendpoints/method_clusterslistoutboundnetworkdependenciesendpoints.go b/resource-manager/kusto/2023-08-15/outboundnetworkdependenciesendpoints/method_clusterslistoutboundnetworkdependenciesendpoints.go index 5ff60c6c8cd..60c72489241 100644 --- a/resource-manager/kusto/2023-08-15/outboundnetworkdependenciesendpoints/method_clusterslistoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/kusto/2023-08-15/outboundnetworkdependenciesendpoints/method_clusterslistoutboundnetworkdependenciesendpoints.go @@ -24,6 +24,18 @@ type ClustersListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundNetworkDependenciesEndpoint } +type ClustersListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ClustersListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ClustersListOutboundNetworkDependenciesEndpoints ... func (c OutboundNetworkDependenciesEndpointsClient) ClustersListOutboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.KustoClusterId) (result ClustersListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OutboundNetworkDependenciesEndpointsClient) ClustersListOutboundNetworkD http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ClustersListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/kusto/2023-08-15/sandboxcustomimages/method_listbycluster.go b/resource-manager/kusto/2023-08-15/sandboxcustomimages/method_listbycluster.go index c1ffdb8f897..81c7a4a2582 100644 --- a/resource-manager/kusto/2023-08-15/sandboxcustomimages/method_listbycluster.go +++ b/resource-manager/kusto/2023-08-15/sandboxcustomimages/method_listbycluster.go @@ -24,6 +24,18 @@ type ListByClusterCompleteResult struct { Items []SandboxCustomImage } +type ListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCluster ... func (c SandboxCustomImagesClient) ListByCluster(ctx context.Context, id commonids.KustoClusterId) (result ListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SandboxCustomImagesClient) ListByCluster(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByClusterCustomPager{}, Path: fmt.Sprintf("%s/sandboxCustomImages", id.ID()), } diff --git a/resource-manager/labservices/2022-08-01/image/method_listbylabplan.go b/resource-manager/labservices/2022-08-01/image/method_listbylabplan.go index c83377b7b5e..289d0d18797 100644 --- a/resource-manager/labservices/2022-08-01/image/method_listbylabplan.go +++ b/resource-manager/labservices/2022-08-01/image/method_listbylabplan.go @@ -23,6 +23,18 @@ type ListByLabPlanCompleteResult struct { Items []Image } +type ListByLabPlanCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLabPlanCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLabPlan ... func (c ImageClient) ListByLabPlan(ctx context.Context, id LabPlanId) (result ListByLabPlanOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ImageClient) ListByLabPlan(ctx context.Context, id LabPlanId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLabPlanCustomPager{}, Path: fmt.Sprintf("%s/images", id.ID()), } diff --git a/resource-manager/labservices/2022-08-01/lab/method_listbyresourcegroup.go b/resource-manager/labservices/2022-08-01/lab/method_listbyresourcegroup.go index f2535565c1e..3c31ffbbc87 100644 --- a/resource-manager/labservices/2022-08-01/lab/method_listbyresourcegroup.go +++ b/resource-manager/labservices/2022-08-01/lab/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Lab } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c LabClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LabClient) ListByResourceGroup(ctx context.Context, id commonids.Resourc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.LabServices/labs", id.ID()), } diff --git a/resource-manager/labservices/2022-08-01/lab/method_listbysubscription.go b/resource-manager/labservices/2022-08-01/lab/method_listbysubscription.go index 8341ae105be..c7543e61a46 100644 --- a/resource-manager/labservices/2022-08-01/lab/method_listbysubscription.go +++ b/resource-manager/labservices/2022-08-01/lab/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Lab } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c LabClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LabClient) ListBySubscription(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.LabServices/labs", id.ID()), } diff --git a/resource-manager/labservices/2022-08-01/labplan/method_listbyresourcegroup.go b/resource-manager/labservices/2022-08-01/labplan/method_listbyresourcegroup.go index acb276fbb07..3e7aeb25deb 100644 --- a/resource-manager/labservices/2022-08-01/labplan/method_listbyresourcegroup.go +++ b/resource-manager/labservices/2022-08-01/labplan/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []LabPlan } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c LabPlanClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LabPlanClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.LabServices/labPlans", id.ID()), } diff --git a/resource-manager/labservices/2022-08-01/labplan/method_listbysubscription.go b/resource-manager/labservices/2022-08-01/labplan/method_listbysubscription.go index a62f600de8c..c207ff5cfae 100644 --- a/resource-manager/labservices/2022-08-01/labplan/method_listbysubscription.go +++ b/resource-manager/labservices/2022-08-01/labplan/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []LabPlan } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c LabPlanClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LabPlanClient) ListBySubscription(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.LabServices/labPlans", id.ID()), } diff --git a/resource-manager/labservices/2022-08-01/schedule/method_listbylab.go b/resource-manager/labservices/2022-08-01/schedule/method_listbylab.go index 1c139acb725..011f93903a9 100644 --- a/resource-manager/labservices/2022-08-01/schedule/method_listbylab.go +++ b/resource-manager/labservices/2022-08-01/schedule/method_listbylab.go @@ -23,6 +23,18 @@ type ListByLabCompleteResult struct { Items []Schedule } +type ListByLabCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLabCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLab ... func (c ScheduleClient) ListByLab(ctx context.Context, id LabId) (result ListByLabOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScheduleClient) ListByLab(ctx context.Context, id LabId) (result ListByL http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLabCustomPager{}, Path: fmt.Sprintf("%s/schedules", id.ID()), } diff --git a/resource-manager/labservices/2022-08-01/skus/method_list.go b/resource-manager/labservices/2022-08-01/skus/method_list.go index 4e07903e787..d695b905514 100644 --- a/resource-manager/labservices/2022-08-01/skus/method_list.go +++ b/resource-manager/labservices/2022-08-01/skus/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []LabServicesSku } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SkusClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SkusClient) List(ctx context.Context, id commonids.SubscriptionId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.LabServices/skus", id.ID()), } diff --git a/resource-manager/labservices/2022-08-01/usages/method_listbylocation.go b/resource-manager/labservices/2022-08-01/usages/method_listbylocation.go index 98c9660efde..4677c80baef 100644 --- a/resource-manager/labservices/2022-08-01/usages/method_listbylocation.go +++ b/resource-manager/labservices/2022-08-01/usages/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []Usage } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c UsagesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UsagesClient) ListByLocation(ctx context.Context, id LocationId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/labservices/2022-08-01/user/method_listbylab.go b/resource-manager/labservices/2022-08-01/user/method_listbylab.go index b489b823969..ff8e3ab4d41 100644 --- a/resource-manager/labservices/2022-08-01/user/method_listbylab.go +++ b/resource-manager/labservices/2022-08-01/user/method_listbylab.go @@ -23,6 +23,18 @@ type ListByLabCompleteResult struct { Items []User } +type ListByLabCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLabCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLab ... func (c UserClient) ListByLab(ctx context.Context, id LabId) (result ListByLabOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UserClient) ListByLab(ctx context.Context, id LabId) (result ListByLabOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLabCustomPager{}, Path: fmt.Sprintf("%s/users", id.ID()), } diff --git a/resource-manager/labservices/2022-08-01/virtualmachine/method_listbylab.go b/resource-manager/labservices/2022-08-01/virtualmachine/method_listbylab.go index 0e7073d9408..d8aa84d516b 100644 --- a/resource-manager/labservices/2022-08-01/virtualmachine/method_listbylab.go +++ b/resource-manager/labservices/2022-08-01/virtualmachine/method_listbylab.go @@ -23,6 +23,18 @@ type ListByLabCompleteResult struct { Items []VirtualMachine } +type ListByLabCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLabCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLab ... func (c VirtualMachineClient) ListByLab(ctx context.Context, id LabId) (result ListByLabOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineClient) ListByLab(ctx context.Context, id LabId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLabCustomPager{}, Path: fmt.Sprintf("%s/virtualMachines", id.ID()), } diff --git a/resource-manager/labservices/2023-06-07/image/method_listbylabplan.go b/resource-manager/labservices/2023-06-07/image/method_listbylabplan.go index c83377b7b5e..289d0d18797 100644 --- a/resource-manager/labservices/2023-06-07/image/method_listbylabplan.go +++ b/resource-manager/labservices/2023-06-07/image/method_listbylabplan.go @@ -23,6 +23,18 @@ type ListByLabPlanCompleteResult struct { Items []Image } +type ListByLabPlanCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLabPlanCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLabPlan ... func (c ImageClient) ListByLabPlan(ctx context.Context, id LabPlanId) (result ListByLabPlanOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ImageClient) ListByLabPlan(ctx context.Context, id LabPlanId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLabPlanCustomPager{}, Path: fmt.Sprintf("%s/images", id.ID()), } diff --git a/resource-manager/labservices/2023-06-07/lab/method_listbyresourcegroup.go b/resource-manager/labservices/2023-06-07/lab/method_listbyresourcegroup.go index f2535565c1e..3c31ffbbc87 100644 --- a/resource-manager/labservices/2023-06-07/lab/method_listbyresourcegroup.go +++ b/resource-manager/labservices/2023-06-07/lab/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Lab } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c LabClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LabClient) ListByResourceGroup(ctx context.Context, id commonids.Resourc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.LabServices/labs", id.ID()), } diff --git a/resource-manager/labservices/2023-06-07/lab/method_listbysubscription.go b/resource-manager/labservices/2023-06-07/lab/method_listbysubscription.go index 8341ae105be..c7543e61a46 100644 --- a/resource-manager/labservices/2023-06-07/lab/method_listbysubscription.go +++ b/resource-manager/labservices/2023-06-07/lab/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Lab } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c LabClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LabClient) ListBySubscription(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.LabServices/labs", id.ID()), } diff --git a/resource-manager/labservices/2023-06-07/labplan/method_listbyresourcegroup.go b/resource-manager/labservices/2023-06-07/labplan/method_listbyresourcegroup.go index acb276fbb07..3e7aeb25deb 100644 --- a/resource-manager/labservices/2023-06-07/labplan/method_listbyresourcegroup.go +++ b/resource-manager/labservices/2023-06-07/labplan/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []LabPlan } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c LabPlanClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LabPlanClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.LabServices/labPlans", id.ID()), } diff --git a/resource-manager/labservices/2023-06-07/labplan/method_listbysubscription.go b/resource-manager/labservices/2023-06-07/labplan/method_listbysubscription.go index a62f600de8c..c207ff5cfae 100644 --- a/resource-manager/labservices/2023-06-07/labplan/method_listbysubscription.go +++ b/resource-manager/labservices/2023-06-07/labplan/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []LabPlan } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c LabPlanClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LabPlanClient) ListBySubscription(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.LabServices/labPlans", id.ID()), } diff --git a/resource-manager/labservices/2023-06-07/schedule/method_listbylab.go b/resource-manager/labservices/2023-06-07/schedule/method_listbylab.go index 1c139acb725..011f93903a9 100644 --- a/resource-manager/labservices/2023-06-07/schedule/method_listbylab.go +++ b/resource-manager/labservices/2023-06-07/schedule/method_listbylab.go @@ -23,6 +23,18 @@ type ListByLabCompleteResult struct { Items []Schedule } +type ListByLabCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLabCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLab ... func (c ScheduleClient) ListByLab(ctx context.Context, id LabId) (result ListByLabOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScheduleClient) ListByLab(ctx context.Context, id LabId) (result ListByL http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLabCustomPager{}, Path: fmt.Sprintf("%s/schedules", id.ID()), } diff --git a/resource-manager/labservices/2023-06-07/skus/method_list.go b/resource-manager/labservices/2023-06-07/skus/method_list.go index 4e07903e787..d695b905514 100644 --- a/resource-manager/labservices/2023-06-07/skus/method_list.go +++ b/resource-manager/labservices/2023-06-07/skus/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []LabServicesSku } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SkusClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SkusClient) List(ctx context.Context, id commonids.SubscriptionId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.LabServices/skus", id.ID()), } diff --git a/resource-manager/labservices/2023-06-07/usages/method_listbylocation.go b/resource-manager/labservices/2023-06-07/usages/method_listbylocation.go index 98c9660efde..4677c80baef 100644 --- a/resource-manager/labservices/2023-06-07/usages/method_listbylocation.go +++ b/resource-manager/labservices/2023-06-07/usages/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []Usage } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c UsagesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UsagesClient) ListByLocation(ctx context.Context, id LocationId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/labservices/2023-06-07/user/method_listbylab.go b/resource-manager/labservices/2023-06-07/user/method_listbylab.go index b489b823969..ff8e3ab4d41 100644 --- a/resource-manager/labservices/2023-06-07/user/method_listbylab.go +++ b/resource-manager/labservices/2023-06-07/user/method_listbylab.go @@ -23,6 +23,18 @@ type ListByLabCompleteResult struct { Items []User } +type ListByLabCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLabCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLab ... func (c UserClient) ListByLab(ctx context.Context, id LabId) (result ListByLabOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UserClient) ListByLab(ctx context.Context, id LabId) (result ListByLabOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLabCustomPager{}, Path: fmt.Sprintf("%s/users", id.ID()), } diff --git a/resource-manager/labservices/2023-06-07/virtualmachine/method_listbylab.go b/resource-manager/labservices/2023-06-07/virtualmachine/method_listbylab.go index 0e7073d9408..d8aa84d516b 100644 --- a/resource-manager/labservices/2023-06-07/virtualmachine/method_listbylab.go +++ b/resource-manager/labservices/2023-06-07/virtualmachine/method_listbylab.go @@ -23,6 +23,18 @@ type ListByLabCompleteResult struct { Items []VirtualMachine } +type ListByLabCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLabCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLab ... func (c VirtualMachineClient) ListByLab(ctx context.Context, id LabId) (result ListByLabOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachineClient) ListByLab(ctx context.Context, id LabId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLabCustomPager{}, Path: fmt.Sprintf("%s/virtualMachines", id.ID()), } diff --git a/resource-manager/loadtestservice/2022-12-01/loadtests/method_listbyresourcegroup.go b/resource-manager/loadtestservice/2022-12-01/loadtests/method_listbyresourcegroup.go index 2e88fa29618..a59cf07d44d 100644 --- a/resource-manager/loadtestservice/2022-12-01/loadtests/method_listbyresourcegroup.go +++ b/resource-manager/loadtestservice/2022-12-01/loadtests/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []LoadTestResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c LoadTestsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LoadTestsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.LoadTestService/loadTests", id.ID()), } diff --git a/resource-manager/loadtestservice/2022-12-01/loadtests/method_listbysubscription.go b/resource-manager/loadtestservice/2022-12-01/loadtests/method_listbysubscription.go index d130b45a168..ad97b5edc66 100644 --- a/resource-manager/loadtestservice/2022-12-01/loadtests/method_listbysubscription.go +++ b/resource-manager/loadtestservice/2022-12-01/loadtests/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []LoadTestResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c LoadTestsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LoadTestsClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.LoadTestService/loadTests", id.ID()), } diff --git a/resource-manager/loadtestservice/2022-12-01/loadtests/method_listoutboundnetworkdependenciesendpoints.go b/resource-manager/loadtestservice/2022-12-01/loadtests/method_listoutboundnetworkdependenciesendpoints.go index 56ca7d3e96c..5dbaccda4e3 100644 --- a/resource-manager/loadtestservice/2022-12-01/loadtests/method_listoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/loadtestservice/2022-12-01/loadtests/method_listoutboundnetworkdependenciesendpoints.go @@ -23,6 +23,18 @@ type ListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesEndpoints ... func (c LoadTestsClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, id LoadTestId) (result ListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadTestsClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/loadtestservice/2022-12-01/quotas/method_list.go b/resource-manager/loadtestservice/2022-12-01/quotas/method_list.go index a81863fe166..3584001ee49 100644 --- a/resource-manager/loadtestservice/2022-12-01/quotas/method_list.go +++ b/resource-manager/loadtestservice/2022-12-01/quotas/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []QuotaResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c QuotasClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c QuotasClient) List(ctx context.Context, id LocationId) (result ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/quotas", id.ID()), } diff --git a/resource-manager/logic/2019-05-01/integrationaccountagreements/method_list.go b/resource-manager/logic/2019-05-01/integrationaccountagreements/method_list.go index b115233f5ac..49572dfd16d 100644 --- a/resource-manager/logic/2019-05-01/integrationaccountagreements/method_list.go +++ b/resource-manager/logic/2019-05-01/integrationaccountagreements/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IntegrationAccountAgreementsClient) List(ctx context.Context, id IntegrationAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c IntegrationAccountAgreementsClient) List(ctx context.Context, id Integra http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/agreements", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/agreements", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_list.go b/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_list.go index 7878cf267b4..dde96d3554a 100644 --- a/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_list.go +++ b/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IntegrationAccountCertificatesClient) List(ctx context.Context, id IntegrationAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c IntegrationAccountCertificatesClient) List(ctx context.Context, id Integ http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/certificates", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/certificates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/integrationaccountmaps/method_list.go b/resource-manager/logic/2019-05-01/integrationaccountmaps/method_list.go index 5376b5f8d21..a0c0de786a7 100644 --- a/resource-manager/logic/2019-05-01/integrationaccountmaps/method_list.go +++ b/resource-manager/logic/2019-05-01/integrationaccountmaps/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IntegrationAccountMapsClient) List(ctx context.Context, id IntegrationAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c IntegrationAccountMapsClient) List(ctx context.Context, id IntegrationAc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/maps", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/maps", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/integrationaccountpartners/method_list.go b/resource-manager/logic/2019-05-01/integrationaccountpartners/method_list.go index 254ee24d322..62a91e33199 100644 --- a/resource-manager/logic/2019-05-01/integrationaccountpartners/method_list.go +++ b/resource-manager/logic/2019-05-01/integrationaccountpartners/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IntegrationAccountPartnersClient) List(ctx context.Context, id IntegrationAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c IntegrationAccountPartnersClient) List(ctx context.Context, id Integrati http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/partners", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/partners", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/integrationaccounts/method_listbyresourcegroup.go b/resource-manager/logic/2019-05-01/integrationaccounts/method_listbyresourcegroup.go index 452a882233c..8fcecbe4cb6 100644 --- a/resource-manager/logic/2019-05-01/integrationaccounts/method_listbyresourcegroup.go +++ b/resource-manager/logic/2019-05-01/integrationaccounts/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c IntegrationAccountsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c IntegrationAccountsClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Logic/integrationAccounts", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Logic/integrationAccounts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/integrationaccounts/method_listbysubscription.go b/resource-manager/logic/2019-05-01/integrationaccounts/method_listbysubscription.go index f6df23abb7d..fad0b99bb18 100644 --- a/resource-manager/logic/2019-05-01/integrationaccounts/method_listbysubscription.go +++ b/resource-manager/logic/2019-05-01/integrationaccounts/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c IntegrationAccountsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c IntegrationAccountsClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Logic/integrationAccounts", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Logic/integrationAccounts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/integrationaccountschemas/method_list.go b/resource-manager/logic/2019-05-01/integrationaccountschemas/method_list.go index 1d2ed8f3194..e470b0715da 100644 --- a/resource-manager/logic/2019-05-01/integrationaccountschemas/method_list.go +++ b/resource-manager/logic/2019-05-01/integrationaccountschemas/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IntegrationAccountSchemasClient) List(ctx context.Context, id IntegrationAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c IntegrationAccountSchemasClient) List(ctx context.Context, id Integratio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/integrationaccountsessions/method_list.go b/resource-manager/logic/2019-05-01/integrationaccountsessions/method_list.go index 0a040b0eb37..fa444ba329d 100644 --- a/resource-manager/logic/2019-05-01/integrationaccountsessions/method_list.go +++ b/resource-manager/logic/2019-05-01/integrationaccountsessions/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IntegrationAccountSessionsClient) List(ctx context.Context, id IntegrationAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c IntegrationAccountSessionsClient) List(ctx context.Context, id Integrati http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sessions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/sessions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/integrationserviceenvironmentmanagedapis/method_integrationserviceenvironmentmanagedapioperationslist.go b/resource-manager/logic/2019-05-01/integrationserviceenvironmentmanagedapis/method_integrationserviceenvironmentmanagedapioperationslist.go index 1388f495bac..5b37daff0a6 100644 --- a/resource-manager/logic/2019-05-01/integrationserviceenvironmentmanagedapis/method_integrationserviceenvironmentmanagedapioperationslist.go +++ b/resource-manager/logic/2019-05-01/integrationserviceenvironmentmanagedapis/method_integrationserviceenvironmentmanagedapioperationslist.go @@ -23,6 +23,18 @@ type IntegrationServiceEnvironmentManagedApiOperationsListCompleteResult struct Items []ApiOperation } +type IntegrationServiceEnvironmentManagedApiOperationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *IntegrationServiceEnvironmentManagedApiOperationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // IntegrationServiceEnvironmentManagedApiOperationsList ... func (c IntegrationServiceEnvironmentManagedApisClient) IntegrationServiceEnvironmentManagedApiOperationsList(ctx context.Context, id ManagedApiId) (result IntegrationServiceEnvironmentManagedApiOperationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IntegrationServiceEnvironmentManagedApisClient) IntegrationServiceEnviro http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &IntegrationServiceEnvironmentManagedApiOperationsListCustomPager{}, Path: fmt.Sprintf("%s/apiOperations", id.ID()), } diff --git a/resource-manager/logic/2019-05-01/integrationserviceenvironmentmanagedapis/method_list.go b/resource-manager/logic/2019-05-01/integrationserviceenvironmentmanagedapis/method_list.go index 86e05368e69..52674e3d67b 100644 --- a/resource-manager/logic/2019-05-01/integrationserviceenvironmentmanagedapis/method_list.go +++ b/resource-manager/logic/2019-05-01/integrationserviceenvironmentmanagedapis/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []IntegrationServiceEnvironmentManagedApi } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IntegrationServiceEnvironmentManagedApisClient) List(ctx context.Context, id IntegrationServiceEnvironmentId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IntegrationServiceEnvironmentManagedApisClient) List(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/managedApis", id.ID()), } diff --git a/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbyresourcegroup.go b/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbyresourcegroup.go index b42bcf7c401..f8b4905aec4 100644 --- a/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbyresourcegroup.go +++ b/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c IntegrationServiceEnvironmentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c IntegrationServiceEnvironmentsClient) ListByResourceGroup(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Logic/integrationServiceEnvironments", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Logic/integrationServiceEnvironments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbysubscription.go b/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbysubscription.go index 73822a4ec0a..6407edc686c 100644 --- a/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbysubscription.go +++ b/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c IntegrationServiceEnvironmentsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c IntegrationServiceEnvironmentsClient) ListBySubscription(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Logic/integrationServiceEnvironments", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Logic/integrationServiceEnvironments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/integrationserviceenvironmentskus/method_list.go b/resource-manager/logic/2019-05-01/integrationserviceenvironmentskus/method_list.go index f8704a4cff9..1601d85cf4c 100644 --- a/resource-manager/logic/2019-05-01/integrationserviceenvironmentskus/method_list.go +++ b/resource-manager/logic/2019-05-01/integrationserviceenvironmentskus/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []IntegrationServiceEnvironmentSkuDefinition } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IntegrationServiceEnvironmentSkusClient) List(ctx context.Context, id IntegrationServiceEnvironmentId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IntegrationServiceEnvironmentSkusClient) List(ctx context.Context, id In http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/logic/2019-05-01/workflowrunactions/method_coperepetitionslist.go b/resource-manager/logic/2019-05-01/workflowrunactions/method_coperepetitionslist.go index c7ffe63f0c5..8e3b1832ac8 100644 --- a/resource-manager/logic/2019-05-01/workflowrunactions/method_coperepetitionslist.go +++ b/resource-manager/logic/2019-05-01/workflowrunactions/method_coperepetitionslist.go @@ -23,6 +23,18 @@ type CopeRepetitionsListCompleteResult struct { Items []WorkflowRunActionRepetitionDefinition } +type CopeRepetitionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CopeRepetitionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CopeRepetitionsList ... func (c WorkflowRunActionsClient) CopeRepetitionsList(ctx context.Context, id ActionId) (result CopeRepetitionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) CopeRepetitionsList(ctx context.Context, id Ac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CopeRepetitionsListCustomPager{}, Path: fmt.Sprintf("%s/scopeRepetitions", id.ID()), } diff --git a/resource-manager/logic/2019-05-01/workflowrunactions/method_list.go b/resource-manager/logic/2019-05-01/workflowrunactions/method_list.go index 67d1f71449e..532e550d8d0 100644 --- a/resource-manager/logic/2019-05-01/workflowrunactions/method_list.go +++ b/resource-manager/logic/2019-05-01/workflowrunactions/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowRunActionsClient) List(ctx context.Context, id RunId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowRunActionsClient) List(ctx context.Context, id RunId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/actions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/actions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionslist.go b/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionslist.go index 6ccaa8e80ab..6b6fadac68b 100644 --- a/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionslist.go +++ b/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionslist.go @@ -23,6 +23,18 @@ type WorkflowRunActionRepetitionsListCompleteResult struct { Items []WorkflowRunActionRepetitionDefinition } +type WorkflowRunActionRepetitionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkflowRunActionRepetitionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkflowRunActionRepetitionsList ... func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsList(ctx context.Context, id ActionId) (result WorkflowRunActionRepetitionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsList(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkflowRunActionRepetitionsListCustomPager{}, Path: fmt.Sprintf("%s/repetitions", id.ID()), } diff --git a/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go b/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go index 0c078f05c70..c1d6265df03 100644 --- a/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go +++ b/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go @@ -23,6 +23,18 @@ type WorkflowRunActionRepetitionsRequestHistoriesListCompleteResult struct { Items []RequestHistory } +type WorkflowRunActionRepetitionsRequestHistoriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkflowRunActionRepetitionsRequestHistoriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkflowRunActionRepetitionsRequestHistoriesList ... func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsRequestHistoriesList(ctx context.Context, id RepetitionId) (result WorkflowRunActionRepetitionsRequestHistoriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsRequestHistoriesLi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkflowRunActionRepetitionsRequestHistoriesListCustomPager{}, Path: fmt.Sprintf("%s/requestHistories", id.ID()), } diff --git a/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrequesthistorieslist.go b/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrequesthistorieslist.go index 261d66c9531..3762bebc43e 100644 --- a/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrequesthistorieslist.go +++ b/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrequesthistorieslist.go @@ -23,6 +23,18 @@ type WorkflowRunActionRequestHistoriesListCompleteResult struct { Items []RequestHistory } +type WorkflowRunActionRequestHistoriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkflowRunActionRequestHistoriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkflowRunActionRequestHistoriesList ... func (c WorkflowRunActionsClient) WorkflowRunActionRequestHistoriesList(ctx context.Context, id ActionId) (result WorkflowRunActionRequestHistoriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRequestHistoriesList(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkflowRunActionRequestHistoriesListCustomPager{}, Path: fmt.Sprintf("%s/requestHistories", id.ID()), } diff --git a/resource-manager/logic/2019-05-01/workflowruns/method_list.go b/resource-manager/logic/2019-05-01/workflowruns/method_list.go index 5e7310c7538..ae477169f14 100644 --- a/resource-manager/logic/2019-05-01/workflowruns/method_list.go +++ b/resource-manager/logic/2019-05-01/workflowruns/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowRunsClient) List(ctx context.Context, id WorkflowId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowRunsClient) List(ctx context.Context, id WorkflowId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/runs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/workflows/method_listbyresourcegroup.go b/resource-manager/logic/2019-05-01/workflows/method_listbyresourcegroup.go index 27cbc2b2d33..43d38d2f0da 100644 --- a/resource-manager/logic/2019-05-01/workflows/method_listbyresourcegroup.go +++ b/resource-manager/logic/2019-05-01/workflows/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkflowsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c WorkflowsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Logic/workflows", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Logic/workflows", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/workflows/method_listbysubscription.go b/resource-manager/logic/2019-05-01/workflows/method_listbysubscription.go index e892370af90..d534ebe086b 100644 --- a/resource-manager/logic/2019-05-01/workflows/method_listbysubscription.go +++ b/resource-manager/logic/2019-05-01/workflows/method_listbysubscription.go @@ -55,6 +55,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkflowsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c WorkflowsClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Logic/workflows", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Logic/workflows", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/workflowtriggerhistories/method_list.go b/resource-manager/logic/2019-05-01/workflowtriggerhistories/method_list.go index 473afc367c2..9737ffdb68c 100644 --- a/resource-manager/logic/2019-05-01/workflowtriggerhistories/method_list.go +++ b/resource-manager/logic/2019-05-01/workflowtriggerhistories/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowTriggerHistoriesClient) List(ctx context.Context, id TriggerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowTriggerHistoriesClient) List(ctx context.Context, id TriggerId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/histories", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/histories", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/workflowtriggers/method_list.go b/resource-manager/logic/2019-05-01/workflowtriggers/method_list.go index e484e6ccfb5..2f71990641a 100644 --- a/resource-manager/logic/2019-05-01/workflowtriggers/method_list.go +++ b/resource-manager/logic/2019-05-01/workflowtriggers/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowTriggersClient) List(ctx context.Context, id WorkflowId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowTriggersClient) List(ctx context.Context, id WorkflowId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/triggers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/triggers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logic/2019-05-01/workflowversions/method_list.go b/resource-manager/logic/2019-05-01/workflowversions/method_list.go index cf85823c31f..61db4a175cc 100644 --- a/resource-manager/logic/2019-05-01/workflowversions/method_list.go +++ b/resource-manager/logic/2019-05-01/workflowversions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowVersionsClient) List(ctx context.Context, id WorkflowId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WorkflowVersionsClient) List(ctx context.Context, id WorkflowId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/logz/2020-10-01/monitors/method_listbyresourcegroup.go b/resource-manager/logz/2020-10-01/monitors/method_listbyresourcegroup.go index 9569fb5a67d..4487a242b99 100644 --- a/resource-manager/logz/2020-10-01/monitors/method_listbyresourcegroup.go +++ b/resource-manager/logz/2020-10-01/monitors/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []LogzMonitorResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c MonitorsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Logz/monitors", id.ID()), } diff --git a/resource-manager/logz/2020-10-01/monitors/method_listbysubscription.go b/resource-manager/logz/2020-10-01/monitors/method_listbysubscription.go index b566455a1b4..c22f4eb5151 100644 --- a/resource-manager/logz/2020-10-01/monitors/method_listbysubscription.go +++ b/resource-manager/logz/2020-10-01/monitors/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []LogzMonitorResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c MonitorsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Logz/monitors", id.ID()), } diff --git a/resource-manager/logz/2020-10-01/monitors/method_listmonitoredresources.go b/resource-manager/logz/2020-10-01/monitors/method_listmonitoredresources.go index 581168f2718..d0bd5640be2 100644 --- a/resource-manager/logz/2020-10-01/monitors/method_listmonitoredresources.go +++ b/resource-manager/logz/2020-10-01/monitors/method_listmonitoredresources.go @@ -23,6 +23,18 @@ type ListMonitoredResourcesCompleteResult struct { Items []MonitoredResource } +type ListMonitoredResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMonitoredResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMonitoredResources ... func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId) (result ListMonitoredResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListMonitoredResourcesCustomPager{}, Path: fmt.Sprintf("%s/listMonitoredResources", id.ID()), } diff --git a/resource-manager/logz/2020-10-01/monitors/method_listuserroles.go b/resource-manager/logz/2020-10-01/monitors/method_listuserroles.go index e83dbb4cd20..8706ea14c14 100644 --- a/resource-manager/logz/2020-10-01/monitors/method_listuserroles.go +++ b/resource-manager/logz/2020-10-01/monitors/method_listuserroles.go @@ -23,6 +23,18 @@ type ListUserRolesCompleteResult struct { Items []UserRoleResponse } +type ListUserRolesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUserRolesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUserRoles ... func (c MonitorsClient) ListUserRoles(ctx context.Context, id MonitorId, input UserRoleRequest) (result ListUserRolesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListUserRoles(ctx context.Context, id MonitorId, input U http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListUserRolesCustomPager{}, Path: fmt.Sprintf("%s/listUserRoles", id.ID()), } diff --git a/resource-manager/logz/2020-10-01/singlesignon/method_list.go b/resource-manager/logz/2020-10-01/singlesignon/method_list.go index db8918701b5..b46549cc5fc 100644 --- a/resource-manager/logz/2020-10-01/singlesignon/method_list.go +++ b/resource-manager/logz/2020-10-01/singlesignon/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []LogzSingleSignOnResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SingleSignOnClient) List(ctx context.Context, id MonitorId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SingleSignOnClient) List(ctx context.Context, id MonitorId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/singleSignOnConfigurations", id.ID()), } diff --git a/resource-manager/logz/2020-10-01/subaccount/method_list.go b/resource-manager/logz/2020-10-01/subaccount/method_list.go index d935aa711d4..6c6010d5b4b 100644 --- a/resource-manager/logz/2020-10-01/subaccount/method_list.go +++ b/resource-manager/logz/2020-10-01/subaccount/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []LogzMonitorResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SubAccountClient) List(ctx context.Context, id MonitorId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SubAccountClient) List(ctx context.Context, id MonitorId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/accounts", id.ID()), } diff --git a/resource-manager/logz/2020-10-01/subaccount/method_listmonitoredresources.go b/resource-manager/logz/2020-10-01/subaccount/method_listmonitoredresources.go index a8114e4372a..a16fbcab8af 100644 --- a/resource-manager/logz/2020-10-01/subaccount/method_listmonitoredresources.go +++ b/resource-manager/logz/2020-10-01/subaccount/method_listmonitoredresources.go @@ -23,6 +23,18 @@ type ListMonitoredResourcesCompleteResult struct { Items []MonitoredResource } +type ListMonitoredResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMonitoredResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMonitoredResources ... func (c SubAccountClient) ListMonitoredResources(ctx context.Context, id AccountId) (result ListMonitoredResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SubAccountClient) ListMonitoredResources(ctx context.Context, id Account http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListMonitoredResourcesCustomPager{}, Path: fmt.Sprintf("%s/listMonitoredResources", id.ID()), } diff --git a/resource-manager/logz/2020-10-01/tagrules/method_list.go b/resource-manager/logz/2020-10-01/tagrules/method_list.go index 6d89fb5f5af..7a91120b4e3 100644 --- a/resource-manager/logz/2020-10-01/tagrules/method_list.go +++ b/resource-manager/logz/2020-10-01/tagrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MonitoringTagRules } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TagRulesClient) List(ctx context.Context, id MonitorId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TagRulesClient) List(ctx context.Context, id MonitorId) (result ListOper http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/tagRules", id.ID()), } diff --git a/resource-manager/logz/2020-10-01/tagrules/method_subaccounttagruleslist.go b/resource-manager/logz/2020-10-01/tagrules/method_subaccounttagruleslist.go index d4d68f4412f..39485b0dd4a 100644 --- a/resource-manager/logz/2020-10-01/tagrules/method_subaccounttagruleslist.go +++ b/resource-manager/logz/2020-10-01/tagrules/method_subaccounttagruleslist.go @@ -23,6 +23,18 @@ type SubAccountTagRulesListCompleteResult struct { Items []MonitoringTagRules } +type SubAccountTagRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SubAccountTagRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SubAccountTagRulesList ... func (c TagRulesClient) SubAccountTagRulesList(ctx context.Context, id AccountId) (result SubAccountTagRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TagRulesClient) SubAccountTagRulesList(ctx context.Context, id AccountId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SubAccountTagRulesListCustomPager{}, Path: fmt.Sprintf("%s/tagRules", id.ID()), } diff --git a/resource-manager/logz/2020-10-01/vmhost/method_monitorlistvmhosts.go b/resource-manager/logz/2020-10-01/vmhost/method_monitorlistvmhosts.go index 69c9ada9763..5249acb4894 100644 --- a/resource-manager/logz/2020-10-01/vmhost/method_monitorlistvmhosts.go +++ b/resource-manager/logz/2020-10-01/vmhost/method_monitorlistvmhosts.go @@ -23,6 +23,18 @@ type MonitorListVMHostsCompleteResult struct { Items []VMResources } +type MonitorListVMHostsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorListVMHostsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorListVMHosts ... func (c VMHostClient) MonitorListVMHosts(ctx context.Context, id MonitorId) (result MonitorListVMHostsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMHostClient) MonitorListVMHosts(ctx context.Context, id MonitorId) (res http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorListVMHostsCustomPager{}, Path: fmt.Sprintf("%s/listVMHosts", id.ID()), } diff --git a/resource-manager/logz/2020-10-01/vmhost/method_monitorlistvmhostupdate.go b/resource-manager/logz/2020-10-01/vmhost/method_monitorlistvmhostupdate.go index c61fa4e69b6..8904f568244 100644 --- a/resource-manager/logz/2020-10-01/vmhost/method_monitorlistvmhostupdate.go +++ b/resource-manager/logz/2020-10-01/vmhost/method_monitorlistvmhostupdate.go @@ -23,6 +23,18 @@ type MonitorListVMHostUpdateCompleteResult struct { Items []VMResources } +type MonitorListVMHostUpdateCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorListVMHostUpdateCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorListVMHostUpdate ... func (c VMHostClient) MonitorListVMHostUpdate(ctx context.Context, id MonitorId, input VMHostUpdateRequest) (result MonitorListVMHostUpdateOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMHostClient) MonitorListVMHostUpdate(ctx context.Context, id MonitorId, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorListVMHostUpdateCustomPager{}, Path: fmt.Sprintf("%s/vmHostUpdate", id.ID()), } diff --git a/resource-manager/logz/2020-10-01/vmhost/method_subaccountlistvmhosts.go b/resource-manager/logz/2020-10-01/vmhost/method_subaccountlistvmhosts.go index 3371d0ae4aa..2516b25a439 100644 --- a/resource-manager/logz/2020-10-01/vmhost/method_subaccountlistvmhosts.go +++ b/resource-manager/logz/2020-10-01/vmhost/method_subaccountlistvmhosts.go @@ -23,6 +23,18 @@ type SubAccountListVMHostsCompleteResult struct { Items []VMResources } +type SubAccountListVMHostsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SubAccountListVMHostsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SubAccountListVMHosts ... func (c VMHostClient) SubAccountListVMHosts(ctx context.Context, id AccountId) (result SubAccountListVMHostsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMHostClient) SubAccountListVMHosts(ctx context.Context, id AccountId) ( http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &SubAccountListVMHostsCustomPager{}, Path: fmt.Sprintf("%s/listVMHosts", id.ID()), } diff --git a/resource-manager/logz/2020-10-01/vmhost/method_subaccountlistvmhostupdate.go b/resource-manager/logz/2020-10-01/vmhost/method_subaccountlistvmhostupdate.go index 28890abfda7..2cd6b1962fe 100644 --- a/resource-manager/logz/2020-10-01/vmhost/method_subaccountlistvmhostupdate.go +++ b/resource-manager/logz/2020-10-01/vmhost/method_subaccountlistvmhostupdate.go @@ -23,6 +23,18 @@ type SubAccountListVMHostUpdateCompleteResult struct { Items []VMResources } +type SubAccountListVMHostUpdateCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SubAccountListVMHostUpdateCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SubAccountListVMHostUpdate ... func (c VMHostClient) SubAccountListVMHostUpdate(ctx context.Context, id AccountId, input VMHostUpdateRequest) (result SubAccountListVMHostUpdateOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMHostClient) SubAccountListVMHostUpdate(ctx context.Context, id Account http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &SubAccountListVMHostUpdateCustomPager{}, Path: fmt.Sprintf("%s/vmHostUpdate", id.ID()), } diff --git a/resource-manager/machinelearningservices/2023-10-01/batchdeployment/method_list.go b/resource-manager/machinelearningservices/2023-10-01/batchdeployment/method_list.go index 8b2648d1ae7..507e05685a7 100644 --- a/resource-manager/machinelearningservices/2023-10-01/batchdeployment/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/batchdeployment/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BatchDeploymentClient) List(ctx context.Context, id BatchEndpointId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c BatchDeploymentClient) List(ctx context.Context, id BatchEndpointId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/deployments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/batchendpoint/method_list.go b/resource-manager/machinelearningservices/2023-10-01/batchendpoint/method_list.go index 032441e014a..15b32a57d30 100644 --- a/resource-manager/machinelearningservices/2023-10-01/batchendpoint/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/batchendpoint/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BatchEndpointClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c BatchEndpointClient) List(ctx context.Context, id WorkspaceId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/batchEndpoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/batchEndpoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/codecontainer/method_list.go b/resource-manager/machinelearningservices/2023-10-01/codecontainer/method_list.go index 82287f36bb6..171b99db5bc 100644 --- a/resource-manager/machinelearningservices/2023-10-01/codecontainer/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/codecontainer/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CodeContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c CodeContainerClient) List(ctx context.Context, id WorkspaceId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/codes", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/codes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/codecontainer/method_registrycodecontainerslist.go b/resource-manager/machinelearningservices/2023-10-01/codecontainer/method_registrycodecontainerslist.go index 98fb209e077..5ff793b2303 100644 --- a/resource-manager/machinelearningservices/2023-10-01/codecontainer/method_registrycodecontainerslist.go +++ b/resource-manager/machinelearningservices/2023-10-01/codecontainer/method_registrycodecontainerslist.go @@ -50,6 +50,18 @@ func (o RegistryCodeContainersListOperationOptions) ToQuery() *client.QueryParam return &out } +type RegistryCodeContainersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryCodeContainersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryCodeContainersList ... func (c CodeContainerClient) RegistryCodeContainersList(ctx context.Context, id RegistryId, options RegistryCodeContainersListOperationOptions) (result RegistryCodeContainersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c CodeContainerClient) RegistryCodeContainersList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/codes", id.ID()), OptionsObject: options, + Pager: &RegistryCodeContainersListCustomPager{}, + Path: fmt.Sprintf("%s/codes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/codeversion/method_list.go b/resource-manager/machinelearningservices/2023-10-01/codeversion/method_list.go index 3993452ab72..3fda420f5b3 100644 --- a/resource-manager/machinelearningservices/2023-10-01/codeversion/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/codeversion/method_list.go @@ -66,6 +66,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CodeVersionClient) List(ctx context.Context, id CodeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c CodeVersionClient) List(ctx context.Context, id CodeId, options ListOper http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/codeversion/method_registrycodeversionslist.go b/resource-manager/machinelearningservices/2023-10-01/codeversion/method_registrycodeversionslist.go index 53432fc99c2..bc66ae6a1e0 100644 --- a/resource-manager/machinelearningservices/2023-10-01/codeversion/method_registrycodeversionslist.go +++ b/resource-manager/machinelearningservices/2023-10-01/codeversion/method_registrycodeversionslist.go @@ -58,6 +58,18 @@ func (o RegistryCodeVersionsListOperationOptions) ToQuery() *client.QueryParams return &out } +type RegistryCodeVersionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryCodeVersionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryCodeVersionsList ... func (c CodeVersionClient) RegistryCodeVersionsList(ctx context.Context, id RegistryCodeId, options RegistryCodeVersionsListOperationOptions) (result RegistryCodeVersionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c CodeVersionClient) RegistryCodeVersionsList(ctx context.Context, id Regi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &RegistryCodeVersionsListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/componentcontainer/method_list.go b/resource-manager/machinelearningservices/2023-10-01/componentcontainer/method_list.go index 6e9dfca6efa..8d05f37df2e 100644 --- a/resource-manager/machinelearningservices/2023-10-01/componentcontainer/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/componentcontainer/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ComponentContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ComponentContainerClient) List(ctx context.Context, id WorkspaceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/components", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/components", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/componentcontainer/method_registrycomponentcontainerslist.go b/resource-manager/machinelearningservices/2023-10-01/componentcontainer/method_registrycomponentcontainerslist.go index b3b2e8960f7..a806a3906f9 100644 --- a/resource-manager/machinelearningservices/2023-10-01/componentcontainer/method_registrycomponentcontainerslist.go +++ b/resource-manager/machinelearningservices/2023-10-01/componentcontainer/method_registrycomponentcontainerslist.go @@ -50,6 +50,18 @@ func (o RegistryComponentContainersListOperationOptions) ToQuery() *client.Query return &out } +type RegistryComponentContainersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryComponentContainersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryComponentContainersList ... func (c ComponentContainerClient) RegistryComponentContainersList(ctx context.Context, id RegistryId, options RegistryComponentContainersListOperationOptions) (result RegistryComponentContainersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ComponentContainerClient) RegistryComponentContainersList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/components", id.ID()), OptionsObject: options, + Pager: &RegistryComponentContainersListCustomPager{}, + Path: fmt.Sprintf("%s/components", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/componentversion/method_list.go b/resource-manager/machinelearningservices/2023-10-01/componentversion/method_list.go index 7fcb552388a..39ff348b6f7 100644 --- a/resource-manager/machinelearningservices/2023-10-01/componentversion/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/componentversion/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ComponentVersionClient) List(ctx context.Context, id ComponentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ComponentVersionClient) List(ctx context.Context, id ComponentId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/componentversion/method_registrycomponentversionslist.go b/resource-manager/machinelearningservices/2023-10-01/componentversion/method_registrycomponentversionslist.go index 4390e8d7212..55fe1f0970a 100644 --- a/resource-manager/machinelearningservices/2023-10-01/componentversion/method_registrycomponentversionslist.go +++ b/resource-manager/machinelearningservices/2023-10-01/componentversion/method_registrycomponentversionslist.go @@ -58,6 +58,18 @@ func (o RegistryComponentVersionsListOperationOptions) ToQuery() *client.QueryPa return &out } +type RegistryComponentVersionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryComponentVersionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryComponentVersionsList ... func (c ComponentVersionClient) RegistryComponentVersionsList(ctx context.Context, id RegistryComponentId, options RegistryComponentVersionsListOperationOptions) (result RegistryComponentVersionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ComponentVersionClient) RegistryComponentVersionsList(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &RegistryComponentVersionsListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/datacontainer/method_list.go b/resource-manager/machinelearningservices/2023-10-01/datacontainer/method_list.go index 72f169dac3c..4c058c3a3ee 100644 --- a/resource-manager/machinelearningservices/2023-10-01/datacontainer/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/datacontainer/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c DataContainerClient) List(ctx context.Context, id WorkspaceId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/data", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/data", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/datacontainerregistry/method_registrydatacontainerslist.go b/resource-manager/machinelearningservices/2023-10-01/datacontainerregistry/method_registrydatacontainerslist.go index 779cd64c29d..9f82df7b90e 100644 --- a/resource-manager/machinelearningservices/2023-10-01/datacontainerregistry/method_registrydatacontainerslist.go +++ b/resource-manager/machinelearningservices/2023-10-01/datacontainerregistry/method_registrydatacontainerslist.go @@ -54,6 +54,18 @@ func (o RegistryDataContainersListOperationOptions) ToQuery() *client.QueryParam return &out } +type RegistryDataContainersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryDataContainersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryDataContainersList ... func (c DataContainerRegistryClient) RegistryDataContainersList(ctx context.Context, id RegistryId, options RegistryDataContainersListOperationOptions) (result RegistryDataContainersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c DataContainerRegistryClient) RegistryDataContainersList(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/data", id.ID()), OptionsObject: options, + Pager: &RegistryDataContainersListCustomPager{}, + Path: fmt.Sprintf("%s/data", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/datastore/method_createorupdate.go b/resource-manager/machinelearningservices/2023-10-01/datastore/method_createorupdate.go index 68e642b0337..620d9f2e091 100644 --- a/resource-manager/machinelearningservices/2023-10-01/datastore/method_createorupdate.go +++ b/resource-manager/machinelearningservices/2023-10-01/datastore/method_createorupdate.go @@ -54,8 +54,8 @@ func (c DatastoreClient) CreateOrUpdate(ctx context.Context, id DataStoreId, inp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/datastore/method_list.go b/resource-manager/machinelearningservices/2023-10-01/datastore/method_list.go index 1b34deee35a..3dd905b841e 100644 --- a/resource-manager/machinelearningservices/2023-10-01/datastore/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/datastore/method_list.go @@ -74,6 +74,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DatastoreClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c DatastoreClient) List(ctx context.Context, id WorkspaceId, options ListO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/dataStores", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/dataStores", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/dataversion/method_list.go b/resource-manager/machinelearningservices/2023-10-01/dataversion/method_list.go index efb503eb3d2..71a60e93186 100644 --- a/resource-manager/machinelearningservices/2023-10-01/dataversion/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/dataversion/method_list.go @@ -66,6 +66,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataVersionClient) List(ctx context.Context, id WorkspaceDataId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c DataVersionClient) List(ctx context.Context, id WorkspaceDataId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/dataversionregistry/method_registrydataversionslist.go b/resource-manager/machinelearningservices/2023-10-01/dataversionregistry/method_registrydataversionslist.go index 9dfe574eb08..deb795c0a18 100644 --- a/resource-manager/machinelearningservices/2023-10-01/dataversionregistry/method_registrydataversionslist.go +++ b/resource-manager/machinelearningservices/2023-10-01/dataversionregistry/method_registrydataversionslist.go @@ -66,6 +66,18 @@ func (o RegistryDataVersionsListOperationOptions) ToQuery() *client.QueryParams return &out } +type RegistryDataVersionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryDataVersionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryDataVersionsList ... func (c DataVersionRegistryClient) RegistryDataVersionsList(ctx context.Context, id DataId, options RegistryDataVersionsListOperationOptions) (result RegistryDataVersionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c DataVersionRegistryClient) RegistryDataVersionsList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &RegistryDataVersionsListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/environmentcontainer/method_list.go b/resource-manager/machinelearningservices/2023-10-01/environmentcontainer/method_list.go index 2f32d0cdbbf..6356874c795 100644 --- a/resource-manager/machinelearningservices/2023-10-01/environmentcontainer/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/environmentcontainer/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EnvironmentContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EnvironmentContainerClient) List(ctx context.Context, id WorkspaceId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/environments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/environments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/environmentcontainer/method_registryenvironmentcontainerslist.go b/resource-manager/machinelearningservices/2023-10-01/environmentcontainer/method_registryenvironmentcontainerslist.go index 42cce650131..60bfbabcae8 100644 --- a/resource-manager/machinelearningservices/2023-10-01/environmentcontainer/method_registryenvironmentcontainerslist.go +++ b/resource-manager/machinelearningservices/2023-10-01/environmentcontainer/method_registryenvironmentcontainerslist.go @@ -54,6 +54,18 @@ func (o RegistryEnvironmentContainersListOperationOptions) ToQuery() *client.Que return &out } +type RegistryEnvironmentContainersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryEnvironmentContainersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryEnvironmentContainersList ... func (c EnvironmentContainerClient) RegistryEnvironmentContainersList(ctx context.Context, id RegistryId, options RegistryEnvironmentContainersListOperationOptions) (result RegistryEnvironmentContainersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EnvironmentContainerClient) RegistryEnvironmentContainersList(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/environments", id.ID()), OptionsObject: options, + Pager: &RegistryEnvironmentContainersListCustomPager{}, + Path: fmt.Sprintf("%s/environments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/environmentversion/method_list.go b/resource-manager/machinelearningservices/2023-10-01/environmentversion/method_list.go index 345cbb5a5ca..23a839f0739 100644 --- a/resource-manager/machinelearningservices/2023-10-01/environmentversion/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/environmentversion/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EnvironmentVersionClient) List(ctx context.Context, id EnvironmentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c EnvironmentVersionClient) List(ctx context.Context, id EnvironmentId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/environmentversion/method_registryenvironmentversionslist.go b/resource-manager/machinelearningservices/2023-10-01/environmentversion/method_registryenvironmentversionslist.go index 25ecb6111ca..88db4de6ca3 100644 --- a/resource-manager/machinelearningservices/2023-10-01/environmentversion/method_registryenvironmentversionslist.go +++ b/resource-manager/machinelearningservices/2023-10-01/environmentversion/method_registryenvironmentversionslist.go @@ -62,6 +62,18 @@ func (o RegistryEnvironmentVersionsListOperationOptions) ToQuery() *client.Query return &out } +type RegistryEnvironmentVersionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryEnvironmentVersionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryEnvironmentVersionsList ... func (c EnvironmentVersionClient) RegistryEnvironmentVersionsList(ctx context.Context, id RegistryEnvironmentId, options RegistryEnvironmentVersionsListOperationOptions) (result RegistryEnvironmentVersionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c EnvironmentVersionClient) RegistryEnvironmentVersionsList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &RegistryEnvironmentVersionsListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/feature/method_list.go b/resource-manager/machinelearningservices/2023-10-01/feature/method_list.go index a1f0970c216..1553b9965ad 100644 --- a/resource-manager/machinelearningservices/2023-10-01/feature/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/feature/method_list.go @@ -70,6 +70,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FeatureClient) List(ctx context.Context, id FeatureSetVersionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c FeatureClient) List(ctx context.Context, id FeatureSetVersionId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/features", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/features", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/featuresetcontainer/method_list.go b/resource-manager/machinelearningservices/2023-10-01/featuresetcontainer/method_list.go index aca30403042..b3fab75e9ff 100644 --- a/resource-manager/machinelearningservices/2023-10-01/featuresetcontainer/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/featuresetcontainer/method_list.go @@ -74,6 +74,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FeaturesetContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c FeaturesetContainerClient) List(ctx context.Context, id WorkspaceId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/featureSets", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/featureSets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/featuresetversion/method_list.go b/resource-manager/machinelearningservices/2023-10-01/featuresetversion/method_list.go index 5ece36d5d57..fa6692e5974 100644 --- a/resource-manager/machinelearningservices/2023-10-01/featuresetversion/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/featuresetversion/method_list.go @@ -82,6 +82,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FeaturesetVersionClient) List(ctx context.Context, id FeatureSetId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -90,8 +102,9 @@ func (c FeaturesetVersionClient) List(ctx context.Context, id FeatureSetId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/featurestoreentitycontainer/method_list.go b/resource-manager/machinelearningservices/2023-10-01/featurestoreentitycontainer/method_list.go index 6502288cc33..ff515e5fa30 100644 --- a/resource-manager/machinelearningservices/2023-10-01/featurestoreentitycontainer/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/featurestoreentitycontainer/method_list.go @@ -74,6 +74,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FeaturestoreEntityContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c FeaturestoreEntityContainerClient) List(ctx context.Context, id Workspac http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/featureStoreEntities", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/featureStoreEntities", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/featurestoreentityversion/method_list.go b/resource-manager/machinelearningservices/2023-10-01/featurestoreentityversion/method_list.go index d26ad96b463..96a28bcd827 100644 --- a/resource-manager/machinelearningservices/2023-10-01/featurestoreentityversion/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/featurestoreentityversion/method_list.go @@ -82,6 +82,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FeaturestoreEntityVersionClient) List(ctx context.Context, id FeatureStoreEntityId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -90,8 +102,9 @@ func (c FeaturestoreEntityVersionClient) List(ctx context.Context, id FeatureSto http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/job/method_list.go b/resource-manager/machinelearningservices/2023-10-01/job/method_list.go index bf2a517d0af..9d12e514848 100644 --- a/resource-manager/machinelearningservices/2023-10-01/job/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/job/method_list.go @@ -66,6 +66,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c JobClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c JobClient) List(ctx context.Context, id WorkspaceId, options ListOperati http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/jobs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/jobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/machinelearningcomputes/method_computedelete.go b/resource-manager/machinelearningservices/2023-10-01/machinelearningcomputes/method_computedelete.go index 183f6120da8..dc6079dda52 100644 --- a/resource-manager/machinelearningservices/2023-10-01/machinelearningcomputes/method_computedelete.go +++ b/resource-manager/machinelearningservices/2023-10-01/machinelearningcomputes/method_computedelete.go @@ -57,8 +57,8 @@ func (c MachineLearningComputesClient) ComputeDelete(ctx context.Context, id Com http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/machinelearningcomputes/method_computelist.go b/resource-manager/machinelearningservices/2023-10-01/machinelearningcomputes/method_computelist.go index b766af613b3..8641953d2f8 100644 --- a/resource-manager/machinelearningservices/2023-10-01/machinelearningcomputes/method_computelist.go +++ b/resource-manager/machinelearningservices/2023-10-01/machinelearningcomputes/method_computelist.go @@ -50,6 +50,18 @@ func (o ComputeListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ComputeListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ComputeListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ComputeList ... func (c MachineLearningComputesClient) ComputeList(ctx context.Context, id WorkspaceId, options ComputeListOperationOptions) (result ComputeListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c MachineLearningComputesClient) ComputeList(ctx context.Context, id Works http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/computes", id.ID()), OptionsObject: options, + Pager: &ComputeListCustomPager{}, + Path: fmt.Sprintf("%s/computes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/machinelearningcomputes/method_computelistnodes.go b/resource-manager/machinelearningservices/2023-10-01/machinelearningcomputes/method_computelistnodes.go index 81b3bdc3ffd..720775c6c95 100644 --- a/resource-manager/machinelearningservices/2023-10-01/machinelearningcomputes/method_computelistnodes.go +++ b/resource-manager/machinelearningservices/2023-10-01/machinelearningcomputes/method_computelistnodes.go @@ -23,6 +23,18 @@ type ComputeListNodesCompleteResult struct { Items []AmlComputeNodesInformation } +type ComputeListNodesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ComputeListNodesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ComputeListNodes ... func (c MachineLearningComputesClient) ComputeListNodes(ctx context.Context, id ComputeId) (result ComputeListNodesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MachineLearningComputesClient) ComputeListNodes(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ComputeListNodesCustomPager{}, Path: fmt.Sprintf("%s/listNodes", id.ID()), } diff --git a/resource-manager/machinelearningservices/2023-10-01/managednetwork/method_settingsrulelist.go b/resource-manager/machinelearningservices/2023-10-01/managednetwork/method_settingsrulelist.go index 32d6cdd2caa..b73fd89a69d 100644 --- a/resource-manager/machinelearningservices/2023-10-01/managednetwork/method_settingsrulelist.go +++ b/resource-manager/machinelearningservices/2023-10-01/managednetwork/method_settingsrulelist.go @@ -23,6 +23,18 @@ type SettingsRuleListCompleteResult struct { Items []OutboundRuleBasicResource } +type SettingsRuleListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SettingsRuleListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SettingsRuleList ... func (c ManagedNetworkClient) SettingsRuleList(ctx context.Context, id WorkspaceId) (result SettingsRuleListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedNetworkClient) SettingsRuleList(ctx context.Context, id Workspace http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SettingsRuleListCustomPager{}, Path: fmt.Sprintf("%s/outboundRules", id.ID()), } diff --git a/resource-manager/machinelearningservices/2023-10-01/modelcontainer/method_list.go b/resource-manager/machinelearningservices/2023-10-01/modelcontainer/method_list.go index afeea6d86bd..84e5cb5e7bd 100644 --- a/resource-manager/machinelearningservices/2023-10-01/modelcontainer/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/modelcontainer/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ModelContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ModelContainerClient) List(ctx context.Context, id WorkspaceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/models", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/models", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/modelcontainer/method_registrymodelcontainerslist.go b/resource-manager/machinelearningservices/2023-10-01/modelcontainer/method_registrymodelcontainerslist.go index c656ba993b6..ea94cac36d1 100644 --- a/resource-manager/machinelearningservices/2023-10-01/modelcontainer/method_registrymodelcontainerslist.go +++ b/resource-manager/machinelearningservices/2023-10-01/modelcontainer/method_registrymodelcontainerslist.go @@ -54,6 +54,18 @@ func (o RegistryModelContainersListOperationOptions) ToQuery() *client.QueryPara return &out } +type RegistryModelContainersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryModelContainersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryModelContainersList ... func (c ModelContainerClient) RegistryModelContainersList(ctx context.Context, id RegistryId, options RegistryModelContainersListOperationOptions) (result RegistryModelContainersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ModelContainerClient) RegistryModelContainersList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/models", id.ID()), OptionsObject: options, + Pager: &RegistryModelContainersListCustomPager{}, + Path: fmt.Sprintf("%s/models", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/modelversion/method_list.go b/resource-manager/machinelearningservices/2023-10-01/modelversion/method_list.go index 327619475c4..ab7c9714135 100644 --- a/resource-manager/machinelearningservices/2023-10-01/modelversion/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/modelversion/method_list.go @@ -86,6 +86,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ModelVersionClient) List(ctx context.Context, id ModelId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -94,8 +106,9 @@ func (c ModelVersionClient) List(ctx context.Context, id ModelId, options ListOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/modelversion/method_registrymodelversionslist.go b/resource-manager/machinelearningservices/2023-10-01/modelversion/method_registrymodelversionslist.go index e10b6749376..5234afd2cdb 100644 --- a/resource-manager/machinelearningservices/2023-10-01/modelversion/method_registrymodelversionslist.go +++ b/resource-manager/machinelearningservices/2023-10-01/modelversion/method_registrymodelversionslist.go @@ -78,6 +78,18 @@ func (o RegistryModelVersionsListOperationOptions) ToQuery() *client.QueryParams return &out } +type RegistryModelVersionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryModelVersionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryModelVersionsList ... func (c ModelVersionClient) RegistryModelVersionsList(ctx context.Context, id RegistryModelId, options RegistryModelVersionsListOperationOptions) (result RegistryModelVersionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -86,8 +98,9 @@ func (c ModelVersionClient) RegistryModelVersionsList(ctx context.Context, id Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &RegistryModelVersionsListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/onlinedeployment/method_list.go b/resource-manager/machinelearningservices/2023-10-01/onlinedeployment/method_list.go index e701f9c2de7..774531ae70e 100644 --- a/resource-manager/machinelearningservices/2023-10-01/onlinedeployment/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/onlinedeployment/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OnlineDeploymentClient) List(ctx context.Context, id OnlineEndpointId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c OnlineDeploymentClient) List(ctx context.Context, id OnlineEndpointId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/deployments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/onlinedeployment/method_listskus.go b/resource-manager/machinelearningservices/2023-10-01/onlinedeployment/method_listskus.go index 6b652bbd15c..234177e825c 100644 --- a/resource-manager/machinelearningservices/2023-10-01/onlinedeployment/method_listskus.go +++ b/resource-manager/machinelearningservices/2023-10-01/onlinedeployment/method_listskus.go @@ -54,6 +54,18 @@ func (o ListSkusOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSkus ... func (c OnlineDeploymentClient) ListSkus(ctx context.Context, id OnlineEndpointDeploymentId, options ListSkusOperationOptions) (result ListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c OnlineDeploymentClient) ListSkus(ctx context.Context, id OnlineEndpointD http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/skus", id.ID()), OptionsObject: options, + Pager: &ListSkusCustomPager{}, + Path: fmt.Sprintf("%s/skus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/onlineendpoint/method_list.go b/resource-manager/machinelearningservices/2023-10-01/onlineendpoint/method_list.go index cbc4863a080..74f48048e6f 100644 --- a/resource-manager/machinelearningservices/2023-10-01/onlineendpoint/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/onlineendpoint/method_list.go @@ -74,6 +74,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OnlineEndpointClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c OnlineEndpointClient) List(ctx context.Context, id WorkspaceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/onlineEndpoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/onlineEndpoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/operationalizationclusters/method_computedelete.go b/resource-manager/machinelearningservices/2023-10-01/operationalizationclusters/method_computedelete.go index b980c734607..242131278ac 100644 --- a/resource-manager/machinelearningservices/2023-10-01/operationalizationclusters/method_computedelete.go +++ b/resource-manager/machinelearningservices/2023-10-01/operationalizationclusters/method_computedelete.go @@ -57,8 +57,8 @@ func (c OperationalizationClustersClient) ComputeDelete(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/operationalizationclusters/method_computelist.go b/resource-manager/machinelearningservices/2023-10-01/operationalizationclusters/method_computelist.go index 4405cef4eea..f75e45f3e01 100644 --- a/resource-manager/machinelearningservices/2023-10-01/operationalizationclusters/method_computelist.go +++ b/resource-manager/machinelearningservices/2023-10-01/operationalizationclusters/method_computelist.go @@ -50,6 +50,18 @@ func (o ComputeListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ComputeListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ComputeListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ComputeList ... func (c OperationalizationClustersClient) ComputeList(ctx context.Context, id WorkspaceId, options ComputeListOperationOptions) (result ComputeListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c OperationalizationClustersClient) ComputeList(ctx context.Context, id Wo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/computes", id.ID()), OptionsObject: options, + Pager: &ComputeListCustomPager{}, + Path: fmt.Sprintf("%s/computes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/quota/method_list.go b/resource-manager/machinelearningservices/2023-10-01/quota/method_list.go index 9d520512ca1..2727508aaab 100644 --- a/resource-manager/machinelearningservices/2023-10-01/quota/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/quota/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ResourceQuota } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c QuotaClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c QuotaClient) List(ctx context.Context, id LocationId) (result ListOperat http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/quotas", id.ID()), } diff --git a/resource-manager/machinelearningservices/2023-10-01/quota/method_update.go b/resource-manager/machinelearningservices/2023-10-01/quota/method_update.go index 4f55915dd39..3320af708de 100644 --- a/resource-manager/machinelearningservices/2023-10-01/quota/method_update.go +++ b/resource-manager/machinelearningservices/2023-10-01/quota/method_update.go @@ -23,6 +23,18 @@ type UpdateCompleteResult struct { Items []UpdateWorkspaceQuotas } +type UpdateCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UpdateCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Update ... func (c QuotaClient) Update(ctx context.Context, id LocationId, input QuotaUpdateParameters) (result UpdateOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c QuotaClient) Update(ctx context.Context, id LocationId, input QuotaUpdat http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &UpdateCustomPager{}, Path: fmt.Sprintf("%s/updateQuotas", id.ID()), } diff --git a/resource-manager/machinelearningservices/2023-10-01/registrymanagement/method_registrieslist.go b/resource-manager/machinelearningservices/2023-10-01/registrymanagement/method_registrieslist.go index 2c514287c9d..e270ec236c6 100644 --- a/resource-manager/machinelearningservices/2023-10-01/registrymanagement/method_registrieslist.go +++ b/resource-manager/machinelearningservices/2023-10-01/registrymanagement/method_registrieslist.go @@ -24,6 +24,18 @@ type RegistriesListCompleteResult struct { Items []RegistryTrackedResource } +type RegistriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistriesList ... func (c RegistryManagementClient) RegistriesList(ctx context.Context, id commonids.ResourceGroupId) (result RegistriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RegistryManagementClient) RegistriesList(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RegistriesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MachineLearningServices/registries", id.ID()), } diff --git a/resource-manager/machinelearningservices/2023-10-01/registrymanagement/method_registrieslistbysubscription.go b/resource-manager/machinelearningservices/2023-10-01/registrymanagement/method_registrieslistbysubscription.go index 2d786761613..e98d4517961 100644 --- a/resource-manager/machinelearningservices/2023-10-01/registrymanagement/method_registrieslistbysubscription.go +++ b/resource-manager/machinelearningservices/2023-10-01/registrymanagement/method_registrieslistbysubscription.go @@ -24,6 +24,18 @@ type RegistriesListBySubscriptionCompleteResult struct { Items []RegistryTrackedResource } +type RegistriesListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistriesListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistriesListBySubscription ... func (c RegistryManagementClient) RegistriesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result RegistriesListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RegistryManagementClient) RegistriesListBySubscription(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RegistriesListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MachineLearningServices/registries", id.ID()), } diff --git a/resource-manager/machinelearningservices/2023-10-01/schedule/method_list.go b/resource-manager/machinelearningservices/2023-10-01/schedule/method_list.go index ff2554566fb..978fb6364b9 100644 --- a/resource-manager/machinelearningservices/2023-10-01/schedule/method_list.go +++ b/resource-manager/machinelearningservices/2023-10-01/schedule/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScheduleClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ScheduleClient) List(ctx context.Context, id WorkspaceId, options ListOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schedules", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/schedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/v2workspaceconnectionresource/method_workspaceconnectionslist.go b/resource-manager/machinelearningservices/2023-10-01/v2workspaceconnectionresource/method_workspaceconnectionslist.go index 446164fb06a..9cb93aa7e2f 100644 --- a/resource-manager/machinelearningservices/2023-10-01/v2workspaceconnectionresource/method_workspaceconnectionslist.go +++ b/resource-manager/machinelearningservices/2023-10-01/v2workspaceconnectionresource/method_workspaceconnectionslist.go @@ -54,6 +54,18 @@ func (o WorkspaceConnectionsListOperationOptions) ToQuery() *client.QueryParams return &out } +type WorkspaceConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceConnectionsList ... func (c V2WorkspaceConnectionResourceClient) WorkspaceConnectionsList(ctx context.Context, id WorkspaceId, options WorkspaceConnectionsListOperationOptions) (result WorkspaceConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c V2WorkspaceConnectionResourceClient) WorkspaceConnectionsList(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/connections", id.ID()), OptionsObject: options, + Pager: &WorkspaceConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/connections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/workspaces/method_delete.go b/resource-manager/machinelearningservices/2023-10-01/workspaces/method_delete.go index 89b2b8ca452..b41fca1fe8c 100644 --- a/resource-manager/machinelearningservices/2023-10-01/workspaces/method_delete.go +++ b/resource-manager/machinelearningservices/2023-10-01/workspaces/method_delete.go @@ -57,8 +57,8 @@ func (c WorkspacesClient) Delete(ctx context.Context, id WorkspaceId, options De http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/workspaces/method_listbyresourcegroup.go b/resource-manager/machinelearningservices/2023-10-01/workspaces/method_listbyresourcegroup.go index 5c6e9407ae3..f485d22dee7 100644 --- a/resource-manager/machinelearningservices/2023-10-01/workspaces/method_listbyresourcegroup.go +++ b/resource-manager/machinelearningservices/2023-10-01/workspaces/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.MachineLearningServices/workspaces", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.MachineLearningServices/workspaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/workspaces/method_listbysubscription.go b/resource-manager/machinelearningservices/2023-10-01/workspaces/method_listbysubscription.go index 8df91fe9577..424d45bb49b 100644 --- a/resource-manager/machinelearningservices/2023-10-01/workspaces/method_listbysubscription.go +++ b/resource-manager/machinelearningservices/2023-10-01/workspaces/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.MachineLearningServices/workspaces", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.MachineLearningServices/workspaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2023-10-01/workspaces/method_workspacefeatureslist.go b/resource-manager/machinelearningservices/2023-10-01/workspaces/method_workspacefeatureslist.go index 05309197732..3d048be572e 100644 --- a/resource-manager/machinelearningservices/2023-10-01/workspaces/method_workspacefeatureslist.go +++ b/resource-manager/machinelearningservices/2023-10-01/workspaces/method_workspacefeatureslist.go @@ -23,6 +23,18 @@ type WorkspaceFeaturesListCompleteResult struct { Items []AmlUserFeature } +type WorkspaceFeaturesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceFeaturesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceFeaturesList ... func (c WorkspacesClient) WorkspaceFeaturesList(ctx context.Context, id WorkspaceId) (result WorkspaceFeaturesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkspacesClient) WorkspaceFeaturesList(ctx context.Context, id Workspac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceFeaturesListCustomPager{}, Path: fmt.Sprintf("%s/features", id.ID()), } diff --git a/resource-manager/machinelearningservices/2024-04-01/batchdeployment/method_list.go b/resource-manager/machinelearningservices/2024-04-01/batchdeployment/method_list.go index 8b2648d1ae7..507e05685a7 100644 --- a/resource-manager/machinelearningservices/2024-04-01/batchdeployment/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/batchdeployment/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BatchDeploymentClient) List(ctx context.Context, id BatchEndpointId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c BatchDeploymentClient) List(ctx context.Context, id BatchEndpointId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/deployments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/batchendpoint/method_list.go b/resource-manager/machinelearningservices/2024-04-01/batchendpoint/method_list.go index 032441e014a..15b32a57d30 100644 --- a/resource-manager/machinelearningservices/2024-04-01/batchendpoint/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/batchendpoint/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BatchEndpointClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c BatchEndpointClient) List(ctx context.Context, id WorkspaceId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/batchEndpoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/batchEndpoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/codecontainer/method_list.go b/resource-manager/machinelearningservices/2024-04-01/codecontainer/method_list.go index 82287f36bb6..171b99db5bc 100644 --- a/resource-manager/machinelearningservices/2024-04-01/codecontainer/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/codecontainer/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CodeContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c CodeContainerClient) List(ctx context.Context, id WorkspaceId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/codes", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/codes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/codecontainer/method_registrycodecontainerslist.go b/resource-manager/machinelearningservices/2024-04-01/codecontainer/method_registrycodecontainerslist.go index 98fb209e077..5ff793b2303 100644 --- a/resource-manager/machinelearningservices/2024-04-01/codecontainer/method_registrycodecontainerslist.go +++ b/resource-manager/machinelearningservices/2024-04-01/codecontainer/method_registrycodecontainerslist.go @@ -50,6 +50,18 @@ func (o RegistryCodeContainersListOperationOptions) ToQuery() *client.QueryParam return &out } +type RegistryCodeContainersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryCodeContainersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryCodeContainersList ... func (c CodeContainerClient) RegistryCodeContainersList(ctx context.Context, id RegistryId, options RegistryCodeContainersListOperationOptions) (result RegistryCodeContainersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c CodeContainerClient) RegistryCodeContainersList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/codes", id.ID()), OptionsObject: options, + Pager: &RegistryCodeContainersListCustomPager{}, + Path: fmt.Sprintf("%s/codes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/codeversion/method_list.go b/resource-manager/machinelearningservices/2024-04-01/codeversion/method_list.go index 3993452ab72..3fda420f5b3 100644 --- a/resource-manager/machinelearningservices/2024-04-01/codeversion/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/codeversion/method_list.go @@ -66,6 +66,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CodeVersionClient) List(ctx context.Context, id CodeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c CodeVersionClient) List(ctx context.Context, id CodeId, options ListOper http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/codeversion/method_registrycodeversionslist.go b/resource-manager/machinelearningservices/2024-04-01/codeversion/method_registrycodeversionslist.go index 53432fc99c2..bc66ae6a1e0 100644 --- a/resource-manager/machinelearningservices/2024-04-01/codeversion/method_registrycodeversionslist.go +++ b/resource-manager/machinelearningservices/2024-04-01/codeversion/method_registrycodeversionslist.go @@ -58,6 +58,18 @@ func (o RegistryCodeVersionsListOperationOptions) ToQuery() *client.QueryParams return &out } +type RegistryCodeVersionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryCodeVersionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryCodeVersionsList ... func (c CodeVersionClient) RegistryCodeVersionsList(ctx context.Context, id RegistryCodeId, options RegistryCodeVersionsListOperationOptions) (result RegistryCodeVersionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c CodeVersionClient) RegistryCodeVersionsList(ctx context.Context, id Regi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &RegistryCodeVersionsListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/componentcontainer/method_list.go b/resource-manager/machinelearningservices/2024-04-01/componentcontainer/method_list.go index 6e9dfca6efa..8d05f37df2e 100644 --- a/resource-manager/machinelearningservices/2024-04-01/componentcontainer/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/componentcontainer/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ComponentContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ComponentContainerClient) List(ctx context.Context, id WorkspaceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/components", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/components", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/componentcontainer/method_registrycomponentcontainerslist.go b/resource-manager/machinelearningservices/2024-04-01/componentcontainer/method_registrycomponentcontainerslist.go index b3b2e8960f7..a806a3906f9 100644 --- a/resource-manager/machinelearningservices/2024-04-01/componentcontainer/method_registrycomponentcontainerslist.go +++ b/resource-manager/machinelearningservices/2024-04-01/componentcontainer/method_registrycomponentcontainerslist.go @@ -50,6 +50,18 @@ func (o RegistryComponentContainersListOperationOptions) ToQuery() *client.Query return &out } +type RegistryComponentContainersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryComponentContainersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryComponentContainersList ... func (c ComponentContainerClient) RegistryComponentContainersList(ctx context.Context, id RegistryId, options RegistryComponentContainersListOperationOptions) (result RegistryComponentContainersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ComponentContainerClient) RegistryComponentContainersList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/components", id.ID()), OptionsObject: options, + Pager: &RegistryComponentContainersListCustomPager{}, + Path: fmt.Sprintf("%s/components", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/componentversion/method_list.go b/resource-manager/machinelearningservices/2024-04-01/componentversion/method_list.go index 7fcb552388a..39ff348b6f7 100644 --- a/resource-manager/machinelearningservices/2024-04-01/componentversion/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/componentversion/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ComponentVersionClient) List(ctx context.Context, id ComponentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ComponentVersionClient) List(ctx context.Context, id ComponentId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/componentversion/method_registrycomponentversionslist.go b/resource-manager/machinelearningservices/2024-04-01/componentversion/method_registrycomponentversionslist.go index 4390e8d7212..55fe1f0970a 100644 --- a/resource-manager/machinelearningservices/2024-04-01/componentversion/method_registrycomponentversionslist.go +++ b/resource-manager/machinelearningservices/2024-04-01/componentversion/method_registrycomponentversionslist.go @@ -58,6 +58,18 @@ func (o RegistryComponentVersionsListOperationOptions) ToQuery() *client.QueryPa return &out } +type RegistryComponentVersionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryComponentVersionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryComponentVersionsList ... func (c ComponentVersionClient) RegistryComponentVersionsList(ctx context.Context, id RegistryComponentId, options RegistryComponentVersionsListOperationOptions) (result RegistryComponentVersionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ComponentVersionClient) RegistryComponentVersionsList(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &RegistryComponentVersionsListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/datacontainer/method_list.go b/resource-manager/machinelearningservices/2024-04-01/datacontainer/method_list.go index 72f169dac3c..4c058c3a3ee 100644 --- a/resource-manager/machinelearningservices/2024-04-01/datacontainer/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/datacontainer/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c DataContainerClient) List(ctx context.Context, id WorkspaceId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/data", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/data", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/datacontainerregistry/method_registrydatacontainerslist.go b/resource-manager/machinelearningservices/2024-04-01/datacontainerregistry/method_registrydatacontainerslist.go index 779cd64c29d..9f82df7b90e 100644 --- a/resource-manager/machinelearningservices/2024-04-01/datacontainerregistry/method_registrydatacontainerslist.go +++ b/resource-manager/machinelearningservices/2024-04-01/datacontainerregistry/method_registrydatacontainerslist.go @@ -54,6 +54,18 @@ func (o RegistryDataContainersListOperationOptions) ToQuery() *client.QueryParam return &out } +type RegistryDataContainersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryDataContainersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryDataContainersList ... func (c DataContainerRegistryClient) RegistryDataContainersList(ctx context.Context, id RegistryId, options RegistryDataContainersListOperationOptions) (result RegistryDataContainersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c DataContainerRegistryClient) RegistryDataContainersList(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/data", id.ID()), OptionsObject: options, + Pager: &RegistryDataContainersListCustomPager{}, + Path: fmt.Sprintf("%s/data", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/datastore/method_createorupdate.go b/resource-manager/machinelearningservices/2024-04-01/datastore/method_createorupdate.go index 68e642b0337..620d9f2e091 100644 --- a/resource-manager/machinelearningservices/2024-04-01/datastore/method_createorupdate.go +++ b/resource-manager/machinelearningservices/2024-04-01/datastore/method_createorupdate.go @@ -54,8 +54,8 @@ func (c DatastoreClient) CreateOrUpdate(ctx context.Context, id DataStoreId, inp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/datastore/method_list.go b/resource-manager/machinelearningservices/2024-04-01/datastore/method_list.go index 1b34deee35a..3dd905b841e 100644 --- a/resource-manager/machinelearningservices/2024-04-01/datastore/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/datastore/method_list.go @@ -74,6 +74,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DatastoreClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c DatastoreClient) List(ctx context.Context, id WorkspaceId, options ListO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/dataStores", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/dataStores", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/dataversion/method_list.go b/resource-manager/machinelearningservices/2024-04-01/dataversion/method_list.go index efb503eb3d2..71a60e93186 100644 --- a/resource-manager/machinelearningservices/2024-04-01/dataversion/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/dataversion/method_list.go @@ -66,6 +66,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataVersionClient) List(ctx context.Context, id WorkspaceDataId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c DataVersionClient) List(ctx context.Context, id WorkspaceDataId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/dataversionregistry/method_registrydataversionslist.go b/resource-manager/machinelearningservices/2024-04-01/dataversionregistry/method_registrydataversionslist.go index 9dfe574eb08..deb795c0a18 100644 --- a/resource-manager/machinelearningservices/2024-04-01/dataversionregistry/method_registrydataversionslist.go +++ b/resource-manager/machinelearningservices/2024-04-01/dataversionregistry/method_registrydataversionslist.go @@ -66,6 +66,18 @@ func (o RegistryDataVersionsListOperationOptions) ToQuery() *client.QueryParams return &out } +type RegistryDataVersionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryDataVersionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryDataVersionsList ... func (c DataVersionRegistryClient) RegistryDataVersionsList(ctx context.Context, id DataId, options RegistryDataVersionsListOperationOptions) (result RegistryDataVersionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c DataVersionRegistryClient) RegistryDataVersionsList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &RegistryDataVersionsListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/environmentcontainer/method_list.go b/resource-manager/machinelearningservices/2024-04-01/environmentcontainer/method_list.go index 2f32d0cdbbf..6356874c795 100644 --- a/resource-manager/machinelearningservices/2024-04-01/environmentcontainer/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/environmentcontainer/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EnvironmentContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EnvironmentContainerClient) List(ctx context.Context, id WorkspaceId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/environments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/environments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/environmentcontainer/method_registryenvironmentcontainerslist.go b/resource-manager/machinelearningservices/2024-04-01/environmentcontainer/method_registryenvironmentcontainerslist.go index 42cce650131..60bfbabcae8 100644 --- a/resource-manager/machinelearningservices/2024-04-01/environmentcontainer/method_registryenvironmentcontainerslist.go +++ b/resource-manager/machinelearningservices/2024-04-01/environmentcontainer/method_registryenvironmentcontainerslist.go @@ -54,6 +54,18 @@ func (o RegistryEnvironmentContainersListOperationOptions) ToQuery() *client.Que return &out } +type RegistryEnvironmentContainersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryEnvironmentContainersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryEnvironmentContainersList ... func (c EnvironmentContainerClient) RegistryEnvironmentContainersList(ctx context.Context, id RegistryId, options RegistryEnvironmentContainersListOperationOptions) (result RegistryEnvironmentContainersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EnvironmentContainerClient) RegistryEnvironmentContainersList(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/environments", id.ID()), OptionsObject: options, + Pager: &RegistryEnvironmentContainersListCustomPager{}, + Path: fmt.Sprintf("%s/environments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/environmentversion/method_list.go b/resource-manager/machinelearningservices/2024-04-01/environmentversion/method_list.go index 345cbb5a5ca..23a839f0739 100644 --- a/resource-manager/machinelearningservices/2024-04-01/environmentversion/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/environmentversion/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EnvironmentVersionClient) List(ctx context.Context, id EnvironmentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c EnvironmentVersionClient) List(ctx context.Context, id EnvironmentId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/environmentversion/method_registryenvironmentversionslist.go b/resource-manager/machinelearningservices/2024-04-01/environmentversion/method_registryenvironmentversionslist.go index 25ecb6111ca..88db4de6ca3 100644 --- a/resource-manager/machinelearningservices/2024-04-01/environmentversion/method_registryenvironmentversionslist.go +++ b/resource-manager/machinelearningservices/2024-04-01/environmentversion/method_registryenvironmentversionslist.go @@ -62,6 +62,18 @@ func (o RegistryEnvironmentVersionsListOperationOptions) ToQuery() *client.Query return &out } +type RegistryEnvironmentVersionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryEnvironmentVersionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryEnvironmentVersionsList ... func (c EnvironmentVersionClient) RegistryEnvironmentVersionsList(ctx context.Context, id RegistryEnvironmentId, options RegistryEnvironmentVersionsListOperationOptions) (result RegistryEnvironmentVersionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c EnvironmentVersionClient) RegistryEnvironmentVersionsList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &RegistryEnvironmentVersionsListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/feature/method_list.go b/resource-manager/machinelearningservices/2024-04-01/feature/method_list.go index a1f0970c216..1553b9965ad 100644 --- a/resource-manager/machinelearningservices/2024-04-01/feature/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/feature/method_list.go @@ -70,6 +70,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FeatureClient) List(ctx context.Context, id FeatureSetVersionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c FeatureClient) List(ctx context.Context, id FeatureSetVersionId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/features", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/features", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/featuresetcontainer/method_list.go b/resource-manager/machinelearningservices/2024-04-01/featuresetcontainer/method_list.go index aca30403042..b3fab75e9ff 100644 --- a/resource-manager/machinelearningservices/2024-04-01/featuresetcontainer/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/featuresetcontainer/method_list.go @@ -74,6 +74,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FeaturesetContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c FeaturesetContainerClient) List(ctx context.Context, id WorkspaceId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/featureSets", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/featureSets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/featuresetversion/method_list.go b/resource-manager/machinelearningservices/2024-04-01/featuresetversion/method_list.go index 5ece36d5d57..fa6692e5974 100644 --- a/resource-manager/machinelearningservices/2024-04-01/featuresetversion/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/featuresetversion/method_list.go @@ -82,6 +82,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FeaturesetVersionClient) List(ctx context.Context, id FeatureSetId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -90,8 +102,9 @@ func (c FeaturesetVersionClient) List(ctx context.Context, id FeatureSetId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/featurestoreentitycontainer/method_list.go b/resource-manager/machinelearningservices/2024-04-01/featurestoreentitycontainer/method_list.go index 6502288cc33..ff515e5fa30 100644 --- a/resource-manager/machinelearningservices/2024-04-01/featurestoreentitycontainer/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/featurestoreentitycontainer/method_list.go @@ -74,6 +74,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FeaturestoreEntityContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c FeaturestoreEntityContainerClient) List(ctx context.Context, id Workspac http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/featureStoreEntities", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/featureStoreEntities", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/featurestoreentityversion/method_list.go b/resource-manager/machinelearningservices/2024-04-01/featurestoreentityversion/method_list.go index d26ad96b463..96a28bcd827 100644 --- a/resource-manager/machinelearningservices/2024-04-01/featurestoreentityversion/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/featurestoreentityversion/method_list.go @@ -82,6 +82,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FeaturestoreEntityVersionClient) List(ctx context.Context, id FeatureStoreEntityId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -90,8 +102,9 @@ func (c FeaturestoreEntityVersionClient) List(ctx context.Context, id FeatureSto http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/job/method_list.go b/resource-manager/machinelearningservices/2024-04-01/job/method_list.go index bf2a517d0af..9d12e514848 100644 --- a/resource-manager/machinelearningservices/2024-04-01/job/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/job/method_list.go @@ -66,6 +66,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c JobClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c JobClient) List(ctx context.Context, id WorkspaceId, options ListOperati http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/jobs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/jobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computedelete.go b/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computedelete.go index 183f6120da8..dc6079dda52 100644 --- a/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computedelete.go +++ b/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computedelete.go @@ -57,8 +57,8 @@ func (c MachineLearningComputesClient) ComputeDelete(ctx context.Context, id Com http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelist.go b/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelist.go index b766af613b3..8641953d2f8 100644 --- a/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelist.go +++ b/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelist.go @@ -50,6 +50,18 @@ func (o ComputeListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ComputeListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ComputeListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ComputeList ... func (c MachineLearningComputesClient) ComputeList(ctx context.Context, id WorkspaceId, options ComputeListOperationOptions) (result ComputeListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c MachineLearningComputesClient) ComputeList(ctx context.Context, id Works http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/computes", id.ID()), OptionsObject: options, + Pager: &ComputeListCustomPager{}, + Path: fmt.Sprintf("%s/computes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelistnodes.go b/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelistnodes.go index 81b3bdc3ffd..720775c6c95 100644 --- a/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelistnodes.go +++ b/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelistnodes.go @@ -23,6 +23,18 @@ type ComputeListNodesCompleteResult struct { Items []AmlComputeNodesInformation } +type ComputeListNodesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ComputeListNodesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ComputeListNodes ... func (c MachineLearningComputesClient) ComputeListNodes(ctx context.Context, id ComputeId) (result ComputeListNodesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MachineLearningComputesClient) ComputeListNodes(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ComputeListNodesCustomPager{}, Path: fmt.Sprintf("%s/listNodes", id.ID()), } diff --git a/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsrulelist.go b/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsrulelist.go index 32d6cdd2caa..b73fd89a69d 100644 --- a/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsrulelist.go +++ b/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsrulelist.go @@ -23,6 +23,18 @@ type SettingsRuleListCompleteResult struct { Items []OutboundRuleBasicResource } +type SettingsRuleListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SettingsRuleListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SettingsRuleList ... func (c ManagedNetworkClient) SettingsRuleList(ctx context.Context, id WorkspaceId) (result SettingsRuleListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedNetworkClient) SettingsRuleList(ctx context.Context, id Workspace http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SettingsRuleListCustomPager{}, Path: fmt.Sprintf("%s/outboundRules", id.ID()), } diff --git a/resource-manager/machinelearningservices/2024-04-01/marketplacesubscription/method_list.go b/resource-manager/machinelearningservices/2024-04-01/marketplacesubscription/method_list.go index b2339f85c79..399db017241 100644 --- a/resource-manager/machinelearningservices/2024-04-01/marketplacesubscription/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/marketplacesubscription/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MarketplaceSubscriptionClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c MarketplaceSubscriptionClient) List(ctx context.Context, id WorkspaceId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/marketplaceSubscriptions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/marketplaceSubscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/modelcontainer/method_list.go b/resource-manager/machinelearningservices/2024-04-01/modelcontainer/method_list.go index afeea6d86bd..84e5cb5e7bd 100644 --- a/resource-manager/machinelearningservices/2024-04-01/modelcontainer/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/modelcontainer/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ModelContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ModelContainerClient) List(ctx context.Context, id WorkspaceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/models", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/models", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/modelcontainer/method_registrymodelcontainerslist.go b/resource-manager/machinelearningservices/2024-04-01/modelcontainer/method_registrymodelcontainerslist.go index c656ba993b6..ea94cac36d1 100644 --- a/resource-manager/machinelearningservices/2024-04-01/modelcontainer/method_registrymodelcontainerslist.go +++ b/resource-manager/machinelearningservices/2024-04-01/modelcontainer/method_registrymodelcontainerslist.go @@ -54,6 +54,18 @@ func (o RegistryModelContainersListOperationOptions) ToQuery() *client.QueryPara return &out } +type RegistryModelContainersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryModelContainersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryModelContainersList ... func (c ModelContainerClient) RegistryModelContainersList(ctx context.Context, id RegistryId, options RegistryModelContainersListOperationOptions) (result RegistryModelContainersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ModelContainerClient) RegistryModelContainersList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/models", id.ID()), OptionsObject: options, + Pager: &RegistryModelContainersListCustomPager{}, + Path: fmt.Sprintf("%s/models", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/modelversion/method_list.go b/resource-manager/machinelearningservices/2024-04-01/modelversion/method_list.go index 327619475c4..ab7c9714135 100644 --- a/resource-manager/machinelearningservices/2024-04-01/modelversion/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/modelversion/method_list.go @@ -86,6 +86,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ModelVersionClient) List(ctx context.Context, id ModelId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -94,8 +106,9 @@ func (c ModelVersionClient) List(ctx context.Context, id ModelId, options ListOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/modelversion/method_registrymodelversionslist.go b/resource-manager/machinelearningservices/2024-04-01/modelversion/method_registrymodelversionslist.go index e10b6749376..5234afd2cdb 100644 --- a/resource-manager/machinelearningservices/2024-04-01/modelversion/method_registrymodelversionslist.go +++ b/resource-manager/machinelearningservices/2024-04-01/modelversion/method_registrymodelversionslist.go @@ -78,6 +78,18 @@ func (o RegistryModelVersionsListOperationOptions) ToQuery() *client.QueryParams return &out } +type RegistryModelVersionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistryModelVersionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistryModelVersionsList ... func (c ModelVersionClient) RegistryModelVersionsList(ctx context.Context, id RegistryModelId, options RegistryModelVersionsListOperationOptions) (result RegistryModelVersionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -86,8 +98,9 @@ func (c ModelVersionClient) RegistryModelVersionsList(ctx context.Context, id Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &RegistryModelVersionsListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/onlinedeployment/method_list.go b/resource-manager/machinelearningservices/2024-04-01/onlinedeployment/method_list.go index e701f9c2de7..774531ae70e 100644 --- a/resource-manager/machinelearningservices/2024-04-01/onlinedeployment/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/onlinedeployment/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OnlineDeploymentClient) List(ctx context.Context, id OnlineEndpointId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c OnlineDeploymentClient) List(ctx context.Context, id OnlineEndpointId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/deployments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/onlinedeployment/method_listskus.go b/resource-manager/machinelearningservices/2024-04-01/onlinedeployment/method_listskus.go index 6b652bbd15c..234177e825c 100644 --- a/resource-manager/machinelearningservices/2024-04-01/onlinedeployment/method_listskus.go +++ b/resource-manager/machinelearningservices/2024-04-01/onlinedeployment/method_listskus.go @@ -54,6 +54,18 @@ func (o ListSkusOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSkus ... func (c OnlineDeploymentClient) ListSkus(ctx context.Context, id OnlineEndpointDeploymentId, options ListSkusOperationOptions) (result ListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c OnlineDeploymentClient) ListSkus(ctx context.Context, id OnlineEndpointD http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/skus", id.ID()), OptionsObject: options, + Pager: &ListSkusCustomPager{}, + Path: fmt.Sprintf("%s/skus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/onlineendpoint/method_list.go b/resource-manager/machinelearningservices/2024-04-01/onlineendpoint/method_list.go index cbc4863a080..74f48048e6f 100644 --- a/resource-manager/machinelearningservices/2024-04-01/onlineendpoint/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/onlineendpoint/method_list.go @@ -74,6 +74,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OnlineEndpointClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c OnlineEndpointClient) List(ctx context.Context, id WorkspaceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/onlineEndpoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/onlineEndpoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/operationalizationclusters/method_computedelete.go b/resource-manager/machinelearningservices/2024-04-01/operationalizationclusters/method_computedelete.go index b980c734607..242131278ac 100644 --- a/resource-manager/machinelearningservices/2024-04-01/operationalizationclusters/method_computedelete.go +++ b/resource-manager/machinelearningservices/2024-04-01/operationalizationclusters/method_computedelete.go @@ -57,8 +57,8 @@ func (c OperationalizationClustersClient) ComputeDelete(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/operationalizationclusters/method_computelist.go b/resource-manager/machinelearningservices/2024-04-01/operationalizationclusters/method_computelist.go index 4405cef4eea..f75e45f3e01 100644 --- a/resource-manager/machinelearningservices/2024-04-01/operationalizationclusters/method_computelist.go +++ b/resource-manager/machinelearningservices/2024-04-01/operationalizationclusters/method_computelist.go @@ -50,6 +50,18 @@ func (o ComputeListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ComputeListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ComputeListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ComputeList ... func (c OperationalizationClustersClient) ComputeList(ctx context.Context, id WorkspaceId, options ComputeListOperationOptions) (result ComputeListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c OperationalizationClustersClient) ComputeList(ctx context.Context, id Wo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/computes", id.ID()), OptionsObject: options, + Pager: &ComputeListCustomPager{}, + Path: fmt.Sprintf("%s/computes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/quota/method_list.go b/resource-manager/machinelearningservices/2024-04-01/quota/method_list.go index 9d520512ca1..2727508aaab 100644 --- a/resource-manager/machinelearningservices/2024-04-01/quota/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/quota/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ResourceQuota } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c QuotaClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c QuotaClient) List(ctx context.Context, id LocationId) (result ListOperat http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/quotas", id.ID()), } diff --git a/resource-manager/machinelearningservices/2024-04-01/quota/method_update.go b/resource-manager/machinelearningservices/2024-04-01/quota/method_update.go index 4f55915dd39..3320af708de 100644 --- a/resource-manager/machinelearningservices/2024-04-01/quota/method_update.go +++ b/resource-manager/machinelearningservices/2024-04-01/quota/method_update.go @@ -23,6 +23,18 @@ type UpdateCompleteResult struct { Items []UpdateWorkspaceQuotas } +type UpdateCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UpdateCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Update ... func (c QuotaClient) Update(ctx context.Context, id LocationId, input QuotaUpdateParameters) (result UpdateOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c QuotaClient) Update(ctx context.Context, id LocationId, input QuotaUpdat http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &UpdateCustomPager{}, Path: fmt.Sprintf("%s/updateQuotas", id.ID()), } diff --git a/resource-manager/machinelearningservices/2024-04-01/registrymanagement/method_registrieslist.go b/resource-manager/machinelearningservices/2024-04-01/registrymanagement/method_registrieslist.go index 2c514287c9d..e270ec236c6 100644 --- a/resource-manager/machinelearningservices/2024-04-01/registrymanagement/method_registrieslist.go +++ b/resource-manager/machinelearningservices/2024-04-01/registrymanagement/method_registrieslist.go @@ -24,6 +24,18 @@ type RegistriesListCompleteResult struct { Items []RegistryTrackedResource } +type RegistriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistriesList ... func (c RegistryManagementClient) RegistriesList(ctx context.Context, id commonids.ResourceGroupId) (result RegistriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RegistryManagementClient) RegistriesList(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RegistriesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MachineLearningServices/registries", id.ID()), } diff --git a/resource-manager/machinelearningservices/2024-04-01/registrymanagement/method_registrieslistbysubscription.go b/resource-manager/machinelearningservices/2024-04-01/registrymanagement/method_registrieslistbysubscription.go index 2d786761613..e98d4517961 100644 --- a/resource-manager/machinelearningservices/2024-04-01/registrymanagement/method_registrieslistbysubscription.go +++ b/resource-manager/machinelearningservices/2024-04-01/registrymanagement/method_registrieslistbysubscription.go @@ -24,6 +24,18 @@ type RegistriesListBySubscriptionCompleteResult struct { Items []RegistryTrackedResource } +type RegistriesListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegistriesListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegistriesListBySubscription ... func (c RegistryManagementClient) RegistriesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result RegistriesListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RegistryManagementClient) RegistriesListBySubscription(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RegistriesListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MachineLearningServices/registries", id.ID()), } diff --git a/resource-manager/machinelearningservices/2024-04-01/schedule/method_list.go b/resource-manager/machinelearningservices/2024-04-01/schedule/method_list.go index ff2554566fb..978fb6364b9 100644 --- a/resource-manager/machinelearningservices/2024-04-01/schedule/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/schedule/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScheduleClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ScheduleClient) List(ctx context.Context, id WorkspaceId, options ListOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schedules", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/schedules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/serverlessendpoint/method_list.go b/resource-manager/machinelearningservices/2024-04-01/serverlessendpoint/method_list.go index 0a38ca4191a..df7f2b6ff8f 100644 --- a/resource-manager/machinelearningservices/2024-04-01/serverlessendpoint/method_list.go +++ b/resource-manager/machinelearningservices/2024-04-01/serverlessendpoint/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServerlessEndpointClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ServerlessEndpointClient) List(ctx context.Context, id WorkspaceId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/serverlessEndpoints", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/serverlessEndpoints", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/v2workspaceconnectionresource/method_workspaceconnectionslist.go b/resource-manager/machinelearningservices/2024-04-01/v2workspaceconnectionresource/method_workspaceconnectionslist.go index 446164fb06a..9cb93aa7e2f 100644 --- a/resource-manager/machinelearningservices/2024-04-01/v2workspaceconnectionresource/method_workspaceconnectionslist.go +++ b/resource-manager/machinelearningservices/2024-04-01/v2workspaceconnectionresource/method_workspaceconnectionslist.go @@ -54,6 +54,18 @@ func (o WorkspaceConnectionsListOperationOptions) ToQuery() *client.QueryParams return &out } +type WorkspaceConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceConnectionsList ... func (c V2WorkspaceConnectionResourceClient) WorkspaceConnectionsList(ctx context.Context, id WorkspaceId, options WorkspaceConnectionsListOperationOptions) (result WorkspaceConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c V2WorkspaceConnectionResourceClient) WorkspaceConnectionsList(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/connections", id.ID()), OptionsObject: options, + Pager: &WorkspaceConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/connections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/workspaces/method_delete.go b/resource-manager/machinelearningservices/2024-04-01/workspaces/method_delete.go index 89b2b8ca452..b41fca1fe8c 100644 --- a/resource-manager/machinelearningservices/2024-04-01/workspaces/method_delete.go +++ b/resource-manager/machinelearningservices/2024-04-01/workspaces/method_delete.go @@ -57,8 +57,8 @@ func (c WorkspacesClient) Delete(ctx context.Context, id WorkspaceId, options De http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbyresourcegroup.go b/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbyresourcegroup.go index 5c6e9407ae3..f485d22dee7 100644 --- a/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbyresourcegroup.go +++ b/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.MachineLearningServices/workspaces", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.MachineLearningServices/workspaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbysubscription.go b/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbysubscription.go index 8df91fe9577..424d45bb49b 100644 --- a/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbysubscription.go +++ b/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c WorkspacesClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.MachineLearningServices/workspaces", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.MachineLearningServices/workspaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/machinelearningservices/2024-04-01/workspaces/method_workspacefeatureslist.go b/resource-manager/machinelearningservices/2024-04-01/workspaces/method_workspacefeatureslist.go index 05309197732..3d048be572e 100644 --- a/resource-manager/machinelearningservices/2024-04-01/workspaces/method_workspacefeatureslist.go +++ b/resource-manager/machinelearningservices/2024-04-01/workspaces/method_workspacefeatureslist.go @@ -23,6 +23,18 @@ type WorkspaceFeaturesListCompleteResult struct { Items []AmlUserFeature } +type WorkspaceFeaturesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceFeaturesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceFeaturesList ... func (c WorkspacesClient) WorkspaceFeaturesList(ctx context.Context, id WorkspaceId) (result WorkspaceFeaturesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkspacesClient) WorkspaceFeaturesList(ctx context.Context, id Workspac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceFeaturesListCustomPager{}, Path: fmt.Sprintf("%s/features", id.ID()), } diff --git a/resource-manager/managedapplications/2019-07-01/applicationdefinitions/method_listbyresourcegroup.go b/resource-manager/managedapplications/2019-07-01/applicationdefinitions/method_listbyresourcegroup.go index afdfaef06c3..16751cbbd9a 100644 --- a/resource-manager/managedapplications/2019-07-01/applicationdefinitions/method_listbyresourcegroup.go +++ b/resource-manager/managedapplications/2019-07-01/applicationdefinitions/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ApplicationDefinition } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ApplicationDefinitionsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationDefinitionsClient) ListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Solutions/applicationDefinitions", id.ID()), } diff --git a/resource-manager/managedapplications/2019-07-01/applicationdefinitions/method_listbysubscription.go b/resource-manager/managedapplications/2019-07-01/applicationdefinitions/method_listbysubscription.go index 4d8ab249980..f0f6d1569d2 100644 --- a/resource-manager/managedapplications/2019-07-01/applicationdefinitions/method_listbysubscription.go +++ b/resource-manager/managedapplications/2019-07-01/applicationdefinitions/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ApplicationDefinition } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ApplicationDefinitionsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationDefinitionsClient) ListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Solutions/applicationDefinitions", id.ID()), } diff --git a/resource-manager/managedapplications/2019-07-01/applications/method_listbyresourcegroup.go b/resource-manager/managedapplications/2019-07-01/applications/method_listbyresourcegroup.go index 648967ae1f8..6ade087173e 100644 --- a/resource-manager/managedapplications/2019-07-01/applications/method_listbyresourcegroup.go +++ b/resource-manager/managedapplications/2019-07-01/applications/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Application } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ApplicationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationsClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Solutions/applications", id.ID()), } diff --git a/resource-manager/managedapplications/2019-07-01/applications/method_listbysubscription.go b/resource-manager/managedapplications/2019-07-01/applications/method_listbysubscription.go index a69d3289dfb..bb7f8d26401 100644 --- a/resource-manager/managedapplications/2019-07-01/applications/method_listbysubscription.go +++ b/resource-manager/managedapplications/2019-07-01/applications/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Application } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ApplicationsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationsClient) ListBySubscription(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Solutions/applications", id.ID()), } diff --git a/resource-manager/managedapplications/2019-07-01/jitrequests/method_listbyresourcegroup.go b/resource-manager/managedapplications/2019-07-01/jitrequests/method_listbyresourcegroup.go index 5d99a6566e7..e5aafe0704e 100644 --- a/resource-manager/managedapplications/2019-07-01/jitrequests/method_listbyresourcegroup.go +++ b/resource-manager/managedapplications/2019-07-01/jitrequests/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []JitRequestDefinition } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c JitRequestsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c JitRequestsClient) ListByResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Solutions/jitRequests", id.ID()), } diff --git a/resource-manager/managedapplications/2019-07-01/jitrequests/method_listbysubscription.go b/resource-manager/managedapplications/2019-07-01/jitrequests/method_listbysubscription.go index 6ff678a1e06..35bdd1da954 100644 --- a/resource-manager/managedapplications/2019-07-01/jitrequests/method_listbysubscription.go +++ b/resource-manager/managedapplications/2019-07-01/jitrequests/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []JitRequestDefinition } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c JitRequestsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c JitRequestsClient) ListBySubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Solutions/jitRequests", id.ID()), } diff --git a/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_listbyresourcegroup.go b/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_listbyresourcegroup.go index afdfaef06c3..16751cbbd9a 100644 --- a/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_listbyresourcegroup.go +++ b/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ApplicationDefinition } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ApplicationDefinitionsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationDefinitionsClient) ListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Solutions/applicationDefinitions", id.ID()), } diff --git a/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_listbysubscription.go b/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_listbysubscription.go index 4d8ab249980..f0f6d1569d2 100644 --- a/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_listbysubscription.go +++ b/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ApplicationDefinition } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ApplicationDefinitionsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationDefinitionsClient) ListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Solutions/applicationDefinitions", id.ID()), } diff --git a/resource-manager/managedapplications/2021-07-01/applications/method_listbyresourcegroup.go b/resource-manager/managedapplications/2021-07-01/applications/method_listbyresourcegroup.go index 648967ae1f8..6ade087173e 100644 --- a/resource-manager/managedapplications/2021-07-01/applications/method_listbyresourcegroup.go +++ b/resource-manager/managedapplications/2021-07-01/applications/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Application } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ApplicationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationsClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Solutions/applications", id.ID()), } diff --git a/resource-manager/managedapplications/2021-07-01/applications/method_listbysubscription.go b/resource-manager/managedapplications/2021-07-01/applications/method_listbysubscription.go index a69d3289dfb..bb7f8d26401 100644 --- a/resource-manager/managedapplications/2021-07-01/applications/method_listbysubscription.go +++ b/resource-manager/managedapplications/2021-07-01/applications/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Application } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ApplicationsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationsClient) ListBySubscription(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Solutions/applications", id.ID()), } diff --git a/resource-manager/managedapplications/2021-07-01/jitrequests/method_listbyresourcegroup.go b/resource-manager/managedapplications/2021-07-01/jitrequests/method_listbyresourcegroup.go index 5d99a6566e7..e5aafe0704e 100644 --- a/resource-manager/managedapplications/2021-07-01/jitrequests/method_listbyresourcegroup.go +++ b/resource-manager/managedapplications/2021-07-01/jitrequests/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []JitRequestDefinition } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c JitRequestsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c JitRequestsClient) ListByResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Solutions/jitRequests", id.ID()), } diff --git a/resource-manager/managedapplications/2021-07-01/jitrequests/method_listbysubscription.go b/resource-manager/managedapplications/2021-07-01/jitrequests/method_listbysubscription.go index 6ff678a1e06..35bdd1da954 100644 --- a/resource-manager/managedapplications/2021-07-01/jitrequests/method_listbysubscription.go +++ b/resource-manager/managedapplications/2021-07-01/jitrequests/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []JitRequestDefinition } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c JitRequestsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c JitRequestsClient) ListBySubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Solutions/jitRequests", id.ID()), } diff --git a/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialslist.go b/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialslist.go index 11c2b7e4cbd..5291e95c336 100644 --- a/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialslist.go +++ b/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialslist.go @@ -51,6 +51,18 @@ func (o FederatedIdentityCredentialsListOperationOptions) ToQuery() *client.Quer return &out } +type FederatedIdentityCredentialsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FederatedIdentityCredentialsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FederatedIdentityCredentialsList ... func (c ManagedIdentitiesClient) FederatedIdentityCredentialsList(ctx context.Context, id commonids.UserAssignedIdentityId, options FederatedIdentityCredentialsListOperationOptions) (result FederatedIdentityCredentialsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagedIdentitiesClient) FederatedIdentityCredentialsList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/federatedIdentityCredentials", id.ID()), OptionsObject: options, + Pager: &FederatedIdentityCredentialsListCustomPager{}, + Path: fmt.Sprintf("%s/federatedIdentityCredentials", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitieslistbyresourcegroup.go b/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitieslistbyresourcegroup.go index d554e92ed36..9027b4bb35a 100644 --- a/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitieslistbyresourcegroup.go +++ b/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitieslistbyresourcegroup.go @@ -24,6 +24,18 @@ type UserAssignedIdentitiesListByResourceGroupCompleteResult struct { Items []Identity } +type UserAssignedIdentitiesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UserAssignedIdentitiesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UserAssignedIdentitiesListByResourceGroup ... func (c ManagedIdentitiesClient) UserAssignedIdentitiesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result UserAssignedIdentitiesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedIdentitiesClient) UserAssignedIdentitiesListByResourceGroup(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UserAssignedIdentitiesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ManagedIdentity/userAssignedIdentities", id.ID()), } diff --git a/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitieslistbysubscription.go b/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitieslistbysubscription.go index 72a36e0a0b8..320f5b615a6 100644 --- a/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitieslistbysubscription.go +++ b/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitieslistbysubscription.go @@ -24,6 +24,18 @@ type UserAssignedIdentitiesListBySubscriptionCompleteResult struct { Items []Identity } +type UserAssignedIdentitiesListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UserAssignedIdentitiesListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UserAssignedIdentitiesListBySubscription ... func (c ManagedIdentitiesClient) UserAssignedIdentitiesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result UserAssignedIdentitiesListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedIdentitiesClient) UserAssignedIdentitiesListBySubscription(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UserAssignedIdentitiesListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ManagedIdentity/userAssignedIdentities", id.ID()), } diff --git a/resource-manager/managedservices/2019-06-01/registrationassignments/method_get.go b/resource-manager/managedservices/2019-06-01/registrationassignments/method_get.go index 6766c43fae4..8dc482bc63d 100644 --- a/resource-manager/managedservices/2019-06-01/registrationassignments/method_get.go +++ b/resource-manager/managedservices/2019-06-01/registrationassignments/method_get.go @@ -53,8 +53,8 @@ func (c RegistrationAssignmentsClient) Get(ctx context.Context, id ScopedRegistr http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managedservices/2019-06-01/registrationassignments/method_list.go b/resource-manager/managedservices/2019-06-01/registrationassignments/method_list.go index 48b54a371e8..f049ca5bf7d 100644 --- a/resource-manager/managedservices/2019-06-01/registrationassignments/method_list.go +++ b/resource-manager/managedservices/2019-06-01/registrationassignments/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RegistrationAssignmentsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RegistrationAssignmentsClient) List(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.ManagedServices/registrationAssignments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.ManagedServices/registrationAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managedservices/2019-06-01/registrationdefinitions/method_list.go b/resource-manager/managedservices/2019-06-01/registrationdefinitions/method_list.go index e262c41a642..0ce56e80195 100644 --- a/resource-manager/managedservices/2019-06-01/registrationdefinitions/method_list.go +++ b/resource-manager/managedservices/2019-06-01/registrationdefinitions/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []RegistrationDefinition } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RegistrationDefinitionsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RegistrationDefinitionsClient) List(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ManagedServices/registrationDefinitions", id.ID()), } diff --git a/resource-manager/managedservices/2022-10-01/marketplaceregistrationdefinitions/method_list.go b/resource-manager/managedservices/2022-10-01/marketplaceregistrationdefinitions/method_list.go index 7879275a02e..53cdabdf9c6 100644 --- a/resource-manager/managedservices/2022-10-01/marketplaceregistrationdefinitions/method_list.go +++ b/resource-manager/managedservices/2022-10-01/marketplaceregistrationdefinitions/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MarketplaceRegistrationDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c MarketplaceRegistrationDefinitionsClient) List(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managedservices/2022-10-01/marketplaceregistrationdefinitions/method_withoutscopelist.go b/resource-manager/managedservices/2022-10-01/marketplaceregistrationdefinitions/method_withoutscopelist.go index 6c9c101fdf5..33f29544317 100644 --- a/resource-manager/managedservices/2022-10-01/marketplaceregistrationdefinitions/method_withoutscopelist.go +++ b/resource-manager/managedservices/2022-10-01/marketplaceregistrationdefinitions/method_withoutscopelist.go @@ -50,6 +50,18 @@ func (o WithoutScopeListOperationOptions) ToQuery() *client.QueryParams { return &out } +type WithoutScopeListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WithoutScopeListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WithoutScopeList ... func (c MarketplaceRegistrationDefinitionsClient) WithoutScopeList(ctx context.Context, options WithoutScopeListOperationOptions) (result WithoutScopeListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c MarketplaceRegistrationDefinitionsClient) WithoutScopeList(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions", OptionsObject: options, + Pager: &WithoutScopeListCustomPager{}, + Path: "/providers/Microsoft.ManagedServices/marketplaceRegistrationDefinitions", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managedservices/2022-10-01/registrationassignments/method_get.go b/resource-manager/managedservices/2022-10-01/registrationassignments/method_get.go index 6766c43fae4..8dc482bc63d 100644 --- a/resource-manager/managedservices/2022-10-01/registrationassignments/method_get.go +++ b/resource-manager/managedservices/2022-10-01/registrationassignments/method_get.go @@ -53,8 +53,8 @@ func (c RegistrationAssignmentsClient) Get(ctx context.Context, id ScopedRegistr http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managedservices/2022-10-01/registrationassignments/method_list.go b/resource-manager/managedservices/2022-10-01/registrationassignments/method_list.go index 9a821496b9c..0fb9136db35 100644 --- a/resource-manager/managedservices/2022-10-01/registrationassignments/method_list.go +++ b/resource-manager/managedservices/2022-10-01/registrationassignments/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RegistrationAssignmentsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RegistrationAssignmentsClient) List(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.ManagedServices/registrationAssignments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.ManagedServices/registrationAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managedservices/2022-10-01/registrationdefinitions/method_list.go b/resource-manager/managedservices/2022-10-01/registrationdefinitions/method_list.go index e3b956c81ff..1e14c5ceb3a 100644 --- a/resource-manager/managedservices/2022-10-01/registrationdefinitions/method_list.go +++ b/resource-manager/managedservices/2022-10-01/registrationdefinitions/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RegistrationDefinitionsClient) List(ctx context.Context, id commonids.ScopeId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RegistrationDefinitionsClient) List(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.ManagedServices/registrationDefinitions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.ManagedServices/registrationDefinitions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2020-05-01/entities/method_list.go b/resource-manager/managementgroups/2020-05-01/entities/method_list.go index 7e080f838da..69efa5333a2 100644 --- a/resource-manager/managementgroups/2020-05-01/entities/method_list.go +++ b/resource-manager/managementgroups/2020-05-01/entities/method_list.go @@ -77,6 +77,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EntitiesClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -85,8 +97,9 @@ func (c EntitiesClient) List(ctx context.Context, options ListOperationOptions) http.StatusOK, }, HttpMethod: http.MethodPost, - Path: "/providers/Microsoft.Management/getEntities", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.Management/getEntities", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2020-05-01/managementgroups/method_createorupdate.go b/resource-manager/managementgroups/2020-05-01/managementgroups/method_createorupdate.go index ce7479fb2be..ca530041f6c 100644 --- a/resource-manager/managementgroups/2020-05-01/managementgroups/method_createorupdate.go +++ b/resource-manager/managementgroups/2020-05-01/managementgroups/method_createorupdate.go @@ -58,8 +58,8 @@ func (c ManagementGroupsClient) CreateOrUpdate(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2020-05-01/managementgroups/method_delete.go b/resource-manager/managementgroups/2020-05-01/managementgroups/method_delete.go index 451a9966d33..033a72547c1 100644 --- a/resource-manager/managementgroups/2020-05-01/managementgroups/method_delete.go +++ b/resource-manager/managementgroups/2020-05-01/managementgroups/method_delete.go @@ -58,8 +58,8 @@ func (c ManagementGroupsClient) Delete(ctx context.Context, id commonids.Managem http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2020-05-01/managementgroups/method_get.go b/resource-manager/managementgroups/2020-05-01/managementgroups/method_get.go index 34b1a41e5b2..87fb2a218bc 100644 --- a/resource-manager/managementgroups/2020-05-01/managementgroups/method_get.go +++ b/resource-manager/managementgroups/2020-05-01/managementgroups/method_get.go @@ -65,8 +65,8 @@ func (c ManagementGroupsClient) Get(ctx context.Context, id commonids.Management http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2020-05-01/managementgroups/method_getdescendants.go b/resource-manager/managementgroups/2020-05-01/managementgroups/method_getdescendants.go index 0fba7665911..aa6a5c14616 100644 --- a/resource-manager/managementgroups/2020-05-01/managementgroups/method_getdescendants.go +++ b/resource-manager/managementgroups/2020-05-01/managementgroups/method_getdescendants.go @@ -51,6 +51,18 @@ func (o GetDescendantsOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetDescendantsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDescendantsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDescendants ... func (c ManagementGroupsClient) GetDescendants(ctx context.Context, id commonids.ManagementGroupId, options GetDescendantsOperationOptions) (result GetDescendantsOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagementGroupsClient) GetDescendants(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/descendants", id.ID()), OptionsObject: options, + Pager: &GetDescendantsCustomPager{}, + Path: fmt.Sprintf("%s/descendants", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2020-05-01/managementgroups/method_list.go b/resource-manager/managementgroups/2020-05-01/managementgroups/method_list.go index 4790de8646d..c9660c8df44 100644 --- a/resource-manager/managementgroups/2020-05-01/managementgroups/method_list.go +++ b/resource-manager/managementgroups/2020-05-01/managementgroups/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"@nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagementGroupsClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ManagementGroupsClient) List(ctx context.Context, options ListOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Management/managementGroups", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.Management/managementGroups", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionscreate.go b/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionscreate.go index d019e363be4..c8b43bbb512 100644 --- a/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionscreate.go +++ b/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionscreate.go @@ -53,8 +53,8 @@ func (c ManagementGroupsClient) UbscriptionsCreate(ctx context.Context, id Subsc http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionsdelete.go b/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionsdelete.go index 86b22491ea8..41509dec1f3 100644 --- a/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionsdelete.go +++ b/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionsdelete.go @@ -53,8 +53,8 @@ func (c ManagementGroupsClient) UbscriptionsDelete(ctx context.Context, id Subsc http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionsgetsubscription.go b/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionsgetsubscription.go index 76476b18cc7..f6935bb4201 100644 --- a/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionsgetsubscription.go +++ b/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionsgetsubscription.go @@ -53,8 +53,8 @@ func (c ManagementGroupsClient) UbscriptionsGetSubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionsgetsubscriptionsundermanagementgroup.go b/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionsgetsubscriptionsundermanagementgroup.go index 91a91f2d939..7536d6cb072 100644 --- a/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionsgetsubscriptionsundermanagementgroup.go +++ b/resource-manager/managementgroups/2020-05-01/managementgroups/method_ubscriptionsgetsubscriptionsundermanagementgroup.go @@ -24,6 +24,18 @@ type UbscriptionsGetSubscriptionsUnderManagementGroupCompleteResult struct { Items []SubscriptionUnderManagementGroup } +type UbscriptionsGetSubscriptionsUnderManagementGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UbscriptionsGetSubscriptionsUnderManagementGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UbscriptionsGetSubscriptionsUnderManagementGroup ... func (c ManagementGroupsClient) UbscriptionsGetSubscriptionsUnderManagementGroup(ctx context.Context, id commonids.ManagementGroupId) (result UbscriptionsGetSubscriptionsUnderManagementGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagementGroupsClient) UbscriptionsGetSubscriptionsUnderManagementGroup http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UbscriptionsGetSubscriptionsUnderManagementGroupCustomPager{}, Path: fmt.Sprintf("%s/subscriptions", id.ID()), } diff --git a/resource-manager/managementgroups/2020-05-01/managementgroups/method_update.go b/resource-manager/managementgroups/2020-05-01/managementgroups/method_update.go index 5b586aac06d..f730bbb607e 100644 --- a/resource-manager/managementgroups/2020-05-01/managementgroups/method_update.go +++ b/resource-manager/managementgroups/2020-05-01/managementgroups/method_update.go @@ -54,8 +54,8 @@ func (c ManagementGroupsClient) Update(ctx context.Context, id commonids.Managem http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2021-04-01/entities/method_list.go b/resource-manager/managementgroups/2021-04-01/entities/method_list.go index b8cf9ee0486..400c6987e5c 100644 --- a/resource-manager/managementgroups/2021-04-01/entities/method_list.go +++ b/resource-manager/managementgroups/2021-04-01/entities/method_list.go @@ -77,6 +77,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EntitiesClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -85,8 +97,9 @@ func (c EntitiesClient) List(ctx context.Context, options ListOperationOptions) http.StatusOK, }, HttpMethod: http.MethodPost, - Path: "/providers/Microsoft.Management/getEntities", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.Management/getEntities", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2021-04-01/managementgroups/method_createorupdate.go b/resource-manager/managementgroups/2021-04-01/managementgroups/method_createorupdate.go index ce7479fb2be..ca530041f6c 100644 --- a/resource-manager/managementgroups/2021-04-01/managementgroups/method_createorupdate.go +++ b/resource-manager/managementgroups/2021-04-01/managementgroups/method_createorupdate.go @@ -58,8 +58,8 @@ func (c ManagementGroupsClient) CreateOrUpdate(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2021-04-01/managementgroups/method_delete.go b/resource-manager/managementgroups/2021-04-01/managementgroups/method_delete.go index 451a9966d33..033a72547c1 100644 --- a/resource-manager/managementgroups/2021-04-01/managementgroups/method_delete.go +++ b/resource-manager/managementgroups/2021-04-01/managementgroups/method_delete.go @@ -58,8 +58,8 @@ func (c ManagementGroupsClient) Delete(ctx context.Context, id commonids.Managem http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2021-04-01/managementgroups/method_get.go b/resource-manager/managementgroups/2021-04-01/managementgroups/method_get.go index def367a6f56..3888ceab538 100644 --- a/resource-manager/managementgroups/2021-04-01/managementgroups/method_get.go +++ b/resource-manager/managementgroups/2021-04-01/managementgroups/method_get.go @@ -65,8 +65,8 @@ func (c ManagementGroupsClient) Get(ctx context.Context, id commonids.Management http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2021-04-01/managementgroups/method_getdescendants.go b/resource-manager/managementgroups/2021-04-01/managementgroups/method_getdescendants.go index 0fba7665911..aa6a5c14616 100644 --- a/resource-manager/managementgroups/2021-04-01/managementgroups/method_getdescendants.go +++ b/resource-manager/managementgroups/2021-04-01/managementgroups/method_getdescendants.go @@ -51,6 +51,18 @@ func (o GetDescendantsOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetDescendantsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDescendantsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDescendants ... func (c ManagementGroupsClient) GetDescendants(ctx context.Context, id commonids.ManagementGroupId, options GetDescendantsOperationOptions) (result GetDescendantsOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagementGroupsClient) GetDescendants(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/descendants", id.ID()), OptionsObject: options, + Pager: &GetDescendantsCustomPager{}, + Path: fmt.Sprintf("%s/descendants", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2021-04-01/managementgroups/method_list.go b/resource-manager/managementgroups/2021-04-01/managementgroups/method_list.go index 4790de8646d..c9660c8df44 100644 --- a/resource-manager/managementgroups/2021-04-01/managementgroups/method_list.go +++ b/resource-manager/managementgroups/2021-04-01/managementgroups/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"@nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagementGroupsClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ManagementGroupsClient) List(ctx context.Context, options ListOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Management/managementGroups", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.Management/managementGroups", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionscreate.go b/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionscreate.go index d019e363be4..c8b43bbb512 100644 --- a/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionscreate.go +++ b/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionscreate.go @@ -53,8 +53,8 @@ func (c ManagementGroupsClient) UbscriptionsCreate(ctx context.Context, id Subsc http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionsdelete.go b/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionsdelete.go index 86b22491ea8..41509dec1f3 100644 --- a/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionsdelete.go +++ b/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionsdelete.go @@ -53,8 +53,8 @@ func (c ManagementGroupsClient) UbscriptionsDelete(ctx context.Context, id Subsc http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionsgetsubscription.go b/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionsgetsubscription.go index 76476b18cc7..f6935bb4201 100644 --- a/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionsgetsubscription.go +++ b/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionsgetsubscription.go @@ -53,8 +53,8 @@ func (c ManagementGroupsClient) UbscriptionsGetSubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionsgetsubscriptionsundermanagementgroup.go b/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionsgetsubscriptionsundermanagementgroup.go index 91a91f2d939..7536d6cb072 100644 --- a/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionsgetsubscriptionsundermanagementgroup.go +++ b/resource-manager/managementgroups/2021-04-01/managementgroups/method_ubscriptionsgetsubscriptionsundermanagementgroup.go @@ -24,6 +24,18 @@ type UbscriptionsGetSubscriptionsUnderManagementGroupCompleteResult struct { Items []SubscriptionUnderManagementGroup } +type UbscriptionsGetSubscriptionsUnderManagementGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UbscriptionsGetSubscriptionsUnderManagementGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UbscriptionsGetSubscriptionsUnderManagementGroup ... func (c ManagementGroupsClient) UbscriptionsGetSubscriptionsUnderManagementGroup(ctx context.Context, id commonids.ManagementGroupId) (result UbscriptionsGetSubscriptionsUnderManagementGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagementGroupsClient) UbscriptionsGetSubscriptionsUnderManagementGroup http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UbscriptionsGetSubscriptionsUnderManagementGroupCustomPager{}, Path: fmt.Sprintf("%s/subscriptions", id.ID()), } diff --git a/resource-manager/managementgroups/2021-04-01/managementgroups/method_update.go b/resource-manager/managementgroups/2021-04-01/managementgroups/method_update.go index 5b586aac06d..f730bbb607e 100644 --- a/resource-manager/managementgroups/2021-04-01/managementgroups/method_update.go +++ b/resource-manager/managementgroups/2021-04-01/managementgroups/method_update.go @@ -54,8 +54,8 @@ func (c ManagementGroupsClient) Update(ctx context.Context, id commonids.Managem http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2023-04-01/entities/method_list.go b/resource-manager/managementgroups/2023-04-01/entities/method_list.go index b8cf9ee0486..400c6987e5c 100644 --- a/resource-manager/managementgroups/2023-04-01/entities/method_list.go +++ b/resource-manager/managementgroups/2023-04-01/entities/method_list.go @@ -77,6 +77,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EntitiesClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -85,8 +97,9 @@ func (c EntitiesClient) List(ctx context.Context, options ListOperationOptions) http.StatusOK, }, HttpMethod: http.MethodPost, - Path: "/providers/Microsoft.Management/getEntities", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.Management/getEntities", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2023-04-01/managementgroups/method_createorupdate.go b/resource-manager/managementgroups/2023-04-01/managementgroups/method_createorupdate.go index ce7479fb2be..ca530041f6c 100644 --- a/resource-manager/managementgroups/2023-04-01/managementgroups/method_createorupdate.go +++ b/resource-manager/managementgroups/2023-04-01/managementgroups/method_createorupdate.go @@ -58,8 +58,8 @@ func (c ManagementGroupsClient) CreateOrUpdate(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2023-04-01/managementgroups/method_delete.go b/resource-manager/managementgroups/2023-04-01/managementgroups/method_delete.go index 451a9966d33..033a72547c1 100644 --- a/resource-manager/managementgroups/2023-04-01/managementgroups/method_delete.go +++ b/resource-manager/managementgroups/2023-04-01/managementgroups/method_delete.go @@ -58,8 +58,8 @@ func (c ManagementGroupsClient) Delete(ctx context.Context, id commonids.Managem http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2023-04-01/managementgroups/method_get.go b/resource-manager/managementgroups/2023-04-01/managementgroups/method_get.go index def367a6f56..3888ceab538 100644 --- a/resource-manager/managementgroups/2023-04-01/managementgroups/method_get.go +++ b/resource-manager/managementgroups/2023-04-01/managementgroups/method_get.go @@ -65,8 +65,8 @@ func (c ManagementGroupsClient) Get(ctx context.Context, id commonids.Management http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2023-04-01/managementgroups/method_getdescendants.go b/resource-manager/managementgroups/2023-04-01/managementgroups/method_getdescendants.go index 0fba7665911..aa6a5c14616 100644 --- a/resource-manager/managementgroups/2023-04-01/managementgroups/method_getdescendants.go +++ b/resource-manager/managementgroups/2023-04-01/managementgroups/method_getdescendants.go @@ -51,6 +51,18 @@ func (o GetDescendantsOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetDescendantsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDescendantsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDescendants ... func (c ManagementGroupsClient) GetDescendants(ctx context.Context, id commonids.ManagementGroupId, options GetDescendantsOperationOptions) (result GetDescendantsOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagementGroupsClient) GetDescendants(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/descendants", id.ID()), OptionsObject: options, + Pager: &GetDescendantsCustomPager{}, + Path: fmt.Sprintf("%s/descendants", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2023-04-01/managementgroups/method_list.go b/resource-manager/managementgroups/2023-04-01/managementgroups/method_list.go index 4790de8646d..c9660c8df44 100644 --- a/resource-manager/managementgroups/2023-04-01/managementgroups/method_list.go +++ b/resource-manager/managementgroups/2023-04-01/managementgroups/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"@nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagementGroupsClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ManagementGroupsClient) List(ctx context.Context, options ListOperationO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Management/managementGroups", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.Management/managementGroups", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionscreate.go b/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionscreate.go index d019e363be4..c8b43bbb512 100644 --- a/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionscreate.go +++ b/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionscreate.go @@ -53,8 +53,8 @@ func (c ManagementGroupsClient) UbscriptionsCreate(ctx context.Context, id Subsc http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionsdelete.go b/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionsdelete.go index 86b22491ea8..41509dec1f3 100644 --- a/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionsdelete.go +++ b/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionsdelete.go @@ -53,8 +53,8 @@ func (c ManagementGroupsClient) UbscriptionsDelete(ctx context.Context, id Subsc http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionsgetsubscription.go b/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionsgetsubscription.go index 76476b18cc7..f6935bb4201 100644 --- a/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionsgetsubscription.go +++ b/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionsgetsubscription.go @@ -53,8 +53,8 @@ func (c ManagementGroupsClient) UbscriptionsGetSubscription(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionsgetsubscriptionsundermanagementgroup.go b/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionsgetsubscriptionsundermanagementgroup.go index 91a91f2d939..7536d6cb072 100644 --- a/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionsgetsubscriptionsundermanagementgroup.go +++ b/resource-manager/managementgroups/2023-04-01/managementgroups/method_ubscriptionsgetsubscriptionsundermanagementgroup.go @@ -24,6 +24,18 @@ type UbscriptionsGetSubscriptionsUnderManagementGroupCompleteResult struct { Items []SubscriptionUnderManagementGroup } +type UbscriptionsGetSubscriptionsUnderManagementGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UbscriptionsGetSubscriptionsUnderManagementGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UbscriptionsGetSubscriptionsUnderManagementGroup ... func (c ManagementGroupsClient) UbscriptionsGetSubscriptionsUnderManagementGroup(ctx context.Context, id commonids.ManagementGroupId) (result UbscriptionsGetSubscriptionsUnderManagementGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagementGroupsClient) UbscriptionsGetSubscriptionsUnderManagementGroup http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UbscriptionsGetSubscriptionsUnderManagementGroupCustomPager{}, Path: fmt.Sprintf("%s/subscriptions", id.ID()), } diff --git a/resource-manager/managementgroups/2023-04-01/managementgroups/method_update.go b/resource-manager/managementgroups/2023-04-01/managementgroups/method_update.go index 5b586aac06d..f730bbb607e 100644 --- a/resource-manager/managementgroups/2023-04-01/managementgroups/method_update.go +++ b/resource-manager/managementgroups/2023-04-01/managementgroups/method_update.go @@ -54,8 +54,8 @@ func (c ManagementGroupsClient) Update(ctx context.Context, id commonids.Managem http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/maps/2021-02-01/accounts/method_listbyresourcegroup.go b/resource-manager/maps/2021-02-01/accounts/method_listbyresourcegroup.go index 49e550b664d..00af289c1ac 100644 --- a/resource-manager/maps/2021-02-01/accounts/method_listbyresourcegroup.go +++ b/resource-manager/maps/2021-02-01/accounts/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []MapsAccount } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AccountsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccountsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Maps/accounts", id.ID()), } diff --git a/resource-manager/maps/2021-02-01/accounts/method_listbysubscription.go b/resource-manager/maps/2021-02-01/accounts/method_listbysubscription.go index a74f84f4e2c..621829be8ef 100644 --- a/resource-manager/maps/2021-02-01/accounts/method_listbysubscription.go +++ b/resource-manager/maps/2021-02-01/accounts/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []MapsAccount } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AccountsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccountsClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Maps/accounts", id.ID()), } diff --git a/resource-manager/maps/2021-02-01/creators/method_listbyaccount.go b/resource-manager/maps/2021-02-01/creators/method_listbyaccount.go index 9dd3464005f..40f98691bf2 100644 --- a/resource-manager/maps/2021-02-01/creators/method_listbyaccount.go +++ b/resource-manager/maps/2021-02-01/creators/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []Creator } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c CreatorsClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CreatorsClient) ListByAccount(ctx context.Context, id AccountId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/creators", id.ID()), } diff --git a/resource-manager/maps/2021-02-01/operations/method_mapslistsubscriptionoperations.go b/resource-manager/maps/2021-02-01/operations/method_mapslistsubscriptionoperations.go index a13ced72471..42b49d59a86 100644 --- a/resource-manager/maps/2021-02-01/operations/method_mapslistsubscriptionoperations.go +++ b/resource-manager/maps/2021-02-01/operations/method_mapslistsubscriptionoperations.go @@ -24,6 +24,18 @@ type MapsListSubscriptionOperationsCompleteResult struct { Items []OperationDetail } +type MapsListSubscriptionOperationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MapsListSubscriptionOperationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MapsListSubscriptionOperations ... func (c OperationsClient) MapsListSubscriptionOperations(ctx context.Context, id commonids.SubscriptionId) (result MapsListSubscriptionOperationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OperationsClient) MapsListSubscriptionOperations(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MapsListSubscriptionOperationsCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Maps/operations", id.ID()), } diff --git a/resource-manager/maps/2023-06-01/accounts/method_listbyresourcegroup.go b/resource-manager/maps/2023-06-01/accounts/method_listbyresourcegroup.go index 49e550b664d..00af289c1ac 100644 --- a/resource-manager/maps/2023-06-01/accounts/method_listbyresourcegroup.go +++ b/resource-manager/maps/2023-06-01/accounts/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []MapsAccount } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AccountsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccountsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Maps/accounts", id.ID()), } diff --git a/resource-manager/maps/2023-06-01/accounts/method_listbysubscription.go b/resource-manager/maps/2023-06-01/accounts/method_listbysubscription.go index a74f84f4e2c..621829be8ef 100644 --- a/resource-manager/maps/2023-06-01/accounts/method_listbysubscription.go +++ b/resource-manager/maps/2023-06-01/accounts/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []MapsAccount } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AccountsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccountsClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Maps/accounts", id.ID()), } diff --git a/resource-manager/maps/2023-06-01/creators/method_listbyaccount.go b/resource-manager/maps/2023-06-01/creators/method_listbyaccount.go index 9dd3464005f..40f98691bf2 100644 --- a/resource-manager/maps/2023-06-01/creators/method_listbyaccount.go +++ b/resource-manager/maps/2023-06-01/creators/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []Creator } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c CreatorsClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CreatorsClient) ListByAccount(ctx context.Context, id AccountId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/creators", id.ID()), } diff --git a/resource-manager/maps/2023-06-01/operations/method_mapslistsubscriptionoperations.go b/resource-manager/maps/2023-06-01/operations/method_mapslistsubscriptionoperations.go index a13ced72471..42b49d59a86 100644 --- a/resource-manager/maps/2023-06-01/operations/method_mapslistsubscriptionoperations.go +++ b/resource-manager/maps/2023-06-01/operations/method_mapslistsubscriptionoperations.go @@ -24,6 +24,18 @@ type MapsListSubscriptionOperationsCompleteResult struct { Items []OperationDetail } +type MapsListSubscriptionOperationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MapsListSubscriptionOperationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MapsListSubscriptionOperations ... func (c OperationsClient) MapsListSubscriptionOperations(ctx context.Context, id commonids.SubscriptionId) (result MapsListSubscriptionOperationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OperationsClient) MapsListSubscriptionOperations(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MapsListSubscriptionOperationsCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Maps/operations", id.ID()), } diff --git a/resource-manager/mariadb/2018-06-01-preview/serversecurityalertpolicies/method_listbyserver.go b/resource-manager/mariadb/2018-06-01-preview/serversecurityalertpolicies/method_listbyserver.go index 3ecfe89a63c..f56e0ff6eb3 100644 --- a/resource-manager/mariadb/2018-06-01-preview/serversecurityalertpolicies/method_listbyserver.go +++ b/resource-manager/mariadb/2018-06-01-preview/serversecurityalertpolicies/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []ServerSecurityAlertPolicy } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/securityAlertPolicies", id.ID()), } diff --git a/resource-manager/mariadb/2018-06-01-preview/virtualnetworkrules/method_listbyserver.go b/resource-manager/mariadb/2018-06-01-preview/virtualnetworkrules/method_listbyserver.go index c965d49ec55..d851635e6b8 100644 --- a/resource-manager/mariadb/2018-06-01-preview/virtualnetworkrules/method_listbyserver.go +++ b/resource-manager/mariadb/2018-06-01-preview/virtualnetworkrules/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []VirtualNetworkRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c VirtualNetworkRulesClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualNetworkRulesClient) ListByServer(ctx context.Context, id ServerId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkRules", id.ID()), } diff --git a/resource-manager/mariadb/2018-06-01/advisors/method_listbyserver.go b/resource-manager/mariadb/2018-06-01/advisors/method_listbyserver.go index 1b8295b0d22..8f6b9d2d865 100644 --- a/resource-manager/mariadb/2018-06-01/advisors/method_listbyserver.go +++ b/resource-manager/mariadb/2018-06-01/advisors/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []Advisor } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c AdvisorsClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AdvisorsClient) ListByServer(ctx context.Context, id ServerId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/advisors", id.ID()), } diff --git a/resource-manager/mariadb/2018-06-01/privateendpointconnections/method_listbyserver.go b/resource-manager/mariadb/2018-06-01/privateendpointconnections/method_listbyserver.go index 44ad5cefcc6..82ee2ab702e 100644 --- a/resource-manager/mariadb/2018-06-01/privateendpointconnections/method_listbyserver.go +++ b/resource-manager/mariadb/2018-06-01/privateendpointconnections/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []PrivateEndpointConnection } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, id S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/mariadb/2018-06-01/privatelinkresources/method_listbyserver.go b/resource-manager/mariadb/2018-06-01/privatelinkresources/method_listbyserver.go index 335aec5205e..2fd12638a39 100644 --- a/resource-manager/mariadb/2018-06-01/privatelinkresources/method_listbyserver.go +++ b/resource-manager/mariadb/2018-06-01/privatelinkresources/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []PrivateLinkResource } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c PrivateLinkResourcesClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) ListByServer(ctx context.Context, id ServerI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/mariadb/2018-06-01/querytexts/method_listbyserver.go b/resource-manager/mariadb/2018-06-01/querytexts/method_listbyserver.go index fbe811bc891..776487470b9 100644 --- a/resource-manager/mariadb/2018-06-01/querytexts/method_listbyserver.go +++ b/resource-manager/mariadb/2018-06-01/querytexts/method_listbyserver.go @@ -50,6 +50,18 @@ func (o ListByServerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c QueryTextsClient) ListByServer(ctx context.Context, id ServerId, options ListByServerOperationOptions) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c QueryTextsClient) ListByServer(ctx context.Context, id ServerId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/queryTexts", id.ID()), OptionsObject: options, + Pager: &ListByServerCustomPager{}, + Path: fmt.Sprintf("%s/queryTexts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/mariadb/2018-06-01/recommendedactions/method_listbyserver.go b/resource-manager/mariadb/2018-06-01/recommendedactions/method_listbyserver.go index 5dd59ae2c72..a88c1fb0e3e 100644 --- a/resource-manager/mariadb/2018-06-01/recommendedactions/method_listbyserver.go +++ b/resource-manager/mariadb/2018-06-01/recommendedactions/method_listbyserver.go @@ -50,6 +50,18 @@ func (o ListByServerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c RecommendedActionsClient) ListByServer(ctx context.Context, id AdvisorId, options ListByServerOperationOptions) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c RecommendedActionsClient) ListByServer(ctx context.Context, id AdvisorId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendedActions", id.ID()), OptionsObject: options, + Pager: &ListByServerCustomPager{}, + Path: fmt.Sprintf("%s/recommendedActions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/mariadb/2018-06-01/recommendedactionsessions/method_createrecommendedactionsession.go b/resource-manager/mariadb/2018-06-01/recommendedactionsessions/method_createrecommendedactionsession.go index 9bc6126fa0b..32be9f7aac4 100644 --- a/resource-manager/mariadb/2018-06-01/recommendedactionsessions/method_createrecommendedactionsession.go +++ b/resource-manager/mariadb/2018-06-01/recommendedactionsessions/method_createrecommendedactionsession.go @@ -56,8 +56,8 @@ func (c RecommendedActionSessionsClient) CreateRecommendedActionSession(ctx cont http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/createRecommendedActionSession", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/createRecommendedActionSession", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/mariadb/2018-06-01/serversecurityalertpolicies/method_listbyserver.go b/resource-manager/mariadb/2018-06-01/serversecurityalertpolicies/method_listbyserver.go index 3ecfe89a63c..f56e0ff6eb3 100644 --- a/resource-manager/mariadb/2018-06-01/serversecurityalertpolicies/method_listbyserver.go +++ b/resource-manager/mariadb/2018-06-01/serversecurityalertpolicies/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []ServerSecurityAlertPolicy } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/securityAlertPolicies", id.ID()), } diff --git a/resource-manager/mariadb/2018-06-01/topquerystatistics/method_listbyserver.go b/resource-manager/mariadb/2018-06-01/topquerystatistics/method_listbyserver.go index 7cf5c1c7a85..bf25009e85f 100644 --- a/resource-manager/mariadb/2018-06-01/topquerystatistics/method_listbyserver.go +++ b/resource-manager/mariadb/2018-06-01/topquerystatistics/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []QueryStatistic } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c TopQueryStatisticsClient) ListByServer(ctx context.Context, id ServerId, input TopQueryStatisticsInput) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TopQueryStatisticsClient) ListByServer(ctx context.Context, id ServerId, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/topQueryStatistics", id.ID()), } diff --git a/resource-manager/mariadb/2018-06-01/virtualnetworkrules/method_listbyserver.go b/resource-manager/mariadb/2018-06-01/virtualnetworkrules/method_listbyserver.go index c965d49ec55..d851635e6b8 100644 --- a/resource-manager/mariadb/2018-06-01/virtualnetworkrules/method_listbyserver.go +++ b/resource-manager/mariadb/2018-06-01/virtualnetworkrules/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []VirtualNetworkRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c VirtualNetworkRulesClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualNetworkRulesClient) ListByServer(ctx context.Context, id ServerId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkRules", id.ID()), } diff --git a/resource-manager/mariadb/2018-06-01/waitstatistics/method_listbyserver.go b/resource-manager/mariadb/2018-06-01/waitstatistics/method_listbyserver.go index ba3604ea337..28ad152c1ab 100644 --- a/resource-manager/mariadb/2018-06-01/waitstatistics/method_listbyserver.go +++ b/resource-manager/mariadb/2018-06-01/waitstatistics/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []WaitStatistic } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c WaitStatisticsClient) ListByServer(ctx context.Context, id ServerId, input WaitStatisticsInput) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WaitStatisticsClient) ListByServer(ctx context.Context, id ServerId, inp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/waitStatistics", id.ID()), } diff --git a/resource-manager/media/2021-11-01/accountfilters/method_list.go b/resource-manager/media/2021-11-01/accountfilters/method_list.go index 54f58df3822..a297e19172b 100644 --- a/resource-manager/media/2021-11-01/accountfilters/method_list.go +++ b/resource-manager/media/2021-11-01/accountfilters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []AccountFilter } +type ListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AccountFiltersClient) List(ctx context.Context, id MediaServiceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AccountFiltersClient) List(ctx context.Context, id MediaServiceId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/accountFilters", id.ID()), } diff --git a/resource-manager/media/2021-11-01/accounts/method_mediaserviceslist.go b/resource-manager/media/2021-11-01/accounts/method_mediaserviceslist.go index fce0962a10a..666c0be54d4 100644 --- a/resource-manager/media/2021-11-01/accounts/method_mediaserviceslist.go +++ b/resource-manager/media/2021-11-01/accounts/method_mediaserviceslist.go @@ -24,6 +24,18 @@ type MediaservicesListCompleteResult struct { Items []MediaService } +type MediaservicesListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *MediaservicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MediaservicesList ... func (c AccountsClient) MediaservicesList(ctx context.Context, id commonids.ResourceGroupId) (result MediaservicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccountsClient) MediaservicesList(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MediaservicesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Media/mediaServices", id.ID()), } diff --git a/resource-manager/media/2021-11-01/accounts/method_mediaserviceslistbysubscription.go b/resource-manager/media/2021-11-01/accounts/method_mediaserviceslistbysubscription.go index 5af069e19cd..6dc5fdd9238 100644 --- a/resource-manager/media/2021-11-01/accounts/method_mediaserviceslistbysubscription.go +++ b/resource-manager/media/2021-11-01/accounts/method_mediaserviceslistbysubscription.go @@ -24,6 +24,18 @@ type MediaservicesListBySubscriptionCompleteResult struct { Items []MediaService } +type MediaservicesListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *MediaservicesListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MediaservicesListBySubscription ... func (c AccountsClient) MediaservicesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result MediaservicesListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccountsClient) MediaservicesListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MediaservicesListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Media/mediaServices", id.ID()), } diff --git a/resource-manager/media/2021-11-01/assetsandassetfilters/method_assetfilterslist.go b/resource-manager/media/2021-11-01/assetsandassetfilters/method_assetfilterslist.go index 5970af12a6c..479c554baa9 100644 --- a/resource-manager/media/2021-11-01/assetsandassetfilters/method_assetfilterslist.go +++ b/resource-manager/media/2021-11-01/assetsandassetfilters/method_assetfilterslist.go @@ -23,6 +23,18 @@ type AssetFiltersListCompleteResult struct { Items []AssetFilter } +type AssetFiltersListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *AssetFiltersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AssetFiltersList ... func (c AssetsAndAssetFiltersClient) AssetFiltersList(ctx context.Context, id AssetId) (result AssetFiltersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AssetsAndAssetFiltersClient) AssetFiltersList(ctx context.Context, id As http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AssetFiltersListCustomPager{}, Path: fmt.Sprintf("%s/assetFilters", id.ID()), } diff --git a/resource-manager/media/2021-11-01/assetsandassetfilters/method_assetslist.go b/resource-manager/media/2021-11-01/assetsandassetfilters/method_assetslist.go index ee319ee971b..dbcabd76de4 100644 --- a/resource-manager/media/2021-11-01/assetsandassetfilters/method_assetslist.go +++ b/resource-manager/media/2021-11-01/assetsandassetfilters/method_assetslist.go @@ -58,6 +58,18 @@ func (o AssetsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type AssetsListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *AssetsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AssetsList ... func (c AssetsAndAssetFiltersClient) AssetsList(ctx context.Context, id MediaServiceId, options AssetsListOperationOptions) (result AssetsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c AssetsAndAssetFiltersClient) AssetsList(ctx context.Context, id MediaSer http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/assets", id.ID()), OptionsObject: options, + Pager: &AssetsListCustomPager{}, + Path: fmt.Sprintf("%s/assets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2021-11-01/contentkeypolicies/method_list.go b/resource-manager/media/2021-11-01/contentkeypolicies/method_list.go index 0dd9230d836..05399ba40fe 100644 --- a/resource-manager/media/2021-11-01/contentkeypolicies/method_list.go +++ b/resource-manager/media/2021-11-01/contentkeypolicies/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ContentKeyPoliciesClient) List(ctx context.Context, id MediaServiceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ContentKeyPoliciesClient) List(ctx context.Context, id MediaServiceId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/contentKeyPolicies", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/contentKeyPolicies", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2021-11-01/encodings/method_jobslist.go b/resource-manager/media/2021-11-01/encodings/method_jobslist.go index 2d1ed3a5e99..e0aea11250a 100644 --- a/resource-manager/media/2021-11-01/encodings/method_jobslist.go +++ b/resource-manager/media/2021-11-01/encodings/method_jobslist.go @@ -54,6 +54,18 @@ func (o JobsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type JobsListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *JobsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // JobsList ... func (c EncodingsClient) JobsList(ctx context.Context, id TransformId, options JobsListOperationOptions) (result JobsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EncodingsClient) JobsList(ctx context.Context, id TransformId, options J http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/jobs", id.ID()), OptionsObject: options, + Pager: &JobsListCustomPager{}, + Path: fmt.Sprintf("%s/jobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2021-11-01/encodings/method_transformslist.go b/resource-manager/media/2021-11-01/encodings/method_transformslist.go index d99a4935098..46d8bd251ce 100644 --- a/resource-manager/media/2021-11-01/encodings/method_transformslist.go +++ b/resource-manager/media/2021-11-01/encodings/method_transformslist.go @@ -54,6 +54,18 @@ func (o TransformsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type TransformsListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *TransformsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TransformsList ... func (c EncodingsClient) TransformsList(ctx context.Context, id MediaServiceId, options TransformsListOperationOptions) (result TransformsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EncodingsClient) TransformsList(ctx context.Context, id MediaServiceId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/transforms", id.ID()), OptionsObject: options, + Pager: &TransformsListCustomPager{}, + Path: fmt.Sprintf("%s/transforms", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2021-11-01/liveevents/method_create.go b/resource-manager/media/2021-11-01/liveevents/method_create.go index d58735fdf9e..db743890d4a 100644 --- a/resource-manager/media/2021-11-01/liveevents/method_create.go +++ b/resource-manager/media/2021-11-01/liveevents/method_create.go @@ -57,8 +57,8 @@ func (c LiveEventsClient) Create(ctx context.Context, id LiveEventId, input Live http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2021-11-01/liveevents/method_list.go b/resource-manager/media/2021-11-01/liveevents/method_list.go index d4efeeea885..dc02c0b2241 100644 --- a/resource-manager/media/2021-11-01/liveevents/method_list.go +++ b/resource-manager/media/2021-11-01/liveevents/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []LiveEvent } +type ListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LiveEventsClient) List(ctx context.Context, id MediaServiceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LiveEventsClient) List(ctx context.Context, id MediaServiceId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/liveEvents", id.ID()), } diff --git a/resource-manager/media/2021-11-01/liveoutputs/method_list.go b/resource-manager/media/2021-11-01/liveoutputs/method_list.go index 24cde78982a..3351078747a 100644 --- a/resource-manager/media/2021-11-01/liveoutputs/method_list.go +++ b/resource-manager/media/2021-11-01/liveoutputs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []LiveOutput } +type ListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LiveOutputsClient) List(ctx context.Context, id LiveEventId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LiveOutputsClient) List(ctx context.Context, id LiveEventId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/liveOutputs", id.ID()), } diff --git a/resource-manager/media/2021-11-01/streamingendpoints/method_create.go b/resource-manager/media/2021-11-01/streamingendpoints/method_create.go index e8b4214904a..7b9e76bac77 100644 --- a/resource-manager/media/2021-11-01/streamingendpoints/method_create.go +++ b/resource-manager/media/2021-11-01/streamingendpoints/method_create.go @@ -57,8 +57,8 @@ func (c StreamingEndpointsClient) Create(ctx context.Context, id StreamingEndpoi http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2021-11-01/streamingendpoints/method_list.go b/resource-manager/media/2021-11-01/streamingendpoints/method_list.go index 1efab70ee0e..322e2b69568 100644 --- a/resource-manager/media/2021-11-01/streamingendpoints/method_list.go +++ b/resource-manager/media/2021-11-01/streamingendpoints/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StreamingEndpoint } +type ListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StreamingEndpointsClient) List(ctx context.Context, id MediaServiceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StreamingEndpointsClient) List(ctx context.Context, id MediaServiceId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/streamingEndpoints", id.ID()), } diff --git a/resource-manager/media/2021-11-01/streamingpoliciesandstreaminglocators/method_streaminglocatorslist.go b/resource-manager/media/2021-11-01/streamingpoliciesandstreaminglocators/method_streaminglocatorslist.go index 96f370d4f94..9a5c60b3080 100644 --- a/resource-manager/media/2021-11-01/streamingpoliciesandstreaminglocators/method_streaminglocatorslist.go +++ b/resource-manager/media/2021-11-01/streamingpoliciesandstreaminglocators/method_streaminglocatorslist.go @@ -58,6 +58,18 @@ func (o StreamingLocatorsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type StreamingLocatorsListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *StreamingLocatorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StreamingLocatorsList ... func (c StreamingPoliciesAndStreamingLocatorsClient) StreamingLocatorsList(ctx context.Context, id MediaServiceId, options StreamingLocatorsListOperationOptions) (result StreamingLocatorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c StreamingPoliciesAndStreamingLocatorsClient) StreamingLocatorsList(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/streamingLocators", id.ID()), OptionsObject: options, + Pager: &StreamingLocatorsListCustomPager{}, + Path: fmt.Sprintf("%s/streamingLocators", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2021-11-01/streamingpoliciesandstreaminglocators/method_streamingpolicieslist.go b/resource-manager/media/2021-11-01/streamingpoliciesandstreaminglocators/method_streamingpolicieslist.go index c26e72b428d..3397b46a73e 100644 --- a/resource-manager/media/2021-11-01/streamingpoliciesandstreaminglocators/method_streamingpolicieslist.go +++ b/resource-manager/media/2021-11-01/streamingpoliciesandstreaminglocators/method_streamingpolicieslist.go @@ -58,6 +58,18 @@ func (o StreamingPoliciesListOperationOptions) ToQuery() *client.QueryParams { return &out } +type StreamingPoliciesListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *StreamingPoliciesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StreamingPoliciesList ... func (c StreamingPoliciesAndStreamingLocatorsClient) StreamingPoliciesList(ctx context.Context, id MediaServiceId, options StreamingPoliciesListOperationOptions) (result StreamingPoliciesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c StreamingPoliciesAndStreamingLocatorsClient) StreamingPoliciesList(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/streamingPolicies", id.ID()), OptionsObject: options, + Pager: &StreamingPoliciesListCustomPager{}, + Path: fmt.Sprintf("%s/streamingPolicies", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2022-07-01/encodings/method_jobslist.go b/resource-manager/media/2022-07-01/encodings/method_jobslist.go index 2d1ed3a5e99..e0aea11250a 100644 --- a/resource-manager/media/2022-07-01/encodings/method_jobslist.go +++ b/resource-manager/media/2022-07-01/encodings/method_jobslist.go @@ -54,6 +54,18 @@ func (o JobsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type JobsListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *JobsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // JobsList ... func (c EncodingsClient) JobsList(ctx context.Context, id TransformId, options JobsListOperationOptions) (result JobsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EncodingsClient) JobsList(ctx context.Context, id TransformId, options J http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/jobs", id.ID()), OptionsObject: options, + Pager: &JobsListCustomPager{}, + Path: fmt.Sprintf("%s/jobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2022-07-01/encodings/method_transformslist.go b/resource-manager/media/2022-07-01/encodings/method_transformslist.go index d99a4935098..46d8bd251ce 100644 --- a/resource-manager/media/2022-07-01/encodings/method_transformslist.go +++ b/resource-manager/media/2022-07-01/encodings/method_transformslist.go @@ -54,6 +54,18 @@ func (o TransformsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type TransformsListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *TransformsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TransformsList ... func (c EncodingsClient) TransformsList(ctx context.Context, id MediaServiceId, options TransformsListOperationOptions) (result TransformsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c EncodingsClient) TransformsList(ctx context.Context, id MediaServiceId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/transforms", id.ID()), OptionsObject: options, + Pager: &TransformsListCustomPager{}, + Path: fmt.Sprintf("%s/transforms", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2022-08-01/accountfilters/method_list.go b/resource-manager/media/2022-08-01/accountfilters/method_list.go index 54f58df3822..a297e19172b 100644 --- a/resource-manager/media/2022-08-01/accountfilters/method_list.go +++ b/resource-manager/media/2022-08-01/accountfilters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []AccountFilter } +type ListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AccountFiltersClient) List(ctx context.Context, id MediaServiceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AccountFiltersClient) List(ctx context.Context, id MediaServiceId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/accountFilters", id.ID()), } diff --git a/resource-manager/media/2022-08-01/assetsandassetfilters/method_assetfilterslist.go b/resource-manager/media/2022-08-01/assetsandassetfilters/method_assetfilterslist.go index 5970af12a6c..479c554baa9 100644 --- a/resource-manager/media/2022-08-01/assetsandassetfilters/method_assetfilterslist.go +++ b/resource-manager/media/2022-08-01/assetsandassetfilters/method_assetfilterslist.go @@ -23,6 +23,18 @@ type AssetFiltersListCompleteResult struct { Items []AssetFilter } +type AssetFiltersListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *AssetFiltersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AssetFiltersList ... func (c AssetsAndAssetFiltersClient) AssetFiltersList(ctx context.Context, id AssetId) (result AssetFiltersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AssetsAndAssetFiltersClient) AssetFiltersList(ctx context.Context, id As http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AssetFiltersListCustomPager{}, Path: fmt.Sprintf("%s/assetFilters", id.ID()), } diff --git a/resource-manager/media/2022-08-01/assetsandassetfilters/method_assetslist.go b/resource-manager/media/2022-08-01/assetsandassetfilters/method_assetslist.go index ee319ee971b..dbcabd76de4 100644 --- a/resource-manager/media/2022-08-01/assetsandassetfilters/method_assetslist.go +++ b/resource-manager/media/2022-08-01/assetsandassetfilters/method_assetslist.go @@ -58,6 +58,18 @@ func (o AssetsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type AssetsListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *AssetsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AssetsList ... func (c AssetsAndAssetFiltersClient) AssetsList(ctx context.Context, id MediaServiceId, options AssetsListOperationOptions) (result AssetsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c AssetsAndAssetFiltersClient) AssetsList(ctx context.Context, id MediaSer http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/assets", id.ID()), OptionsObject: options, + Pager: &AssetsListCustomPager{}, + Path: fmt.Sprintf("%s/assets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2022-08-01/contentkeypolicies/method_list.go b/resource-manager/media/2022-08-01/contentkeypolicies/method_list.go index 0dd9230d836..05399ba40fe 100644 --- a/resource-manager/media/2022-08-01/contentkeypolicies/method_list.go +++ b/resource-manager/media/2022-08-01/contentkeypolicies/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ContentKeyPoliciesClient) List(ctx context.Context, id MediaServiceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ContentKeyPoliciesClient) List(ctx context.Context, id MediaServiceId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/contentKeyPolicies", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/contentKeyPolicies", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2022-08-01/liveevents/method_create.go b/resource-manager/media/2022-08-01/liveevents/method_create.go index d58735fdf9e..db743890d4a 100644 --- a/resource-manager/media/2022-08-01/liveevents/method_create.go +++ b/resource-manager/media/2022-08-01/liveevents/method_create.go @@ -57,8 +57,8 @@ func (c LiveEventsClient) Create(ctx context.Context, id LiveEventId, input Live http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2022-08-01/liveevents/method_list.go b/resource-manager/media/2022-08-01/liveevents/method_list.go index d4efeeea885..dc02c0b2241 100644 --- a/resource-manager/media/2022-08-01/liveevents/method_list.go +++ b/resource-manager/media/2022-08-01/liveevents/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []LiveEvent } +type ListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LiveEventsClient) List(ctx context.Context, id MediaServiceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LiveEventsClient) List(ctx context.Context, id MediaServiceId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/liveEvents", id.ID()), } diff --git a/resource-manager/media/2022-08-01/liveoutputs/method_list.go b/resource-manager/media/2022-08-01/liveoutputs/method_list.go index 24cde78982a..3351078747a 100644 --- a/resource-manager/media/2022-08-01/liveoutputs/method_list.go +++ b/resource-manager/media/2022-08-01/liveoutputs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []LiveOutput } +type ListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LiveOutputsClient) List(ctx context.Context, id LiveEventId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LiveOutputsClient) List(ctx context.Context, id LiveEventId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/liveOutputs", id.ID()), } diff --git a/resource-manager/media/2022-08-01/streamingendpoints/method_create.go b/resource-manager/media/2022-08-01/streamingendpoints/method_create.go index e8b4214904a..7b9e76bac77 100644 --- a/resource-manager/media/2022-08-01/streamingendpoints/method_create.go +++ b/resource-manager/media/2022-08-01/streamingendpoints/method_create.go @@ -57,8 +57,8 @@ func (c StreamingEndpointsClient) Create(ctx context.Context, id StreamingEndpoi http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2022-08-01/streamingendpoints/method_list.go b/resource-manager/media/2022-08-01/streamingendpoints/method_list.go index 1efab70ee0e..322e2b69568 100644 --- a/resource-manager/media/2022-08-01/streamingendpoints/method_list.go +++ b/resource-manager/media/2022-08-01/streamingendpoints/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StreamingEndpoint } +type ListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StreamingEndpointsClient) List(ctx context.Context, id MediaServiceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StreamingEndpointsClient) List(ctx context.Context, id MediaServiceId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/streamingEndpoints", id.ID()), } diff --git a/resource-manager/media/2022-08-01/streamingpoliciesandstreaminglocators/method_streaminglocatorslist.go b/resource-manager/media/2022-08-01/streamingpoliciesandstreaminglocators/method_streaminglocatorslist.go index 96f370d4f94..9a5c60b3080 100644 --- a/resource-manager/media/2022-08-01/streamingpoliciesandstreaminglocators/method_streaminglocatorslist.go +++ b/resource-manager/media/2022-08-01/streamingpoliciesandstreaminglocators/method_streaminglocatorslist.go @@ -58,6 +58,18 @@ func (o StreamingLocatorsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type StreamingLocatorsListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *StreamingLocatorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StreamingLocatorsList ... func (c StreamingPoliciesAndStreamingLocatorsClient) StreamingLocatorsList(ctx context.Context, id MediaServiceId, options StreamingLocatorsListOperationOptions) (result StreamingLocatorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c StreamingPoliciesAndStreamingLocatorsClient) StreamingLocatorsList(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/streamingLocators", id.ID()), OptionsObject: options, + Pager: &StreamingLocatorsListCustomPager{}, + Path: fmt.Sprintf("%s/streamingLocators", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/media/2022-08-01/streamingpoliciesandstreaminglocators/method_streamingpolicieslist.go b/resource-manager/media/2022-08-01/streamingpoliciesandstreaminglocators/method_streamingpolicieslist.go index c26e72b428d..3397b46a73e 100644 --- a/resource-manager/media/2022-08-01/streamingpoliciesandstreaminglocators/method_streamingpolicieslist.go +++ b/resource-manager/media/2022-08-01/streamingpoliciesandstreaminglocators/method_streamingpolicieslist.go @@ -58,6 +58,18 @@ func (o StreamingPoliciesListOperationOptions) ToQuery() *client.QueryParams { return &out } +type StreamingPoliciesListCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *StreamingPoliciesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StreamingPoliciesList ... func (c StreamingPoliciesAndStreamingLocatorsClient) StreamingPoliciesList(ctx context.Context, id MediaServiceId, options StreamingPoliciesListOperationOptions) (result StreamingPoliciesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c StreamingPoliciesAndStreamingLocatorsClient) StreamingPoliciesList(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/streamingPolicies", id.ID()), OptionsObject: options, + Pager: &StreamingPoliciesListCustomPager{}, + Path: fmt.Sprintf("%s/streamingPolicies", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/migrate/2020-01-01/hypervcluster/method_getallclustersinsite.go b/resource-manager/migrate/2020-01-01/hypervcluster/method_getallclustersinsite.go index 9b1751736dd..d35f18067dc 100644 --- a/resource-manager/migrate/2020-01-01/hypervcluster/method_getallclustersinsite.go +++ b/resource-manager/migrate/2020-01-01/hypervcluster/method_getallclustersinsite.go @@ -50,6 +50,18 @@ func (o GetAllClustersInSiteOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetAllClustersInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllClustersInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllClustersInSite ... func (c HyperVClusterClient) GetAllClustersInSite(ctx context.Context, id HyperVSiteId, options GetAllClustersInSiteOperationOptions) (result GetAllClustersInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c HyperVClusterClient) GetAllClustersInSite(ctx context.Context, id HyperV http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/clusters", id.ID()), OptionsObject: options, + Pager: &GetAllClustersInSiteCustomPager{}, + Path: fmt.Sprintf("%s/clusters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/migrate/2020-01-01/hypervhost/method_getallhostsinsite.go b/resource-manager/migrate/2020-01-01/hypervhost/method_getallhostsinsite.go index d4b14950681..a730ff97fff 100644 --- a/resource-manager/migrate/2020-01-01/hypervhost/method_getallhostsinsite.go +++ b/resource-manager/migrate/2020-01-01/hypervhost/method_getallhostsinsite.go @@ -50,6 +50,18 @@ func (o GetAllHostsInSiteOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetAllHostsInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllHostsInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllHostsInSite ... func (c HyperVHostClient) GetAllHostsInSite(ctx context.Context, id HyperVSiteId, options GetAllHostsInSiteOperationOptions) (result GetAllHostsInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c HyperVHostClient) GetAllHostsInSite(ctx context.Context, id HyperVSiteId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/hosts", id.ID()), OptionsObject: options, + Pager: &GetAllHostsInSiteCustomPager{}, + Path: fmt.Sprintf("%s/hosts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/migrate/2020-01-01/hypervjobs/method_getalljobsinsite.go b/resource-manager/migrate/2020-01-01/hypervjobs/method_getalljobsinsite.go index d406c4d5ddf..d4f9baac0e9 100644 --- a/resource-manager/migrate/2020-01-01/hypervjobs/method_getalljobsinsite.go +++ b/resource-manager/migrate/2020-01-01/hypervjobs/method_getalljobsinsite.go @@ -23,6 +23,18 @@ type GetAllJobsInSiteCompleteResult struct { Items []HyperVJob } +type GetAllJobsInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllJobsInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllJobsInSite ... func (c HyperVJobsClient) GetAllJobsInSite(ctx context.Context, id HyperVSiteId) (result GetAllJobsInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HyperVJobsClient) GetAllJobsInSite(ctx context.Context, id HyperVSiteId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetAllJobsInSiteCustomPager{}, Path: fmt.Sprintf("%s/jobs", id.ID()), } diff --git a/resource-manager/migrate/2020-01-01/hypervmachines/method_getallmachinesinsite.go b/resource-manager/migrate/2020-01-01/hypervmachines/method_getallmachinesinsite.go index 4af40706a82..3395970ffdf 100644 --- a/resource-manager/migrate/2020-01-01/hypervmachines/method_getallmachinesinsite.go +++ b/resource-manager/migrate/2020-01-01/hypervmachines/method_getallmachinesinsite.go @@ -62,6 +62,18 @@ func (o GetAllMachinesInSiteOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetAllMachinesInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllMachinesInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllMachinesInSite ... func (c HyperVMachinesClient) GetAllMachinesInSite(ctx context.Context, id HyperVSiteId, options GetAllMachinesInSiteOperationOptions) (result GetAllMachinesInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c HyperVMachinesClient) GetAllMachinesInSite(ctx context.Context, id Hyper http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/machines", id.ID()), OptionsObject: options, + Pager: &GetAllMachinesInSiteCustomPager{}, + Path: fmt.Sprintf("%s/machines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/migrate/2020-01-01/hypervrunasaccounts/method_getallrunasaccountsinsite.go b/resource-manager/migrate/2020-01-01/hypervrunasaccounts/method_getallrunasaccountsinsite.go index 6693ddf7f15..f73e36a310e 100644 --- a/resource-manager/migrate/2020-01-01/hypervrunasaccounts/method_getallrunasaccountsinsite.go +++ b/resource-manager/migrate/2020-01-01/hypervrunasaccounts/method_getallrunasaccountsinsite.go @@ -23,6 +23,18 @@ type GetAllRunAsAccountsInSiteCompleteResult struct { Items []HyperVRunAsAccount } +type GetAllRunAsAccountsInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllRunAsAccountsInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllRunAsAccountsInSite ... func (c HyperVRunAsAccountsClient) GetAllRunAsAccountsInSite(ctx context.Context, id HyperVSiteId) (result GetAllRunAsAccountsInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HyperVRunAsAccountsClient) GetAllRunAsAccountsInSite(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetAllRunAsAccountsInSiteCustomPager{}, Path: fmt.Sprintf("%s/runAsAccounts", id.ID()), } diff --git a/resource-manager/migrate/2020-01-01/hypervsites/method_getsitehealthsummary.go b/resource-manager/migrate/2020-01-01/hypervsites/method_getsitehealthsummary.go index 467474ae4e4..ec2e73b1cf7 100644 --- a/resource-manager/migrate/2020-01-01/hypervsites/method_getsitehealthsummary.go +++ b/resource-manager/migrate/2020-01-01/hypervsites/method_getsitehealthsummary.go @@ -23,6 +23,18 @@ type GetSiteHealthSummaryCompleteResult struct { Items []SiteHealthSummary } +type GetSiteHealthSummaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetSiteHealthSummaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetSiteHealthSummary ... func (c HyperVSitesClient) GetSiteHealthSummary(ctx context.Context, id HyperVSiteId) (result GetSiteHealthSummaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HyperVSitesClient) GetSiteHealthSummary(ctx context.Context, id HyperVSi http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetSiteHealthSummaryCustomPager{}, Path: fmt.Sprintf("%s/healthSummary", id.ID()), } diff --git a/resource-manager/migrate/2020-01-01/jobs/method_getalljobsinsite.go b/resource-manager/migrate/2020-01-01/jobs/method_getalljobsinsite.go index 3ff568c41a2..b380d81fb9f 100644 --- a/resource-manager/migrate/2020-01-01/jobs/method_getalljobsinsite.go +++ b/resource-manager/migrate/2020-01-01/jobs/method_getalljobsinsite.go @@ -23,6 +23,18 @@ type GetAllJobsInSiteCompleteResult struct { Items []VMwareJob } +type GetAllJobsInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllJobsInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllJobsInSite ... func (c JobsClient) GetAllJobsInSite(ctx context.Context, id VMwareSiteId) (result GetAllJobsInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobsClient) GetAllJobsInSite(ctx context.Context, id VMwareSiteId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetAllJobsInSiteCustomPager{}, Path: fmt.Sprintf("%s/jobs", id.ID()), } diff --git a/resource-manager/migrate/2020-01-01/machines/method_getallmachinesinsite.go b/resource-manager/migrate/2020-01-01/machines/method_getallmachinesinsite.go index 78245d5d816..9a7e1d1b2f5 100644 --- a/resource-manager/migrate/2020-01-01/machines/method_getallmachinesinsite.go +++ b/resource-manager/migrate/2020-01-01/machines/method_getallmachinesinsite.go @@ -62,6 +62,18 @@ func (o GetAllMachinesInSiteOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetAllMachinesInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllMachinesInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllMachinesInSite ... func (c MachinesClient) GetAllMachinesInSite(ctx context.Context, id VMwareSiteId, options GetAllMachinesInSiteOperationOptions) (result GetAllMachinesInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c MachinesClient) GetAllMachinesInSite(ctx context.Context, id VMwareSiteI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/machines", id.ID()), OptionsObject: options, + Pager: &GetAllMachinesInSiteCustomPager{}, + Path: fmt.Sprintf("%s/machines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/migrate/2020-01-01/runasaccounts/method_getallrunasaccountsinsite.go b/resource-manager/migrate/2020-01-01/runasaccounts/method_getallrunasaccountsinsite.go index dfa1545d40e..fb0023b823a 100644 --- a/resource-manager/migrate/2020-01-01/runasaccounts/method_getallrunasaccountsinsite.go +++ b/resource-manager/migrate/2020-01-01/runasaccounts/method_getallrunasaccountsinsite.go @@ -23,6 +23,18 @@ type GetAllRunAsAccountsInSiteCompleteResult struct { Items []VMwareRunAsAccount } +type GetAllRunAsAccountsInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllRunAsAccountsInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllRunAsAccountsInSite ... func (c RunAsAccountsClient) GetAllRunAsAccountsInSite(ctx context.Context, id VMwareSiteId) (result GetAllRunAsAccountsInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RunAsAccountsClient) GetAllRunAsAccountsInSite(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetAllRunAsAccountsInSiteCustomPager{}, Path: fmt.Sprintf("%s/runAsAccounts", id.ID()), } diff --git a/resource-manager/migrate/2020-01-01/sites/method_getsitehealthsummary.go b/resource-manager/migrate/2020-01-01/sites/method_getsitehealthsummary.go index 82297eb316b..ceb6d5873af 100644 --- a/resource-manager/migrate/2020-01-01/sites/method_getsitehealthsummary.go +++ b/resource-manager/migrate/2020-01-01/sites/method_getsitehealthsummary.go @@ -23,6 +23,18 @@ type GetSiteHealthSummaryCompleteResult struct { Items []SiteHealthSummary } +type GetSiteHealthSummaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetSiteHealthSummaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetSiteHealthSummary ... func (c SitesClient) GetSiteHealthSummary(ctx context.Context, id VMwareSiteId) (result GetSiteHealthSummaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SitesClient) GetSiteHealthSummary(ctx context.Context, id VMwareSiteId) http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetSiteHealthSummaryCustomPager{}, Path: fmt.Sprintf("%s/healthSummary", id.ID()), } diff --git a/resource-manager/migrate/2020-01-01/vcenter/method_getallvcentersinsite.go b/resource-manager/migrate/2020-01-01/vcenter/method_getallvcentersinsite.go index 064869c6a99..2cc0b37f6dc 100644 --- a/resource-manager/migrate/2020-01-01/vcenter/method_getallvcentersinsite.go +++ b/resource-manager/migrate/2020-01-01/vcenter/method_getallvcentersinsite.go @@ -50,6 +50,18 @@ func (o GetAllVCentersInSiteOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetAllVCentersInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllVCentersInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllVCentersInSite ... func (c VCenterClient) GetAllVCentersInSite(ctx context.Context, id VMwareSiteId, options GetAllVCentersInSiteOperationOptions) (result GetAllVCentersInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c VCenterClient) GetAllVCentersInSite(ctx context.Context, id VMwareSiteId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/vCenters", id.ID()), OptionsObject: options, + Pager: &GetAllVCentersInSiteCustomPager{}, + Path: fmt.Sprintf("%s/vCenters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/migrate/2020-07-07/hypervcluster/method_getallclustersinsite.go b/resource-manager/migrate/2020-07-07/hypervcluster/method_getallclustersinsite.go index 9b1751736dd..d35f18067dc 100644 --- a/resource-manager/migrate/2020-07-07/hypervcluster/method_getallclustersinsite.go +++ b/resource-manager/migrate/2020-07-07/hypervcluster/method_getallclustersinsite.go @@ -50,6 +50,18 @@ func (o GetAllClustersInSiteOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetAllClustersInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllClustersInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllClustersInSite ... func (c HyperVClusterClient) GetAllClustersInSite(ctx context.Context, id HyperVSiteId, options GetAllClustersInSiteOperationOptions) (result GetAllClustersInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c HyperVClusterClient) GetAllClustersInSite(ctx context.Context, id HyperV http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/clusters", id.ID()), OptionsObject: options, + Pager: &GetAllClustersInSiteCustomPager{}, + Path: fmt.Sprintf("%s/clusters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/migrate/2020-07-07/hypervhost/method_getallhostsinsite.go b/resource-manager/migrate/2020-07-07/hypervhost/method_getallhostsinsite.go index d4b14950681..a730ff97fff 100644 --- a/resource-manager/migrate/2020-07-07/hypervhost/method_getallhostsinsite.go +++ b/resource-manager/migrate/2020-07-07/hypervhost/method_getallhostsinsite.go @@ -50,6 +50,18 @@ func (o GetAllHostsInSiteOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetAllHostsInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllHostsInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllHostsInSite ... func (c HyperVHostClient) GetAllHostsInSite(ctx context.Context, id HyperVSiteId, options GetAllHostsInSiteOperationOptions) (result GetAllHostsInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c HyperVHostClient) GetAllHostsInSite(ctx context.Context, id HyperVSiteId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/hosts", id.ID()), OptionsObject: options, + Pager: &GetAllHostsInSiteCustomPager{}, + Path: fmt.Sprintf("%s/hosts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/migrate/2020-07-07/hypervjobs/method_getalljobsinsite.go b/resource-manager/migrate/2020-07-07/hypervjobs/method_getalljobsinsite.go index d406c4d5ddf..d4f9baac0e9 100644 --- a/resource-manager/migrate/2020-07-07/hypervjobs/method_getalljobsinsite.go +++ b/resource-manager/migrate/2020-07-07/hypervjobs/method_getalljobsinsite.go @@ -23,6 +23,18 @@ type GetAllJobsInSiteCompleteResult struct { Items []HyperVJob } +type GetAllJobsInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllJobsInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllJobsInSite ... func (c HyperVJobsClient) GetAllJobsInSite(ctx context.Context, id HyperVSiteId) (result GetAllJobsInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HyperVJobsClient) GetAllJobsInSite(ctx context.Context, id HyperVSiteId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetAllJobsInSiteCustomPager{}, Path: fmt.Sprintf("%s/jobs", id.ID()), } diff --git a/resource-manager/migrate/2020-07-07/hypervmachines/method_getallmachinesinsite.go b/resource-manager/migrate/2020-07-07/hypervmachines/method_getallmachinesinsite.go index 4af40706a82..3395970ffdf 100644 --- a/resource-manager/migrate/2020-07-07/hypervmachines/method_getallmachinesinsite.go +++ b/resource-manager/migrate/2020-07-07/hypervmachines/method_getallmachinesinsite.go @@ -62,6 +62,18 @@ func (o GetAllMachinesInSiteOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetAllMachinesInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllMachinesInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllMachinesInSite ... func (c HyperVMachinesClient) GetAllMachinesInSite(ctx context.Context, id HyperVSiteId, options GetAllMachinesInSiteOperationOptions) (result GetAllMachinesInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c HyperVMachinesClient) GetAllMachinesInSite(ctx context.Context, id Hyper http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/machines", id.ID()), OptionsObject: options, + Pager: &GetAllMachinesInSiteCustomPager{}, + Path: fmt.Sprintf("%s/machines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/migrate/2020-07-07/hypervrunasaccounts/method_getallrunasaccountsinsite.go b/resource-manager/migrate/2020-07-07/hypervrunasaccounts/method_getallrunasaccountsinsite.go index 6693ddf7f15..f73e36a310e 100644 --- a/resource-manager/migrate/2020-07-07/hypervrunasaccounts/method_getallrunasaccountsinsite.go +++ b/resource-manager/migrate/2020-07-07/hypervrunasaccounts/method_getallrunasaccountsinsite.go @@ -23,6 +23,18 @@ type GetAllRunAsAccountsInSiteCompleteResult struct { Items []HyperVRunAsAccount } +type GetAllRunAsAccountsInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllRunAsAccountsInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllRunAsAccountsInSite ... func (c HyperVRunAsAccountsClient) GetAllRunAsAccountsInSite(ctx context.Context, id HyperVSiteId) (result GetAllRunAsAccountsInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HyperVRunAsAccountsClient) GetAllRunAsAccountsInSite(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetAllRunAsAccountsInSiteCustomPager{}, Path: fmt.Sprintf("%s/runAsAccounts", id.ID()), } diff --git a/resource-manager/migrate/2020-07-07/hypervsites/method_getsitehealthsummary.go b/resource-manager/migrate/2020-07-07/hypervsites/method_getsitehealthsummary.go index 467474ae4e4..ec2e73b1cf7 100644 --- a/resource-manager/migrate/2020-07-07/hypervsites/method_getsitehealthsummary.go +++ b/resource-manager/migrate/2020-07-07/hypervsites/method_getsitehealthsummary.go @@ -23,6 +23,18 @@ type GetSiteHealthSummaryCompleteResult struct { Items []SiteHealthSummary } +type GetSiteHealthSummaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetSiteHealthSummaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetSiteHealthSummary ... func (c HyperVSitesClient) GetSiteHealthSummary(ctx context.Context, id HyperVSiteId) (result GetSiteHealthSummaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HyperVSitesClient) GetSiteHealthSummary(ctx context.Context, id HyperVSi http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetSiteHealthSummaryCustomPager{}, Path: fmt.Sprintf("%s/healthSummary", id.ID()), } diff --git a/resource-manager/migrate/2020-07-07/jobs/method_getalljobsinsite.go b/resource-manager/migrate/2020-07-07/jobs/method_getalljobsinsite.go index 3ff568c41a2..b380d81fb9f 100644 --- a/resource-manager/migrate/2020-07-07/jobs/method_getalljobsinsite.go +++ b/resource-manager/migrate/2020-07-07/jobs/method_getalljobsinsite.go @@ -23,6 +23,18 @@ type GetAllJobsInSiteCompleteResult struct { Items []VMwareJob } +type GetAllJobsInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllJobsInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllJobsInSite ... func (c JobsClient) GetAllJobsInSite(ctx context.Context, id VMwareSiteId) (result GetAllJobsInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobsClient) GetAllJobsInSite(ctx context.Context, id VMwareSiteId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetAllJobsInSiteCustomPager{}, Path: fmt.Sprintf("%s/jobs", id.ID()), } diff --git a/resource-manager/migrate/2020-07-07/machines/method_getallmachinesinsite.go b/resource-manager/migrate/2020-07-07/machines/method_getallmachinesinsite.go index 78245d5d816..9a7e1d1b2f5 100644 --- a/resource-manager/migrate/2020-07-07/machines/method_getallmachinesinsite.go +++ b/resource-manager/migrate/2020-07-07/machines/method_getallmachinesinsite.go @@ -62,6 +62,18 @@ func (o GetAllMachinesInSiteOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetAllMachinesInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllMachinesInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllMachinesInSite ... func (c MachinesClient) GetAllMachinesInSite(ctx context.Context, id VMwareSiteId, options GetAllMachinesInSiteOperationOptions) (result GetAllMachinesInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c MachinesClient) GetAllMachinesInSite(ctx context.Context, id VMwareSiteI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/machines", id.ID()), OptionsObject: options, + Pager: &GetAllMachinesInSiteCustomPager{}, + Path: fmt.Sprintf("%s/machines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/migrate/2020-07-07/mastersites/method_list.go b/resource-manager/migrate/2020-07-07/mastersites/method_list.go index 56f7d9d7290..57567357f42 100644 --- a/resource-manager/migrate/2020-07-07/mastersites/method_list.go +++ b/resource-manager/migrate/2020-07-07/mastersites/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []MasterSite } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MasterSitesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MasterSitesClient) List(ctx context.Context, id commonids.ResourceGroupI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.OffAzure/masterSites", id.ID()), } diff --git a/resource-manager/migrate/2020-07-07/mastersites/method_listbysubscription.go b/resource-manager/migrate/2020-07-07/mastersites/method_listbysubscription.go index e2a88c24532..208369863d7 100644 --- a/resource-manager/migrate/2020-07-07/mastersites/method_listbysubscription.go +++ b/resource-manager/migrate/2020-07-07/mastersites/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []MasterSite } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c MasterSitesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MasterSitesClient) ListBySubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.OffAzure/masterSites", id.ID()), } diff --git a/resource-manager/migrate/2020-07-07/migrates/method_hypervsiteslist.go b/resource-manager/migrate/2020-07-07/migrates/method_hypervsiteslist.go index c1392c3406d..5196eac7432 100644 --- a/resource-manager/migrate/2020-07-07/migrates/method_hypervsiteslist.go +++ b/resource-manager/migrate/2020-07-07/migrates/method_hypervsiteslist.go @@ -24,6 +24,18 @@ type HyperVSitesListCompleteResult struct { Items []HyperVSite } +type HyperVSitesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HyperVSitesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // HyperVSitesList ... func (c MigratesClient) HyperVSitesList(ctx context.Context, id commonids.ResourceGroupId) (result HyperVSitesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MigratesClient) HyperVSitesList(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &HyperVSitesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.OffAzure/hyperVSites", id.ID()), } diff --git a/resource-manager/migrate/2020-07-07/migrates/method_hypervsiteslistbysubscription.go b/resource-manager/migrate/2020-07-07/migrates/method_hypervsiteslistbysubscription.go index 776fa5c6b82..f26b75718b8 100644 --- a/resource-manager/migrate/2020-07-07/migrates/method_hypervsiteslistbysubscription.go +++ b/resource-manager/migrate/2020-07-07/migrates/method_hypervsiteslistbysubscription.go @@ -24,6 +24,18 @@ type HyperVSitesListBySubscriptionCompleteResult struct { Items []HyperVSite } +type HyperVSitesListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HyperVSitesListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // HyperVSitesListBySubscription ... func (c MigratesClient) HyperVSitesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result HyperVSitesListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MigratesClient) HyperVSitesListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &HyperVSitesListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.OffAzure/hyperVSites", id.ID()), } diff --git a/resource-manager/migrate/2020-07-07/migrates/method_vmwaresiteslist.go b/resource-manager/migrate/2020-07-07/migrates/method_vmwaresiteslist.go index 3a9fde0c832..9c71064adbd 100644 --- a/resource-manager/migrate/2020-07-07/migrates/method_vmwaresiteslist.go +++ b/resource-manager/migrate/2020-07-07/migrates/method_vmwaresiteslist.go @@ -24,6 +24,18 @@ type VMwareSitesListCompleteResult struct { Items []VMwareSite } +type VMwareSitesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VMwareSitesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VMwareSitesList ... func (c MigratesClient) VMwareSitesList(ctx context.Context, id commonids.ResourceGroupId) (result VMwareSitesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MigratesClient) VMwareSitesList(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VMwareSitesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.OffAzure/vmwareSites", id.ID()), } diff --git a/resource-manager/migrate/2020-07-07/migrates/method_vmwaresiteslistbysubscription.go b/resource-manager/migrate/2020-07-07/migrates/method_vmwaresiteslistbysubscription.go index 6311e042356..90dc28d8b1b 100644 --- a/resource-manager/migrate/2020-07-07/migrates/method_vmwaresiteslistbysubscription.go +++ b/resource-manager/migrate/2020-07-07/migrates/method_vmwaresiteslistbysubscription.go @@ -24,6 +24,18 @@ type VMwareSitesListBySubscriptionCompleteResult struct { Items []VMwareSite } +type VMwareSitesListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VMwareSitesListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VMwareSitesListBySubscription ... func (c MigratesClient) VMwareSitesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result VMwareSitesListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MigratesClient) VMwareSitesListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VMwareSitesListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.OffAzure/vmwareSites", id.ID()), } diff --git a/resource-manager/migrate/2020-07-07/privateendpointconnection/method_getprivateendpointconnections.go b/resource-manager/migrate/2020-07-07/privateendpointconnection/method_getprivateendpointconnections.go index 21b8fefe715..ca92366508b 100644 --- a/resource-manager/migrate/2020-07-07/privateendpointconnection/method_getprivateendpointconnections.go +++ b/resource-manager/migrate/2020-07-07/privateendpointconnection/method_getprivateendpointconnections.go @@ -23,6 +23,18 @@ type GetPrivateEndpointConnectionsCompleteResult struct { Items []PrivateEndpointConnection } +type GetPrivateEndpointConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetPrivateEndpointConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetPrivateEndpointConnections ... func (c PrivateEndpointConnectionClient) GetPrivateEndpointConnections(ctx context.Context, id MasterSiteId) (result GetPrivateEndpointConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionClient) GetPrivateEndpointConnections(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetPrivateEndpointConnectionsCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/migrate/2020-07-07/privatelinkresources/method_getprivatelinkresources.go b/resource-manager/migrate/2020-07-07/privatelinkresources/method_getprivatelinkresources.go index abb2463953e..3e42a2c3d65 100644 --- a/resource-manager/migrate/2020-07-07/privatelinkresources/method_getprivatelinkresources.go +++ b/resource-manager/migrate/2020-07-07/privatelinkresources/method_getprivatelinkresources.go @@ -23,6 +23,18 @@ type GetPrivateLinkResourcesCompleteResult struct { Items []PrivateLinkResource } +type GetPrivateLinkResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetPrivateLinkResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetPrivateLinkResources ... func (c PrivateLinkResourcesClient) GetPrivateLinkResources(ctx context.Context, id MasterSiteId) (result GetPrivateLinkResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) GetPrivateLinkResources(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetPrivateLinkResourcesCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/migrate/2020-07-07/runasaccounts/method_getallrunasaccountsinsite.go b/resource-manager/migrate/2020-07-07/runasaccounts/method_getallrunasaccountsinsite.go index dfa1545d40e..fb0023b823a 100644 --- a/resource-manager/migrate/2020-07-07/runasaccounts/method_getallrunasaccountsinsite.go +++ b/resource-manager/migrate/2020-07-07/runasaccounts/method_getallrunasaccountsinsite.go @@ -23,6 +23,18 @@ type GetAllRunAsAccountsInSiteCompleteResult struct { Items []VMwareRunAsAccount } +type GetAllRunAsAccountsInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllRunAsAccountsInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllRunAsAccountsInSite ... func (c RunAsAccountsClient) GetAllRunAsAccountsInSite(ctx context.Context, id VMwareSiteId) (result GetAllRunAsAccountsInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RunAsAccountsClient) GetAllRunAsAccountsInSite(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetAllRunAsAccountsInSiteCustomPager{}, Path: fmt.Sprintf("%s/runAsAccounts", id.ID()), } diff --git a/resource-manager/migrate/2020-07-07/sites/method_getsitehealthsummary.go b/resource-manager/migrate/2020-07-07/sites/method_getsitehealthsummary.go index 82297eb316b..ceb6d5873af 100644 --- a/resource-manager/migrate/2020-07-07/sites/method_getsitehealthsummary.go +++ b/resource-manager/migrate/2020-07-07/sites/method_getsitehealthsummary.go @@ -23,6 +23,18 @@ type GetSiteHealthSummaryCompleteResult struct { Items []SiteHealthSummary } +type GetSiteHealthSummaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetSiteHealthSummaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetSiteHealthSummary ... func (c SitesClient) GetSiteHealthSummary(ctx context.Context, id VMwareSiteId) (result GetSiteHealthSummaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SitesClient) GetSiteHealthSummary(ctx context.Context, id VMwareSiteId) http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetSiteHealthSummaryCustomPager{}, Path: fmt.Sprintf("%s/healthSummary", id.ID()), } diff --git a/resource-manager/migrate/2020-07-07/vcenter/method_getallvcentersinsite.go b/resource-manager/migrate/2020-07-07/vcenter/method_getallvcentersinsite.go index 064869c6a99..2cc0b37f6dc 100644 --- a/resource-manager/migrate/2020-07-07/vcenter/method_getallvcentersinsite.go +++ b/resource-manager/migrate/2020-07-07/vcenter/method_getallvcentersinsite.go @@ -50,6 +50,18 @@ func (o GetAllVCentersInSiteOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetAllVCentersInSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAllVCentersInSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAllVCentersInSite ... func (c VCenterClient) GetAllVCentersInSite(ctx context.Context, id VMwareSiteId, options GetAllVCentersInSiteOperationOptions) (result GetAllVCentersInSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c VCenterClient) GetAllVCentersInSite(ctx context.Context, id VMwareSiteId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/vCenters", id.ID()), OptionsObject: options, + Pager: &GetAllVCentersInSiteCustomPager{}, + Path: fmt.Sprintf("%s/vCenters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/mixedreality/2021-01-01/proxy/method_remoterenderingaccountslistbysubscription.go b/resource-manager/mixedreality/2021-01-01/proxy/method_remoterenderingaccountslistbysubscription.go index 15616c18ec9..ced116976a6 100644 --- a/resource-manager/mixedreality/2021-01-01/proxy/method_remoterenderingaccountslistbysubscription.go +++ b/resource-manager/mixedreality/2021-01-01/proxy/method_remoterenderingaccountslistbysubscription.go @@ -24,6 +24,18 @@ type RemoteRenderingAccountsListBySubscriptionCompleteResult struct { Items []RemoteRenderingAccount } +type RemoteRenderingAccountsListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RemoteRenderingAccountsListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RemoteRenderingAccountsListBySubscription ... func (c ProxyClient) RemoteRenderingAccountsListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result RemoteRenderingAccountsListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProxyClient) RemoteRenderingAccountsListBySubscription(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RemoteRenderingAccountsListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MixedReality/remoteRenderingAccounts", id.ID()), } diff --git a/resource-manager/mixedreality/2021-01-01/proxy/method_spatialanchorsaccountslistbysubscription.go b/resource-manager/mixedreality/2021-01-01/proxy/method_spatialanchorsaccountslistbysubscription.go index 79421acac19..6f37625b82b 100644 --- a/resource-manager/mixedreality/2021-01-01/proxy/method_spatialanchorsaccountslistbysubscription.go +++ b/resource-manager/mixedreality/2021-01-01/proxy/method_spatialanchorsaccountslistbysubscription.go @@ -24,6 +24,18 @@ type SpatialAnchorsAccountsListBySubscriptionCompleteResult struct { Items []SpatialAnchorsAccount } +type SpatialAnchorsAccountsListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SpatialAnchorsAccountsListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SpatialAnchorsAccountsListBySubscription ... func (c ProxyClient) SpatialAnchorsAccountsListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result SpatialAnchorsAccountsListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ProxyClient) SpatialAnchorsAccountsListBySubscription(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SpatialAnchorsAccountsListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MixedReality/spatialAnchorsAccounts", id.ID()), } diff --git a/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountslistbyresourcegroup.go b/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountslistbyresourcegroup.go index c39e44a7194..3a0baec90fa 100644 --- a/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountslistbyresourcegroup.go +++ b/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountslistbyresourcegroup.go @@ -24,6 +24,18 @@ type RemoteRenderingAccountsListByResourceGroupCompleteResult struct { Items []RemoteRenderingAccount } +type RemoteRenderingAccountsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RemoteRenderingAccountsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RemoteRenderingAccountsListByResourceGroup ... func (c ResourceClient) RemoteRenderingAccountsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result RemoteRenderingAccountsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceClient) RemoteRenderingAccountsListByResourceGroup(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RemoteRenderingAccountsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MixedReality/remoteRenderingAccounts", id.ID()), } diff --git a/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountslistbysubscription.go b/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountslistbysubscription.go index e64e5bcbefb..05a16e1bcc4 100644 --- a/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountslistbysubscription.go +++ b/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountslistbysubscription.go @@ -24,6 +24,18 @@ type RemoteRenderingAccountsListBySubscriptionCompleteResult struct { Items []RemoteRenderingAccount } +type RemoteRenderingAccountsListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RemoteRenderingAccountsListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RemoteRenderingAccountsListBySubscription ... func (c ResourceClient) RemoteRenderingAccountsListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result RemoteRenderingAccountsListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceClient) RemoteRenderingAccountsListBySubscription(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RemoteRenderingAccountsListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MixedReality/remoteRenderingAccounts", id.ID()), } diff --git a/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountslistbyresourcegroup.go b/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountslistbyresourcegroup.go index 6dc34b6f9c0..55cfb9d2b2e 100644 --- a/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountslistbyresourcegroup.go +++ b/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountslistbyresourcegroup.go @@ -24,6 +24,18 @@ type SpatialAnchorsAccountsListByResourceGroupCompleteResult struct { Items []SpatialAnchorsAccount } +type SpatialAnchorsAccountsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SpatialAnchorsAccountsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SpatialAnchorsAccountsListByResourceGroup ... func (c ResourceClient) SpatialAnchorsAccountsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result SpatialAnchorsAccountsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceClient) SpatialAnchorsAccountsListByResourceGroup(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SpatialAnchorsAccountsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MixedReality/spatialAnchorsAccounts", id.ID()), } diff --git a/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountslistbysubscription.go b/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountslistbysubscription.go index d83d6b45e54..ac6a1ca1121 100644 --- a/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountslistbysubscription.go +++ b/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountslistbysubscription.go @@ -24,6 +24,18 @@ type SpatialAnchorsAccountsListBySubscriptionCompleteResult struct { Items []SpatialAnchorsAccount } +type SpatialAnchorsAccountsListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SpatialAnchorsAccountsListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SpatialAnchorsAccountsListBySubscription ... func (c ResourceClient) SpatialAnchorsAccountsListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result SpatialAnchorsAccountsListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceClient) SpatialAnchorsAccountsListBySubscription(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SpatialAnchorsAccountsListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MixedReality/spatialAnchorsAccounts", id.ID()), } diff --git a/resource-manager/mobilenetwork/2022-11-01/attacheddatanetworks/method_listbypacketcoredataplane.go b/resource-manager/mobilenetwork/2022-11-01/attacheddatanetworks/method_listbypacketcoredataplane.go index 35bbb541561..2bfc9af85b2 100644 --- a/resource-manager/mobilenetwork/2022-11-01/attacheddatanetworks/method_listbypacketcoredataplane.go +++ b/resource-manager/mobilenetwork/2022-11-01/attacheddatanetworks/method_listbypacketcoredataplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreDataPlaneCompleteResult struct { Items []AttachedDataNetwork } +type ListByPacketCoreDataPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreDataPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreDataPlane ... func (c AttachedDataNetworksClient) ListByPacketCoreDataPlane(ctx context.Context, id PacketCoreDataPlaneId) (result ListByPacketCoreDataPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AttachedDataNetworksClient) ListByPacketCoreDataPlane(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreDataPlaneCustomPager{}, Path: fmt.Sprintf("%s/attachedDataNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2022-11-01/datanetworks/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2022-11-01/datanetworks/method_listbymobilenetwork.go index e009ad681b1..9959823a505 100644 --- a/resource-manager/mobilenetwork/2022-11-01/datanetworks/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2022-11-01/datanetworks/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []DataNetwork } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c DataNetworksClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DataNetworksClient) ListByMobileNetwork(ctx context.Context, id MobileNe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/dataNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2022-11-01/mobilenetworks/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2022-11-01/mobilenetworks/method_listbyresourcegroup.go index 1e38354962d..212447bf9c6 100644 --- a/resource-manager/mobilenetwork/2022-11-01/mobilenetworks/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2022-11-01/mobilenetworks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []MobileNetwork } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c MobileNetworksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MobileNetworksClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/mobileNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2022-11-01/mobilenetworks/method_listbysubscription.go b/resource-manager/mobilenetwork/2022-11-01/mobilenetworks/method_listbysubscription.go index 51fa2eab1bd..20b563b4c57 100644 --- a/resource-manager/mobilenetwork/2022-11-01/mobilenetworks/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2022-11-01/mobilenetworks/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []MobileNetwork } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c MobileNetworksClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MobileNetworksClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/mobileNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplanes/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplanes/method_listbyresourcegroup.go index 387f528dc6d..f4abab08084 100644 --- a/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplanes/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplanes/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []PacketCoreControlPlane } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PacketCoreControlPlanesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PacketCoreControlPlanesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/packetCoreControlPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplanes/method_listbysubscription.go b/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplanes/method_listbysubscription.go index 1fb220851a0..101fda93577 100644 --- a/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplanes/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplanes/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PacketCoreControlPlane } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PacketCoreControlPlanesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PacketCoreControlPlanesClient) ListBySubscription(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/packetCoreControlPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplaneversion/method_list.go b/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplaneversion/method_list.go index c09934d8b57..40de8924181 100644 --- a/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplaneversion/method_list.go +++ b/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplaneversion/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PacketCoreControlPlaneVersion } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PacketCoreControlPlaneVersionClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PacketCoreControlPlaneVersionClient) List(ctx context.Context) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions", } diff --git a/resource-manager/mobilenetwork/2022-11-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go b/resource-manager/mobilenetwork/2022-11-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go index a7c066ad52f..0c783e7a074 100644 --- a/resource-manager/mobilenetwork/2022-11-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go +++ b/resource-manager/mobilenetwork/2022-11-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreControlPlaneCompleteResult struct { Items []PacketCoreDataPlane } +type ListByPacketCoreControlPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreControlPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreControlPlane ... func (c PacketCoreDataPlanesClient) ListByPacketCoreControlPlane(ctx context.Context, id PacketCoreControlPlaneId) (result ListByPacketCoreControlPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PacketCoreDataPlanesClient) ListByPacketCoreControlPlane(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreControlPlaneCustomPager{}, Path: fmt.Sprintf("%s/packetCoreDataPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2022-11-01/services/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2022-11-01/services/method_listbymobilenetwork.go index ccf8f7d51eb..20458e8e270 100644 --- a/resource-manager/mobilenetwork/2022-11-01/services/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2022-11-01/services/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Service } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c ServicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetwor http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/services", id.ID()), } diff --git a/resource-manager/mobilenetwork/2022-11-01/simgroups/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2022-11-01/simgroups/method_listbyresourcegroup.go index b825b1d1b2d..5ddbcc23a4c 100644 --- a/resource-manager/mobilenetwork/2022-11-01/simgroups/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2022-11-01/simgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SimGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SIMGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SIMGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/simGroups", id.ID()), } diff --git a/resource-manager/mobilenetwork/2022-11-01/simgroups/method_listbysubscription.go b/resource-manager/mobilenetwork/2022-11-01/simgroups/method_listbysubscription.go index 4c4d6d35638..b591188a52f 100644 --- a/resource-manager/mobilenetwork/2022-11-01/simgroups/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2022-11-01/simgroups/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SimGroup } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SIMGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SIMGroupsClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/simGroups", id.ID()), } diff --git a/resource-manager/mobilenetwork/2022-11-01/simpolicies/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2022-11-01/simpolicies/method_listbymobilenetwork.go index 2c6881d3a57..34965b10b0b 100644 --- a/resource-manager/mobilenetwork/2022-11-01/simpolicies/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2022-11-01/simpolicies/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []SimPolicy } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SIMPoliciesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SIMPoliciesClient) ListByMobileNetwork(ctx context.Context, id MobileNet http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/simPolicies", id.ID()), } diff --git a/resource-manager/mobilenetwork/2022-11-01/sims/method_listbygroup.go b/resource-manager/mobilenetwork/2022-11-01/sims/method_listbygroup.go index 79b18d4a609..325d12a1a78 100644 --- a/resource-manager/mobilenetwork/2022-11-01/sims/method_listbygroup.go +++ b/resource-manager/mobilenetwork/2022-11-01/sims/method_listbygroup.go @@ -23,6 +23,18 @@ type ListByGroupCompleteResult struct { Items []Sim } +type ListByGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGroup ... func (c SIMsClient) ListByGroup(ctx context.Context, id SimGroupId) (result ListByGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SIMsClient) ListByGroup(ctx context.Context, id SimGroupId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGroupCustomPager{}, Path: fmt.Sprintf("%s/sims", id.ID()), } diff --git a/resource-manager/mobilenetwork/2022-11-01/sites/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2022-11-01/sites/method_listbymobilenetwork.go index d24afd113b1..12f313b3ad7 100644 --- a/resource-manager/mobilenetwork/2022-11-01/sites/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2022-11-01/sites/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Site } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SitesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SitesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/sites", id.ID()), } diff --git a/resource-manager/mobilenetwork/2022-11-01/slices/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2022-11-01/slices/method_listbymobilenetwork.go index 44f52b74aba..f74529c37ab 100644 --- a/resource-manager/mobilenetwork/2022-11-01/slices/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2022-11-01/slices/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Slice } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SlicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SlicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/slices", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/attacheddatanetworks/method_listbypacketcoredataplane.go b/resource-manager/mobilenetwork/2023-06-01/attacheddatanetworks/method_listbypacketcoredataplane.go index 35bbb541561..2bfc9af85b2 100644 --- a/resource-manager/mobilenetwork/2023-06-01/attacheddatanetworks/method_listbypacketcoredataplane.go +++ b/resource-manager/mobilenetwork/2023-06-01/attacheddatanetworks/method_listbypacketcoredataplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreDataPlaneCompleteResult struct { Items []AttachedDataNetwork } +type ListByPacketCoreDataPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreDataPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreDataPlane ... func (c AttachedDataNetworksClient) ListByPacketCoreDataPlane(ctx context.Context, id PacketCoreDataPlaneId) (result ListByPacketCoreDataPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AttachedDataNetworksClient) ListByPacketCoreDataPlane(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreDataPlaneCustomPager{}, Path: fmt.Sprintf("%s/attachedDataNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/datanetworks/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2023-06-01/datanetworks/method_listbymobilenetwork.go index e009ad681b1..9959823a505 100644 --- a/resource-manager/mobilenetwork/2023-06-01/datanetworks/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2023-06-01/datanetworks/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []DataNetwork } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c DataNetworksClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DataNetworksClient) ListByMobileNetwork(ctx context.Context, id MobileNe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/dataNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/diagnosticspackages/method_listbypacketcorecontrolplane.go b/resource-manager/mobilenetwork/2023-06-01/diagnosticspackages/method_listbypacketcorecontrolplane.go index 0a6b50e7e91..ac9c94f2038 100644 --- a/resource-manager/mobilenetwork/2023-06-01/diagnosticspackages/method_listbypacketcorecontrolplane.go +++ b/resource-manager/mobilenetwork/2023-06-01/diagnosticspackages/method_listbypacketcorecontrolplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreControlPlaneCompleteResult struct { Items []DiagnosticsPackage } +type ListByPacketCoreControlPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreControlPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreControlPlane ... func (c DiagnosticsPackagesClient) ListByPacketCoreControlPlane(ctx context.Context, id PacketCoreControlPlaneId) (result ListByPacketCoreControlPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsPackagesClient) ListByPacketCoreControlPlane(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreControlPlaneCustomPager{}, Path: fmt.Sprintf("%s/diagnosticsPackages", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/mobilenetworks/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2023-06-01/mobilenetworks/method_listbyresourcegroup.go index 1e38354962d..212447bf9c6 100644 --- a/resource-manager/mobilenetwork/2023-06-01/mobilenetworks/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2023-06-01/mobilenetworks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []MobileNetwork } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c MobileNetworksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MobileNetworksClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/mobileNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/mobilenetworks/method_listbysubscription.go b/resource-manager/mobilenetwork/2023-06-01/mobilenetworks/method_listbysubscription.go index 51fa2eab1bd..20b563b4c57 100644 --- a/resource-manager/mobilenetwork/2023-06-01/mobilenetworks/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2023-06-01/mobilenetworks/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []MobileNetwork } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c MobileNetworksClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MobileNetworksClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/mobileNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/packetcaptures/method_listbypacketcorecontrolplane.go b/resource-manager/mobilenetwork/2023-06-01/packetcaptures/method_listbypacketcorecontrolplane.go index 7eddc6baad3..7b24cfe76a0 100644 --- a/resource-manager/mobilenetwork/2023-06-01/packetcaptures/method_listbypacketcorecontrolplane.go +++ b/resource-manager/mobilenetwork/2023-06-01/packetcaptures/method_listbypacketcorecontrolplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreControlPlaneCompleteResult struct { Items []PacketCapture } +type ListByPacketCoreControlPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreControlPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreControlPlane ... func (c PacketCapturesClient) ListByPacketCoreControlPlane(ctx context.Context, id PacketCoreControlPlaneId) (result ListByPacketCoreControlPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PacketCapturesClient) ListByPacketCoreControlPlane(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreControlPlaneCustomPager{}, Path: fmt.Sprintf("%s/packetCaptures", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplanes/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplanes/method_listbyresourcegroup.go index 387f528dc6d..f4abab08084 100644 --- a/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplanes/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplanes/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []PacketCoreControlPlane } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PacketCoreControlPlanesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PacketCoreControlPlanesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/packetCoreControlPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplanes/method_listbysubscription.go b/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplanes/method_listbysubscription.go index 1fb220851a0..101fda93577 100644 --- a/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplanes/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplanes/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PacketCoreControlPlane } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PacketCoreControlPlanesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PacketCoreControlPlanesClient) ListBySubscription(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/packetCoreControlPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplaneversion/method_list.go b/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplaneversion/method_list.go index c09934d8b57..40de8924181 100644 --- a/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplaneversion/method_list.go +++ b/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplaneversion/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PacketCoreControlPlaneVersion } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PacketCoreControlPlaneVersionClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PacketCoreControlPlaneVersionClient) List(ctx context.Context) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions", } diff --git a/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplaneversion/method_listbysubscription.go b/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplaneversion/method_listbysubscription.go index 62da1835c7b..78c0bf9bbb5 100644 --- a/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplaneversion/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2023-06-01/packetcorecontrolplaneversion/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PacketCoreControlPlaneVersion } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PacketCoreControlPlaneVersionClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PacketCoreControlPlaneVersionClient) ListBySubscription(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go b/resource-manager/mobilenetwork/2023-06-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go index a7c066ad52f..0c783e7a074 100644 --- a/resource-manager/mobilenetwork/2023-06-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go +++ b/resource-manager/mobilenetwork/2023-06-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreControlPlaneCompleteResult struct { Items []PacketCoreDataPlane } +type ListByPacketCoreControlPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreControlPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreControlPlane ... func (c PacketCoreDataPlanesClient) ListByPacketCoreControlPlane(ctx context.Context, id PacketCoreControlPlaneId) (result ListByPacketCoreControlPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PacketCoreDataPlanesClient) ListByPacketCoreControlPlane(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreControlPlaneCustomPager{}, Path: fmt.Sprintf("%s/packetCoreDataPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/services/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2023-06-01/services/method_listbymobilenetwork.go index ccf8f7d51eb..20458e8e270 100644 --- a/resource-manager/mobilenetwork/2023-06-01/services/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2023-06-01/services/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Service } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c ServicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetwor http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/services", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/simgroups/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2023-06-01/simgroups/method_listbyresourcegroup.go index b825b1d1b2d..5ddbcc23a4c 100644 --- a/resource-manager/mobilenetwork/2023-06-01/simgroups/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2023-06-01/simgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SimGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SIMGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SIMGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/simGroups", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/simgroups/method_listbysubscription.go b/resource-manager/mobilenetwork/2023-06-01/simgroups/method_listbysubscription.go index 4c4d6d35638..b591188a52f 100644 --- a/resource-manager/mobilenetwork/2023-06-01/simgroups/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2023-06-01/simgroups/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SimGroup } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SIMGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SIMGroupsClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/simGroups", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/simpolicies/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2023-06-01/simpolicies/method_listbymobilenetwork.go index 2c6881d3a57..34965b10b0b 100644 --- a/resource-manager/mobilenetwork/2023-06-01/simpolicies/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2023-06-01/simpolicies/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []SimPolicy } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SIMPoliciesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SIMPoliciesClient) ListByMobileNetwork(ctx context.Context, id MobileNet http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/simPolicies", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/sims/method_listbygroup.go b/resource-manager/mobilenetwork/2023-06-01/sims/method_listbygroup.go index 79b18d4a609..325d12a1a78 100644 --- a/resource-manager/mobilenetwork/2023-06-01/sims/method_listbygroup.go +++ b/resource-manager/mobilenetwork/2023-06-01/sims/method_listbygroup.go @@ -23,6 +23,18 @@ type ListByGroupCompleteResult struct { Items []Sim } +type ListByGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGroup ... func (c SIMsClient) ListByGroup(ctx context.Context, id SimGroupId) (result ListByGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SIMsClient) ListByGroup(ctx context.Context, id SimGroupId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGroupCustomPager{}, Path: fmt.Sprintf("%s/sims", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/sites/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2023-06-01/sites/method_listbymobilenetwork.go index d24afd113b1..12f313b3ad7 100644 --- a/resource-manager/mobilenetwork/2023-06-01/sites/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2023-06-01/sites/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Site } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SitesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SitesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/sites", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-06-01/slices/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2023-06-01/slices/method_listbymobilenetwork.go index 44f52b74aba..f74529c37ab 100644 --- a/resource-manager/mobilenetwork/2023-06-01/slices/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2023-06-01/slices/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Slice } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SlicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SlicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/slices", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/attacheddatanetworks/method_listbypacketcoredataplane.go b/resource-manager/mobilenetwork/2023-09-01/attacheddatanetworks/method_listbypacketcoredataplane.go index 35bbb541561..2bfc9af85b2 100644 --- a/resource-manager/mobilenetwork/2023-09-01/attacheddatanetworks/method_listbypacketcoredataplane.go +++ b/resource-manager/mobilenetwork/2023-09-01/attacheddatanetworks/method_listbypacketcoredataplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreDataPlaneCompleteResult struct { Items []AttachedDataNetwork } +type ListByPacketCoreDataPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreDataPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreDataPlane ... func (c AttachedDataNetworksClient) ListByPacketCoreDataPlane(ctx context.Context, id PacketCoreDataPlaneId) (result ListByPacketCoreDataPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AttachedDataNetworksClient) ListByPacketCoreDataPlane(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreDataPlaneCustomPager{}, Path: fmt.Sprintf("%s/attachedDataNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/datanetworks/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2023-09-01/datanetworks/method_listbymobilenetwork.go index e009ad681b1..9959823a505 100644 --- a/resource-manager/mobilenetwork/2023-09-01/datanetworks/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2023-09-01/datanetworks/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []DataNetwork } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c DataNetworksClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DataNetworksClient) ListByMobileNetwork(ctx context.Context, id MobileNe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/dataNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/diagnosticspackages/method_listbypacketcorecontrolplane.go b/resource-manager/mobilenetwork/2023-09-01/diagnosticspackages/method_listbypacketcorecontrolplane.go index 0a6b50e7e91..ac9c94f2038 100644 --- a/resource-manager/mobilenetwork/2023-09-01/diagnosticspackages/method_listbypacketcorecontrolplane.go +++ b/resource-manager/mobilenetwork/2023-09-01/diagnosticspackages/method_listbypacketcorecontrolplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreControlPlaneCompleteResult struct { Items []DiagnosticsPackage } +type ListByPacketCoreControlPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreControlPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreControlPlane ... func (c DiagnosticsPackagesClient) ListByPacketCoreControlPlane(ctx context.Context, id PacketCoreControlPlaneId) (result ListByPacketCoreControlPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsPackagesClient) ListByPacketCoreControlPlane(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreControlPlaneCustomPager{}, Path: fmt.Sprintf("%s/diagnosticsPackages", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/mobilenetworks/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2023-09-01/mobilenetworks/method_listbyresourcegroup.go index 1e38354962d..212447bf9c6 100644 --- a/resource-manager/mobilenetwork/2023-09-01/mobilenetworks/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2023-09-01/mobilenetworks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []MobileNetwork } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c MobileNetworksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MobileNetworksClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/mobileNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/mobilenetworks/method_listbysubscription.go b/resource-manager/mobilenetwork/2023-09-01/mobilenetworks/method_listbysubscription.go index 51fa2eab1bd..20b563b4c57 100644 --- a/resource-manager/mobilenetwork/2023-09-01/mobilenetworks/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2023-09-01/mobilenetworks/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []MobileNetwork } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c MobileNetworksClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MobileNetworksClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/mobileNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/packetcaptures/method_listbypacketcorecontrolplane.go b/resource-manager/mobilenetwork/2023-09-01/packetcaptures/method_listbypacketcorecontrolplane.go index 7eddc6baad3..7b24cfe76a0 100644 --- a/resource-manager/mobilenetwork/2023-09-01/packetcaptures/method_listbypacketcorecontrolplane.go +++ b/resource-manager/mobilenetwork/2023-09-01/packetcaptures/method_listbypacketcorecontrolplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreControlPlaneCompleteResult struct { Items []PacketCapture } +type ListByPacketCoreControlPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreControlPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreControlPlane ... func (c PacketCapturesClient) ListByPacketCoreControlPlane(ctx context.Context, id PacketCoreControlPlaneId) (result ListByPacketCoreControlPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PacketCapturesClient) ListByPacketCoreControlPlane(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreControlPlaneCustomPager{}, Path: fmt.Sprintf("%s/packetCaptures", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplanes/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplanes/method_listbyresourcegroup.go index 387f528dc6d..f4abab08084 100644 --- a/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplanes/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplanes/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []PacketCoreControlPlane } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PacketCoreControlPlanesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PacketCoreControlPlanesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/packetCoreControlPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplanes/method_listbysubscription.go b/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplanes/method_listbysubscription.go index 1fb220851a0..101fda93577 100644 --- a/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplanes/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplanes/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PacketCoreControlPlane } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PacketCoreControlPlanesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PacketCoreControlPlanesClient) ListBySubscription(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/packetCoreControlPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplaneversion/method_list.go b/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplaneversion/method_list.go index c09934d8b57..40de8924181 100644 --- a/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplaneversion/method_list.go +++ b/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplaneversion/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PacketCoreControlPlaneVersion } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PacketCoreControlPlaneVersionClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PacketCoreControlPlaneVersionClient) List(ctx context.Context) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions", } diff --git a/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplaneversion/method_listbysubscription.go b/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplaneversion/method_listbysubscription.go index 62da1835c7b..78c0bf9bbb5 100644 --- a/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplaneversion/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2023-09-01/packetcorecontrolplaneversion/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PacketCoreControlPlaneVersion } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PacketCoreControlPlaneVersionClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PacketCoreControlPlaneVersionClient) ListBySubscription(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go b/resource-manager/mobilenetwork/2023-09-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go index a7c066ad52f..0c783e7a074 100644 --- a/resource-manager/mobilenetwork/2023-09-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go +++ b/resource-manager/mobilenetwork/2023-09-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreControlPlaneCompleteResult struct { Items []PacketCoreDataPlane } +type ListByPacketCoreControlPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreControlPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreControlPlane ... func (c PacketCoreDataPlanesClient) ListByPacketCoreControlPlane(ctx context.Context, id PacketCoreControlPlaneId) (result ListByPacketCoreControlPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PacketCoreDataPlanesClient) ListByPacketCoreControlPlane(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreControlPlaneCustomPager{}, Path: fmt.Sprintf("%s/packetCoreDataPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/services/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2023-09-01/services/method_listbymobilenetwork.go index ccf8f7d51eb..20458e8e270 100644 --- a/resource-manager/mobilenetwork/2023-09-01/services/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2023-09-01/services/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Service } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c ServicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetwor http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/services", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/simgroups/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2023-09-01/simgroups/method_listbyresourcegroup.go index b825b1d1b2d..5ddbcc23a4c 100644 --- a/resource-manager/mobilenetwork/2023-09-01/simgroups/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2023-09-01/simgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SimGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SIMGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SIMGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/simGroups", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/simgroups/method_listbysubscription.go b/resource-manager/mobilenetwork/2023-09-01/simgroups/method_listbysubscription.go index 4c4d6d35638..b591188a52f 100644 --- a/resource-manager/mobilenetwork/2023-09-01/simgroups/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2023-09-01/simgroups/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SimGroup } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SIMGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SIMGroupsClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/simGroups", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/simpolicies/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2023-09-01/simpolicies/method_listbymobilenetwork.go index 2c6881d3a57..34965b10b0b 100644 --- a/resource-manager/mobilenetwork/2023-09-01/simpolicies/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2023-09-01/simpolicies/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []SimPolicy } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SIMPoliciesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SIMPoliciesClient) ListByMobileNetwork(ctx context.Context, id MobileNet http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/simPolicies", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/sims/method_listbygroup.go b/resource-manager/mobilenetwork/2023-09-01/sims/method_listbygroup.go index 79b18d4a609..325d12a1a78 100644 --- a/resource-manager/mobilenetwork/2023-09-01/sims/method_listbygroup.go +++ b/resource-manager/mobilenetwork/2023-09-01/sims/method_listbygroup.go @@ -23,6 +23,18 @@ type ListByGroupCompleteResult struct { Items []Sim } +type ListByGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGroup ... func (c SIMsClient) ListByGroup(ctx context.Context, id SimGroupId) (result ListByGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SIMsClient) ListByGroup(ctx context.Context, id SimGroupId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGroupCustomPager{}, Path: fmt.Sprintf("%s/sims", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/sites/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2023-09-01/sites/method_listbymobilenetwork.go index d24afd113b1..12f313b3ad7 100644 --- a/resource-manager/mobilenetwork/2023-09-01/sites/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2023-09-01/sites/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Site } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SitesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SitesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/sites", id.ID()), } diff --git a/resource-manager/mobilenetwork/2023-09-01/slices/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2023-09-01/slices/method_listbymobilenetwork.go index 44f52b74aba..f74529c37ab 100644 --- a/resource-manager/mobilenetwork/2023-09-01/slices/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2023-09-01/slices/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Slice } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SlicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SlicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/slices", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/attacheddatanetworks/method_listbypacketcoredataplane.go b/resource-manager/mobilenetwork/2024-02-01/attacheddatanetworks/method_listbypacketcoredataplane.go index 35bbb541561..2bfc9af85b2 100644 --- a/resource-manager/mobilenetwork/2024-02-01/attacheddatanetworks/method_listbypacketcoredataplane.go +++ b/resource-manager/mobilenetwork/2024-02-01/attacheddatanetworks/method_listbypacketcoredataplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreDataPlaneCompleteResult struct { Items []AttachedDataNetwork } +type ListByPacketCoreDataPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreDataPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreDataPlane ... func (c AttachedDataNetworksClient) ListByPacketCoreDataPlane(ctx context.Context, id PacketCoreDataPlaneId) (result ListByPacketCoreDataPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AttachedDataNetworksClient) ListByPacketCoreDataPlane(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreDataPlaneCustomPager{}, Path: fmt.Sprintf("%s/attachedDataNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/datanetworks/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2024-02-01/datanetworks/method_listbymobilenetwork.go index e009ad681b1..9959823a505 100644 --- a/resource-manager/mobilenetwork/2024-02-01/datanetworks/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2024-02-01/datanetworks/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []DataNetwork } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c DataNetworksClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DataNetworksClient) ListByMobileNetwork(ctx context.Context, id MobileNe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/dataNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/diagnosticspackages/method_listbypacketcorecontrolplane.go b/resource-manager/mobilenetwork/2024-02-01/diagnosticspackages/method_listbypacketcorecontrolplane.go index 0a6b50e7e91..ac9c94f2038 100644 --- a/resource-manager/mobilenetwork/2024-02-01/diagnosticspackages/method_listbypacketcorecontrolplane.go +++ b/resource-manager/mobilenetwork/2024-02-01/diagnosticspackages/method_listbypacketcorecontrolplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreControlPlaneCompleteResult struct { Items []DiagnosticsPackage } +type ListByPacketCoreControlPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreControlPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreControlPlane ... func (c DiagnosticsPackagesClient) ListByPacketCoreControlPlane(ctx context.Context, id PacketCoreControlPlaneId) (result ListByPacketCoreControlPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsPackagesClient) ListByPacketCoreControlPlane(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreControlPlaneCustomPager{}, Path: fmt.Sprintf("%s/diagnosticsPackages", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/mobilenetworks/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2024-02-01/mobilenetworks/method_listbyresourcegroup.go index 1e38354962d..212447bf9c6 100644 --- a/resource-manager/mobilenetwork/2024-02-01/mobilenetworks/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2024-02-01/mobilenetworks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []MobileNetwork } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c MobileNetworksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MobileNetworksClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/mobileNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/mobilenetworks/method_listbysubscription.go b/resource-manager/mobilenetwork/2024-02-01/mobilenetworks/method_listbysubscription.go index 51fa2eab1bd..20b563b4c57 100644 --- a/resource-manager/mobilenetwork/2024-02-01/mobilenetworks/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2024-02-01/mobilenetworks/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []MobileNetwork } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c MobileNetworksClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MobileNetworksClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/mobileNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/packetcaptures/method_listbypacketcorecontrolplane.go b/resource-manager/mobilenetwork/2024-02-01/packetcaptures/method_listbypacketcorecontrolplane.go index 7eddc6baad3..7b24cfe76a0 100644 --- a/resource-manager/mobilenetwork/2024-02-01/packetcaptures/method_listbypacketcorecontrolplane.go +++ b/resource-manager/mobilenetwork/2024-02-01/packetcaptures/method_listbypacketcorecontrolplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreControlPlaneCompleteResult struct { Items []PacketCapture } +type ListByPacketCoreControlPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreControlPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreControlPlane ... func (c PacketCapturesClient) ListByPacketCoreControlPlane(ctx context.Context, id PacketCoreControlPlaneId) (result ListByPacketCoreControlPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PacketCapturesClient) ListByPacketCoreControlPlane(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreControlPlaneCustomPager{}, Path: fmt.Sprintf("%s/packetCaptures", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplanes/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplanes/method_listbyresourcegroup.go index 387f528dc6d..f4abab08084 100644 --- a/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplanes/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplanes/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []PacketCoreControlPlane } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PacketCoreControlPlanesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PacketCoreControlPlanesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/packetCoreControlPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplanes/method_listbysubscription.go b/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplanes/method_listbysubscription.go index 1fb220851a0..101fda93577 100644 --- a/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplanes/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplanes/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PacketCoreControlPlane } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PacketCoreControlPlanesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PacketCoreControlPlanesClient) ListBySubscription(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/packetCoreControlPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplaneversion/method_list.go b/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplaneversion/method_list.go index c09934d8b57..40de8924181 100644 --- a/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplaneversion/method_list.go +++ b/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplaneversion/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PacketCoreControlPlaneVersion } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PacketCoreControlPlaneVersionClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PacketCoreControlPlaneVersionClient) List(ctx context.Context) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions", } diff --git a/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplaneversion/method_listbysubscription.go b/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplaneversion/method_listbysubscription.go index 62da1835c7b..78c0bf9bbb5 100644 --- a/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplaneversion/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplaneversion/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PacketCoreControlPlaneVersion } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PacketCoreControlPlaneVersionClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PacketCoreControlPlaneVersionClient) ListBySubscription(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go b/resource-manager/mobilenetwork/2024-02-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go index a7c066ad52f..0c783e7a074 100644 --- a/resource-manager/mobilenetwork/2024-02-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go +++ b/resource-manager/mobilenetwork/2024-02-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreControlPlaneCompleteResult struct { Items []PacketCoreDataPlane } +type ListByPacketCoreControlPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreControlPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreControlPlane ... func (c PacketCoreDataPlanesClient) ListByPacketCoreControlPlane(ctx context.Context, id PacketCoreControlPlaneId) (result ListByPacketCoreControlPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PacketCoreDataPlanesClient) ListByPacketCoreControlPlane(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreControlPlaneCustomPager{}, Path: fmt.Sprintf("%s/packetCoreDataPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/services/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2024-02-01/services/method_listbymobilenetwork.go index ccf8f7d51eb..20458e8e270 100644 --- a/resource-manager/mobilenetwork/2024-02-01/services/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2024-02-01/services/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Service } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c ServicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetwor http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/services", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/simgroups/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2024-02-01/simgroups/method_listbyresourcegroup.go index b825b1d1b2d..5ddbcc23a4c 100644 --- a/resource-manager/mobilenetwork/2024-02-01/simgroups/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2024-02-01/simgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SimGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SIMGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SIMGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/simGroups", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/simgroups/method_listbysubscription.go b/resource-manager/mobilenetwork/2024-02-01/simgroups/method_listbysubscription.go index 4c4d6d35638..b591188a52f 100644 --- a/resource-manager/mobilenetwork/2024-02-01/simgroups/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2024-02-01/simgroups/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SimGroup } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SIMGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SIMGroupsClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/simGroups", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/simpolicies/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2024-02-01/simpolicies/method_listbymobilenetwork.go index 2c6881d3a57..34965b10b0b 100644 --- a/resource-manager/mobilenetwork/2024-02-01/simpolicies/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2024-02-01/simpolicies/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []SimPolicy } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SIMPoliciesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SIMPoliciesClient) ListByMobileNetwork(ctx context.Context, id MobileNet http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/simPolicies", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/sims/method_listbygroup.go b/resource-manager/mobilenetwork/2024-02-01/sims/method_listbygroup.go index 79b18d4a609..325d12a1a78 100644 --- a/resource-manager/mobilenetwork/2024-02-01/sims/method_listbygroup.go +++ b/resource-manager/mobilenetwork/2024-02-01/sims/method_listbygroup.go @@ -23,6 +23,18 @@ type ListByGroupCompleteResult struct { Items []Sim } +type ListByGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGroup ... func (c SIMsClient) ListByGroup(ctx context.Context, id SimGroupId) (result ListByGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SIMsClient) ListByGroup(ctx context.Context, id SimGroupId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGroupCustomPager{}, Path: fmt.Sprintf("%s/sims", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/sites/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2024-02-01/sites/method_listbymobilenetwork.go index d24afd113b1..12f313b3ad7 100644 --- a/resource-manager/mobilenetwork/2024-02-01/sites/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2024-02-01/sites/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Site } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SitesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SitesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/sites", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/slices/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2024-02-01/slices/method_listbymobilenetwork.go index 44f52b74aba..f74529c37ab 100644 --- a/resource-manager/mobilenetwork/2024-02-01/slices/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2024-02-01/slices/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Slice } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SlicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SlicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/slices", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-02-01/ueinformationlist/method_ueinformationlist.go b/resource-manager/mobilenetwork/2024-02-01/ueinformationlist/method_ueinformationlist.go index c9bb6948336..e30181f6afa 100644 --- a/resource-manager/mobilenetwork/2024-02-01/ueinformationlist/method_ueinformationlist.go +++ b/resource-manager/mobilenetwork/2024-02-01/ueinformationlist/method_ueinformationlist.go @@ -23,6 +23,18 @@ type UeInformationListCompleteResult struct { Items []UeInfo } +type UeInformationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UeInformationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UeInformationList ... func (c UeInformationListClient) UeInformationList(ctx context.Context, id PacketCoreControlPlaneId) (result UeInformationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UeInformationListClient) UeInformationList(ctx context.Context, id Packe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UeInformationListCustomPager{}, Path: fmt.Sprintf("%s/ues", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/attacheddatanetworks/method_listbypacketcoredataplane.go b/resource-manager/mobilenetwork/2024-04-01/attacheddatanetworks/method_listbypacketcoredataplane.go index 35bbb541561..2bfc9af85b2 100644 --- a/resource-manager/mobilenetwork/2024-04-01/attacheddatanetworks/method_listbypacketcoredataplane.go +++ b/resource-manager/mobilenetwork/2024-04-01/attacheddatanetworks/method_listbypacketcoredataplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreDataPlaneCompleteResult struct { Items []AttachedDataNetwork } +type ListByPacketCoreDataPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreDataPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreDataPlane ... func (c AttachedDataNetworksClient) ListByPacketCoreDataPlane(ctx context.Context, id PacketCoreDataPlaneId) (result ListByPacketCoreDataPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AttachedDataNetworksClient) ListByPacketCoreDataPlane(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreDataPlaneCustomPager{}, Path: fmt.Sprintf("%s/attachedDataNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/datanetworks/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2024-04-01/datanetworks/method_listbymobilenetwork.go index e009ad681b1..9959823a505 100644 --- a/resource-manager/mobilenetwork/2024-04-01/datanetworks/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2024-04-01/datanetworks/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []DataNetwork } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c DataNetworksClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DataNetworksClient) ListByMobileNetwork(ctx context.Context, id MobileNe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/dataNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/diagnosticspackages/method_listbypacketcorecontrolplane.go b/resource-manager/mobilenetwork/2024-04-01/diagnosticspackages/method_listbypacketcorecontrolplane.go index 0a6b50e7e91..ac9c94f2038 100644 --- a/resource-manager/mobilenetwork/2024-04-01/diagnosticspackages/method_listbypacketcorecontrolplane.go +++ b/resource-manager/mobilenetwork/2024-04-01/diagnosticspackages/method_listbypacketcorecontrolplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreControlPlaneCompleteResult struct { Items []DiagnosticsPackage } +type ListByPacketCoreControlPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreControlPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreControlPlane ... func (c DiagnosticsPackagesClient) ListByPacketCoreControlPlane(ctx context.Context, id PacketCoreControlPlaneId) (result ListByPacketCoreControlPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsPackagesClient) ListByPacketCoreControlPlane(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreControlPlaneCustomPager{}, Path: fmt.Sprintf("%s/diagnosticsPackages", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/mobilenetworks/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2024-04-01/mobilenetworks/method_listbyresourcegroup.go index 1e38354962d..212447bf9c6 100644 --- a/resource-manager/mobilenetwork/2024-04-01/mobilenetworks/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2024-04-01/mobilenetworks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []MobileNetwork } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c MobileNetworksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MobileNetworksClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/mobileNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/mobilenetworks/method_listbysubscription.go b/resource-manager/mobilenetwork/2024-04-01/mobilenetworks/method_listbysubscription.go index 51fa2eab1bd..20b563b4c57 100644 --- a/resource-manager/mobilenetwork/2024-04-01/mobilenetworks/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2024-04-01/mobilenetworks/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []MobileNetwork } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c MobileNetworksClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MobileNetworksClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/mobileNetworks", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/mobilenetworks/method_listsimgroups.go b/resource-manager/mobilenetwork/2024-04-01/mobilenetworks/method_listsimgroups.go index 457bed9d735..fcd3f932511 100644 --- a/resource-manager/mobilenetwork/2024-04-01/mobilenetworks/method_listsimgroups.go +++ b/resource-manager/mobilenetwork/2024-04-01/mobilenetworks/method_listsimgroups.go @@ -23,6 +23,18 @@ type ListSimGroupsCompleteResult struct { Items []SimGroup } +type ListSimGroupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSimGroupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSimGroups ... func (c MobileNetworksClient) ListSimGroups(ctx context.Context, id MobileNetworkId) (result ListSimGroupsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MobileNetworksClient) ListSimGroups(ctx context.Context, id MobileNetwor http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSimGroupsCustomPager{}, Path: fmt.Sprintf("%s/listSimGroups", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/packetcaptures/method_listbypacketcorecontrolplane.go b/resource-manager/mobilenetwork/2024-04-01/packetcaptures/method_listbypacketcorecontrolplane.go index 7eddc6baad3..7b24cfe76a0 100644 --- a/resource-manager/mobilenetwork/2024-04-01/packetcaptures/method_listbypacketcorecontrolplane.go +++ b/resource-manager/mobilenetwork/2024-04-01/packetcaptures/method_listbypacketcorecontrolplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreControlPlaneCompleteResult struct { Items []PacketCapture } +type ListByPacketCoreControlPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreControlPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreControlPlane ... func (c PacketCapturesClient) ListByPacketCoreControlPlane(ctx context.Context, id PacketCoreControlPlaneId) (result ListByPacketCoreControlPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PacketCapturesClient) ListByPacketCoreControlPlane(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreControlPlaneCustomPager{}, Path: fmt.Sprintf("%s/packetCaptures", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplanes/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplanes/method_listbyresourcegroup.go index 387f528dc6d..f4abab08084 100644 --- a/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplanes/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplanes/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []PacketCoreControlPlane } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PacketCoreControlPlanesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PacketCoreControlPlanesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/packetCoreControlPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplanes/method_listbysubscription.go b/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplanes/method_listbysubscription.go index 1fb220851a0..101fda93577 100644 --- a/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplanes/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplanes/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PacketCoreControlPlane } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PacketCoreControlPlanesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PacketCoreControlPlanesClient) ListBySubscription(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/packetCoreControlPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplaneversion/method_list.go b/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplaneversion/method_list.go index c09934d8b57..40de8924181 100644 --- a/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplaneversion/method_list.go +++ b/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplaneversion/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PacketCoreControlPlaneVersion } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PacketCoreControlPlaneVersionClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PacketCoreControlPlaneVersionClient) List(ctx context.Context) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions", } diff --git a/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplaneversion/method_listbysubscription.go b/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplaneversion/method_listbysubscription.go index 62da1835c7b..78c0bf9bbb5 100644 --- a/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplaneversion/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2024-04-01/packetcorecontrolplaneversion/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PacketCoreControlPlaneVersion } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PacketCoreControlPlaneVersionClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PacketCoreControlPlaneVersionClient) ListBySubscription(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go b/resource-manager/mobilenetwork/2024-04-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go index a7c066ad52f..0c783e7a074 100644 --- a/resource-manager/mobilenetwork/2024-04-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go +++ b/resource-manager/mobilenetwork/2024-04-01/packetcoredataplanes/method_listbypacketcorecontrolplane.go @@ -23,6 +23,18 @@ type ListByPacketCoreControlPlaneCompleteResult struct { Items []PacketCoreDataPlane } +type ListByPacketCoreControlPlaneCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPacketCoreControlPlaneCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPacketCoreControlPlane ... func (c PacketCoreDataPlanesClient) ListByPacketCoreControlPlane(ctx context.Context, id PacketCoreControlPlaneId) (result ListByPacketCoreControlPlaneOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PacketCoreDataPlanesClient) ListByPacketCoreControlPlane(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPacketCoreControlPlaneCustomPager{}, Path: fmt.Sprintf("%s/packetCoreDataPlanes", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/routinginfo/method_list.go b/resource-manager/mobilenetwork/2024-04-01/routinginfo/method_list.go index 7c4444c974a..d4b687d3465 100644 --- a/resource-manager/mobilenetwork/2024-04-01/routinginfo/method_list.go +++ b/resource-manager/mobilenetwork/2024-04-01/routinginfo/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RoutingInfoModel } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RoutingInfoClient) List(ctx context.Context, id PacketCoreControlPlaneId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RoutingInfoClient) List(ctx context.Context, id PacketCoreControlPlaneId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/routingInfo", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/services/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2024-04-01/services/method_listbymobilenetwork.go index ccf8f7d51eb..20458e8e270 100644 --- a/resource-manager/mobilenetwork/2024-04-01/services/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2024-04-01/services/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Service } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c ServicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetwor http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/services", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/simgroups/method_listbyresourcegroup.go b/resource-manager/mobilenetwork/2024-04-01/simgroups/method_listbyresourcegroup.go index b825b1d1b2d..5ddbcc23a4c 100644 --- a/resource-manager/mobilenetwork/2024-04-01/simgroups/method_listbyresourcegroup.go +++ b/resource-manager/mobilenetwork/2024-04-01/simgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SimGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SIMGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SIMGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/simGroups", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/simgroups/method_listbysubscription.go b/resource-manager/mobilenetwork/2024-04-01/simgroups/method_listbysubscription.go index 4c4d6d35638..b591188a52f 100644 --- a/resource-manager/mobilenetwork/2024-04-01/simgroups/method_listbysubscription.go +++ b/resource-manager/mobilenetwork/2024-04-01/simgroups/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SimGroup } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SIMGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SIMGroupsClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.MobileNetwork/simGroups", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/simpolicies/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2024-04-01/simpolicies/method_listbymobilenetwork.go index 2c6881d3a57..34965b10b0b 100644 --- a/resource-manager/mobilenetwork/2024-04-01/simpolicies/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2024-04-01/simpolicies/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []SimPolicy } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SIMPoliciesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SIMPoliciesClient) ListByMobileNetwork(ctx context.Context, id MobileNet http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/simPolicies", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/sims/method_listbygroup.go b/resource-manager/mobilenetwork/2024-04-01/sims/method_listbygroup.go index 79b18d4a609..325d12a1a78 100644 --- a/resource-manager/mobilenetwork/2024-04-01/sims/method_listbygroup.go +++ b/resource-manager/mobilenetwork/2024-04-01/sims/method_listbygroup.go @@ -23,6 +23,18 @@ type ListByGroupCompleteResult struct { Items []Sim } +type ListByGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGroup ... func (c SIMsClient) ListByGroup(ctx context.Context, id SimGroupId) (result ListByGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SIMsClient) ListByGroup(ctx context.Context, id SimGroupId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGroupCustomPager{}, Path: fmt.Sprintf("%s/sims", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/sites/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2024-04-01/sites/method_listbymobilenetwork.go index d24afd113b1..12f313b3ad7 100644 --- a/resource-manager/mobilenetwork/2024-04-01/sites/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2024-04-01/sites/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Site } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SitesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SitesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/sites", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/slices/method_listbymobilenetwork.go b/resource-manager/mobilenetwork/2024-04-01/slices/method_listbymobilenetwork.go index 44f52b74aba..f74529c37ab 100644 --- a/resource-manager/mobilenetwork/2024-04-01/slices/method_listbymobilenetwork.go +++ b/resource-manager/mobilenetwork/2024-04-01/slices/method_listbymobilenetwork.go @@ -23,6 +23,18 @@ type ListByMobileNetworkCompleteResult struct { Items []Slice } +type ListByMobileNetworkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByMobileNetworkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByMobileNetwork ... func (c SlicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkId) (result ListByMobileNetworkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SlicesClient) ListByMobileNetwork(ctx context.Context, id MobileNetworkI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByMobileNetworkCustomPager{}, Path: fmt.Sprintf("%s/slices", id.ID()), } diff --git a/resource-manager/mobilenetwork/2024-04-01/ueinformationlist/method_ueinformationlist.go b/resource-manager/mobilenetwork/2024-04-01/ueinformationlist/method_ueinformationlist.go index c9bb6948336..e30181f6afa 100644 --- a/resource-manager/mobilenetwork/2024-04-01/ueinformationlist/method_ueinformationlist.go +++ b/resource-manager/mobilenetwork/2024-04-01/ueinformationlist/method_ueinformationlist.go @@ -23,6 +23,18 @@ type UeInformationListCompleteResult struct { Items []UeInfo } +type UeInformationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UeInformationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UeInformationList ... func (c UeInformationListClient) UeInformationList(ctx context.Context, id PacketCoreControlPlaneId) (result UeInformationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UeInformationListClient) UeInformationList(ctx context.Context, id Packe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UeInformationListCustomPager{}, Path: fmt.Sprintf("%s/ues", id.ID()), } diff --git a/resource-manager/mysql/2017-12-01/serversecurityalertpolicies/method_listbyserver.go b/resource-manager/mysql/2017-12-01/serversecurityalertpolicies/method_listbyserver.go index 3ecfe89a63c..f56e0ff6eb3 100644 --- a/resource-manager/mysql/2017-12-01/serversecurityalertpolicies/method_listbyserver.go +++ b/resource-manager/mysql/2017-12-01/serversecurityalertpolicies/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []ServerSecurityAlertPolicy } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/securityAlertPolicies", id.ID()), } diff --git a/resource-manager/mysql/2017-12-01/virtualnetworkrules/method_listbyserver.go b/resource-manager/mysql/2017-12-01/virtualnetworkrules/method_listbyserver.go index c965d49ec55..d851635e6b8 100644 --- a/resource-manager/mysql/2017-12-01/virtualnetworkrules/method_listbyserver.go +++ b/resource-manager/mysql/2017-12-01/virtualnetworkrules/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []VirtualNetworkRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c VirtualNetworkRulesClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualNetworkRulesClient) ListByServer(ctx context.Context, id ServerId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkRules", id.ID()), } diff --git a/resource-manager/mysql/2020-01-01/serverkeys/method_list.go b/resource-manager/mysql/2020-01-01/serverkeys/method_list.go index 4bc1fe03033..3ddbe301605 100644 --- a/resource-manager/mysql/2020-01-01/serverkeys/method_list.go +++ b/resource-manager/mysql/2020-01-01/serverkeys/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ServerKey } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServerKeysClient) List(ctx context.Context, id ServerId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServerKeysClient) List(ctx context.Context, id ServerId) (result ListOpe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/keys", id.ID()), } diff --git a/resource-manager/mysql/2021-05-01/backups/method_listbyserver.go b/resource-manager/mysql/2021-05-01/backups/method_listbyserver.go index 3b572dd6305..b9beeb1342e 100644 --- a/resource-manager/mysql/2021-05-01/backups/method_listbyserver.go +++ b/resource-manager/mysql/2021-05-01/backups/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []ServerBackup } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c BackupsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupsClient) ListByServer(ctx context.Context, id FlexibleServerId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/backups", id.ID()), } diff --git a/resource-manager/mysql/2021-05-01/configurations/method_batchupdate.go b/resource-manager/mysql/2021-05-01/configurations/method_batchupdate.go index 85e1ead0a01..4a1195d48a1 100644 --- a/resource-manager/mysql/2021-05-01/configurations/method_batchupdate.go +++ b/resource-manager/mysql/2021-05-01/configurations/method_batchupdate.go @@ -26,6 +26,18 @@ type BatchUpdateCompleteResult struct { Items []Configuration } +type BatchUpdateCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BatchUpdateCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BatchUpdate ... func (c ConfigurationsClient) BatchUpdate(ctx context.Context, id FlexibleServerId, input ConfigurationListForBatchUpdate) (result BatchUpdateOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ConfigurationsClient) BatchUpdate(ctx context.Context, id FlexibleServer http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &BatchUpdateCustomPager{}, Path: fmt.Sprintf("%s/updateConfigurations", id.ID()), } diff --git a/resource-manager/mysql/2021-05-01/configurations/method_listbyserver.go b/resource-manager/mysql/2021-05-01/configurations/method_listbyserver.go index 0fb48358cee..bef8498dc6b 100644 --- a/resource-manager/mysql/2021-05-01/configurations/method_listbyserver.go +++ b/resource-manager/mysql/2021-05-01/configurations/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []Configuration } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/configurations", id.ID()), } diff --git a/resource-manager/mysql/2021-05-01/databases/method_listbyserver.go b/resource-manager/mysql/2021-05-01/databases/method_listbyserver.go index effbee5917c..68487e28ffb 100644 --- a/resource-manager/mysql/2021-05-01/databases/method_listbyserver.go +++ b/resource-manager/mysql/2021-05-01/databases/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []Database } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c DatabasesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DatabasesClient) ListByServer(ctx context.Context, id FlexibleServerId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/mysql/2021-05-01/firewallrules/method_listbyserver.go b/resource-manager/mysql/2021-05-01/firewallrules/method_listbyserver.go index beaab6068da..5f3772c0193 100644 --- a/resource-manager/mysql/2021-05-01/firewallrules/method_listbyserver.go +++ b/resource-manager/mysql/2021-05-01/firewallrules/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []FirewallRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c FirewallRulesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallRulesClient) ListByServer(ctx context.Context, id FlexibleServer http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/mysql/2021-05-01/locationbasedcapabilities/method_list.go b/resource-manager/mysql/2021-05-01/locationbasedcapabilities/method_list.go index acb803f20a3..d19829c5c70 100644 --- a/resource-manager/mysql/2021-05-01/locationbasedcapabilities/method_list.go +++ b/resource-manager/mysql/2021-05-01/locationbasedcapabilities/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CapabilityProperties } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LocationBasedCapabilitiesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LocationBasedCapabilitiesClient) List(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/capabilities", id.ID()), } diff --git a/resource-manager/mysql/2021-05-01/servers/method_list.go b/resource-manager/mysql/2021-05-01/servers/method_list.go index 374d9a314a6..e921dc8fc20 100644 --- a/resource-manager/mysql/2021-05-01/servers/method_list.go +++ b/resource-manager/mysql/2021-05-01/servers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Server } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforMySQL/flexibleServers", id.ID()), } diff --git a/resource-manager/mysql/2021-05-01/servers/method_listbyresourcegroup.go b/resource-manager/mysql/2021-05-01/servers/method_listbyresourcegroup.go index 902f5c08390..b7feea49e2d 100644 --- a/resource-manager/mysql/2021-05-01/servers/method_listbyresourcegroup.go +++ b/resource-manager/mysql/2021-05-01/servers/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Server } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforMySQL/flexibleServers", id.ID()), } diff --git a/resource-manager/mysql/2021-05-01/servers/method_replicaslistbyserver.go b/resource-manager/mysql/2021-05-01/servers/method_replicaslistbyserver.go index aab572b55f9..a97ac4e8982 100644 --- a/resource-manager/mysql/2021-05-01/servers/method_replicaslistbyserver.go +++ b/resource-manager/mysql/2021-05-01/servers/method_replicaslistbyserver.go @@ -23,6 +23,18 @@ type ReplicasListByServerCompleteResult struct { Items []Server } +type ReplicasListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReplicasListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReplicasListByServer ... func (c ServersClient) ReplicasListByServer(ctx context.Context, id FlexibleServerId) (result ReplicasListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServersClient) ReplicasListByServer(ctx context.Context, id FlexibleServ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ReplicasListByServerCustomPager{}, Path: fmt.Sprintf("%s/replicas", id.ID()), } diff --git a/resource-manager/mysql/2021-12-01-preview/azureadadministrators/method_listbyserver.go b/resource-manager/mysql/2021-12-01-preview/azureadadministrators/method_listbyserver.go index d920199946f..de73f2275a6 100644 --- a/resource-manager/mysql/2021-12-01-preview/azureadadministrators/method_listbyserver.go +++ b/resource-manager/mysql/2021-12-01-preview/azureadadministrators/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []AzureADAdministrator } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c AzureADAdministratorsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AzureADAdministratorsClient) ListByServer(ctx context.Context, id Flexib http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/administrators", id.ID()), } diff --git a/resource-manager/mysql/2021-12-01-preview/backups/method_listbyserver.go b/resource-manager/mysql/2021-12-01-preview/backups/method_listbyserver.go index 3b572dd6305..b9beeb1342e 100644 --- a/resource-manager/mysql/2021-12-01-preview/backups/method_listbyserver.go +++ b/resource-manager/mysql/2021-12-01-preview/backups/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []ServerBackup } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c BackupsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupsClient) ListByServer(ctx context.Context, id FlexibleServerId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/backups", id.ID()), } diff --git a/resource-manager/mysql/2021-12-01-preview/configurations/method_batchupdate.go b/resource-manager/mysql/2021-12-01-preview/configurations/method_batchupdate.go index 85e1ead0a01..4a1195d48a1 100644 --- a/resource-manager/mysql/2021-12-01-preview/configurations/method_batchupdate.go +++ b/resource-manager/mysql/2021-12-01-preview/configurations/method_batchupdate.go @@ -26,6 +26,18 @@ type BatchUpdateCompleteResult struct { Items []Configuration } +type BatchUpdateCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BatchUpdateCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BatchUpdate ... func (c ConfigurationsClient) BatchUpdate(ctx context.Context, id FlexibleServerId, input ConfigurationListForBatchUpdate) (result BatchUpdateOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ConfigurationsClient) BatchUpdate(ctx context.Context, id FlexibleServer http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &BatchUpdateCustomPager{}, Path: fmt.Sprintf("%s/updateConfigurations", id.ID()), } diff --git a/resource-manager/mysql/2021-12-01-preview/configurations/method_listbyserver.go b/resource-manager/mysql/2021-12-01-preview/configurations/method_listbyserver.go index 7038bd98048..cb3120c513f 100644 --- a/resource-manager/mysql/2021-12-01-preview/configurations/method_listbyserver.go +++ b/resource-manager/mysql/2021-12-01-preview/configurations/method_listbyserver.go @@ -62,6 +62,18 @@ func (o ListByServerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServerId, options ListByServerOperationOptions) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/configurations", id.ID()), OptionsObject: options, + Pager: &ListByServerCustomPager{}, + Path: fmt.Sprintf("%s/configurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/mysql/2021-12-01-preview/databases/method_listbyserver.go b/resource-manager/mysql/2021-12-01-preview/databases/method_listbyserver.go index effbee5917c..68487e28ffb 100644 --- a/resource-manager/mysql/2021-12-01-preview/databases/method_listbyserver.go +++ b/resource-manager/mysql/2021-12-01-preview/databases/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []Database } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c DatabasesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DatabasesClient) ListByServer(ctx context.Context, id FlexibleServerId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/mysql/2021-12-01-preview/firewallrules/method_listbyserver.go b/resource-manager/mysql/2021-12-01-preview/firewallrules/method_listbyserver.go index beaab6068da..5f3772c0193 100644 --- a/resource-manager/mysql/2021-12-01-preview/firewallrules/method_listbyserver.go +++ b/resource-manager/mysql/2021-12-01-preview/firewallrules/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []FirewallRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c FirewallRulesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallRulesClient) ListByServer(ctx context.Context, id FlexibleServer http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/mysql/2021-12-01-preview/locationbasedcapabilities/method_list.go b/resource-manager/mysql/2021-12-01-preview/locationbasedcapabilities/method_list.go index acb803f20a3..d19829c5c70 100644 --- a/resource-manager/mysql/2021-12-01-preview/locationbasedcapabilities/method_list.go +++ b/resource-manager/mysql/2021-12-01-preview/locationbasedcapabilities/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CapabilityProperties } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LocationBasedCapabilitiesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LocationBasedCapabilitiesClient) List(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/capabilities", id.ID()), } diff --git a/resource-manager/mysql/2021-12-01-preview/logfiles/method_listbyserver.go b/resource-manager/mysql/2021-12-01-preview/logfiles/method_listbyserver.go index c9f0d1ee8c5..8b163e0f91f 100644 --- a/resource-manager/mysql/2021-12-01-preview/logfiles/method_listbyserver.go +++ b/resource-manager/mysql/2021-12-01-preview/logfiles/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []LogFile } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c LogFilesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LogFilesClient) ListByServer(ctx context.Context, id FlexibleServerId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/logFiles", id.ID()), } diff --git a/resource-manager/mysql/2021-12-01-preview/servers/method_list.go b/resource-manager/mysql/2021-12-01-preview/servers/method_list.go index 374d9a314a6..e921dc8fc20 100644 --- a/resource-manager/mysql/2021-12-01-preview/servers/method_list.go +++ b/resource-manager/mysql/2021-12-01-preview/servers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Server } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforMySQL/flexibleServers", id.ID()), } diff --git a/resource-manager/mysql/2021-12-01-preview/servers/method_listbyresourcegroup.go b/resource-manager/mysql/2021-12-01-preview/servers/method_listbyresourcegroup.go index 902f5c08390..b7feea49e2d 100644 --- a/resource-manager/mysql/2021-12-01-preview/servers/method_listbyresourcegroup.go +++ b/resource-manager/mysql/2021-12-01-preview/servers/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Server } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforMySQL/flexibleServers", id.ID()), } diff --git a/resource-manager/mysql/2021-12-01-preview/servers/method_replicaslistbyserver.go b/resource-manager/mysql/2021-12-01-preview/servers/method_replicaslistbyserver.go index aab572b55f9..a97ac4e8982 100644 --- a/resource-manager/mysql/2021-12-01-preview/servers/method_replicaslistbyserver.go +++ b/resource-manager/mysql/2021-12-01-preview/servers/method_replicaslistbyserver.go @@ -23,6 +23,18 @@ type ReplicasListByServerCompleteResult struct { Items []Server } +type ReplicasListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReplicasListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReplicasListByServer ... func (c ServersClient) ReplicasListByServer(ctx context.Context, id FlexibleServerId) (result ReplicasListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServersClient) ReplicasListByServer(ctx context.Context, id FlexibleServ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ReplicasListByServerCustomPager{}, Path: fmt.Sprintf("%s/replicas", id.ID()), } diff --git a/resource-manager/mysql/2022-01-01/azureadadministrators/method_listbyserver.go b/resource-manager/mysql/2022-01-01/azureadadministrators/method_listbyserver.go index d920199946f..de73f2275a6 100644 --- a/resource-manager/mysql/2022-01-01/azureadadministrators/method_listbyserver.go +++ b/resource-manager/mysql/2022-01-01/azureadadministrators/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []AzureADAdministrator } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c AzureADAdministratorsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AzureADAdministratorsClient) ListByServer(ctx context.Context, id Flexib http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/administrators", id.ID()), } diff --git a/resource-manager/mysql/2022-01-01/backups/method_listbyserver.go b/resource-manager/mysql/2022-01-01/backups/method_listbyserver.go index 3b572dd6305..b9beeb1342e 100644 --- a/resource-manager/mysql/2022-01-01/backups/method_listbyserver.go +++ b/resource-manager/mysql/2022-01-01/backups/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []ServerBackup } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c BackupsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupsClient) ListByServer(ctx context.Context, id FlexibleServerId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/backups", id.ID()), } diff --git a/resource-manager/mysql/2022-01-01/configurations/method_batchupdate.go b/resource-manager/mysql/2022-01-01/configurations/method_batchupdate.go index 85e1ead0a01..4a1195d48a1 100644 --- a/resource-manager/mysql/2022-01-01/configurations/method_batchupdate.go +++ b/resource-manager/mysql/2022-01-01/configurations/method_batchupdate.go @@ -26,6 +26,18 @@ type BatchUpdateCompleteResult struct { Items []Configuration } +type BatchUpdateCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BatchUpdateCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BatchUpdate ... func (c ConfigurationsClient) BatchUpdate(ctx context.Context, id FlexibleServerId, input ConfigurationListForBatchUpdate) (result BatchUpdateOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ConfigurationsClient) BatchUpdate(ctx context.Context, id FlexibleServer http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &BatchUpdateCustomPager{}, Path: fmt.Sprintf("%s/updateConfigurations", id.ID()), } diff --git a/resource-manager/mysql/2022-01-01/configurations/method_listbyserver.go b/resource-manager/mysql/2022-01-01/configurations/method_listbyserver.go index 7038bd98048..cb3120c513f 100644 --- a/resource-manager/mysql/2022-01-01/configurations/method_listbyserver.go +++ b/resource-manager/mysql/2022-01-01/configurations/method_listbyserver.go @@ -62,6 +62,18 @@ func (o ListByServerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServerId, options ListByServerOperationOptions) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/configurations", id.ID()), OptionsObject: options, + Pager: &ListByServerCustomPager{}, + Path: fmt.Sprintf("%s/configurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/mysql/2022-01-01/databases/method_listbyserver.go b/resource-manager/mysql/2022-01-01/databases/method_listbyserver.go index effbee5917c..68487e28ffb 100644 --- a/resource-manager/mysql/2022-01-01/databases/method_listbyserver.go +++ b/resource-manager/mysql/2022-01-01/databases/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []Database } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c DatabasesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DatabasesClient) ListByServer(ctx context.Context, id FlexibleServerId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/mysql/2022-01-01/firewallrules/method_listbyserver.go b/resource-manager/mysql/2022-01-01/firewallrules/method_listbyserver.go index beaab6068da..5f3772c0193 100644 --- a/resource-manager/mysql/2022-01-01/firewallrules/method_listbyserver.go +++ b/resource-manager/mysql/2022-01-01/firewallrules/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []FirewallRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c FirewallRulesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallRulesClient) ListByServer(ctx context.Context, id FlexibleServer http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/mysql/2022-01-01/locationbasedcapabilities/method_list.go b/resource-manager/mysql/2022-01-01/locationbasedcapabilities/method_list.go index acb803f20a3..d19829c5c70 100644 --- a/resource-manager/mysql/2022-01-01/locationbasedcapabilities/method_list.go +++ b/resource-manager/mysql/2022-01-01/locationbasedcapabilities/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CapabilityProperties } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LocationBasedCapabilitiesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LocationBasedCapabilitiesClient) List(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/capabilities", id.ID()), } diff --git a/resource-manager/mysql/2022-01-01/logfiles/method_listbyserver.go b/resource-manager/mysql/2022-01-01/logfiles/method_listbyserver.go index c9f0d1ee8c5..8b163e0f91f 100644 --- a/resource-manager/mysql/2022-01-01/logfiles/method_listbyserver.go +++ b/resource-manager/mysql/2022-01-01/logfiles/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []LogFile } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c LogFilesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LogFilesClient) ListByServer(ctx context.Context, id FlexibleServerId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/logFiles", id.ID()), } diff --git a/resource-manager/mysql/2022-01-01/servers/method_list.go b/resource-manager/mysql/2022-01-01/servers/method_list.go index 374d9a314a6..e921dc8fc20 100644 --- a/resource-manager/mysql/2022-01-01/servers/method_list.go +++ b/resource-manager/mysql/2022-01-01/servers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Server } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforMySQL/flexibleServers", id.ID()), } diff --git a/resource-manager/mysql/2022-01-01/servers/method_listbyresourcegroup.go b/resource-manager/mysql/2022-01-01/servers/method_listbyresourcegroup.go index 902f5c08390..b7feea49e2d 100644 --- a/resource-manager/mysql/2022-01-01/servers/method_listbyresourcegroup.go +++ b/resource-manager/mysql/2022-01-01/servers/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Server } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforMySQL/flexibleServers", id.ID()), } diff --git a/resource-manager/mysql/2022-01-01/servers/method_replicaslistbyserver.go b/resource-manager/mysql/2022-01-01/servers/method_replicaslistbyserver.go index aab572b55f9..a97ac4e8982 100644 --- a/resource-manager/mysql/2022-01-01/servers/method_replicaslistbyserver.go +++ b/resource-manager/mysql/2022-01-01/servers/method_replicaslistbyserver.go @@ -23,6 +23,18 @@ type ReplicasListByServerCompleteResult struct { Items []Server } +type ReplicasListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReplicasListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReplicasListByServer ... func (c ServersClient) ReplicasListByServer(ctx context.Context, id FlexibleServerId) (result ReplicasListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServersClient) ReplicasListByServer(ctx context.Context, id FlexibleServ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ReplicasListByServerCustomPager{}, Path: fmt.Sprintf("%s/replicas", id.ID()), } diff --git a/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_list.go b/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_list.go index 8678152d599..0a3f4043f93 100644 --- a/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_list.go +++ b/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []AdvancedThreatProtection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AdvancedThreatProtectionSettingsClient) List(ctx context.Context, id FlexibleServerId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AdvancedThreatProtectionSettingsClient) List(ctx context.Context, id Fle http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/advancedThreatProtectionSettings", id.ID()), } diff --git a/resource-manager/mysql/2023-12-30/azureadadministrators/method_listbyserver.go b/resource-manager/mysql/2023-12-30/azureadadministrators/method_listbyserver.go index d920199946f..de73f2275a6 100644 --- a/resource-manager/mysql/2023-12-30/azureadadministrators/method_listbyserver.go +++ b/resource-manager/mysql/2023-12-30/azureadadministrators/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []AzureADAdministrator } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c AzureADAdministratorsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AzureADAdministratorsClient) ListByServer(ctx context.Context, id Flexib http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/administrators", id.ID()), } diff --git a/resource-manager/mysql/2023-12-30/backups/method_listbyserver.go b/resource-manager/mysql/2023-12-30/backups/method_listbyserver.go index 3b572dd6305..b9beeb1342e 100644 --- a/resource-manager/mysql/2023-12-30/backups/method_listbyserver.go +++ b/resource-manager/mysql/2023-12-30/backups/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []ServerBackup } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c BackupsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupsClient) ListByServer(ctx context.Context, id FlexibleServerId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/backups", id.ID()), } diff --git a/resource-manager/mysql/2023-12-30/backupsv2/method_longrunningbackupslist.go b/resource-manager/mysql/2023-12-30/backupsv2/method_longrunningbackupslist.go index 33e58f0de99..26f132b0a08 100644 --- a/resource-manager/mysql/2023-12-30/backupsv2/method_longrunningbackupslist.go +++ b/resource-manager/mysql/2023-12-30/backupsv2/method_longrunningbackupslist.go @@ -23,6 +23,18 @@ type LongRunningBackupsListCompleteResult struct { Items []ServerBackupV2 } +type LongRunningBackupsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LongRunningBackupsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LongRunningBackupsList ... func (c BackupsV2Client) LongRunningBackupsList(ctx context.Context, id FlexibleServerId) (result LongRunningBackupsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupsV2Client) LongRunningBackupsList(ctx context.Context, id Flexible http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LongRunningBackupsListCustomPager{}, Path: fmt.Sprintf("%s/backupsV2", id.ID()), } diff --git a/resource-manager/mysql/2023-12-30/configurations/method_batchupdate.go b/resource-manager/mysql/2023-12-30/configurations/method_batchupdate.go index 85e1ead0a01..4a1195d48a1 100644 --- a/resource-manager/mysql/2023-12-30/configurations/method_batchupdate.go +++ b/resource-manager/mysql/2023-12-30/configurations/method_batchupdate.go @@ -26,6 +26,18 @@ type BatchUpdateCompleteResult struct { Items []Configuration } +type BatchUpdateCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BatchUpdateCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BatchUpdate ... func (c ConfigurationsClient) BatchUpdate(ctx context.Context, id FlexibleServerId, input ConfigurationListForBatchUpdate) (result BatchUpdateOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ConfigurationsClient) BatchUpdate(ctx context.Context, id FlexibleServer http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &BatchUpdateCustomPager{}, Path: fmt.Sprintf("%s/updateConfigurations", id.ID()), } diff --git a/resource-manager/mysql/2023-12-30/configurations/method_listbyserver.go b/resource-manager/mysql/2023-12-30/configurations/method_listbyserver.go index 7038bd98048..cb3120c513f 100644 --- a/resource-manager/mysql/2023-12-30/configurations/method_listbyserver.go +++ b/resource-manager/mysql/2023-12-30/configurations/method_listbyserver.go @@ -62,6 +62,18 @@ func (o ListByServerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServerId, options ListByServerOperationOptions) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/configurations", id.ID()), OptionsObject: options, + Pager: &ListByServerCustomPager{}, + Path: fmt.Sprintf("%s/configurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/mysql/2023-12-30/databases/method_listbyserver.go b/resource-manager/mysql/2023-12-30/databases/method_listbyserver.go index effbee5917c..68487e28ffb 100644 --- a/resource-manager/mysql/2023-12-30/databases/method_listbyserver.go +++ b/resource-manager/mysql/2023-12-30/databases/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []Database } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c DatabasesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DatabasesClient) ListByServer(ctx context.Context, id FlexibleServerId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/mysql/2023-12-30/firewallrules/method_listbyserver.go b/resource-manager/mysql/2023-12-30/firewallrules/method_listbyserver.go index beaab6068da..5f3772c0193 100644 --- a/resource-manager/mysql/2023-12-30/firewallrules/method_listbyserver.go +++ b/resource-manager/mysql/2023-12-30/firewallrules/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []FirewallRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c FirewallRulesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallRulesClient) ListByServer(ctx context.Context, id FlexibleServer http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/mysql/2023-12-30/locationbasedcapabilities/method_list.go b/resource-manager/mysql/2023-12-30/locationbasedcapabilities/method_list.go index acb803f20a3..d19829c5c70 100644 --- a/resource-manager/mysql/2023-12-30/locationbasedcapabilities/method_list.go +++ b/resource-manager/mysql/2023-12-30/locationbasedcapabilities/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CapabilityProperties } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LocationBasedCapabilitiesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LocationBasedCapabilitiesClient) List(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/capabilities", id.ID()), } diff --git a/resource-manager/mysql/2023-12-30/locationbasedcapability/method_setlist.go b/resource-manager/mysql/2023-12-30/locationbasedcapability/method_setlist.go index 134bbf9c205..a942983ba91 100644 --- a/resource-manager/mysql/2023-12-30/locationbasedcapability/method_setlist.go +++ b/resource-manager/mysql/2023-12-30/locationbasedcapability/method_setlist.go @@ -23,6 +23,18 @@ type SetListCompleteResult struct { Items []Capability } +type SetListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SetListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SetList ... func (c LocationBasedCapabilityClient) SetList(ctx context.Context, id LocationId) (result SetListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LocationBasedCapabilityClient) SetList(ctx context.Context, id LocationI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SetListCustomPager{}, Path: fmt.Sprintf("%s/capabilitySets", id.ID()), } diff --git a/resource-manager/mysql/2023-12-30/logfiles/method_listbyserver.go b/resource-manager/mysql/2023-12-30/logfiles/method_listbyserver.go index c9f0d1ee8c5..8b163e0f91f 100644 --- a/resource-manager/mysql/2023-12-30/logfiles/method_listbyserver.go +++ b/resource-manager/mysql/2023-12-30/logfiles/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []LogFile } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c LogFilesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LogFilesClient) ListByServer(ctx context.Context, id FlexibleServerId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/logFiles", id.ID()), } diff --git a/resource-manager/mysql/2023-12-30/maintenances/method_list.go b/resource-manager/mysql/2023-12-30/maintenances/method_list.go index b83db48ef46..3d3ccac95eb 100644 --- a/resource-manager/mysql/2023-12-30/maintenances/method_list.go +++ b/resource-manager/mysql/2023-12-30/maintenances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Maintenance } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MaintenancesClient) List(ctx context.Context, id FlexibleServerId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MaintenancesClient) List(ctx context.Context, id FlexibleServerId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/maintenances", id.ID()), } diff --git a/resource-manager/mysql/2023-12-30/servers/method_list.go b/resource-manager/mysql/2023-12-30/servers/method_list.go index 374d9a314a6..e921dc8fc20 100644 --- a/resource-manager/mysql/2023-12-30/servers/method_list.go +++ b/resource-manager/mysql/2023-12-30/servers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Server } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforMySQL/flexibleServers", id.ID()), } diff --git a/resource-manager/mysql/2023-12-30/servers/method_listbyresourcegroup.go b/resource-manager/mysql/2023-12-30/servers/method_listbyresourcegroup.go index 902f5c08390..b7feea49e2d 100644 --- a/resource-manager/mysql/2023-12-30/servers/method_listbyresourcegroup.go +++ b/resource-manager/mysql/2023-12-30/servers/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Server } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforMySQL/flexibleServers", id.ID()), } diff --git a/resource-manager/mysql/2023-12-30/servers/method_replicaslistbyserver.go b/resource-manager/mysql/2023-12-30/servers/method_replicaslistbyserver.go index aab572b55f9..a97ac4e8982 100644 --- a/resource-manager/mysql/2023-12-30/servers/method_replicaslistbyserver.go +++ b/resource-manager/mysql/2023-12-30/servers/method_replicaslistbyserver.go @@ -23,6 +23,18 @@ type ReplicasListByServerCompleteResult struct { Items []Server } +type ReplicasListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReplicasListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReplicasListByServer ... func (c ServersClient) ReplicasListByServer(ctx context.Context, id FlexibleServerId) (result ReplicasListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServersClient) ReplicasListByServer(ctx context.Context, id FlexibleServ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ReplicasListByServerCustomPager{}, Path: fmt.Sprintf("%s/replicas", id.ID()), } diff --git a/resource-manager/netapp/2023-05-01/capacitypools/method_poolslist.go b/resource-manager/netapp/2023-05-01/capacitypools/method_poolslist.go index d365cac2ddc..2fe683d61de 100644 --- a/resource-manager/netapp/2023-05-01/capacitypools/method_poolslist.go +++ b/resource-manager/netapp/2023-05-01/capacitypools/method_poolslist.go @@ -23,6 +23,18 @@ type PoolsListCompleteResult struct { Items []CapacityPool } +type PoolsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PoolsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PoolsList ... func (c CapacityPoolsClient) PoolsList(ctx context.Context, id NetAppAccountId) (result PoolsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CapacityPoolsClient) PoolsList(ctx context.Context, id NetAppAccountId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PoolsListCustomPager{}, Path: fmt.Sprintf("%s/capacityPools", id.ID()), } diff --git a/resource-manager/netapp/2023-05-01/netappaccounts/method_accountslist.go b/resource-manager/netapp/2023-05-01/netappaccounts/method_accountslist.go index d684b65ddd5..761a210fd34 100644 --- a/resource-manager/netapp/2023-05-01/netappaccounts/method_accountslist.go +++ b/resource-manager/netapp/2023-05-01/netappaccounts/method_accountslist.go @@ -24,6 +24,18 @@ type AccountsListCompleteResult struct { Items []NetAppAccount } +type AccountsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsList ... func (c NetAppAccountsClient) AccountsList(ctx context.Context, id commonids.ResourceGroupId) (result AccountsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetAppAccountsClient) AccountsList(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetApp/netAppAccounts", id.ID()), } diff --git a/resource-manager/netapp/2023-05-01/netappaccounts/method_accountslistbysubscription.go b/resource-manager/netapp/2023-05-01/netappaccounts/method_accountslistbysubscription.go index 0268a64c834..adea8a00480 100644 --- a/resource-manager/netapp/2023-05-01/netappaccounts/method_accountslistbysubscription.go +++ b/resource-manager/netapp/2023-05-01/netappaccounts/method_accountslistbysubscription.go @@ -24,6 +24,18 @@ type AccountsListBySubscriptionCompleteResult struct { Items []NetAppAccount } +type AccountsListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListBySubscription ... func (c NetAppAccountsClient) AccountsListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result AccountsListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetAppAccountsClient) AccountsListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetApp/netAppAccounts", id.ID()), } diff --git a/resource-manager/netapp/2023-05-01/subvolumes/method_listbyvolume.go b/resource-manager/netapp/2023-05-01/subvolumes/method_listbyvolume.go index 6cebd7a7508..e6022de2ecf 100644 --- a/resource-manager/netapp/2023-05-01/subvolumes/method_listbyvolume.go +++ b/resource-manager/netapp/2023-05-01/subvolumes/method_listbyvolume.go @@ -23,6 +23,18 @@ type ListByVolumeCompleteResult struct { Items []SubvolumeInfo } +type ListByVolumeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVolumeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVolume ... func (c SubVolumesClient) ListByVolume(ctx context.Context, id VolumeId) (result ListByVolumeOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SubVolumesClient) ListByVolume(ctx context.Context, id VolumeId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVolumeCustomPager{}, Path: fmt.Sprintf("%s/subVolumes", id.ID()), } diff --git a/resource-manager/netapp/2023-05-01/volumes/method_delete.go b/resource-manager/netapp/2023-05-01/volumes/method_delete.go index 23734d43ae5..cf50dbfa90f 100644 --- a/resource-manager/netapp/2023-05-01/volumes/method_delete.go +++ b/resource-manager/netapp/2023-05-01/volumes/method_delete.go @@ -56,8 +56,8 @@ func (c VolumesClient) Delete(ctx context.Context, id VolumeId, options DeleteOp http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/netapp/2023-05-01/volumes/method_list.go b/resource-manager/netapp/2023-05-01/volumes/method_list.go index c0ef7d7c0fe..443ce94a02d 100644 --- a/resource-manager/netapp/2023-05-01/volumes/method_list.go +++ b/resource-manager/netapp/2023-05-01/volumes/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Volume } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VolumesClient) List(ctx context.Context, id CapacityPoolId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VolumesClient) List(ctx context.Context, id CapacityPoolId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/volumes", id.ID()), } diff --git a/resource-manager/netapp/2023-07-01/capacitypools/method_poolslist.go b/resource-manager/netapp/2023-07-01/capacitypools/method_poolslist.go index d365cac2ddc..2fe683d61de 100644 --- a/resource-manager/netapp/2023-07-01/capacitypools/method_poolslist.go +++ b/resource-manager/netapp/2023-07-01/capacitypools/method_poolslist.go @@ -23,6 +23,18 @@ type PoolsListCompleteResult struct { Items []CapacityPool } +type PoolsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PoolsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PoolsList ... func (c CapacityPoolsClient) PoolsList(ctx context.Context, id NetAppAccountId) (result PoolsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CapacityPoolsClient) PoolsList(ctx context.Context, id NetAppAccountId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PoolsListCustomPager{}, Path: fmt.Sprintf("%s/capacityPools", id.ID()), } diff --git a/resource-manager/netapp/2023-07-01/netappaccounts/method_accountslist.go b/resource-manager/netapp/2023-07-01/netappaccounts/method_accountslist.go index d684b65ddd5..761a210fd34 100644 --- a/resource-manager/netapp/2023-07-01/netappaccounts/method_accountslist.go +++ b/resource-manager/netapp/2023-07-01/netappaccounts/method_accountslist.go @@ -24,6 +24,18 @@ type AccountsListCompleteResult struct { Items []NetAppAccount } +type AccountsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsList ... func (c NetAppAccountsClient) AccountsList(ctx context.Context, id commonids.ResourceGroupId) (result AccountsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetAppAccountsClient) AccountsList(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetApp/netAppAccounts", id.ID()), } diff --git a/resource-manager/netapp/2023-07-01/netappaccounts/method_accountslistbysubscription.go b/resource-manager/netapp/2023-07-01/netappaccounts/method_accountslistbysubscription.go index 0268a64c834..adea8a00480 100644 --- a/resource-manager/netapp/2023-07-01/netappaccounts/method_accountslistbysubscription.go +++ b/resource-manager/netapp/2023-07-01/netappaccounts/method_accountslistbysubscription.go @@ -24,6 +24,18 @@ type AccountsListBySubscriptionCompleteResult struct { Items []NetAppAccount } +type AccountsListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListBySubscription ... func (c NetAppAccountsClient) AccountsListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result AccountsListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetAppAccountsClient) AccountsListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetApp/netAppAccounts", id.ID()), } diff --git a/resource-manager/netapp/2023-07-01/subvolumes/method_listbyvolume.go b/resource-manager/netapp/2023-07-01/subvolumes/method_listbyvolume.go index 6cebd7a7508..e6022de2ecf 100644 --- a/resource-manager/netapp/2023-07-01/subvolumes/method_listbyvolume.go +++ b/resource-manager/netapp/2023-07-01/subvolumes/method_listbyvolume.go @@ -23,6 +23,18 @@ type ListByVolumeCompleteResult struct { Items []SubvolumeInfo } +type ListByVolumeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVolumeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVolume ... func (c SubVolumesClient) ListByVolume(ctx context.Context, id VolumeId) (result ListByVolumeOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SubVolumesClient) ListByVolume(ctx context.Context, id VolumeId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVolumeCustomPager{}, Path: fmt.Sprintf("%s/subVolumes", id.ID()), } diff --git a/resource-manager/netapp/2023-07-01/volumes/method_delete.go b/resource-manager/netapp/2023-07-01/volumes/method_delete.go index 23734d43ae5..cf50dbfa90f 100644 --- a/resource-manager/netapp/2023-07-01/volumes/method_delete.go +++ b/resource-manager/netapp/2023-07-01/volumes/method_delete.go @@ -56,8 +56,8 @@ func (c VolumesClient) Delete(ctx context.Context, id VolumeId, options DeleteOp http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/netapp/2023-07-01/volumes/method_list.go b/resource-manager/netapp/2023-07-01/volumes/method_list.go index c0ef7d7c0fe..443ce94a02d 100644 --- a/resource-manager/netapp/2023-07-01/volumes/method_list.go +++ b/resource-manager/netapp/2023-07-01/volumes/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Volume } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VolumesClient) List(ctx context.Context, id CapacityPoolId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VolumesClient) List(ctx context.Context, id CapacityPoolId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/volumes", id.ID()), } diff --git a/resource-manager/netapp/2023-11-01/backups/method_listbyvault.go b/resource-manager/netapp/2023-11-01/backups/method_listbyvault.go index 9cfd5714b7b..f92c1548b81 100644 --- a/resource-manager/netapp/2023-11-01/backups/method_listbyvault.go +++ b/resource-manager/netapp/2023-11-01/backups/method_listbyvault.go @@ -50,6 +50,18 @@ func (o ListByVaultOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByVaultCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVaultCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVault ... func (c BackupsClient) ListByVault(ctx context.Context, id BackupVaultId, options ListByVaultOperationOptions) (result ListByVaultOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c BackupsClient) ListByVault(ctx context.Context, id BackupVaultId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/backups", id.ID()), OptionsObject: options, + Pager: &ListByVaultCustomPager{}, + Path: fmt.Sprintf("%s/backups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/netapp/2023-11-01/backupvaults/method_listbynetappaccount.go b/resource-manager/netapp/2023-11-01/backupvaults/method_listbynetappaccount.go index 7eaa04d5c98..a0f46fc1023 100644 --- a/resource-manager/netapp/2023-11-01/backupvaults/method_listbynetappaccount.go +++ b/resource-manager/netapp/2023-11-01/backupvaults/method_listbynetappaccount.go @@ -23,6 +23,18 @@ type ListByNetAppAccountCompleteResult struct { Items []BackupVault } +type ListByNetAppAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNetAppAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNetAppAccount ... func (c BackupVaultsClient) ListByNetAppAccount(ctx context.Context, id NetAppAccountId) (result ListByNetAppAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupVaultsClient) ListByNetAppAccount(ctx context.Context, id NetAppAc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByNetAppAccountCustomPager{}, Path: fmt.Sprintf("%s/backupVaults", id.ID()), } diff --git a/resource-manager/netapp/2023-11-01/capacitypools/method_poolslist.go b/resource-manager/netapp/2023-11-01/capacitypools/method_poolslist.go index d365cac2ddc..2fe683d61de 100644 --- a/resource-manager/netapp/2023-11-01/capacitypools/method_poolslist.go +++ b/resource-manager/netapp/2023-11-01/capacitypools/method_poolslist.go @@ -23,6 +23,18 @@ type PoolsListCompleteResult struct { Items []CapacityPool } +type PoolsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PoolsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PoolsList ... func (c CapacityPoolsClient) PoolsList(ctx context.Context, id NetAppAccountId) (result PoolsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CapacityPoolsClient) PoolsList(ctx context.Context, id NetAppAccountId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PoolsListCustomPager{}, Path: fmt.Sprintf("%s/capacityPools", id.ID()), } diff --git a/resource-manager/netapp/2023-11-01/netappaccounts/method_accountslist.go b/resource-manager/netapp/2023-11-01/netappaccounts/method_accountslist.go index d684b65ddd5..761a210fd34 100644 --- a/resource-manager/netapp/2023-11-01/netappaccounts/method_accountslist.go +++ b/resource-manager/netapp/2023-11-01/netappaccounts/method_accountslist.go @@ -24,6 +24,18 @@ type AccountsListCompleteResult struct { Items []NetAppAccount } +type AccountsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsList ... func (c NetAppAccountsClient) AccountsList(ctx context.Context, id commonids.ResourceGroupId) (result AccountsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetAppAccountsClient) AccountsList(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetApp/netAppAccounts", id.ID()), } diff --git a/resource-manager/netapp/2023-11-01/netappaccounts/method_accountslistbysubscription.go b/resource-manager/netapp/2023-11-01/netappaccounts/method_accountslistbysubscription.go index 0268a64c834..adea8a00480 100644 --- a/resource-manager/netapp/2023-11-01/netappaccounts/method_accountslistbysubscription.go +++ b/resource-manager/netapp/2023-11-01/netappaccounts/method_accountslistbysubscription.go @@ -24,6 +24,18 @@ type AccountsListBySubscriptionCompleteResult struct { Items []NetAppAccount } +type AccountsListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccountsListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccountsListBySubscription ... func (c NetAppAccountsClient) AccountsListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result AccountsListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetAppAccountsClient) AccountsListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccountsListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetApp/netAppAccounts", id.ID()), } diff --git a/resource-manager/netapp/2023-11-01/netappresource/method_regioninfoslist.go b/resource-manager/netapp/2023-11-01/netappresource/method_regioninfoslist.go index 2d213bc7fb0..87038bafe2a 100644 --- a/resource-manager/netapp/2023-11-01/netappresource/method_regioninfoslist.go +++ b/resource-manager/netapp/2023-11-01/netappresource/method_regioninfoslist.go @@ -23,6 +23,18 @@ type RegionInfosListCompleteResult struct { Items []RegionInfoResource } +type RegionInfosListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RegionInfosListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RegionInfosList ... func (c NetAppResourceClient) RegionInfosList(ctx context.Context, id LocationId) (result RegionInfosListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetAppResourceClient) RegionInfosList(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RegionInfosListCustomPager{}, Path: fmt.Sprintf("%s/regionInfos", id.ID()), } diff --git a/resource-manager/netapp/2023-11-01/subvolumes/method_listbyvolume.go b/resource-manager/netapp/2023-11-01/subvolumes/method_listbyvolume.go index 6cebd7a7508..e6022de2ecf 100644 --- a/resource-manager/netapp/2023-11-01/subvolumes/method_listbyvolume.go +++ b/resource-manager/netapp/2023-11-01/subvolumes/method_listbyvolume.go @@ -23,6 +23,18 @@ type ListByVolumeCompleteResult struct { Items []SubvolumeInfo } +type ListByVolumeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVolumeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVolume ... func (c SubVolumesClient) ListByVolume(ctx context.Context, id VolumeId) (result ListByVolumeOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SubVolumesClient) ListByVolume(ctx context.Context, id VolumeId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVolumeCustomPager{}, Path: fmt.Sprintf("%s/subVolumes", id.ID()), } diff --git a/resource-manager/netapp/2023-11-01/volumes/method_delete.go b/resource-manager/netapp/2023-11-01/volumes/method_delete.go index 23734d43ae5..cf50dbfa90f 100644 --- a/resource-manager/netapp/2023-11-01/volumes/method_delete.go +++ b/resource-manager/netapp/2023-11-01/volumes/method_delete.go @@ -56,8 +56,8 @@ func (c VolumesClient) Delete(ctx context.Context, id VolumeId, options DeleteOp http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/netapp/2023-11-01/volumes/method_list.go b/resource-manager/netapp/2023-11-01/volumes/method_list.go index c0ef7d7c0fe..443ce94a02d 100644 --- a/resource-manager/netapp/2023-11-01/volumes/method_list.go +++ b/resource-manager/netapp/2023-11-01/volumes/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Volume } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VolumesClient) List(ctx context.Context, id CapacityPoolId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VolumesClient) List(ctx context.Context, id CapacityPoolId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/volumes", id.ID()), } diff --git a/resource-manager/network/2022-07-01/adminrulecollections/method_delete.go b/resource-manager/network/2022-07-01/adminrulecollections/method_delete.go index 2a158c78562..ec55f3fa7e6 100644 --- a/resource-manager/network/2022-07-01/adminrulecollections/method_delete.go +++ b/resource-manager/network/2022-07-01/adminrulecollections/method_delete.go @@ -57,8 +57,8 @@ func (c AdminRuleCollectionsClient) Delete(ctx context.Context, id RuleCollectio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/adminrulecollections/method_list.go b/resource-manager/network/2022-07-01/adminrulecollections/method_list.go index 4b76fd0901c..f4b9bfcdd61 100644 --- a/resource-manager/network/2022-07-01/adminrulecollections/method_list.go +++ b/resource-manager/network/2022-07-01/adminrulecollections/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AdminRuleCollectionsClient) List(ctx context.Context, id SecurityAdminConfigurationId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c AdminRuleCollectionsClient) List(ctx context.Context, id SecurityAdminCo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/ruleCollections", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/ruleCollections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/adminrules/method_delete.go b/resource-manager/network/2022-07-01/adminrules/method_delete.go index 6d7b0f948b8..9b07dbc4a79 100644 --- a/resource-manager/network/2022-07-01/adminrules/method_delete.go +++ b/resource-manager/network/2022-07-01/adminrules/method_delete.go @@ -57,8 +57,8 @@ func (c AdminRulesClient) Delete(ctx context.Context, id RuleId, options DeleteO http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/adminrules/method_list.go b/resource-manager/network/2022-07-01/adminrules/method_list.go index 1c41454de22..97915114117 100644 --- a/resource-manager/network/2022-07-01/adminrules/method_list.go +++ b/resource-manager/network/2022-07-01/adminrules/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BaseAdminRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AdminRulesClient) List(ctx context.Context, id RuleCollectionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AdminRulesClient) List(ctx context.Context, id RuleCollectionId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/rules", id.ID()), } diff --git a/resource-manager/network/2022-07-01/applicationgatewayprivateendpointconnections/method_list.go b/resource-manager/network/2022-07-01/applicationgatewayprivateendpointconnections/method_list.go index c77aa7c6921..595ab9b2ec1 100644 --- a/resource-manager/network/2022-07-01/applicationgatewayprivateendpointconnections/method_list.go +++ b/resource-manager/network/2022-07-01/applicationgatewayprivateendpointconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationGatewayPrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationGatewayPrivateEndpointConnectionsClient) List(ctx context.Context, id ApplicationGatewayId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationGatewayPrivateEndpointConnectionsClient) List(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/network/2022-07-01/applicationgatewayprivatelinkresources/method_list.go b/resource-manager/network/2022-07-01/applicationgatewayprivatelinkresources/method_list.go index e50df050c40..ab3dbda73fe 100644 --- a/resource-manager/network/2022-07-01/applicationgatewayprivatelinkresources/method_list.go +++ b/resource-manager/network/2022-07-01/applicationgatewayprivatelinkresources/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationGatewayPrivateLinkResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationGatewayPrivateLinkResourcesClient) List(ctx context.Context, id ApplicationGatewayId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationGatewayPrivateLinkResourcesClient) List(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/network/2022-07-01/applicationgateways/method_backendhealth.go b/resource-manager/network/2022-07-01/applicationgateways/method_backendhealth.go index bc7254fd7d6..21c25eb922c 100644 --- a/resource-manager/network/2022-07-01/applicationgateways/method_backendhealth.go +++ b/resource-manager/network/2022-07-01/applicationgateways/method_backendhealth.go @@ -57,8 +57,8 @@ func (c ApplicationGatewaysClient) BackendHealth(ctx context.Context, id Applica http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/backendhealth", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/backendhealth", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/applicationgateways/method_backendhealthondemand.go b/resource-manager/network/2022-07-01/applicationgateways/method_backendhealthondemand.go index c99e1e55de2..2db3547857a 100644 --- a/resource-manager/network/2022-07-01/applicationgateways/method_backendhealthondemand.go +++ b/resource-manager/network/2022-07-01/applicationgateways/method_backendhealthondemand.go @@ -57,8 +57,8 @@ func (c ApplicationGatewaysClient) BackendHealthOnDemand(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getBackendHealthOnDemand", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getBackendHealthOnDemand", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/applicationgateways/method_list.go b/resource-manager/network/2022-07-01/applicationgateways/method_list.go index 5f1051eb154..5993122f77d 100644 --- a/resource-manager/network/2022-07-01/applicationgateways/method_list.go +++ b/resource-manager/network/2022-07-01/applicationgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ApplicationGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationGatewaysClient) List(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGateways", id.ID()), } diff --git a/resource-manager/network/2022-07-01/applicationgateways/method_listall.go b/resource-manager/network/2022-07-01/applicationgateways/method_listall.go index b652121174a..2339a539153 100644 --- a/resource-manager/network/2022-07-01/applicationgateways/method_listall.go +++ b/resource-manager/network/2022-07-01/applicationgateways/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []ApplicationGateway } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c ApplicationGatewaysClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationGatewaysClient) ListAll(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGateways", id.ID()), } diff --git a/resource-manager/network/2022-07-01/applicationgateways/method_listavailablesslpredefinedpolicies.go b/resource-manager/network/2022-07-01/applicationgateways/method_listavailablesslpredefinedpolicies.go index e9498c59b10..60e04b841d4 100644 --- a/resource-manager/network/2022-07-01/applicationgateways/method_listavailablesslpredefinedpolicies.go +++ b/resource-manager/network/2022-07-01/applicationgateways/method_listavailablesslpredefinedpolicies.go @@ -24,6 +24,18 @@ type ListAvailableSslPredefinedPoliciesCompleteResult struct { Items []ApplicationGatewaySslPredefinedPolicy } +type ListAvailableSslPredefinedPoliciesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAvailableSslPredefinedPoliciesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAvailableSslPredefinedPolicies ... func (c ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableSslPredefinedPoliciesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAvailableSslPredefinedPoliciesCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies", id.ID()), } diff --git a/resource-manager/network/2022-07-01/applicationgatewaywafdynamicmanifests/method_get.go b/resource-manager/network/2022-07-01/applicationgatewaywafdynamicmanifests/method_get.go index d07f9b4e97b..4f7a0478f78 100644 --- a/resource-manager/network/2022-07-01/applicationgatewaywafdynamicmanifests/method_get.go +++ b/resource-manager/network/2022-07-01/applicationgatewaywafdynamicmanifests/method_get.go @@ -23,6 +23,18 @@ type GetCompleteResult struct { Items []ApplicationGatewayWafDynamicManifestResult } +type GetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Get ... func (c ApplicationGatewayWafDynamicManifestsClient) Get(ctx context.Context, id LocationId) (result GetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationGatewayWafDynamicManifestsClient) Get(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetCustomPager{}, Path: fmt.Sprintf("%s/applicationGatewayWafDynamicManifests", id.ID()), } diff --git a/resource-manager/network/2022-07-01/applicationsecuritygroups/method_list.go b/resource-manager/network/2022-07-01/applicationsecuritygroups/method_list.go index 424c65a5cec..1e8cc5c05eb 100644 --- a/resource-manager/network/2022-07-01/applicationsecuritygroups/method_list.go +++ b/resource-manager/network/2022-07-01/applicationsecuritygroups/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ApplicationSecurityGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationSecurityGroupsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationSecurityGroupsClient) List(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2022-07-01/applicationsecuritygroups/method_listall.go b/resource-manager/network/2022-07-01/applicationsecuritygroups/method_listall.go index 38c5c8dc37f..b0f38c737fa 100644 --- a/resource-manager/network/2022-07-01/applicationsecuritygroups/method_listall.go +++ b/resource-manager/network/2022-07-01/applicationsecuritygroups/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []ApplicationSecurityGroup } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c ApplicationSecurityGroupsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationSecurityGroupsClient) ListAll(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2022-07-01/availabledelegations/method_availabledelegationslist.go b/resource-manager/network/2022-07-01/availabledelegations/method_availabledelegationslist.go index 45c22a5af12..e9a70f09fbc 100644 --- a/resource-manager/network/2022-07-01/availabledelegations/method_availabledelegationslist.go +++ b/resource-manager/network/2022-07-01/availabledelegations/method_availabledelegationslist.go @@ -23,6 +23,18 @@ type AvailableDelegationsListCompleteResult struct { Items []AvailableDelegation } +type AvailableDelegationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailableDelegationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailableDelegationsList ... func (c AvailableDelegationsClient) AvailableDelegationsList(ctx context.Context, id LocationId) (result AvailableDelegationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableDelegationsClient) AvailableDelegationsList(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailableDelegationsListCustomPager{}, Path: fmt.Sprintf("%s/availableDelegations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/availabledelegations/method_availableresourcegroupdelegationslist.go b/resource-manager/network/2022-07-01/availabledelegations/method_availableresourcegroupdelegationslist.go index c507cd333ea..1663af9f165 100644 --- a/resource-manager/network/2022-07-01/availabledelegations/method_availableresourcegroupdelegationslist.go +++ b/resource-manager/network/2022-07-01/availabledelegations/method_availableresourcegroupdelegationslist.go @@ -23,6 +23,18 @@ type AvailableResourceGroupDelegationsListCompleteResult struct { Items []AvailableDelegation } +type AvailableResourceGroupDelegationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailableResourceGroupDelegationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailableResourceGroupDelegationsList ... func (c AvailableDelegationsClient) AvailableResourceGroupDelegationsList(ctx context.Context, id ProviderLocationId) (result AvailableResourceGroupDelegationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableDelegationsClient) AvailableResourceGroupDelegationsList(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailableResourceGroupDelegationsListCustomPager{}, Path: fmt.Sprintf("%s/availableDelegations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/availableservicealiases/method_list.go b/resource-manager/network/2022-07-01/availableservicealiases/method_list.go index f5cd7f6b9a3..702ae41758c 100644 --- a/resource-manager/network/2022-07-01/availableservicealiases/method_list.go +++ b/resource-manager/network/2022-07-01/availableservicealiases/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []AvailableServiceAlias } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AvailableServiceAliasesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableServiceAliasesClient) List(ctx context.Context, id LocationId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/availableServiceAliases", id.ID()), } diff --git a/resource-manager/network/2022-07-01/availableservicealiases/method_listbyresourcegroup.go b/resource-manager/network/2022-07-01/availableservicealiases/method_listbyresourcegroup.go index dedb4883d49..0f1856bad3f 100644 --- a/resource-manager/network/2022-07-01/availableservicealiases/method_listbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/availableservicealiases/method_listbyresourcegroup.go @@ -23,6 +23,18 @@ type ListByResourceGroupCompleteResult struct { Items []AvailableServiceAlias } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Context, id ProviderLocationId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/availableServiceAliases", id.ID()), } diff --git a/resource-manager/network/2022-07-01/azurefirewalls/method_list.go b/resource-manager/network/2022-07-01/azurefirewalls/method_list.go index ffbf3c167c9..305a4b553ef 100644 --- a/resource-manager/network/2022-07-01/azurefirewalls/method_list.go +++ b/resource-manager/network/2022-07-01/azurefirewalls/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AzureFirewall } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AzureFirewallsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AzureFirewallsClient) List(ctx context.Context, id commonids.ResourceGro http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureFirewalls", id.ID()), } diff --git a/resource-manager/network/2022-07-01/azurefirewalls/method_listall.go b/resource-manager/network/2022-07-01/azurefirewalls/method_listall.go index c688f48f1de..be602f8bbd5 100644 --- a/resource-manager/network/2022-07-01/azurefirewalls/method_listall.go +++ b/resource-manager/network/2022-07-01/azurefirewalls/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []AzureFirewall } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c AzureFirewallsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AzureFirewallsClient) ListAll(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureFirewalls", id.ID()), } diff --git a/resource-manager/network/2022-07-01/bastionhosts/method_disconnectactivesessions.go b/resource-manager/network/2022-07-01/bastionhosts/method_disconnectactivesessions.go index c0aac609fe0..b5bf326b6c2 100644 --- a/resource-manager/network/2022-07-01/bastionhosts/method_disconnectactivesessions.go +++ b/resource-manager/network/2022-07-01/bastionhosts/method_disconnectactivesessions.go @@ -23,6 +23,18 @@ type DisconnectActiveSessionsCompleteResult struct { Items []BastionSessionState } +type DisconnectActiveSessionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DisconnectActiveSessionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DisconnectActiveSessions ... func (c BastionHostsClient) DisconnectActiveSessions(ctx context.Context, id BastionHostId, input SessionIds) (result DisconnectActiveSessionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BastionHostsClient) DisconnectActiveSessions(ctx context.Context, id Bas http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &DisconnectActiveSessionsCustomPager{}, Path: fmt.Sprintf("%s/disconnectActiveSessions", id.ID()), } diff --git a/resource-manager/network/2022-07-01/bastionhosts/method_getactivesessions.go b/resource-manager/network/2022-07-01/bastionhosts/method_getactivesessions.go index bc50f38fc50..ef9274ebcca 100644 --- a/resource-manager/network/2022-07-01/bastionhosts/method_getactivesessions.go +++ b/resource-manager/network/2022-07-01/bastionhosts/method_getactivesessions.go @@ -26,6 +26,18 @@ type GetActiveSessionsCompleteResult struct { Items []BastionActiveSession } +type GetActiveSessionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetActiveSessionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetActiveSessions ... func (c BastionHostsClient) GetActiveSessions(ctx context.Context, id BastionHostId) (result GetActiveSessionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c BastionHostsClient) GetActiveSessions(ctx context.Context, id BastionHos http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetActiveSessionsCustomPager{}, Path: fmt.Sprintf("%s/getActiveSessions", id.ID()), } diff --git a/resource-manager/network/2022-07-01/bastionhosts/method_getbastionshareablelink.go b/resource-manager/network/2022-07-01/bastionhosts/method_getbastionshareablelink.go index e97537890ad..c2598119199 100644 --- a/resource-manager/network/2022-07-01/bastionhosts/method_getbastionshareablelink.go +++ b/resource-manager/network/2022-07-01/bastionhosts/method_getbastionshareablelink.go @@ -23,6 +23,18 @@ type GetBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type GetBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBastionShareableLink ... func (c BastionHostsClient) GetBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result GetBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BastionHostsClient) GetBastionShareableLink(ctx context.Context, id Bast http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/getShareableLinks", id.ID()), } diff --git a/resource-manager/network/2022-07-01/bastionhosts/method_list.go b/resource-manager/network/2022-07-01/bastionhosts/method_list.go index e73d8601569..1503bda8513 100644 --- a/resource-manager/network/2022-07-01/bastionhosts/method_list.go +++ b/resource-manager/network/2022-07-01/bastionhosts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BastionHost } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BastionHostsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BastionHostsClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/bastionHosts", id.ID()), } diff --git a/resource-manager/network/2022-07-01/bastionhosts/method_listbyresourcegroup.go b/resource-manager/network/2022-07-01/bastionhosts/method_listbyresourcegroup.go index 5a80cf6aed5..9be179204d2 100644 --- a/resource-manager/network/2022-07-01/bastionhosts/method_listbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/bastionhosts/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []BastionHost } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c BastionHostsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BastionHostsClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/bastionHosts", id.ID()), } diff --git a/resource-manager/network/2022-07-01/bastionhosts/method_putbastionshareablelink.go b/resource-manager/network/2022-07-01/bastionhosts/method_putbastionshareablelink.go index 5f6e7438551..f0a53697d66 100644 --- a/resource-manager/network/2022-07-01/bastionhosts/method_putbastionshareablelink.go +++ b/resource-manager/network/2022-07-01/bastionhosts/method_putbastionshareablelink.go @@ -26,6 +26,18 @@ type PutBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type PutBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PutBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PutBastionShareableLink ... func (c BastionHostsClient) PutBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result PutBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c BastionHostsClient) PutBastionShareableLink(ctx context.Context, id Bast http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &PutBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/createShareableLinks", id.ID()), } diff --git a/resource-manager/network/2022-07-01/bastionshareablelink/method_getbastionshareablelink.go b/resource-manager/network/2022-07-01/bastionshareablelink/method_getbastionshareablelink.go index d6f683c1ce9..2c1e9c470aa 100644 --- a/resource-manager/network/2022-07-01/bastionshareablelink/method_getbastionshareablelink.go +++ b/resource-manager/network/2022-07-01/bastionshareablelink/method_getbastionshareablelink.go @@ -23,6 +23,18 @@ type GetBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type GetBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBastionShareableLink ... func (c BastionShareableLinkClient) GetBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result GetBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BastionShareableLinkClient) GetBastionShareableLink(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/getShareableLinks", id.ID()), } diff --git a/resource-manager/network/2022-07-01/bastionshareablelink/method_putbastionshareablelink.go b/resource-manager/network/2022-07-01/bastionshareablelink/method_putbastionshareablelink.go index bf85b28ee63..7c6c9a0cd1d 100644 --- a/resource-manager/network/2022-07-01/bastionshareablelink/method_putbastionshareablelink.go +++ b/resource-manager/network/2022-07-01/bastionshareablelink/method_putbastionshareablelink.go @@ -26,6 +26,18 @@ type PutBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type PutBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PutBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PutBastionShareableLink ... func (c BastionShareableLinkClient) PutBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result PutBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c BastionShareableLinkClient) PutBastionShareableLink(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &PutBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/createShareableLinks", id.ID()), } diff --git a/resource-manager/network/2022-07-01/bgpservicecommunities/method_list.go b/resource-manager/network/2022-07-01/bgpservicecommunities/method_list.go index 3d8eb8c593e..633bcf897cf 100644 --- a/resource-manager/network/2022-07-01/bgpservicecommunities/method_list.go +++ b/resource-manager/network/2022-07-01/bgpservicecommunities/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BgpServiceCommunity } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BgpServiceCommunitiesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BgpServiceCommunitiesClient) List(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/bgpServiceCommunities", id.ID()), } diff --git a/resource-manager/network/2022-07-01/checkdnsavailabilities/method_checkdnsnameavailability.go b/resource-manager/network/2022-07-01/checkdnsavailabilities/method_checkdnsnameavailability.go index 7a516978d72..276e19a8dd4 100644 --- a/resource-manager/network/2022-07-01/checkdnsavailabilities/method_checkdnsnameavailability.go +++ b/resource-manager/network/2022-07-01/checkdnsavailabilities/method_checkdnsnameavailability.go @@ -53,8 +53,8 @@ func (c CheckDnsAvailabilitiesClient) CheckDnsNameAvailability(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/checkDnsNameAvailability", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/checkDnsNameAvailability", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go b/resource-manager/network/2022-07-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go index b9661797464..b3e6c192d39 100644 --- a/resource-manager/network/2022-07-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go +++ b/resource-manager/network/2022-07-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go @@ -54,8 +54,8 @@ func (c CloudServicePublicIPAddressesClient) PublicIPAddressesGetCloudServicePub http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go b/resource-manager/network/2022-07-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go index 3101695e6b4..11dfd25258c 100644 --- a/resource-manager/network/2022-07-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go +++ b/resource-manager/network/2022-07-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go @@ -23,6 +23,18 @@ type PublicIPAddressesListCloudServicePublicIPAddressesCompleteResult struct { Items []PublicIPAddress } +type PublicIPAddressesListCloudServicePublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListCloudServicePublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListCloudServicePublicIPAddresses ... func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServicePublicIPAddresses(ctx context.Context, id ProviderCloudServiceId) (result PublicIPAddressesListCloudServicePublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServicePu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListCloudServicePublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2022-07-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go b/resource-manager/network/2022-07-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go index 1f8d938cb07..d1b2312ff6e 100644 --- a/resource-manager/network/2022-07-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go +++ b/resource-manager/network/2022-07-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go @@ -24,6 +24,18 @@ type PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCompleteResul Items []PublicIPAddress } +type PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses ... func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses(ctx context.Context, id commonids.CloudServicesIPConfigurationId) (result PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServiceRo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2022-07-01/connectionmonitors/method_createorupdate.go b/resource-manager/network/2022-07-01/connectionmonitors/method_createorupdate.go index b54a54e92b1..f2d252c628d 100644 --- a/resource-manager/network/2022-07-01/connectionmonitors/method_createorupdate.go +++ b/resource-manager/network/2022-07-01/connectionmonitors/method_createorupdate.go @@ -57,8 +57,8 @@ func (c ConnectionMonitorsClient) CreateOrUpdate(ctx context.Context, id Connect http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/connectivityconfigurations/method_delete.go b/resource-manager/network/2022-07-01/connectivityconfigurations/method_delete.go index 39d9c109838..8646fac9ed8 100644 --- a/resource-manager/network/2022-07-01/connectivityconfigurations/method_delete.go +++ b/resource-manager/network/2022-07-01/connectivityconfigurations/method_delete.go @@ -57,8 +57,8 @@ func (c ConnectivityConfigurationsClient) Delete(ctx context.Context, id Connect http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/connectivityconfigurations/method_list.go b/resource-manager/network/2022-07-01/connectivityconfigurations/method_list.go index fd3032351bd..95ba68f0bc1 100644 --- a/resource-manager/network/2022-07-01/connectivityconfigurations/method_list.go +++ b/resource-manager/network/2022-07-01/connectivityconfigurations/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ConnectivityConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ConnectivityConfigurationsClient) List(ctx context.Context, id NetworkMa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/connectivityConfigurations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/connectivityConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/customipprefixes/method_get.go b/resource-manager/network/2022-07-01/customipprefixes/method_get.go index 04442324994..9215609651a 100644 --- a/resource-manager/network/2022-07-01/customipprefixes/method_get.go +++ b/resource-manager/network/2022-07-01/customipprefixes/method_get.go @@ -53,8 +53,8 @@ func (c CustomIPPrefixesClient) Get(ctx context.Context, id CustomIPPrefixId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/customipprefixes/method_list.go b/resource-manager/network/2022-07-01/customipprefixes/method_list.go index 22d7d1e3f86..34b4f325ee9 100644 --- a/resource-manager/network/2022-07-01/customipprefixes/method_list.go +++ b/resource-manager/network/2022-07-01/customipprefixes/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []CustomIPPrefix } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CustomIPPrefixesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CustomIPPrefixesClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/customIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2022-07-01/customipprefixes/method_listall.go b/resource-manager/network/2022-07-01/customipprefixes/method_listall.go index 221ccc71db6..82eb645deab 100644 --- a/resource-manager/network/2022-07-01/customipprefixes/method_listall.go +++ b/resource-manager/network/2022-07-01/customipprefixes/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []CustomIPPrefix } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c CustomIPPrefixesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CustomIPPrefixesClient) ListAll(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/customIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2022-07-01/ddosprotectionplans/method_list.go b/resource-manager/network/2022-07-01/ddosprotectionplans/method_list.go index 4fee924e5b5..3862b150045 100644 --- a/resource-manager/network/2022-07-01/ddosprotectionplans/method_list.go +++ b/resource-manager/network/2022-07-01/ddosprotectionplans/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DdosProtectionPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DdosProtectionPlansClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DdosProtectionPlansClient) List(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ddosProtectionPlans", id.ID()), } diff --git a/resource-manager/network/2022-07-01/ddosprotectionplans/method_listbyresourcegroup.go b/resource-manager/network/2022-07-01/ddosprotectionplans/method_listbyresourcegroup.go index 25cfd986dac..0f9eecd1db7 100644 --- a/resource-manager/network/2022-07-01/ddosprotectionplans/method_listbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/ddosprotectionplans/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DdosProtectionPlan } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ddosProtectionPlans", id.ID()), } diff --git a/resource-manager/network/2022-07-01/dscpconfigurations/method_dscpconfigurationlist.go b/resource-manager/network/2022-07-01/dscpconfigurations/method_dscpconfigurationlist.go index 7cfa7438cce..c3e8d3869d4 100644 --- a/resource-manager/network/2022-07-01/dscpconfigurations/method_dscpconfigurationlist.go +++ b/resource-manager/network/2022-07-01/dscpconfigurations/method_dscpconfigurationlist.go @@ -24,6 +24,18 @@ type DscpConfigurationListCompleteResult struct { Items []DscpConfiguration } +type DscpConfigurationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DscpConfigurationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DscpConfigurationList ... func (c DscpConfigurationsClient) DscpConfigurationList(ctx context.Context, id commonids.ResourceGroupId) (result DscpConfigurationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DscpConfigurationsClient) DscpConfigurationList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DscpConfigurationListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/dscpConfigurations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/dscpconfigurations/method_dscpconfigurationlistall.go b/resource-manager/network/2022-07-01/dscpconfigurations/method_dscpconfigurationlistall.go index 78754cede6d..fe261147a6d 100644 --- a/resource-manager/network/2022-07-01/dscpconfigurations/method_dscpconfigurationlistall.go +++ b/resource-manager/network/2022-07-01/dscpconfigurations/method_dscpconfigurationlistall.go @@ -24,6 +24,18 @@ type DscpConfigurationListAllCompleteResult struct { Items []DscpConfiguration } +type DscpConfigurationListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DscpConfigurationListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DscpConfigurationListAll ... func (c DscpConfigurationsClient) DscpConfigurationListAll(ctx context.Context, id commonids.SubscriptionId) (result DscpConfigurationListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DscpConfigurationsClient) DscpConfigurationListAll(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DscpConfigurationListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/dscpConfigurations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/endpointservices/method_availableendpointserviceslist.go b/resource-manager/network/2022-07-01/endpointservices/method_availableendpointserviceslist.go index d1653d6f5bd..28193e5d9e7 100644 --- a/resource-manager/network/2022-07-01/endpointservices/method_availableendpointserviceslist.go +++ b/resource-manager/network/2022-07-01/endpointservices/method_availableendpointserviceslist.go @@ -23,6 +23,18 @@ type AvailableEndpointServicesListCompleteResult struct { Items []EndpointServiceResult } +type AvailableEndpointServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailableEndpointServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailableEndpointServicesList ... func (c EndpointServicesClient) AvailableEndpointServicesList(ctx context.Context, id LocationId) (result AvailableEndpointServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c EndpointServicesClient) AvailableEndpointServicesList(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailableEndpointServicesListCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkAvailableEndpointServices", id.ID()), } diff --git a/resource-manager/network/2022-07-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go b/resource-manager/network/2022-07-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go index 6e9e9491ca8..27f7b0349e2 100644 --- a/resource-manager/network/2022-07-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go +++ b/resource-manager/network/2022-07-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go @@ -26,6 +26,18 @@ type ExpressRouteCircuitsListArpTableCompleteResult struct { Items []ExpressRouteCircuitArpTable } +type ExpressRouteCircuitsListArpTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCircuitsListArpTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCircuitsListArpTable ... func (c ExpressRouteCircuitArpTableClient) ExpressRouteCircuitsListArpTable(ctx context.Context, id ArpTableId) (result ExpressRouteCircuitsListArpTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCircuitArpTableClient) ExpressRouteCircuitsListArpTable(ctx http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCircuitsListArpTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2022-07-01/expressroutecircuitauthorizations/method_list.go b/resource-manager/network/2022-07-01/expressroutecircuitauthorizations/method_list.go index a689b8d8595..b726cae911d 100644 --- a/resource-manager/network/2022-07-01/expressroutecircuitauthorizations/method_list.go +++ b/resource-manager/network/2022-07-01/expressroutecircuitauthorizations/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuitAuthorization } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, id ExpressRouteCircuitId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, id Ex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/authorizations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/expressroutecircuitconnections/method_list.go b/resource-manager/network/2022-07-01/expressroutecircuitconnections/method_list.go index 706c24c1571..bacd8586f75 100644 --- a/resource-manager/network/2022-07-01/expressroutecircuitconnections/method_list.go +++ b/resource-manager/network/2022-07-01/expressroutecircuitconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuitConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitConnectionsClient) List(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCircuitConnectionsClient) List(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/connections", id.ID()), } diff --git a/resource-manager/network/2022-07-01/expressroutecircuitpeerings/method_list.go b/resource-manager/network/2022-07-01/expressroutecircuitpeerings/method_list.go index 684b16dc8db..ec6d45b259f 100644 --- a/resource-manager/network/2022-07-01/expressroutecircuitpeerings/method_list.go +++ b/resource-manager/network/2022-07-01/expressroutecircuitpeerings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuitPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitPeeringsClient) List(ctx context.Context, id ExpressRouteCircuitId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteCircuitPeeringsClient) List(ctx context.Context, id ExpressR http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerings", id.ID()), } diff --git a/resource-manager/network/2022-07-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go b/resource-manager/network/2022-07-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go index 0d55eeb8353..d193f427f2f 100644 --- a/resource-manager/network/2022-07-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go +++ b/resource-manager/network/2022-07-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go @@ -26,6 +26,18 @@ type ExpressRouteCircuitsListRoutesTableCompleteResult struct { Items []ExpressRouteCircuitRoutesTable } +type ExpressRouteCircuitsListRoutesTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCircuitsListRoutesTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCircuitsListRoutesTable ... func (c ExpressRouteCircuitRoutesTableClient) ExpressRouteCircuitsListRoutesTable(ctx context.Context, id PeeringRouteTableId) (result ExpressRouteCircuitsListRoutesTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCircuitRoutesTableClient) ExpressRouteCircuitsListRoutesTabl http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCircuitsListRoutesTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2022-07-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go b/resource-manager/network/2022-07-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go index 200e1b6b1e8..0cd493a629e 100644 --- a/resource-manager/network/2022-07-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go +++ b/resource-manager/network/2022-07-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go @@ -26,6 +26,18 @@ type ExpressRouteCircuitsListRoutesTableSummaryCompleteResult struct { Items []ExpressRouteCircuitRoutesTableSummary } +type ExpressRouteCircuitsListRoutesTableSummaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCircuitsListRoutesTableSummaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCircuitsListRoutesTableSummary ... func (c ExpressRouteCircuitRoutesTableSummaryClient) ExpressRouteCircuitsListRoutesTableSummary(ctx context.Context, id RouteTablesSummaryId) (result ExpressRouteCircuitsListRoutesTableSummaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCircuitRoutesTableSummaryClient) ExpressRouteCircuitsListRou http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCircuitsListRoutesTableSummaryCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2022-07-01/expressroutecircuits/method_list.go b/resource-manager/network/2022-07-01/expressroutecircuits/method_list.go index 7b016449fdc..dae4c03fa04 100644 --- a/resource-manager/network/2022-07-01/expressroutecircuits/method_list.go +++ b/resource-manager/network/2022-07-01/expressroutecircuits/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuit } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCircuitsClient) List(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCircuits", id.ID()), } diff --git a/resource-manager/network/2022-07-01/expressroutecircuits/method_listall.go b/resource-manager/network/2022-07-01/expressroutecircuits/method_listall.go index 0f6630e21c9..815e72b26ce 100644 --- a/resource-manager/network/2022-07-01/expressroutecircuits/method_listall.go +++ b/resource-manager/network/2022-07-01/expressroutecircuits/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []ExpressRouteCircuit } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c ExpressRouteCircuitsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCircuitsClient) ListAll(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCircuits", id.ID()), } diff --git a/resource-manager/network/2022-07-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go b/resource-manager/network/2022-07-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go index 93cb5d74c61..1aa7aed0b18 100644 --- a/resource-manager/network/2022-07-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go +++ b/resource-manager/network/2022-07-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go @@ -26,6 +26,18 @@ type ExpressRouteCrossConnectionsListArpTableCompleteResult struct { Items []ExpressRouteCircuitArpTable } +type ExpressRouteCrossConnectionsListArpTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCrossConnectionsListArpTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCrossConnectionsListArpTable ... func (c ExpressRouteCrossConnectionArpTableClient) ExpressRouteCrossConnectionsListArpTable(ctx context.Context, id PeeringArpTableId) (result ExpressRouteCrossConnectionsListArpTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCrossConnectionArpTableClient) ExpressRouteCrossConnectionsL http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCrossConnectionsListArpTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2022-07-01/expressroutecrossconnectionpeerings/method_list.go b/resource-manager/network/2022-07-01/expressroutecrossconnectionpeerings/method_list.go index fabd3a8adae..15747a19b47 100644 --- a/resource-manager/network/2022-07-01/expressroutecrossconnectionpeerings/method_list.go +++ b/resource-manager/network/2022-07-01/expressroutecrossconnectionpeerings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteCrossConnectionPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context, id ExpressRouteCrossConnectionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerings", id.ID()), } diff --git a/resource-manager/network/2022-07-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go b/resource-manager/network/2022-07-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go index 75e866bbea7..ad01c57a508 100644 --- a/resource-manager/network/2022-07-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go +++ b/resource-manager/network/2022-07-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go @@ -26,6 +26,18 @@ type ExpressRouteCrossConnectionsListRoutesTableCompleteResult struct { Items []ExpressRouteCircuitRoutesTable } +type ExpressRouteCrossConnectionsListRoutesTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCrossConnectionsListRoutesTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCrossConnectionsListRoutesTable ... func (c ExpressRouteCrossConnectionRouteTableClient) ExpressRouteCrossConnectionsListRoutesTable(ctx context.Context, id ExpressRouteCrossConnectionPeeringRouteTableId) (result ExpressRouteCrossConnectionsListRoutesTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCrossConnectionRouteTableClient) ExpressRouteCrossConnection http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCrossConnectionsListRoutesTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2022-07-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go b/resource-manager/network/2022-07-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go index 06c63e507a1..64acafa8284 100644 --- a/resource-manager/network/2022-07-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go +++ b/resource-manager/network/2022-07-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go @@ -26,6 +26,18 @@ type ExpressRouteCrossConnectionsListRoutesTableSummaryCompleteResult struct { Items []ExpressRouteCrossConnectionRoutesTableSummary } +type ExpressRouteCrossConnectionsListRoutesTableSummaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCrossConnectionsListRoutesTableSummaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCrossConnectionsListRoutesTableSummary ... func (c ExpressRouteCrossConnectionRouteTableSummaryClient) ExpressRouteCrossConnectionsListRoutesTableSummary(ctx context.Context, id PeeringRouteTablesSummaryId) (result ExpressRouteCrossConnectionsListRoutesTableSummaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCrossConnectionRouteTableSummaryClient) ExpressRouteCrossCon http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCrossConnectionsListRoutesTableSummaryCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2022-07-01/expressroutecrossconnections/method_list.go b/resource-manager/network/2022-07-01/expressroutecrossconnections/method_list.go index e469d23f330..dc5aa7af448 100644 --- a/resource-manager/network/2022-07-01/expressroutecrossconnections/method_list.go +++ b/resource-manager/network/2022-07-01/expressroutecrossconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteCrossConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCrossConnections", id.ID()), } diff --git a/resource-manager/network/2022-07-01/expressroutecrossconnections/method_listbyresourcegroup.go b/resource-manager/network/2022-07-01/expressroutecrossconnections/method_listbyresourcegroup.go index 77daf2aa898..f16b017a526 100644 --- a/resource-manager/network/2022-07-01/expressroutecrossconnections/method_listbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/expressroutecrossconnections/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ExpressRouteCrossConnection } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCrossConnections", id.ID()), } diff --git a/resource-manager/network/2022-07-01/expressroutelinks/method_list.go b/resource-manager/network/2022-07-01/expressroutelinks/method_list.go index 80d16ff05a3..bfee432049c 100644 --- a/resource-manager/network/2022-07-01/expressroutelinks/method_list.go +++ b/resource-manager/network/2022-07-01/expressroutelinks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteLink } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteLinksClient) List(ctx context.Context, id ExpressRoutePortId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteLinksClient) List(ctx context.Context, id ExpressRoutePortId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/links", id.ID()), } diff --git a/resource-manager/network/2022-07-01/expressrouteportauthorizations/method_list.go b/resource-manager/network/2022-07-01/expressrouteportauthorizations/method_list.go index 7551539278a..66e64adc644 100644 --- a/resource-manager/network/2022-07-01/expressrouteportauthorizations/method_list.go +++ b/resource-manager/network/2022-07-01/expressrouteportauthorizations/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRoutePortAuthorization } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRoutePortAuthorizationsClient) List(ctx context.Context, id ExpressRoutePortId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRoutePortAuthorizationsClient) List(ctx context.Context, id Expre http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/authorizations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/expressrouteports/method_list.go b/resource-manager/network/2022-07-01/expressrouteports/method_list.go index 0daec47a467..6ad9fc7015f 100644 --- a/resource-manager/network/2022-07-01/expressrouteports/method_list.go +++ b/resource-manager/network/2022-07-01/expressrouteports/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRoutePort } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRoutePortsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRoutePortsClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePorts", id.ID()), } diff --git a/resource-manager/network/2022-07-01/expressrouteports/method_listbyresourcegroup.go b/resource-manager/network/2022-07-01/expressrouteports/method_listbyresourcegroup.go index 11c0c743535..ff3df3bfada 100644 --- a/resource-manager/network/2022-07-01/expressrouteports/method_listbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/expressrouteports/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ExpressRoutePort } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePorts", id.ID()), } diff --git a/resource-manager/network/2022-07-01/expressrouteportslocations/method_list.go b/resource-manager/network/2022-07-01/expressrouteportslocations/method_list.go index cdb1774aac9..32b0a19fa28 100644 --- a/resource-manager/network/2022-07-01/expressrouteportslocations/method_list.go +++ b/resource-manager/network/2022-07-01/expressrouteportslocations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRoutePortsLocation } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRoutePortsLocationsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRoutePortsLocationsClient) List(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePortsLocations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/expressrouteproviderports/method_locationlist.go b/resource-manager/network/2022-07-01/expressrouteproviderports/method_locationlist.go index 816e682da61..ad8f2e59e37 100644 --- a/resource-manager/network/2022-07-01/expressrouteproviderports/method_locationlist.go +++ b/resource-manager/network/2022-07-01/expressrouteproviderports/method_locationlist.go @@ -51,6 +51,18 @@ func (o LocationListOperationOptions) ToQuery() *client.QueryParams { return &out } +type LocationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LocationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LocationList ... func (c ExpressRouteProviderPortsClient) LocationList(ctx context.Context, id commonids.SubscriptionId, options LocationListOperationOptions) (result LocationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ExpressRouteProviderPortsClient) LocationList(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteProviderPorts", id.ID()), OptionsObject: options, + Pager: &LocationListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteProviderPorts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/expressrouteserviceproviders/method_list.go b/resource-manager/network/2022-07-01/expressrouteserviceproviders/method_list.go index 632d9f32454..e8d2935ffea 100644 --- a/resource-manager/network/2022-07-01/expressrouteserviceproviders/method_list.go +++ b/resource-manager/network/2022-07-01/expressrouteserviceproviders/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteServiceProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteServiceProvidersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteServiceProvidersClient) List(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteServiceProviders", id.ID()), } diff --git a/resource-manager/network/2022-07-01/firewallpolicies/method_get.go b/resource-manager/network/2022-07-01/firewallpolicies/method_get.go index 6d04656e020..2eee26d038a 100644 --- a/resource-manager/network/2022-07-01/firewallpolicies/method_get.go +++ b/resource-manager/network/2022-07-01/firewallpolicies/method_get.go @@ -53,8 +53,8 @@ func (c FirewallPoliciesClient) Get(ctx context.Context, id FirewallPolicyId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/firewallpolicies/method_list.go b/resource-manager/network/2022-07-01/firewallpolicies/method_list.go index efe3cd5f08b..84096e094ce 100644 --- a/resource-manager/network/2022-07-01/firewallpolicies/method_list.go +++ b/resource-manager/network/2022-07-01/firewallpolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []FirewallPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/firewallPolicies", id.ID()), } diff --git a/resource-manager/network/2022-07-01/firewallpolicies/method_listall.go b/resource-manager/network/2022-07-01/firewallpolicies/method_listall.go index 1984a126505..8b1106b1f8b 100644 --- a/resource-manager/network/2022-07-01/firewallpolicies/method_listall.go +++ b/resource-manager/network/2022-07-01/firewallpolicies/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []FirewallPolicy } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c FirewallPoliciesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FirewallPoliciesClient) ListAll(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/firewallPolicies", id.ID()), } diff --git a/resource-manager/network/2022-07-01/firewallpolicyrulecollectiongroups/method_list.go b/resource-manager/network/2022-07-01/firewallpolicyrulecollectiongroups/method_list.go index d65b94bc0f4..09dd83c8896 100644 --- a/resource-manager/network/2022-07-01/firewallpolicyrulecollectiongroups/method_list.go +++ b/resource-manager/network/2022-07-01/firewallpolicyrulecollectiongroups/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []FirewallPolicyRuleCollectionGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FirewallPolicyRuleCollectionGroupsClient) List(ctx context.Context, id FirewallPolicyId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallPolicyRuleCollectionGroupsClient) List(ctx context.Context, id F http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/ruleCollectionGroups", id.ID()), } diff --git a/resource-manager/network/2022-07-01/flowlogs/method_list.go b/resource-manager/network/2022-07-01/flowlogs/method_list.go index 9d5d0ccacbd..6652ea30f55 100644 --- a/resource-manager/network/2022-07-01/flowlogs/method_list.go +++ b/resource-manager/network/2022-07-01/flowlogs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []FlowLog } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FlowLogsClient) List(ctx context.Context, id NetworkWatcherId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FlowLogsClient) List(ctx context.Context, id NetworkWatcherId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/flowLogs", id.ID()), } diff --git a/resource-manager/network/2022-07-01/ipallocations/method_get.go b/resource-manager/network/2022-07-01/ipallocations/method_get.go index 6d8c674b8b8..ad7247cf495 100644 --- a/resource-manager/network/2022-07-01/ipallocations/method_get.go +++ b/resource-manager/network/2022-07-01/ipallocations/method_get.go @@ -53,8 +53,8 @@ func (c IPAllocationsClient) Get(ctx context.Context, id IPAllocationId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/ipallocations/method_list.go b/resource-manager/network/2022-07-01/ipallocations/method_list.go index bacc2ab4add..4fa34481651 100644 --- a/resource-manager/network/2022-07-01/ipallocations/method_list.go +++ b/resource-manager/network/2022-07-01/ipallocations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []IPAllocation } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IPAllocationsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPAllocationsClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipAllocations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/ipallocations/method_listbyresourcegroup.go b/resource-manager/network/2022-07-01/ipallocations/method_listbyresourcegroup.go index 4c81449cf9a..85abe9a21cd 100644 --- a/resource-manager/network/2022-07-01/ipallocations/method_listbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/ipallocations/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []IPAllocation } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c IPAllocationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPAllocationsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipAllocations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/ipgroups/method_get.go b/resource-manager/network/2022-07-01/ipgroups/method_get.go index c1a0a108f8e..b0d5717d963 100644 --- a/resource-manager/network/2022-07-01/ipgroups/method_get.go +++ b/resource-manager/network/2022-07-01/ipgroups/method_get.go @@ -53,8 +53,8 @@ func (c IPGroupsClient) Get(ctx context.Context, id IPGroupId, options GetOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/ipgroups/method_list.go b/resource-manager/network/2022-07-01/ipgroups/method_list.go index 08097f9cca2..76ec56d5990 100644 --- a/resource-manager/network/2022-07-01/ipgroups/method_list.go +++ b/resource-manager/network/2022-07-01/ipgroups/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []IPGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IPGroupsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPGroupsClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipGroups", id.ID()), } diff --git a/resource-manager/network/2022-07-01/ipgroups/method_listbyresourcegroup.go b/resource-manager/network/2022-07-01/ipgroups/method_listbyresourcegroup.go index 7b03ce9bb50..16ea08e273b 100644 --- a/resource-manager/network/2022-07-01/ipgroups/method_listbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/ipgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []IPGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c IPGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipGroups", id.ID()), } diff --git a/resource-manager/network/2022-07-01/loadbalancers/method_get.go b/resource-manager/network/2022-07-01/loadbalancers/method_get.go index 5d7f179c315..d810f9e74fb 100644 --- a/resource-manager/network/2022-07-01/loadbalancers/method_get.go +++ b/resource-manager/network/2022-07-01/loadbalancers/method_get.go @@ -53,8 +53,8 @@ func (c LoadBalancersClient) Get(ctx context.Context, id LoadBalancerId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/loadbalancers/method_inboundnatrulesget.go b/resource-manager/network/2022-07-01/loadbalancers/method_inboundnatrulesget.go index 06666b1d382..92acfa0220b 100644 --- a/resource-manager/network/2022-07-01/loadbalancers/method_inboundnatrulesget.go +++ b/resource-manager/network/2022-07-01/loadbalancers/method_inboundnatrulesget.go @@ -53,8 +53,8 @@ func (c LoadBalancersClient) InboundNatRulesGet(ctx context.Context, id InboundN http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/loadbalancers/method_inboundnatruleslist.go b/resource-manager/network/2022-07-01/loadbalancers/method_inboundnatruleslist.go index c9bd66ecc5b..dc6e9711e54 100644 --- a/resource-manager/network/2022-07-01/loadbalancers/method_inboundnatruleslist.go +++ b/resource-manager/network/2022-07-01/loadbalancers/method_inboundnatruleslist.go @@ -23,6 +23,18 @@ type InboundNatRulesListCompleteResult struct { Items []InboundNatRule } +type InboundNatRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *InboundNatRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // InboundNatRulesList ... func (c LoadBalancersClient) InboundNatRulesList(ctx context.Context, id LoadBalancerId) (result InboundNatRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) InboundNatRulesList(ctx context.Context, id LoadBal http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &InboundNatRulesListCustomPager{}, Path: fmt.Sprintf("%s/inboundNatRules", id.ID()), } diff --git a/resource-manager/network/2022-07-01/loadbalancers/method_list.go b/resource-manager/network/2022-07-01/loadbalancers/method_list.go index 05419112689..74ca3569c7b 100644 --- a/resource-manager/network/2022-07-01/loadbalancers/method_list.go +++ b/resource-manager/network/2022-07-01/loadbalancers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []LoadBalancer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LoadBalancersClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LoadBalancersClient) List(ctx context.Context, id commonids.ResourceGrou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/loadBalancers", id.ID()), } diff --git a/resource-manager/network/2022-07-01/loadbalancers/method_listall.go b/resource-manager/network/2022-07-01/loadbalancers/method_listall.go index 25de9239c7f..74f6c49784a 100644 --- a/resource-manager/network/2022-07-01/loadbalancers/method_listall.go +++ b/resource-manager/network/2022-07-01/loadbalancers/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []LoadBalancer } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c LoadBalancersClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LoadBalancersClient) ListAll(ctx context.Context, id commonids.Subscript http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/loadBalancers", id.ID()), } diff --git a/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go b/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go index 67c5b401974..a45c4342539 100644 --- a/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go +++ b/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go @@ -23,6 +23,18 @@ type LoadBalancerBackendAddressPoolsListCompleteResult struct { Items []BackendAddressPool } +type LoadBalancerBackendAddressPoolsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerBackendAddressPoolsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerBackendAddressPoolsList ... func (c LoadBalancersClient) LoadBalancerBackendAddressPoolsList(ctx context.Context, id LoadBalancerId) (result LoadBalancerBackendAddressPoolsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerBackendAddressPoolsList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerBackendAddressPoolsListCustomPager{}, Path: fmt.Sprintf("%s/backendAddressPools", id.ID()), } diff --git a/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go b/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go index ce83fd34344..767da257556 100644 --- a/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go +++ b/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go @@ -23,6 +23,18 @@ type LoadBalancerFrontendIPConfigurationsListCompleteResult struct { Items []FrontendIPConfiguration } +type LoadBalancerFrontendIPConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerFrontendIPConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerFrontendIPConfigurationsList ... func (c LoadBalancersClient) LoadBalancerFrontendIPConfigurationsList(ctx context.Context, id LoadBalancerId) (result LoadBalancerFrontendIPConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerFrontendIPConfigurationsList(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerFrontendIPConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/frontendIPConfigurations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go b/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go index 5ef126fbce4..7c5949418af 100644 --- a/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go +++ b/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go @@ -23,6 +23,18 @@ type LoadBalancerLoadBalancingRulesListCompleteResult struct { Items []LoadBalancingRule } +type LoadBalancerLoadBalancingRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerLoadBalancingRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerLoadBalancingRulesList ... func (c LoadBalancersClient) LoadBalancerLoadBalancingRulesList(ctx context.Context, id LoadBalancerId) (result LoadBalancerLoadBalancingRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerLoadBalancingRulesList(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerLoadBalancingRulesListCustomPager{}, Path: fmt.Sprintf("%s/loadBalancingRules", id.ID()), } diff --git a/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go b/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go index c373e84e508..46b61e66014 100644 --- a/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go +++ b/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go @@ -23,6 +23,18 @@ type LoadBalancerNetworkInterfacesListCompleteResult struct { Items []NetworkInterface } +type LoadBalancerNetworkInterfacesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerNetworkInterfacesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerNetworkInterfacesList ... func (c LoadBalancersClient) LoadBalancerNetworkInterfacesList(ctx context.Context, id LoadBalancerId) (result LoadBalancerNetworkInterfacesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerNetworkInterfacesList(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerNetworkInterfacesListCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2022-07-01/loadbalancers/method_loadbalanceroutboundruleslist.go b/resource-manager/network/2022-07-01/loadbalancers/method_loadbalanceroutboundruleslist.go index 0f894bdbcb6..fe2412b87d5 100644 --- a/resource-manager/network/2022-07-01/loadbalancers/method_loadbalanceroutboundruleslist.go +++ b/resource-manager/network/2022-07-01/loadbalancers/method_loadbalanceroutboundruleslist.go @@ -23,6 +23,18 @@ type LoadBalancerOutboundRulesListCompleteResult struct { Items []OutboundRule } +type LoadBalancerOutboundRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerOutboundRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerOutboundRulesList ... func (c LoadBalancersClient) LoadBalancerOutboundRulesList(ctx context.Context, id LoadBalancerId) (result LoadBalancerOutboundRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerOutboundRulesList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerOutboundRulesListCustomPager{}, Path: fmt.Sprintf("%s/outboundRules", id.ID()), } diff --git a/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerprobeslist.go b/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerprobeslist.go index 62ef7a7e527..e1cdcf50cfa 100644 --- a/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerprobeslist.go +++ b/resource-manager/network/2022-07-01/loadbalancers/method_loadbalancerprobeslist.go @@ -23,6 +23,18 @@ type LoadBalancerProbesListCompleteResult struct { Items []Probe } +type LoadBalancerProbesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerProbesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerProbesList ... func (c LoadBalancersClient) LoadBalancerProbesList(ctx context.Context, id LoadBalancerId) (result LoadBalancerProbesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerProbesList(ctx context.Context, id Load http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerProbesListCustomPager{}, Path: fmt.Sprintf("%s/probes", id.ID()), } diff --git a/resource-manager/network/2022-07-01/localnetworkgateways/method_list.go b/resource-manager/network/2022-07-01/localnetworkgateways/method_list.go index 8a298cd52bc..528ccebe955 100644 --- a/resource-manager/network/2022-07-01/localnetworkgateways/method_list.go +++ b/resource-manager/network/2022-07-01/localnetworkgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []LocalNetworkGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LocalNetworkGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LocalNetworkGatewaysClient) List(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/localNetworkGateways", id.ID()), } diff --git a/resource-manager/network/2022-07-01/natgateways/method_get.go b/resource-manager/network/2022-07-01/natgateways/method_get.go index 43cb3094813..1360eae2873 100644 --- a/resource-manager/network/2022-07-01/natgateways/method_get.go +++ b/resource-manager/network/2022-07-01/natgateways/method_get.go @@ -53,8 +53,8 @@ func (c NatGatewaysClient) Get(ctx context.Context, id NatGatewayId, options Get http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/natgateways/method_list.go b/resource-manager/network/2022-07-01/natgateways/method_list.go index 1f8a5d1a76a..cf6c19572e2 100644 --- a/resource-manager/network/2022-07-01/natgateways/method_list.go +++ b/resource-manager/network/2022-07-01/natgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NatGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NatGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NatGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/natGateways", id.ID()), } diff --git a/resource-manager/network/2022-07-01/natgateways/method_listall.go b/resource-manager/network/2022-07-01/natgateways/method_listall.go index 69aeb402ae1..c417f6a9c19 100644 --- a/resource-manager/network/2022-07-01/natgateways/method_listall.go +++ b/resource-manager/network/2022-07-01/natgateways/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NatGateway } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NatGatewaysClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NatGatewaysClient) ListAll(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/natGateways", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkgroups/method_createorupdate.go b/resource-manager/network/2022-07-01/networkgroups/method_createorupdate.go index dcb392d1ae2..3ab74eeca37 100644 --- a/resource-manager/network/2022-07-01/networkgroups/method_createorupdate.go +++ b/resource-manager/network/2022-07-01/networkgroups/method_createorupdate.go @@ -54,8 +54,8 @@ func (c NetworkGroupsClient) CreateOrUpdate(ctx context.Context, id NetworkGroup http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkgroups/method_delete.go b/resource-manager/network/2022-07-01/networkgroups/method_delete.go index 567e0fb203a..452dbab57a9 100644 --- a/resource-manager/network/2022-07-01/networkgroups/method_delete.go +++ b/resource-manager/network/2022-07-01/networkgroups/method_delete.go @@ -57,8 +57,8 @@ func (c NetworkGroupsClient) Delete(ctx context.Context, id NetworkGroupId, opti http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkgroups/method_list.go b/resource-manager/network/2022-07-01/networkgroups/method_list.go index a802dbd08b3..cff4d8b0a7a 100644 --- a/resource-manager/network/2022-07-01/networkgroups/method_list.go +++ b/resource-manager/network/2022-07-01/networkgroups/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkGroupsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c NetworkGroupsClient) List(ctx context.Context, id NetworkManagerId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/networkGroups", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/networkGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_get.go b/resource-manager/network/2022-07-01/networkinterfaces/method_get.go index 14f4f1d8a0c..e1614af681d 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_get.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_get.go @@ -54,8 +54,8 @@ func (c NetworkInterfacesClient) Get(ctx context.Context, id commonids.NetworkIn http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_getcloudservicenetworkinterface.go b/resource-manager/network/2022-07-01/networkinterfaces/method_getcloudservicenetworkinterface.go index b828e37133d..7f7c58c444c 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_getcloudservicenetworkinterface.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_getcloudservicenetworkinterface.go @@ -53,8 +53,8 @@ func (c NetworkInterfacesClient) GetCloudServiceNetworkInterface(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_geteffectiveroutetable.go b/resource-manager/network/2022-07-01/networkinterfaces/method_geteffectiveroutetable.go index e64977d2735..34e568863a2 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_geteffectiveroutetable.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_geteffectiveroutetable.go @@ -27,6 +27,18 @@ type GetEffectiveRouteTableCompleteResult struct { Items []EffectiveRoute } +type GetEffectiveRouteTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetEffectiveRouteTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetEffectiveRouteTable ... func (c NetworkInterfacesClient) GetEffectiveRouteTable(ctx context.Context, id commonids.NetworkInterfaceId) (result GetEffectiveRouteTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c NetworkInterfacesClient) GetEffectiveRouteTable(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetEffectiveRouteTableCustomPager{}, Path: fmt.Sprintf("%s/effectiveRouteTable", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go b/resource-manager/network/2022-07-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go index c30d98304ca..7a3d2b45272 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go @@ -54,8 +54,8 @@ func (c NetworkInterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go b/resource-manager/network/2022-07-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go index 17ffc7f419c..1bef7a3da95 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go @@ -54,8 +54,8 @@ func (c NetworkInterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_list.go b/resource-manager/network/2022-07-01/networkinterfaces/method_list.go index 0cac5b10455..aba8bcae0a0 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_list.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkInterface } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkInterfacesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) List(ctx context.Context, id commonids.Resource http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_listall.go b/resource-manager/network/2022-07-01/networkinterfaces/method_listall.go index 4e462b5cfc1..aee96a1ced3 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_listall.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NetworkInterface } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NetworkInterfacesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) ListAll(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go b/resource-manager/network/2022-07-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go index e75341c2e34..7a16382102e 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go @@ -23,6 +23,18 @@ type ListCloudServiceNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListCloudServiceNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCloudServiceNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCloudServiceNetworkInterfaces ... func (c NetworkInterfacesClient) ListCloudServiceNetworkInterfaces(ctx context.Context, id ProviderCloudServiceId) (result ListCloudServiceNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListCloudServiceNetworkInterfaces(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCloudServiceNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go b/resource-manager/network/2022-07-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go index 107f550cde5..f4ae2efc987 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go @@ -23,6 +23,18 @@ type ListCloudServiceRoleInstanceNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListCloudServiceRoleInstanceNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCloudServiceRoleInstanceNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCloudServiceRoleInstanceNetworkInterfaces ... func (c NetworkInterfacesClient) ListCloudServiceRoleInstanceNetworkInterfaces(ctx context.Context, id RoleInstanceId) (result ListCloudServiceRoleInstanceNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListCloudServiceRoleInstanceNetworkInterfaces(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCloudServiceRoleInstanceNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go b/resource-manager/network/2022-07-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go index 50661e67194..8316911280d 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go @@ -27,6 +27,18 @@ type ListEffectiveNetworkSecurityGroupsCompleteResult struct { Items []EffectiveNetworkSecurityGroup } +type ListEffectiveNetworkSecurityGroupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListEffectiveNetworkSecurityGroupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListEffectiveNetworkSecurityGroups ... func (c NetworkInterfacesClient) ListEffectiveNetworkSecurityGroups(ctx context.Context, id commonids.NetworkInterfaceId) (result ListEffectiveNetworkSecurityGroupsOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c NetworkInterfacesClient) ListEffectiveNetworkSecurityGroups(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListEffectiveNetworkSecurityGroupsCustomPager{}, Path: fmt.Sprintf("%s/effectiveNetworkSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go b/resource-manager/network/2022-07-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go index eea33cc5ab0..a18bdaf08cf 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go @@ -51,6 +51,18 @@ func (o ListVirtualMachineScaleSetIPConfigurationsOperationOptions) ToQuery() *c return &out } +type ListVirtualMachineScaleSetIPConfigurationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetIPConfigurationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVirtualMachineScaleSetIPConfigurations ... func (c NetworkInterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, id commonids.VirtualMachineScaleSetNetworkInterfaceId, options ListVirtualMachineScaleSetIPConfigurationsOperationOptions) (result ListVirtualMachineScaleSetIPConfigurationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkInterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), OptionsObject: options, + Pager: &ListVirtualMachineScaleSetIPConfigurationsCustomPager{}, + Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go b/resource-manager/network/2022-07-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go index 1b4ce2a6774..968b1c8bbd5 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go @@ -23,6 +23,18 @@ type ListVirtualMachineScaleSetNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListVirtualMachineScaleSetNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVirtualMachineScaleSetNetworkInterfaces ... func (c NetworkInterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, id VirtualMachineScaleSetId) (result ListVirtualMachineScaleSetNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListVirtualMachineScaleSetNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go b/resource-manager/network/2022-07-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go index eaa548b7373..433357587d3 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go @@ -23,6 +23,18 @@ type ListVirtualMachineScaleSetVMNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVirtualMachineScaleSetVMNetworkInterfaces ... func (c NetworkInterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, id VirtualMachineId) (result ListVirtualMachineScaleSetVMNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go b/resource-manager/network/2022-07-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go index 2b472af0913..00a6c20f94c 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go @@ -24,6 +24,18 @@ type NetworkInterfaceIPConfigurationsListCompleteResult struct { Items []NetworkInterfaceIPConfiguration } +type NetworkInterfaceIPConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceIPConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkInterfaceIPConfigurationsList ... func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceIPConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsList(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceIPConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go b/resource-manager/network/2022-07-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go index 8ed1e84ef81..ee4b73b4d8d 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go @@ -24,6 +24,18 @@ type NetworkInterfaceLoadBalancersListCompleteResult struct { Items []LoadBalancer } +type NetworkInterfaceLoadBalancersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceLoadBalancersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkInterfaceLoadBalancersList ... func (c NetworkInterfacesClient) NetworkInterfaceLoadBalancersList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceLoadBalancersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) NetworkInterfaceLoadBalancersList(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceLoadBalancersListCustomPager{}, Path: fmt.Sprintf("%s/loadBalancers", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go b/resource-manager/network/2022-07-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go index 277fda0aa19..96b11107f62 100644 --- a/resource-manager/network/2022-07-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go +++ b/resource-manager/network/2022-07-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go @@ -24,6 +24,18 @@ type NetworkInterfaceTapConfigurationsListCompleteResult struct { Items []NetworkInterfaceTapConfiguration } +type NetworkInterfaceTapConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceTapConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkInterfaceTapConfigurationsList ... func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceTapConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsList(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceTapConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/tapConfigurations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go b/resource-manager/network/2022-07-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go index ddec2f40123..3e9eb347a20 100644 --- a/resource-manager/network/2022-07-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go +++ b/resource-manager/network/2022-07-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go @@ -51,6 +51,18 @@ func (o ManagementGroupNetworkManagerConnectionsListOperationOptions) ToQuery() return &out } +type ManagementGroupNetworkManagerConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ManagementGroupNetworkManagerConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ManagementGroupNetworkManagerConnectionsList ... func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsList(ctx context.Context, id commonids.ManagementGroupId, options ManagementGroupNetworkManagerConnectionsListOperationOptions) (result ManagementGroupNetworkManagerConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnection http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), OptionsObject: options, + Pager: &ManagementGroupNetworkManagerConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go b/resource-manager/network/2022-07-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go index 341b43a227d..ddf403e8a21 100644 --- a/resource-manager/network/2022-07-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go +++ b/resource-manager/network/2022-07-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go @@ -51,6 +51,18 @@ func (o SubscriptionNetworkManagerConnectionsListOperationOptions) ToQuery() *cl return &out } +type SubscriptionNetworkManagerConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SubscriptionNetworkManagerConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SubscriptionNetworkManagerConnectionsList ... func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsList(ctx context.Context, id commonids.SubscriptionId, options SubscriptionNetworkManagerConnectionsListOperationOptions) (result SubscriptionNetworkManagerConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsLi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), OptionsObject: options, + Pager: &SubscriptionNetworkManagerConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkmanagers/method_delete.go b/resource-manager/network/2022-07-01/networkmanagers/method_delete.go index ec825f20cb1..016216c8549 100644 --- a/resource-manager/network/2022-07-01/networkmanagers/method_delete.go +++ b/resource-manager/network/2022-07-01/networkmanagers/method_delete.go @@ -57,8 +57,8 @@ func (c NetworkManagersClient) Delete(ctx context.Context, id NetworkManagerId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkmanagers/method_list.go b/resource-manager/network/2022-07-01/networkmanagers/method_list.go index 18cca161414..86b71cf2d94 100644 --- a/resource-manager/network/2022-07-01/networkmanagers/method_list.go +++ b/resource-manager/network/2022-07-01/networkmanagers/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkManagersClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagersClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkmanagers/method_listbysubscription.go b/resource-manager/network/2022-07-01/networkmanagers/method_listbysubscription.go index 5faa4fab8b1..d45e89952b8 100644 --- a/resource-manager/network/2022-07-01/networkmanagers/method_listbysubscription.go +++ b/resource-manager/network/2022-07-01/networkmanagers/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c NetworkManagersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagersClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkprofiles/method_get.go b/resource-manager/network/2022-07-01/networkprofiles/method_get.go index 3b462d08204..13f98955470 100644 --- a/resource-manager/network/2022-07-01/networkprofiles/method_get.go +++ b/resource-manager/network/2022-07-01/networkprofiles/method_get.go @@ -53,8 +53,8 @@ func (c NetworkProfilesClient) Get(ctx context.Context, id NetworkProfileId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkprofiles/method_list.go b/resource-manager/network/2022-07-01/networkprofiles/method_list.go index 4adcbe6c116..e1bce2a2aa6 100644 --- a/resource-manager/network/2022-07-01/networkprofiles/method_list.go +++ b/resource-manager/network/2022-07-01/networkprofiles/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkProfile } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkProfilesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkProfilesClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkProfiles", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkprofiles/method_listall.go b/resource-manager/network/2022-07-01/networkprofiles/method_listall.go index 8d27928489b..c8509368cef 100644 --- a/resource-manager/network/2022-07-01/networkprofiles/method_listall.go +++ b/resource-manager/network/2022-07-01/networkprofiles/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NetworkProfile } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NetworkProfilesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkProfilesClient) ListAll(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkProfiles", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networksecuritygroups/method_get.go b/resource-manager/network/2022-07-01/networksecuritygroups/method_get.go index debc457321c..6ebe50d00e5 100644 --- a/resource-manager/network/2022-07-01/networksecuritygroups/method_get.go +++ b/resource-manager/network/2022-07-01/networksecuritygroups/method_get.go @@ -53,8 +53,8 @@ func (c NetworkSecurityGroupsClient) Get(ctx context.Context, id NetworkSecurity http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networksecuritygroups/method_list.go b/resource-manager/network/2022-07-01/networksecuritygroups/method_list.go index fb32dd8a5e9..8ebd9f83a71 100644 --- a/resource-manager/network/2022-07-01/networksecuritygroups/method_list.go +++ b/resource-manager/network/2022-07-01/networksecuritygroups/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkSecurityGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkSecurityGroupsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkSecurityGroupsClient) List(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networksecuritygroups/method_listall.go b/resource-manager/network/2022-07-01/networksecuritygroups/method_listall.go index 6e7c1adf74e..a6440c24150 100644 --- a/resource-manager/network/2022-07-01/networksecuritygroups/method_listall.go +++ b/resource-manager/network/2022-07-01/networksecuritygroups/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NetworkSecurityGroup } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NetworkSecurityGroupsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkSecurityGroupsClient) ListAll(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkvirtualappliances/method_get.go b/resource-manager/network/2022-07-01/networkvirtualappliances/method_get.go index ee11638f574..36076f68749 100644 --- a/resource-manager/network/2022-07-01/networkvirtualappliances/method_get.go +++ b/resource-manager/network/2022-07-01/networkvirtualappliances/method_get.go @@ -53,8 +53,8 @@ func (c NetworkVirtualAppliancesClient) Get(ctx context.Context, id NetworkVirtu http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/networkvirtualappliances/method_list.go b/resource-manager/network/2022-07-01/networkvirtualappliances/method_list.go index 8797c5f9720..35259c60e6a 100644 --- a/resource-manager/network/2022-07-01/networkvirtualappliances/method_list.go +++ b/resource-manager/network/2022-07-01/networkvirtualappliances/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkVirtualAppliance } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkVirtualAppliancesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkVirtualAppliancesClient) List(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualAppliances", id.ID()), } diff --git a/resource-manager/network/2022-07-01/networkvirtualappliances/method_listbyresourcegroup.go b/resource-manager/network/2022-07-01/networkvirtualappliances/method_listbyresourcegroup.go index 4557de37925..fe63e8307c6 100644 --- a/resource-manager/network/2022-07-01/networkvirtualappliances/method_listbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/networkvirtualappliances/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []NetworkVirtualAppliance } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NetworkVirtualAppliancesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkVirtualAppliancesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualAppliances", id.ID()), } diff --git a/resource-manager/network/2022-07-01/peerexpressroutecircuitconnections/method_list.go b/resource-manager/network/2022-07-01/peerexpressroutecircuitconnections/method_list.go index f2724c37da1..34a9aaafbe4 100644 --- a/resource-manager/network/2022-07-01/peerexpressroutecircuitconnections/method_list.go +++ b/resource-manager/network/2022-07-01/peerexpressroutecircuitconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PeerExpressRouteCircuitConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerConnections", id.ID()), } diff --git a/resource-manager/network/2022-07-01/privatednszonegroups/method_list.go b/resource-manager/network/2022-07-01/privatednszonegroups/method_list.go index 1f2c22a77bd..3abf08b87af 100644 --- a/resource-manager/network/2022-07-01/privatednszonegroups/method_list.go +++ b/resource-manager/network/2022-07-01/privatednszonegroups/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateDnsZoneGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateDnsZoneGroupsClient) List(ctx context.Context, id PrivateEndpointId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateDnsZoneGroupsClient) List(ctx context.Context, id PrivateEndpoint http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateDnsZoneGroups", id.ID()), } diff --git a/resource-manager/network/2022-07-01/privateendpoints/method_availableprivateendpointtypeslist.go b/resource-manager/network/2022-07-01/privateendpoints/method_availableprivateendpointtypeslist.go index 903cb43bbd7..f0c9af2990d 100644 --- a/resource-manager/network/2022-07-01/privateendpoints/method_availableprivateendpointtypeslist.go +++ b/resource-manager/network/2022-07-01/privateendpoints/method_availableprivateendpointtypeslist.go @@ -23,6 +23,18 @@ type AvailablePrivateEndpointTypesListCompleteResult struct { Items []AvailablePrivateEndpointType } +type AvailablePrivateEndpointTypesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailablePrivateEndpointTypesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailablePrivateEndpointTypesList ... func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesList(ctx context.Context, id LocationId) (result AvailablePrivateEndpointTypesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailablePrivateEndpointTypesListCustomPager{}, Path: fmt.Sprintf("%s/availablePrivateEndpointTypes", id.ID()), } diff --git a/resource-manager/network/2022-07-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go b/resource-manager/network/2022-07-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go index 2b24f418d5d..259ea902b1f 100644 --- a/resource-manager/network/2022-07-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go @@ -23,6 +23,18 @@ type AvailablePrivateEndpointTypesListByResourceGroupCompleteResult struct { Items []AvailablePrivateEndpointType } +type AvailablePrivateEndpointTypesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailablePrivateEndpointTypesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailablePrivateEndpointTypesListByResourceGroup ... func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListByResourceGroup(ctx context.Context, id ProviderLocationId) (result AvailablePrivateEndpointTypesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListByResourceGroup http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailablePrivateEndpointTypesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/availablePrivateEndpointTypes", id.ID()), } diff --git a/resource-manager/network/2022-07-01/privateendpoints/method_get.go b/resource-manager/network/2022-07-01/privateendpoints/method_get.go index 5f913d65fd2..80cad93eef6 100644 --- a/resource-manager/network/2022-07-01/privateendpoints/method_get.go +++ b/resource-manager/network/2022-07-01/privateendpoints/method_get.go @@ -53,8 +53,8 @@ func (c PrivateEndpointsClient) Get(ctx context.Context, id PrivateEndpointId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/privateendpoints/method_list.go b/resource-manager/network/2022-07-01/privateendpoints/method_list.go index 7d43eeb38d8..f832db84c7a 100644 --- a/resource-manager/network/2022-07-01/privateendpoints/method_list.go +++ b/resource-manager/network/2022-07-01/privateendpoints/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PrivateEndpoint } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateEndpointsClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateEndpoints", id.ID()), } diff --git a/resource-manager/network/2022-07-01/privateendpoints/method_listbysubscription.go b/resource-manager/network/2022-07-01/privateendpoints/method_listbysubscription.go index 229bfbb93bf..c517e23cdbf 100644 --- a/resource-manager/network/2022-07-01/privateendpoints/method_listbysubscription.go +++ b/resource-manager/network/2022-07-01/privateendpoints/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PrivateEndpoint } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PrivateEndpointsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateEndpointsClient) ListBySubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateEndpoints", id.ID()), } diff --git a/resource-manager/network/2022-07-01/privatelinkservices/method_get.go b/resource-manager/network/2022-07-01/privatelinkservices/method_get.go index cdd893b10fe..87bddc4d4aa 100644 --- a/resource-manager/network/2022-07-01/privatelinkservices/method_get.go +++ b/resource-manager/network/2022-07-01/privatelinkservices/method_get.go @@ -53,8 +53,8 @@ func (c PrivateLinkServicesClient) Get(ctx context.Context, id PrivateLinkServic http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/privatelinkservices/method_getprivateendpointconnection.go b/resource-manager/network/2022-07-01/privatelinkservices/method_getprivateendpointconnection.go index 1467bb48568..032d2076254 100644 --- a/resource-manager/network/2022-07-01/privatelinkservices/method_getprivateendpointconnection.go +++ b/resource-manager/network/2022-07-01/privatelinkservices/method_getprivateendpointconnection.go @@ -53,8 +53,8 @@ func (c PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/privatelinkservices/method_list.go b/resource-manager/network/2022-07-01/privatelinkservices/method_list.go index 81f52181d79..70140c6dc93 100644 --- a/resource-manager/network/2022-07-01/privatelinkservices/method_list.go +++ b/resource-manager/network/2022-07-01/privatelinkservices/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PrivateLinkService } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkServicesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkServicesClient) List(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateLinkServices", id.ID()), } diff --git a/resource-manager/network/2022-07-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go b/resource-manager/network/2022-07-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go index 3da4d7f36f9..f3156a5739c 100644 --- a/resource-manager/network/2022-07-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go +++ b/resource-manager/network/2022-07-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go @@ -23,6 +23,18 @@ type ListAutoApprovedPrivateLinkServicesCompleteResult struct { Items []AutoApprovedPrivateLinkService } +type ListAutoApprovedPrivateLinkServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAutoApprovedPrivateLinkServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAutoApprovedPrivateLinkServices ... func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx context.Context, id LocationId) (result ListAutoApprovedPrivateLinkServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAutoApprovedPrivateLinkServicesCustomPager{}, Path: fmt.Sprintf("%s/autoApprovedPrivateLinkServices", id.ID()), } diff --git a/resource-manager/network/2022-07-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go b/resource-manager/network/2022-07-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go index 82767396e1d..91eed65255f 100644 --- a/resource-manager/network/2022-07-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go @@ -23,6 +23,18 @@ type ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteResult struct { Items []AutoApprovedPrivateLinkService } +type ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAutoApprovedPrivateLinkServicesByResourceGroup ... func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx context.Context, id ProviderLocationId) (result ListAutoApprovedPrivateLinkServicesByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResource http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/autoApprovedPrivateLinkServices", id.ID()), } diff --git a/resource-manager/network/2022-07-01/privatelinkservices/method_listbysubscription.go b/resource-manager/network/2022-07-01/privatelinkservices/method_listbysubscription.go index 226fcfd8bca..63f9d6bf9c6 100644 --- a/resource-manager/network/2022-07-01/privatelinkservices/method_listbysubscription.go +++ b/resource-manager/network/2022-07-01/privatelinkservices/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PrivateLinkService } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PrivateLinkServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkServicesClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateLinkServices", id.ID()), } diff --git a/resource-manager/network/2022-07-01/privatelinkservices/method_listprivateendpointconnections.go b/resource-manager/network/2022-07-01/privatelinkservices/method_listprivateendpointconnections.go index 2c8c0ae359a..c4742974fe5 100644 --- a/resource-manager/network/2022-07-01/privatelinkservices/method_listprivateendpointconnections.go +++ b/resource-manager/network/2022-07-01/privatelinkservices/method_listprivateendpointconnections.go @@ -23,6 +23,18 @@ type ListPrivateEndpointConnectionsCompleteResult struct { Items []PrivateEndpointConnection } +type ListPrivateEndpointConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPrivateEndpointConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPrivateEndpointConnections ... func (c PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx context.Context, id PrivateLinkServiceId) (result ListPrivateEndpointConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPrivateEndpointConnectionsCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/network/2022-07-01/publicipaddresses/method_get.go b/resource-manager/network/2022-07-01/publicipaddresses/method_get.go index c5f5e5e145e..7045aad8372 100644 --- a/resource-manager/network/2022-07-01/publicipaddresses/method_get.go +++ b/resource-manager/network/2022-07-01/publicipaddresses/method_get.go @@ -54,8 +54,8 @@ func (c PublicIPAddressesClient) Get(ctx context.Context, id commonids.PublicIPA http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/publicipaddresses/method_list.go b/resource-manager/network/2022-07-01/publicipaddresses/method_list.go index 9c8fb822580..013d0306760 100644 --- a/resource-manager/network/2022-07-01/publicipaddresses/method_list.go +++ b/resource-manager/network/2022-07-01/publicipaddresses/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PublicIPAddress } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PublicIPAddressesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPAddressesClient) List(ctx context.Context, id commonids.Resource http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2022-07-01/publicipaddresses/method_listall.go b/resource-manager/network/2022-07-01/publicipaddresses/method_listall.go index 81f1cf1ccf2..fc1c5ecc247 100644 --- a/resource-manager/network/2022-07-01/publicipaddresses/method_listall.go +++ b/resource-manager/network/2022-07-01/publicipaddresses/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []PublicIPAddress } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c PublicIPAddressesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPAddressesClient) ListAll(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2022-07-01/publicipprefixes/method_get.go b/resource-manager/network/2022-07-01/publicipprefixes/method_get.go index 099ab527016..15104f80613 100644 --- a/resource-manager/network/2022-07-01/publicipprefixes/method_get.go +++ b/resource-manager/network/2022-07-01/publicipprefixes/method_get.go @@ -53,8 +53,8 @@ func (c PublicIPPrefixesClient) Get(ctx context.Context, id PublicIPPrefixId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/publicipprefixes/method_list.go b/resource-manager/network/2022-07-01/publicipprefixes/method_list.go index c413af54862..122a9df6f37 100644 --- a/resource-manager/network/2022-07-01/publicipprefixes/method_list.go +++ b/resource-manager/network/2022-07-01/publicipprefixes/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PublicIPPrefix } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PublicIPPrefixesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPPrefixesClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2022-07-01/publicipprefixes/method_listall.go b/resource-manager/network/2022-07-01/publicipprefixes/method_listall.go index c140ae5d7bb..4c49b47b3fe 100644 --- a/resource-manager/network/2022-07-01/publicipprefixes/method_listall.go +++ b/resource-manager/network/2022-07-01/publicipprefixes/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []PublicIPPrefix } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c PublicIPPrefixesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPPrefixesClient) ListAll(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2022-07-01/routefilterrules/method_listbyroutefilter.go b/resource-manager/network/2022-07-01/routefilterrules/method_listbyroutefilter.go index 6e367988a54..5c0268dc0a5 100644 --- a/resource-manager/network/2022-07-01/routefilterrules/method_listbyroutefilter.go +++ b/resource-manager/network/2022-07-01/routefilterrules/method_listbyroutefilter.go @@ -23,6 +23,18 @@ type ListByRouteFilterCompleteResult struct { Items []RouteFilterRule } +type ListByRouteFilterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByRouteFilterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByRouteFilter ... func (c RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, id RouteFilterId) (result ListByRouteFilterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, id RouteF http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByRouteFilterCustomPager{}, Path: fmt.Sprintf("%s/routeFilterRules", id.ID()), } diff --git a/resource-manager/network/2022-07-01/routefilters/method_get.go b/resource-manager/network/2022-07-01/routefilters/method_get.go index 55c6ee5fa8f..d44bd6d46b0 100644 --- a/resource-manager/network/2022-07-01/routefilters/method_get.go +++ b/resource-manager/network/2022-07-01/routefilters/method_get.go @@ -53,8 +53,8 @@ func (c RouteFiltersClient) Get(ctx context.Context, id RouteFilterId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/routefilters/method_list.go b/resource-manager/network/2022-07-01/routefilters/method_list.go index 934ec1fccd5..927387fb2da 100644 --- a/resource-manager/network/2022-07-01/routefilters/method_list.go +++ b/resource-manager/network/2022-07-01/routefilters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []RouteFilter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RouteFiltersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteFiltersClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeFilters", id.ID()), } diff --git a/resource-manager/network/2022-07-01/routefilters/method_listbyresourcegroup.go b/resource-manager/network/2022-07-01/routefilters/method_listbyresourcegroup.go index a320717ba09..256467e7de9 100644 --- a/resource-manager/network/2022-07-01/routefilters/method_listbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/routefilters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []RouteFilter } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c RouteFiltersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteFiltersClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeFilters", id.ID()), } diff --git a/resource-manager/network/2022-07-01/routes/method_list.go b/resource-manager/network/2022-07-01/routes/method_list.go index b54de6d4c7a..dddfb46f64c 100644 --- a/resource-manager/network/2022-07-01/routes/method_list.go +++ b/resource-manager/network/2022-07-01/routes/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Route } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RoutesClient) List(ctx context.Context, id RouteTableId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RoutesClient) List(ctx context.Context, id RouteTableId) (result ListOpe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/routes", id.ID()), } diff --git a/resource-manager/network/2022-07-01/routetables/method_get.go b/resource-manager/network/2022-07-01/routetables/method_get.go index 519ddb2364a..cb19ef16deb 100644 --- a/resource-manager/network/2022-07-01/routetables/method_get.go +++ b/resource-manager/network/2022-07-01/routetables/method_get.go @@ -53,8 +53,8 @@ func (c RouteTablesClient) Get(ctx context.Context, id RouteTableId, options Get http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/routetables/method_list.go b/resource-manager/network/2022-07-01/routetables/method_list.go index 2d99a93be80..c219fd770ef 100644 --- a/resource-manager/network/2022-07-01/routetables/method_list.go +++ b/resource-manager/network/2022-07-01/routetables/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []RouteTable } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RouteTablesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteTablesClient) List(ctx context.Context, id commonids.ResourceGroupI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeTables", id.ID()), } diff --git a/resource-manager/network/2022-07-01/routetables/method_listall.go b/resource-manager/network/2022-07-01/routetables/method_listall.go index 0b505ddf7dc..c3c8de7e20d 100644 --- a/resource-manager/network/2022-07-01/routetables/method_listall.go +++ b/resource-manager/network/2022-07-01/routetables/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []RouteTable } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c RouteTablesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteTablesClient) ListAll(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeTables", id.ID()), } diff --git a/resource-manager/network/2022-07-01/scopeconnections/method_list.go b/resource-manager/network/2022-07-01/scopeconnections/method_list.go index 4f298f36139..c819623c65e 100644 --- a/resource-manager/network/2022-07-01/scopeconnections/method_list.go +++ b/resource-manager/network/2022-07-01/scopeconnections/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScopeConnectionsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ScopeConnectionsClient) List(ctx context.Context, id NetworkManagerId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/scopeConnections", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/scopeConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/securityadminconfigurations/method_delete.go b/resource-manager/network/2022-07-01/securityadminconfigurations/method_delete.go index d08913b2c20..82087f7a71c 100644 --- a/resource-manager/network/2022-07-01/securityadminconfigurations/method_delete.go +++ b/resource-manager/network/2022-07-01/securityadminconfigurations/method_delete.go @@ -57,8 +57,8 @@ func (c SecurityAdminConfigurationsClient) Delete(ctx context.Context, id Securi http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/securityadminconfigurations/method_list.go b/resource-manager/network/2022-07-01/securityadminconfigurations/method_list.go index 4e0a2f41041..8fc4c2c91dc 100644 --- a/resource-manager/network/2022-07-01/securityadminconfigurations/method_list.go +++ b/resource-manager/network/2022-07-01/securityadminconfigurations/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityAdminConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SecurityAdminConfigurationsClient) List(ctx context.Context, id NetworkM http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/securityAdminConfigurations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/securityAdminConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/securitypartnerproviders/method_list.go b/resource-manager/network/2022-07-01/securitypartnerproviders/method_list.go index 2ef1d4133ba..9a4f5451680 100644 --- a/resource-manager/network/2022-07-01/securitypartnerproviders/method_list.go +++ b/resource-manager/network/2022-07-01/securitypartnerproviders/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecurityPartnerProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityPartnerProvidersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityPartnerProvidersClient) List(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/securityPartnerProviders", id.ID()), } diff --git a/resource-manager/network/2022-07-01/securitypartnerproviders/method_listbyresourcegroup.go b/resource-manager/network/2022-07-01/securitypartnerproviders/method_listbyresourcegroup.go index 5e7d3b8e25b..0616c919e32 100644 --- a/resource-manager/network/2022-07-01/securitypartnerproviders/method_listbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/securitypartnerproviders/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SecurityPartnerProvider } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/securityPartnerProviders", id.ID()), } diff --git a/resource-manager/network/2022-07-01/securityrules/method_defaultsecurityruleslist.go b/resource-manager/network/2022-07-01/securityrules/method_defaultsecurityruleslist.go index 9c554b7a019..fbf92af5b89 100644 --- a/resource-manager/network/2022-07-01/securityrules/method_defaultsecurityruleslist.go +++ b/resource-manager/network/2022-07-01/securityrules/method_defaultsecurityruleslist.go @@ -23,6 +23,18 @@ type DefaultSecurityRulesListCompleteResult struct { Items []SecurityRule } +type DefaultSecurityRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DefaultSecurityRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DefaultSecurityRulesList ... func (c SecurityRulesClient) DefaultSecurityRulesList(ctx context.Context, id NetworkSecurityGroupId) (result DefaultSecurityRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SecurityRulesClient) DefaultSecurityRulesList(ctx context.Context, id Ne http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DefaultSecurityRulesListCustomPager{}, Path: fmt.Sprintf("%s/defaultSecurityRules", id.ID()), } diff --git a/resource-manager/network/2022-07-01/securityrules/method_list.go b/resource-manager/network/2022-07-01/securityrules/method_list.go index 791f88e26a1..73b4f2f1a16 100644 --- a/resource-manager/network/2022-07-01/securityrules/method_list.go +++ b/resource-manager/network/2022-07-01/securityrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SecurityRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityRulesClient) List(ctx context.Context, id NetworkSecurityGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SecurityRulesClient) List(ctx context.Context, id NetworkSecurityGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/securityRules", id.ID()), } diff --git a/resource-manager/network/2022-07-01/serviceendpointpolicies/method_get.go b/resource-manager/network/2022-07-01/serviceendpointpolicies/method_get.go index 4b9b1c2e323..8929b01c755 100644 --- a/resource-manager/network/2022-07-01/serviceendpointpolicies/method_get.go +++ b/resource-manager/network/2022-07-01/serviceendpointpolicies/method_get.go @@ -53,8 +53,8 @@ func (c ServiceEndpointPoliciesClient) Get(ctx context.Context, id ServiceEndpoi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/serviceendpointpolicies/method_list.go b/resource-manager/network/2022-07-01/serviceendpointpolicies/method_list.go index 4c8118c4424..3a437224556 100644 --- a/resource-manager/network/2022-07-01/serviceendpointpolicies/method_list.go +++ b/resource-manager/network/2022-07-01/serviceendpointpolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ServiceEndpointPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServiceEndpointPoliciesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServiceEndpointPoliciesClient) List(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/serviceEndpointPolicies", id.ID()), } diff --git a/resource-manager/network/2022-07-01/serviceendpointpolicies/method_listbyresourcegroup.go b/resource-manager/network/2022-07-01/serviceendpointpolicies/method_listbyresourcegroup.go index 1e00f2516e2..384f7dc28fe 100644 --- a/resource-manager/network/2022-07-01/serviceendpointpolicies/method_listbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/serviceendpointpolicies/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ServiceEndpointPolicy } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/serviceEndpointPolicies", id.ID()), } diff --git a/resource-manager/network/2022-07-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go b/resource-manager/network/2022-07-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go index 17bb8bc3fc1..a4f79aa4d80 100644 --- a/resource-manager/network/2022-07-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go @@ -23,6 +23,18 @@ type ListByResourceGroupCompleteResult struct { Items []ServiceEndpointPolicyDefinition } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx context.Context, id ServiceEndpointPolicyId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/serviceEndpointPolicyDefinitions", id.ID()), } diff --git a/resource-manager/network/2022-07-01/servicetags/method_servicetaginformationlist.go b/resource-manager/network/2022-07-01/servicetags/method_servicetaginformationlist.go index a1ec8327d54..7c6de375541 100644 --- a/resource-manager/network/2022-07-01/servicetags/method_servicetaginformationlist.go +++ b/resource-manager/network/2022-07-01/servicetags/method_servicetaginformationlist.go @@ -54,6 +54,18 @@ func (o ServiceTagInformationListOperationOptions) ToQuery() *client.QueryParams return &out } +type ServiceTagInformationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceTagInformationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceTagInformationList ... func (c ServiceTagsClient) ServiceTagInformationList(ctx context.Context, id LocationId, options ServiceTagInformationListOperationOptions) (result ServiceTagInformationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ServiceTagsClient) ServiceTagInformationList(ctx context.Context, id Loc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/serviceTagDetails", id.ID()), OptionsObject: options, + Pager: &ServiceTagInformationListCustomPager{}, + Path: fmt.Sprintf("%s/serviceTagDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/staticmembers/method_list.go b/resource-manager/network/2022-07-01/staticmembers/method_list.go index fc087d77dc0..ac0788a5a34 100644 --- a/resource-manager/network/2022-07-01/staticmembers/method_list.go +++ b/resource-manager/network/2022-07-01/staticmembers/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StaticMembersClient) List(ctx context.Context, id NetworkGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c StaticMembersClient) List(ctx context.Context, id NetworkGroupId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/staticMembers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/staticMembers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/subnets/method_get.go b/resource-manager/network/2022-07-01/subnets/method_get.go index f43b6e2df8f..d77795ad632 100644 --- a/resource-manager/network/2022-07-01/subnets/method_get.go +++ b/resource-manager/network/2022-07-01/subnets/method_get.go @@ -54,8 +54,8 @@ func (c SubnetsClient) Get(ctx context.Context, id commonids.SubnetId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/subnets/method_list.go b/resource-manager/network/2022-07-01/subnets/method_list.go index 9d636728719..b9424e85280 100644 --- a/resource-manager/network/2022-07-01/subnets/method_list.go +++ b/resource-manager/network/2022-07-01/subnets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Subnet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SubnetsClient) List(ctx context.Context, id commonids.VirtualNetworkId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SubnetsClient) List(ctx context.Context, id commonids.VirtualNetworkId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/subnets", id.ID()), } diff --git a/resource-manager/network/2022-07-01/usages/method_list.go b/resource-manager/network/2022-07-01/usages/method_list.go index 6f4166f6dfc..76d13699e0c 100644 --- a/resource-manager/network/2022-07-01/usages/method_list.go +++ b/resource-manager/network/2022-07-01/usages/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Usage } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UsagesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UsagesClient) List(ctx context.Context, id LocationId) (result ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualappliancesites/method_list.go b/resource-manager/network/2022-07-01/virtualappliancesites/method_list.go index b8a9fc0c70b..ed83c3497ea 100644 --- a/resource-manager/network/2022-07-01/virtualappliancesites/method_list.go +++ b/resource-manager/network/2022-07-01/virtualappliancesites/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualApplianceSite } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualApplianceSitesClient) List(ctx context.Context, id NetworkVirtualApplianceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualApplianceSitesClient) List(ctx context.Context, id NetworkVirtual http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/virtualApplianceSites", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualapplianceskus/method_list.go b/resource-manager/network/2022-07-01/virtualapplianceskus/method_list.go index 1e8f39f7e10..a4af9a60bb6 100644 --- a/resource-manager/network/2022-07-01/virtualapplianceskus/method_list.go +++ b/resource-manager/network/2022-07-01/virtualapplianceskus/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkVirtualApplianceSku } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualApplianceSkusClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualApplianceSkusClient) List(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualApplianceSkus", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualnetworkgatewayconnections/method_list.go b/resource-manager/network/2022-07-01/virtualnetworkgatewayconnections/method_list.go index 6c9d02a4538..34dc525dce4 100644 --- a/resource-manager/network/2022-07-01/virtualnetworkgatewayconnections/method_list.go +++ b/resource-manager/network/2022-07-01/virtualnetworkgatewayconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetworkGatewayConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/connections", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualnetworkgateways/method_getadvertisedroutes.go b/resource-manager/network/2022-07-01/virtualnetworkgateways/method_getadvertisedroutes.go index 81a82f3fee4..d0dde50a8c6 100644 --- a/resource-manager/network/2022-07-01/virtualnetworkgateways/method_getadvertisedroutes.go +++ b/resource-manager/network/2022-07-01/virtualnetworkgateways/method_getadvertisedroutes.go @@ -57,8 +57,8 @@ func (c VirtualNetworkGatewaysClient) GetAdvertisedRoutes(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getAdvertisedRoutes", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getAdvertisedRoutes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/virtualnetworkgateways/method_getbgppeerstatus.go b/resource-manager/network/2022-07-01/virtualnetworkgateways/method_getbgppeerstatus.go index f8e0d0d0aae..5e6a04ac485 100644 --- a/resource-manager/network/2022-07-01/virtualnetworkgateways/method_getbgppeerstatus.go +++ b/resource-manager/network/2022-07-01/virtualnetworkgateways/method_getbgppeerstatus.go @@ -57,8 +57,8 @@ func (c VirtualNetworkGatewaysClient) GetBgpPeerStatus(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getBgpPeerStatus", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getBgpPeerStatus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/virtualnetworkgateways/method_list.go b/resource-manager/network/2022-07-01/virtualnetworkgateways/method_list.go index 71bb6d6e8be..8266a51728d 100644 --- a/resource-manager/network/2022-07-01/virtualnetworkgateways/method_list.go +++ b/resource-manager/network/2022-07-01/virtualnetworkgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetworkGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworkGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkGatewaysClient) List(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworkGateways", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualnetworkgateways/method_listconnections.go b/resource-manager/network/2022-07-01/virtualnetworkgateways/method_listconnections.go index 11416dae415..2f13ca7b97c 100644 --- a/resource-manager/network/2022-07-01/virtualnetworkgateways/method_listconnections.go +++ b/resource-manager/network/2022-07-01/virtualnetworkgateways/method_listconnections.go @@ -23,6 +23,18 @@ type ListConnectionsCompleteResult struct { Items []VirtualNetworkGatewayConnectionListEntity } +type ListConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConnections ... func (c VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, id VirtualNetworkGatewayId) (result ListConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, id Vi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConnectionsCustomPager{}, Path: fmt.Sprintf("%s/connections", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualnetworkgateways/method_reset.go b/resource-manager/network/2022-07-01/virtualnetworkgateways/method_reset.go index d766e3f0c62..433a2126e07 100644 --- a/resource-manager/network/2022-07-01/virtualnetworkgateways/method_reset.go +++ b/resource-manager/network/2022-07-01/virtualnetworkgateways/method_reset.go @@ -57,8 +57,8 @@ func (c VirtualNetworkGatewaysClient) Reset(ctx context.Context, id VirtualNetwo http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/reset", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/reset", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go b/resource-manager/network/2022-07-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go index 9fc49217e2c..ce8ee5c4965 100644 --- a/resource-manager/network/2022-07-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go +++ b/resource-manager/network/2022-07-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go @@ -23,6 +23,18 @@ type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteResult stru Items []VirtualNetworkGatewayNatRule } +type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway ... func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway(ctx context.Context, id VirtualNetworkGatewayId) (result VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesListByVirtual http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager{}, Path: fmt.Sprintf("%s/natRules", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualnetworkpeerings/method_createorupdate.go b/resource-manager/network/2022-07-01/virtualnetworkpeerings/method_createorupdate.go index e7fcc91436e..aba174940d2 100644 --- a/resource-manager/network/2022-07-01/virtualnetworkpeerings/method_createorupdate.go +++ b/resource-manager/network/2022-07-01/virtualnetworkpeerings/method_createorupdate.go @@ -57,8 +57,8 @@ func (c VirtualNetworkPeeringsClient) CreateOrUpdate(ctx context.Context, id Vir http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/virtualnetworkpeerings/method_list.go b/resource-manager/network/2022-07-01/virtualnetworkpeerings/method_list.go index 614ef8d907f..a18c0885cc9 100644 --- a/resource-manager/network/2022-07-01/virtualnetworkpeerings/method_list.go +++ b/resource-manager/network/2022-07-01/virtualnetworkpeerings/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetworkPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworkPeeringsClient) List(ctx context.Context, id commonids.VirtualNetworkId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkPeeringsClient) List(ctx context.Context, id commonids.Vir http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkPeerings", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualnetworks/method_get.go b/resource-manager/network/2022-07-01/virtualnetworks/method_get.go index e40ab49ec8e..189fd2689c1 100644 --- a/resource-manager/network/2022-07-01/virtualnetworks/method_get.go +++ b/resource-manager/network/2022-07-01/virtualnetworks/method_get.go @@ -54,8 +54,8 @@ func (c VirtualNetworksClient) Get(ctx context.Context, id commonids.VirtualNetw http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/virtualnetworks/method_list.go b/resource-manager/network/2022-07-01/virtualnetworks/method_list.go index 9162506d2da..e540706223a 100644 --- a/resource-manager/network/2022-07-01/virtualnetworks/method_list.go +++ b/resource-manager/network/2022-07-01/virtualnetworks/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetwork } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworksClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworks", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualnetworks/method_listall.go b/resource-manager/network/2022-07-01/virtualnetworks/method_listall.go index 06795ae6091..e91f96c1cf3 100644 --- a/resource-manager/network/2022-07-01/virtualnetworks/method_listall.go +++ b/resource-manager/network/2022-07-01/virtualnetworks/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []VirtualNetwork } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualNetworksClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ListAll(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworks", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualnetworks/method_resourcenavigationlinkslist.go b/resource-manager/network/2022-07-01/virtualnetworks/method_resourcenavigationlinkslist.go index 9a0b9b15f44..16f353bcd4e 100644 --- a/resource-manager/network/2022-07-01/virtualnetworks/method_resourcenavigationlinkslist.go +++ b/resource-manager/network/2022-07-01/virtualnetworks/method_resourcenavigationlinkslist.go @@ -24,6 +24,18 @@ type ResourceNavigationLinksListCompleteResult struct { Items []ResourceNavigationLink } +type ResourceNavigationLinksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceNavigationLinksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourceNavigationLinksList ... func (c VirtualNetworksClient) ResourceNavigationLinksList(ctx context.Context, id commonids.SubnetId) (result ResourceNavigationLinksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ResourceNavigationLinksList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourceNavigationLinksListCustomPager{}, Path: fmt.Sprintf("%s/resourceNavigationLinks", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualnetworks/method_serviceassociationlinkslist.go b/resource-manager/network/2022-07-01/virtualnetworks/method_serviceassociationlinkslist.go index 5d6fbf0b927..c246c98a15b 100644 --- a/resource-manager/network/2022-07-01/virtualnetworks/method_serviceassociationlinkslist.go +++ b/resource-manager/network/2022-07-01/virtualnetworks/method_serviceassociationlinkslist.go @@ -24,6 +24,18 @@ type ServiceAssociationLinksListCompleteResult struct { Items []ServiceAssociationLink } +type ServiceAssociationLinksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceAssociationLinksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceAssociationLinksList ... func (c VirtualNetworksClient) ServiceAssociationLinksList(ctx context.Context, id commonids.SubnetId) (result ServiceAssociationLinksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ServiceAssociationLinksList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServiceAssociationLinksListCustomPager{}, Path: fmt.Sprintf("%s/serviceAssociationLinks", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go b/resource-manager/network/2022-07-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go index 85ba4d73ccd..1f434189786 100644 --- a/resource-manager/network/2022-07-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go +++ b/resource-manager/network/2022-07-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go @@ -54,8 +54,8 @@ func (c VirtualNetworksClient) VirtualNetworksCheckIPAddressAvailability(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/checkIPAddressAvailability", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/checkIPAddressAvailability", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go b/resource-manager/network/2022-07-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go index c0872952086..d48736807d5 100644 --- a/resource-manager/network/2022-07-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go +++ b/resource-manager/network/2022-07-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go @@ -58,6 +58,18 @@ func (o VirtualNetworksListDdosProtectionStatusOperationOptions) ToQuery() *clie return &out } +type VirtualNetworksListDdosProtectionStatusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworksListDdosProtectionStatusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualNetworksListDdosProtectionStatus ... func (c VirtualNetworksClient) VirtualNetworksListDdosProtectionStatus(ctx context.Context, id commonids.VirtualNetworkId, options VirtualNetworksListDdosProtectionStatusOperationOptions) (result VirtualNetworksListDdosProtectionStatusOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c VirtualNetworksClient) VirtualNetworksListDdosProtectionStatus(ctx conte http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/ddosProtectionStatus", id.ID()), OptionsObject: options, + Pager: &VirtualNetworksListDdosProtectionStatusCustomPager{}, + Path: fmt.Sprintf("%s/ddosProtectionStatus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/virtualnetworks/method_virtualnetworkslistusage.go b/resource-manager/network/2022-07-01/virtualnetworks/method_virtualnetworkslistusage.go index 546a8bbc316..cfc1a239a93 100644 --- a/resource-manager/network/2022-07-01/virtualnetworks/method_virtualnetworkslistusage.go +++ b/resource-manager/network/2022-07-01/virtualnetworks/method_virtualnetworkslistusage.go @@ -24,6 +24,18 @@ type VirtualNetworksListUsageCompleteResult struct { Items []VirtualNetworkUsage } +type VirtualNetworksListUsageCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworksListUsageCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualNetworksListUsage ... func (c VirtualNetworksClient) VirtualNetworksListUsage(ctx context.Context, id commonids.VirtualNetworkId) (result VirtualNetworksListUsageOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) VirtualNetworksListUsage(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualNetworksListUsageCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualnetworktaps/method_listall.go b/resource-manager/network/2022-07-01/virtualnetworktaps/method_listall.go index aba7596749e..c73f4d2a3eb 100644 --- a/resource-manager/network/2022-07-01/virtualnetworktaps/method_listall.go +++ b/resource-manager/network/2022-07-01/virtualnetworktaps/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []VirtualNetworkTap } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualNetworkTapsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkTapsClient) ListAll(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworkTaps", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualnetworktaps/method_listbyresourcegroup.go b/resource-manager/network/2022-07-01/virtualnetworktaps/method_listbyresourcegroup.go index 7377c5f3294..91d504091c5 100644 --- a/resource-manager/network/2022-07-01/virtualnetworktaps/method_listbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/virtualnetworktaps/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualNetworkTap } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworkTaps", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualrouterpeerings/method_list.go b/resource-manager/network/2022-07-01/virtualrouterpeerings/method_list.go index c0a333e6c0d..276300c6796 100644 --- a/resource-manager/network/2022-07-01/virtualrouterpeerings/method_list.go +++ b/resource-manager/network/2022-07-01/virtualrouterpeerings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualRouterPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualRouterPeeringsClient) List(ctx context.Context, id VirtualRouterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualRouterPeeringsClient) List(ctx context.Context, id VirtualRouterI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerings", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualrouters/method_get.go b/resource-manager/network/2022-07-01/virtualrouters/method_get.go index 2e829ce071e..39415fad17f 100644 --- a/resource-manager/network/2022-07-01/virtualrouters/method_get.go +++ b/resource-manager/network/2022-07-01/virtualrouters/method_get.go @@ -53,8 +53,8 @@ func (c VirtualRoutersClient) Get(ctx context.Context, id VirtualRouterId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/virtualrouters/method_list.go b/resource-manager/network/2022-07-01/virtualrouters/method_list.go index db67e56568e..414434d4b95 100644 --- a/resource-manager/network/2022-07-01/virtualrouters/method_list.go +++ b/resource-manager/network/2022-07-01/virtualrouters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualRouter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualRoutersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualRoutersClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualRouters", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualrouters/method_listbyresourcegroup.go b/resource-manager/network/2022-07-01/virtualrouters/method_listbyresourcegroup.go index 9f01dcc539a..b34c6e266b7 100644 --- a/resource-manager/network/2022-07-01/virtualrouters/method_listbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/virtualrouters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualRouter } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualRoutersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualRoutersClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualRouters", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go b/resource-manager/network/2022-07-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go index 4d60c8f1419..d8055521e53 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go @@ -23,6 +23,18 @@ type ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteResult struct Items []VpnServerConfigurationPolicyGroup } +type ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationPolicyGroupsListByVpnServerConfiguration ... func (c VirtualWANsClient) ConfigurationPolicyGroupsListByVpnServerConfiguration(ctx context.Context, id VpnServerConfigurationId) (result ConfigurationPolicyGroupsListByVpnServerConfigurationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) ConfigurationPolicyGroupsListByVpnServerConfiguration http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager{}, Path: fmt.Sprintf("%s/configurationPolicyGroups", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_hubroutetableslist.go b/resource-manager/network/2022-07-01/virtualwans/method_hubroutetableslist.go index e95318b1194..d36631c9289 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_hubroutetableslist.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_hubroutetableslist.go @@ -23,6 +23,18 @@ type HubRouteTablesListCompleteResult struct { Items []HubRouteTable } +type HubRouteTablesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HubRouteTablesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // HubRouteTablesList ... func (c VirtualWANsClient) HubRouteTablesList(ctx context.Context, id VirtualHubId) (result HubRouteTablesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) HubRouteTablesList(ctx context.Context, id VirtualHub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &HubRouteTablesListCustomPager{}, Path: fmt.Sprintf("%s/hubRouteTables", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_hubvirtualnetworkconnectionslist.go b/resource-manager/network/2022-07-01/virtualwans/method_hubvirtualnetworkconnectionslist.go index baf9dedf27b..9ba166e19d8 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_hubvirtualnetworkconnectionslist.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_hubvirtualnetworkconnectionslist.go @@ -23,6 +23,18 @@ type HubVirtualNetworkConnectionsListCompleteResult struct { Items []HubVirtualNetworkConnection } +type HubVirtualNetworkConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HubVirtualNetworkConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // HubVirtualNetworkConnectionsList ... func (c VirtualWANsClient) HubVirtualNetworkConnectionsList(ctx context.Context, id VirtualHubId) (result HubVirtualNetworkConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) HubVirtualNetworkConnectionsList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &HubVirtualNetworkConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/hubVirtualNetworkConnections", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_natruleslistbyvpngateway.go b/resource-manager/network/2022-07-01/virtualwans/method_natruleslistbyvpngateway.go index 7c30bd1de6f..e5393de1385 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_natruleslistbyvpngateway.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_natruleslistbyvpngateway.go @@ -23,6 +23,18 @@ type NatRulesListByVpnGatewayCompleteResult struct { Items []VpnGatewayNatRule } +type NatRulesListByVpnGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NatRulesListByVpnGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NatRulesListByVpnGateway ... func (c VirtualWANsClient) NatRulesListByVpnGateway(ctx context.Context, id VpnGatewayId) (result NatRulesListByVpnGatewayOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) NatRulesListByVpnGateway(ctx context.Context, id VpnG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NatRulesListByVpnGatewayCustomPager{}, Path: fmt.Sprintf("%s/natRules", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_p2svpngatewayslist.go b/resource-manager/network/2022-07-01/virtualwans/method_p2svpngatewayslist.go index fff4e439357..b51053de49e 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_p2svpngatewayslist.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_p2svpngatewayslist.go @@ -24,6 +24,18 @@ type P2sVpnGatewaysListCompleteResult struct { Items []P2SVpnGateway } +type P2sVpnGatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *P2sVpnGatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // P2sVpnGatewaysList ... func (c VirtualWANsClient) P2sVpnGatewaysList(ctx context.Context, id commonids.SubscriptionId) (result P2sVpnGatewaysListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) P2sVpnGatewaysList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &P2sVpnGatewaysListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/p2sVpnGateways", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go b/resource-manager/network/2022-07-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go index 0224c82328e..1c57fc684fa 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go @@ -24,6 +24,18 @@ type P2sVpnGatewaysListByResourceGroupCompleteResult struct { Items []P2SVpnGateway } +type P2sVpnGatewaysListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *P2sVpnGatewaysListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // P2sVpnGatewaysListByResourceGroup ... func (c VirtualWANsClient) P2sVpnGatewaysListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result P2sVpnGatewaysListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) P2sVpnGatewaysListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &P2sVpnGatewaysListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/p2sVpnGateways", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_routemapslist.go b/resource-manager/network/2022-07-01/virtualwans/method_routemapslist.go index 3def8ca78d2..a9eddc11d95 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_routemapslist.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_routemapslist.go @@ -23,6 +23,18 @@ type RouteMapsListCompleteResult struct { Items []RouteMap } +type RouteMapsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RouteMapsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RouteMapsList ... func (c VirtualWANsClient) RouteMapsList(ctx context.Context, id VirtualHubId) (result RouteMapsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) RouteMapsList(ctx context.Context, id VirtualHubId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RouteMapsListCustomPager{}, Path: fmt.Sprintf("%s/routeMaps", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_routingintentlist.go b/resource-manager/network/2022-07-01/virtualwans/method_routingintentlist.go index ef858aa2b50..b3edd99b519 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_routingintentlist.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_routingintentlist.go @@ -23,6 +23,18 @@ type RoutingIntentListCompleteResult struct { Items []RoutingIntent } +type RoutingIntentListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RoutingIntentListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RoutingIntentList ... func (c VirtualWANsClient) RoutingIntentList(ctx context.Context, id VirtualHubId) (result RoutingIntentListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) RoutingIntentList(ctx context.Context, id VirtualHubI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RoutingIntentListCustomPager{}, Path: fmt.Sprintf("%s/routingIntent", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_virtualhubbgpconnectionslist.go b/resource-manager/network/2022-07-01/virtualwans/method_virtualhubbgpconnectionslist.go index c4b5ea29e18..802bf0b65b9 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_virtualhubbgpconnectionslist.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_virtualhubbgpconnectionslist.go @@ -23,6 +23,18 @@ type VirtualHubBgpConnectionsListCompleteResult struct { Items []BgpConnection } +type VirtualHubBgpConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubBgpConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubBgpConnectionsList ... func (c VirtualWANsClient) VirtualHubBgpConnectionsList(ctx context.Context, id VirtualHubId) (result VirtualHubBgpConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VirtualHubBgpConnectionsList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubBgpConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/bgpConnections", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_virtualhubipconfigurationlist.go b/resource-manager/network/2022-07-01/virtualwans/method_virtualhubipconfigurationlist.go index c3fa2ae6e69..8ae13b9fb7d 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_virtualhubipconfigurationlist.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_virtualhubipconfigurationlist.go @@ -23,6 +23,18 @@ type VirtualHubIPConfigurationListCompleteResult struct { Items []HubIPConfiguration } +type VirtualHubIPConfigurationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubIPConfigurationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubIPConfigurationList ... func (c VirtualWANsClient) VirtualHubIPConfigurationList(ctx context.Context, id VirtualHubId) (result VirtualHubIPConfigurationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VirtualHubIPConfigurationList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubIPConfigurationListCustomPager{}, Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_virtualhubroutetablev2slist.go b/resource-manager/network/2022-07-01/virtualwans/method_virtualhubroutetablev2slist.go index 1687bef7d4c..cf9c9ef61a3 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_virtualhubroutetablev2slist.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_virtualhubroutetablev2slist.go @@ -23,6 +23,18 @@ type VirtualHubRouteTableV2sListCompleteResult struct { Items []VirtualHubRouteTableV2 } +type VirtualHubRouteTableV2sListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubRouteTableV2sListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubRouteTableV2sList ... func (c VirtualWANsClient) VirtualHubRouteTableV2sList(ctx context.Context, id VirtualHubId) (result VirtualHubRouteTableV2sListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VirtualHubRouteTableV2sList(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubRouteTableV2sListCustomPager{}, Path: fmt.Sprintf("%s/routeTables", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_virtualhubslist.go b/resource-manager/network/2022-07-01/virtualwans/method_virtualhubslist.go index 49ab6fcec34..d8fa3805233 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_virtualhubslist.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_virtualhubslist.go @@ -24,6 +24,18 @@ type VirtualHubsListCompleteResult struct { Items []VirtualHub } +type VirtualHubsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubsList ... func (c VirtualWANsClient) VirtualHubsList(ctx context.Context, id commonids.SubscriptionId) (result VirtualHubsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualHubsList(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualHubs", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_virtualhubslistbyresourcegroup.go b/resource-manager/network/2022-07-01/virtualwans/method_virtualhubslistbyresourcegroup.go index 2eabf9bea70..9427d542093 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_virtualhubslistbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_virtualhubslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VirtualHubsListByResourceGroupCompleteResult struct { Items []VirtualHub } +type VirtualHubsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubsListByResourceGroup ... func (c VirtualWANsClient) VirtualHubsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VirtualHubsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualHubsListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualHubs", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_virtualwanslist.go b/resource-manager/network/2022-07-01/virtualwans/method_virtualwanslist.go index 394200ffe81..8a8cb8514e3 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_virtualwanslist.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_virtualwanslist.go @@ -24,6 +24,18 @@ type VirtualWansListCompleteResult struct { Items []VirtualWAN } +type VirtualWansListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualWansListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualWansList ... func (c VirtualWANsClient) VirtualWansList(ctx context.Context, id commonids.SubscriptionId) (result VirtualWansListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualWansList(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualWansListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualWans", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_virtualwanslistbyresourcegroup.go b/resource-manager/network/2022-07-01/virtualwans/method_virtualwanslistbyresourcegroup.go index fec869f75be..24b02c20232 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_virtualwanslistbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_virtualwanslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VirtualWansListByResourceGroupCompleteResult struct { Items []VirtualWAN } +type VirtualWansListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualWansListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualWansListByResourceGroup ... func (c VirtualWANsClient) VirtualWansListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VirtualWansListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualWansListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualWansListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualWans", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_vpnconnectionslistbyvpngateway.go b/resource-manager/network/2022-07-01/virtualwans/method_vpnconnectionslistbyvpngateway.go index 48d7fe22883..d1ed0d12708 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_vpnconnectionslistbyvpngateway.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_vpnconnectionslistbyvpngateway.go @@ -23,6 +23,18 @@ type VpnConnectionsListByVpnGatewayCompleteResult struct { Items []VpnConnection } +type VpnConnectionsListByVpnGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnConnectionsListByVpnGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnConnectionsListByVpnGateway ... func (c VirtualWANsClient) VpnConnectionsListByVpnGateway(ctx context.Context, id VpnGatewayId) (result VpnConnectionsListByVpnGatewayOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VpnConnectionsListByVpnGateway(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnConnectionsListByVpnGatewayCustomPager{}, Path: fmt.Sprintf("%s/vpnConnections", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_vpngatewayslist.go b/resource-manager/network/2022-07-01/virtualwans/method_vpngatewayslist.go index ca191bd2af0..d5ecf5c40ee 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_vpngatewayslist.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_vpngatewayslist.go @@ -24,6 +24,18 @@ type VpnGatewaysListCompleteResult struct { Items []VpnGateway } +type VpnGatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnGatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnGatewaysList ... func (c VirtualWANsClient) VpnGatewaysList(ctx context.Context, id commonids.SubscriptionId) (result VpnGatewaysListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnGatewaysList(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnGatewaysListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnGateways", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_vpngatewayslistbyresourcegroup.go b/resource-manager/network/2022-07-01/virtualwans/method_vpngatewayslistbyresourcegroup.go index 74f1365bd3c..e0e679927ad 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_vpngatewayslistbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_vpngatewayslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VpnGatewaysListByResourceGroupCompleteResult struct { Items []VpnGateway } +type VpnGatewaysListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnGatewaysListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnGatewaysListByResourceGroup ... func (c VirtualWANsClient) VpnGatewaysListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnGatewaysListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnGatewaysListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnGatewaysListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnGateways", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go b/resource-manager/network/2022-07-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go index 6aa787c6a6c..28dcee0d679 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go @@ -24,6 +24,18 @@ type VpnLinkConnectionsListByVpnConnectionCompleteResult struct { Items []VpnSiteLinkConnection } +type VpnLinkConnectionsListByVpnConnectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnLinkConnectionsListByVpnConnectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnLinkConnectionsListByVpnConnection ... func (c VirtualWANsClient) VpnLinkConnectionsListByVpnConnection(ctx context.Context, id commonids.VPNConnectionId) (result VpnLinkConnectionsListByVpnConnectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnLinkConnectionsListByVpnConnection(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnLinkConnectionsListByVpnConnectionCustomPager{}, Path: fmt.Sprintf("%s/vpnLinkConnections", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_vpnserverconfigurationslist.go b/resource-manager/network/2022-07-01/virtualwans/method_vpnserverconfigurationslist.go index 2b477dfd0ed..914118474d5 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_vpnserverconfigurationslist.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_vpnserverconfigurationslist.go @@ -24,6 +24,18 @@ type VpnServerConfigurationsListCompleteResult struct { Items []VpnServerConfiguration } +type VpnServerConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnServerConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnServerConfigurationsList ... func (c VirtualWANsClient) VpnServerConfigurationsList(ctx context.Context, id commonids.SubscriptionId) (result VpnServerConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnServerConfigurationsList(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnServerConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnServerConfigurations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go b/resource-manager/network/2022-07-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go index a4976dfad49..6653716f5fe 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VpnServerConfigurationsListByResourceGroupCompleteResult struct { Items []VpnServerConfiguration } +type VpnServerConfigurationsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnServerConfigurationsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnServerConfigurationsListByResourceGroup ... func (c VirtualWANsClient) VpnServerConfigurationsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnServerConfigurationsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnServerConfigurationsListByResourceGroup(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnServerConfigurationsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnServerConfigurations", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go b/resource-manager/network/2022-07-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go index 58c8ae1dd18..584c5170718 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go @@ -23,6 +23,18 @@ type VpnSiteLinksListByVpnSiteCompleteResult struct { Items []VpnSiteLink } +type VpnSiteLinksListByVpnSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSiteLinksListByVpnSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnSiteLinksListByVpnSite ... func (c VirtualWANsClient) VpnSiteLinksListByVpnSite(ctx context.Context, id VpnSiteId) (result VpnSiteLinksListByVpnSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VpnSiteLinksListByVpnSite(ctx context.Context, id Vpn http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnSiteLinksListByVpnSiteCustomPager{}, Path: fmt.Sprintf("%s/vpnSiteLinks", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_vpnsiteslist.go b/resource-manager/network/2022-07-01/virtualwans/method_vpnsiteslist.go index f6008bbcb21..38bc5c86363 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_vpnsiteslist.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_vpnsiteslist.go @@ -24,6 +24,18 @@ type VpnSitesListCompleteResult struct { Items []VpnSite } +type VpnSitesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSitesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnSitesList ... func (c VirtualWANsClient) VpnSitesList(ctx context.Context, id commonids.SubscriptionId) (result VpnSitesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnSitesList(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnSitesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnSites", id.ID()), } diff --git a/resource-manager/network/2022-07-01/virtualwans/method_vpnsiteslistbyresourcegroup.go b/resource-manager/network/2022-07-01/virtualwans/method_vpnsiteslistbyresourcegroup.go index aee63f234ff..276e64b30d1 100644 --- a/resource-manager/network/2022-07-01/virtualwans/method_vpnsiteslistbyresourcegroup.go +++ b/resource-manager/network/2022-07-01/virtualwans/method_vpnsiteslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VpnSitesListByResourceGroupCompleteResult struct { Items []VpnSite } +type VpnSitesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSitesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnSitesListByResourceGroup ... func (c VirtualWANsClient) VpnSitesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnSitesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnSitesListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnSitesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnSites", id.ID()), } diff --git a/resource-manager/network/2022-07-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go b/resource-manager/network/2022-07-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go index f1a1235a8e2..482b018c7dc 100644 --- a/resource-manager/network/2022-07-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go +++ b/resource-manager/network/2022-07-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go @@ -54,8 +54,8 @@ func (c VMSSPublicIPAddressesClient) PublicIPAddressesGetVirtualMachineScaleSetP http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go b/resource-manager/network/2022-07-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go index b7648a7a307..c39b6848351 100644 --- a/resource-manager/network/2022-07-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go +++ b/resource-manager/network/2022-07-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go @@ -23,6 +23,18 @@ type PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCompleteResult Items []PublicIPAddress } +type PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses ... func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, id VirtualMachineScaleSetId) (result PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSet http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2022-07-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go b/resource-manager/network/2022-07-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go index e61b339d253..83d7e85289f 100644 --- a/resource-manager/network/2022-07-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go +++ b/resource-manager/network/2022-07-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go @@ -24,6 +24,18 @@ type PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCompleteResul Items []PublicIPAddress } +type PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses ... func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, id commonids.VirtualMachineScaleSetIPConfigurationId) (result PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSet http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2022-07-01/webapplicationfirewallpolicies/method_list.go b/resource-manager/network/2022-07-01/webapplicationfirewallpolicies/method_list.go index dbe94a8ef0e..4a6b3abf31e 100644 --- a/resource-manager/network/2022-07-01/webapplicationfirewallpolicies/method_list.go +++ b/resource-manager/network/2022-07-01/webapplicationfirewallpolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []WebApplicationFirewallPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WebApplicationFirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebApplicationFirewallPoliciesClient) List(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies", id.ID()), } diff --git a/resource-manager/network/2022-07-01/webapplicationfirewallpolicies/method_listall.go b/resource-manager/network/2022-07-01/webapplicationfirewallpolicies/method_listall.go index 652df162aed..e3a633a2655 100644 --- a/resource-manager/network/2022-07-01/webapplicationfirewallpolicies/method_listall.go +++ b/resource-manager/network/2022-07-01/webapplicationfirewallpolicies/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []WebApplicationFirewallPolicy } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies", id.ID()), } diff --git a/resource-manager/network/2022-07-01/webcategories/method_get.go b/resource-manager/network/2022-07-01/webcategories/method_get.go index 9038c189875..6150a24fbf4 100644 --- a/resource-manager/network/2022-07-01/webcategories/method_get.go +++ b/resource-manager/network/2022-07-01/webcategories/method_get.go @@ -53,8 +53,8 @@ func (c WebCategoriesClient) Get(ctx context.Context, id AzureWebCategoryId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2022-07-01/webcategories/method_listbysubscription.go b/resource-manager/network/2022-07-01/webcategories/method_listbysubscription.go index 4a3e7f4445b..8e55ebdbf11 100644 --- a/resource-manager/network/2022-07-01/webcategories/method_listbysubscription.go +++ b/resource-manager/network/2022-07-01/webcategories/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []AzureWebCategory } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WebCategoriesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebCategoriesClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureWebCategories", id.ID()), } diff --git a/resource-manager/network/2023-09-01/adminrulecollections/method_delete.go b/resource-manager/network/2023-09-01/adminrulecollections/method_delete.go index 2a158c78562..ec55f3fa7e6 100644 --- a/resource-manager/network/2023-09-01/adminrulecollections/method_delete.go +++ b/resource-manager/network/2023-09-01/adminrulecollections/method_delete.go @@ -57,8 +57,8 @@ func (c AdminRuleCollectionsClient) Delete(ctx context.Context, id RuleCollectio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/adminrulecollections/method_list.go b/resource-manager/network/2023-09-01/adminrulecollections/method_list.go index 4b76fd0901c..f4b9bfcdd61 100644 --- a/resource-manager/network/2023-09-01/adminrulecollections/method_list.go +++ b/resource-manager/network/2023-09-01/adminrulecollections/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AdminRuleCollectionsClient) List(ctx context.Context, id SecurityAdminConfigurationId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c AdminRuleCollectionsClient) List(ctx context.Context, id SecurityAdminCo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/ruleCollections", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/ruleCollections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/adminrules/method_delete.go b/resource-manager/network/2023-09-01/adminrules/method_delete.go index 6d7b0f948b8..9b07dbc4a79 100644 --- a/resource-manager/network/2023-09-01/adminrules/method_delete.go +++ b/resource-manager/network/2023-09-01/adminrules/method_delete.go @@ -57,8 +57,8 @@ func (c AdminRulesClient) Delete(ctx context.Context, id RuleId, options DeleteO http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/adminrules/method_list.go b/resource-manager/network/2023-09-01/adminrules/method_list.go index 1c41454de22..97915114117 100644 --- a/resource-manager/network/2023-09-01/adminrules/method_list.go +++ b/resource-manager/network/2023-09-01/adminrules/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BaseAdminRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AdminRulesClient) List(ctx context.Context, id RuleCollectionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AdminRulesClient) List(ctx context.Context, id RuleCollectionId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/rules", id.ID()), } diff --git a/resource-manager/network/2023-09-01/applicationgatewayprivateendpointconnections/method_list.go b/resource-manager/network/2023-09-01/applicationgatewayprivateendpointconnections/method_list.go index c77aa7c6921..595ab9b2ec1 100644 --- a/resource-manager/network/2023-09-01/applicationgatewayprivateendpointconnections/method_list.go +++ b/resource-manager/network/2023-09-01/applicationgatewayprivateendpointconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationGatewayPrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationGatewayPrivateEndpointConnectionsClient) List(ctx context.Context, id ApplicationGatewayId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationGatewayPrivateEndpointConnectionsClient) List(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/network/2023-09-01/applicationgatewayprivatelinkresources/method_list.go b/resource-manager/network/2023-09-01/applicationgatewayprivatelinkresources/method_list.go index e50df050c40..ab3dbda73fe 100644 --- a/resource-manager/network/2023-09-01/applicationgatewayprivatelinkresources/method_list.go +++ b/resource-manager/network/2023-09-01/applicationgatewayprivatelinkresources/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationGatewayPrivateLinkResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationGatewayPrivateLinkResourcesClient) List(ctx context.Context, id ApplicationGatewayId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationGatewayPrivateLinkResourcesClient) List(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/network/2023-09-01/applicationgateways/method_backendhealth.go b/resource-manager/network/2023-09-01/applicationgateways/method_backendhealth.go index bc7254fd7d6..21c25eb922c 100644 --- a/resource-manager/network/2023-09-01/applicationgateways/method_backendhealth.go +++ b/resource-manager/network/2023-09-01/applicationgateways/method_backendhealth.go @@ -57,8 +57,8 @@ func (c ApplicationGatewaysClient) BackendHealth(ctx context.Context, id Applica http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/backendhealth", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/backendhealth", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/applicationgateways/method_backendhealthondemand.go b/resource-manager/network/2023-09-01/applicationgateways/method_backendhealthondemand.go index c99e1e55de2..2db3547857a 100644 --- a/resource-manager/network/2023-09-01/applicationgateways/method_backendhealthondemand.go +++ b/resource-manager/network/2023-09-01/applicationgateways/method_backendhealthondemand.go @@ -57,8 +57,8 @@ func (c ApplicationGatewaysClient) BackendHealthOnDemand(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getBackendHealthOnDemand", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getBackendHealthOnDemand", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/applicationgateways/method_list.go b/resource-manager/network/2023-09-01/applicationgateways/method_list.go index 5f1051eb154..5993122f77d 100644 --- a/resource-manager/network/2023-09-01/applicationgateways/method_list.go +++ b/resource-manager/network/2023-09-01/applicationgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ApplicationGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationGatewaysClient) List(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGateways", id.ID()), } diff --git a/resource-manager/network/2023-09-01/applicationgateways/method_listall.go b/resource-manager/network/2023-09-01/applicationgateways/method_listall.go index b652121174a..2339a539153 100644 --- a/resource-manager/network/2023-09-01/applicationgateways/method_listall.go +++ b/resource-manager/network/2023-09-01/applicationgateways/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []ApplicationGateway } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c ApplicationGatewaysClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationGatewaysClient) ListAll(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGateways", id.ID()), } diff --git a/resource-manager/network/2023-09-01/applicationgateways/method_listavailablesslpredefinedpolicies.go b/resource-manager/network/2023-09-01/applicationgateways/method_listavailablesslpredefinedpolicies.go index e9498c59b10..60e04b841d4 100644 --- a/resource-manager/network/2023-09-01/applicationgateways/method_listavailablesslpredefinedpolicies.go +++ b/resource-manager/network/2023-09-01/applicationgateways/method_listavailablesslpredefinedpolicies.go @@ -24,6 +24,18 @@ type ListAvailableSslPredefinedPoliciesCompleteResult struct { Items []ApplicationGatewaySslPredefinedPolicy } +type ListAvailableSslPredefinedPoliciesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAvailableSslPredefinedPoliciesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAvailableSslPredefinedPolicies ... func (c ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableSslPredefinedPoliciesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAvailableSslPredefinedPoliciesCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies", id.ID()), } diff --git a/resource-manager/network/2023-09-01/applicationgatewaywafdynamicmanifests/method_get.go b/resource-manager/network/2023-09-01/applicationgatewaywafdynamicmanifests/method_get.go index d07f9b4e97b..4f7a0478f78 100644 --- a/resource-manager/network/2023-09-01/applicationgatewaywafdynamicmanifests/method_get.go +++ b/resource-manager/network/2023-09-01/applicationgatewaywafdynamicmanifests/method_get.go @@ -23,6 +23,18 @@ type GetCompleteResult struct { Items []ApplicationGatewayWafDynamicManifestResult } +type GetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Get ... func (c ApplicationGatewayWafDynamicManifestsClient) Get(ctx context.Context, id LocationId) (result GetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationGatewayWafDynamicManifestsClient) Get(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetCustomPager{}, Path: fmt.Sprintf("%s/applicationGatewayWafDynamicManifests", id.ID()), } diff --git a/resource-manager/network/2023-09-01/applicationsecuritygroups/method_list.go b/resource-manager/network/2023-09-01/applicationsecuritygroups/method_list.go index 424c65a5cec..1e8cc5c05eb 100644 --- a/resource-manager/network/2023-09-01/applicationsecuritygroups/method_list.go +++ b/resource-manager/network/2023-09-01/applicationsecuritygroups/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ApplicationSecurityGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationSecurityGroupsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationSecurityGroupsClient) List(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2023-09-01/applicationsecuritygroups/method_listall.go b/resource-manager/network/2023-09-01/applicationsecuritygroups/method_listall.go index 38c5c8dc37f..b0f38c737fa 100644 --- a/resource-manager/network/2023-09-01/applicationsecuritygroups/method_listall.go +++ b/resource-manager/network/2023-09-01/applicationsecuritygroups/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []ApplicationSecurityGroup } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c ApplicationSecurityGroupsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationSecurityGroupsClient) ListAll(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2023-09-01/availabledelegations/method_availabledelegationslist.go b/resource-manager/network/2023-09-01/availabledelegations/method_availabledelegationslist.go index 45c22a5af12..e9a70f09fbc 100644 --- a/resource-manager/network/2023-09-01/availabledelegations/method_availabledelegationslist.go +++ b/resource-manager/network/2023-09-01/availabledelegations/method_availabledelegationslist.go @@ -23,6 +23,18 @@ type AvailableDelegationsListCompleteResult struct { Items []AvailableDelegation } +type AvailableDelegationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailableDelegationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailableDelegationsList ... func (c AvailableDelegationsClient) AvailableDelegationsList(ctx context.Context, id LocationId) (result AvailableDelegationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableDelegationsClient) AvailableDelegationsList(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailableDelegationsListCustomPager{}, Path: fmt.Sprintf("%s/availableDelegations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/availabledelegations/method_availableresourcegroupdelegationslist.go b/resource-manager/network/2023-09-01/availabledelegations/method_availableresourcegroupdelegationslist.go index c507cd333ea..1663af9f165 100644 --- a/resource-manager/network/2023-09-01/availabledelegations/method_availableresourcegroupdelegationslist.go +++ b/resource-manager/network/2023-09-01/availabledelegations/method_availableresourcegroupdelegationslist.go @@ -23,6 +23,18 @@ type AvailableResourceGroupDelegationsListCompleteResult struct { Items []AvailableDelegation } +type AvailableResourceGroupDelegationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailableResourceGroupDelegationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailableResourceGroupDelegationsList ... func (c AvailableDelegationsClient) AvailableResourceGroupDelegationsList(ctx context.Context, id ProviderLocationId) (result AvailableResourceGroupDelegationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableDelegationsClient) AvailableResourceGroupDelegationsList(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailableResourceGroupDelegationsListCustomPager{}, Path: fmt.Sprintf("%s/availableDelegations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/availableservicealiases/method_list.go b/resource-manager/network/2023-09-01/availableservicealiases/method_list.go index f5cd7f6b9a3..702ae41758c 100644 --- a/resource-manager/network/2023-09-01/availableservicealiases/method_list.go +++ b/resource-manager/network/2023-09-01/availableservicealiases/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []AvailableServiceAlias } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AvailableServiceAliasesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableServiceAliasesClient) List(ctx context.Context, id LocationId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/availableServiceAliases", id.ID()), } diff --git a/resource-manager/network/2023-09-01/availableservicealiases/method_listbyresourcegroup.go b/resource-manager/network/2023-09-01/availableservicealiases/method_listbyresourcegroup.go index dedb4883d49..0f1856bad3f 100644 --- a/resource-manager/network/2023-09-01/availableservicealiases/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/availableservicealiases/method_listbyresourcegroup.go @@ -23,6 +23,18 @@ type ListByResourceGroupCompleteResult struct { Items []AvailableServiceAlias } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Context, id ProviderLocationId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/availableServiceAliases", id.ID()), } diff --git a/resource-manager/network/2023-09-01/azurefirewalls/method_list.go b/resource-manager/network/2023-09-01/azurefirewalls/method_list.go index ffbf3c167c9..305a4b553ef 100644 --- a/resource-manager/network/2023-09-01/azurefirewalls/method_list.go +++ b/resource-manager/network/2023-09-01/azurefirewalls/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AzureFirewall } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AzureFirewallsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AzureFirewallsClient) List(ctx context.Context, id commonids.ResourceGro http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureFirewalls", id.ID()), } diff --git a/resource-manager/network/2023-09-01/azurefirewalls/method_listall.go b/resource-manager/network/2023-09-01/azurefirewalls/method_listall.go index c688f48f1de..be602f8bbd5 100644 --- a/resource-manager/network/2023-09-01/azurefirewalls/method_listall.go +++ b/resource-manager/network/2023-09-01/azurefirewalls/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []AzureFirewall } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c AzureFirewallsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AzureFirewallsClient) ListAll(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureFirewalls", id.ID()), } diff --git a/resource-manager/network/2023-09-01/bastionhosts/method_disconnectactivesessions.go b/resource-manager/network/2023-09-01/bastionhosts/method_disconnectactivesessions.go index c0aac609fe0..b5bf326b6c2 100644 --- a/resource-manager/network/2023-09-01/bastionhosts/method_disconnectactivesessions.go +++ b/resource-manager/network/2023-09-01/bastionhosts/method_disconnectactivesessions.go @@ -23,6 +23,18 @@ type DisconnectActiveSessionsCompleteResult struct { Items []BastionSessionState } +type DisconnectActiveSessionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DisconnectActiveSessionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DisconnectActiveSessions ... func (c BastionHostsClient) DisconnectActiveSessions(ctx context.Context, id BastionHostId, input SessionIds) (result DisconnectActiveSessionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BastionHostsClient) DisconnectActiveSessions(ctx context.Context, id Bas http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &DisconnectActiveSessionsCustomPager{}, Path: fmt.Sprintf("%s/disconnectActiveSessions", id.ID()), } diff --git a/resource-manager/network/2023-09-01/bastionhosts/method_getactivesessions.go b/resource-manager/network/2023-09-01/bastionhosts/method_getactivesessions.go index bc50f38fc50..ef9274ebcca 100644 --- a/resource-manager/network/2023-09-01/bastionhosts/method_getactivesessions.go +++ b/resource-manager/network/2023-09-01/bastionhosts/method_getactivesessions.go @@ -26,6 +26,18 @@ type GetActiveSessionsCompleteResult struct { Items []BastionActiveSession } +type GetActiveSessionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetActiveSessionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetActiveSessions ... func (c BastionHostsClient) GetActiveSessions(ctx context.Context, id BastionHostId) (result GetActiveSessionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c BastionHostsClient) GetActiveSessions(ctx context.Context, id BastionHos http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetActiveSessionsCustomPager{}, Path: fmt.Sprintf("%s/getActiveSessions", id.ID()), } diff --git a/resource-manager/network/2023-09-01/bastionhosts/method_getbastionshareablelink.go b/resource-manager/network/2023-09-01/bastionhosts/method_getbastionshareablelink.go index e97537890ad..c2598119199 100644 --- a/resource-manager/network/2023-09-01/bastionhosts/method_getbastionshareablelink.go +++ b/resource-manager/network/2023-09-01/bastionhosts/method_getbastionshareablelink.go @@ -23,6 +23,18 @@ type GetBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type GetBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBastionShareableLink ... func (c BastionHostsClient) GetBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result GetBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BastionHostsClient) GetBastionShareableLink(ctx context.Context, id Bast http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/getShareableLinks", id.ID()), } diff --git a/resource-manager/network/2023-09-01/bastionhosts/method_list.go b/resource-manager/network/2023-09-01/bastionhosts/method_list.go index e73d8601569..1503bda8513 100644 --- a/resource-manager/network/2023-09-01/bastionhosts/method_list.go +++ b/resource-manager/network/2023-09-01/bastionhosts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BastionHost } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BastionHostsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BastionHostsClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/bastionHosts", id.ID()), } diff --git a/resource-manager/network/2023-09-01/bastionhosts/method_listbyresourcegroup.go b/resource-manager/network/2023-09-01/bastionhosts/method_listbyresourcegroup.go index 5a80cf6aed5..9be179204d2 100644 --- a/resource-manager/network/2023-09-01/bastionhosts/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/bastionhosts/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []BastionHost } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c BastionHostsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BastionHostsClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/bastionHosts", id.ID()), } diff --git a/resource-manager/network/2023-09-01/bastionhosts/method_putbastionshareablelink.go b/resource-manager/network/2023-09-01/bastionhosts/method_putbastionshareablelink.go index 5f6e7438551..f0a53697d66 100644 --- a/resource-manager/network/2023-09-01/bastionhosts/method_putbastionshareablelink.go +++ b/resource-manager/network/2023-09-01/bastionhosts/method_putbastionshareablelink.go @@ -26,6 +26,18 @@ type PutBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type PutBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PutBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PutBastionShareableLink ... func (c BastionHostsClient) PutBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result PutBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c BastionHostsClient) PutBastionShareableLink(ctx context.Context, id Bast http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &PutBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/createShareableLinks", id.ID()), } diff --git a/resource-manager/network/2023-09-01/bastionshareablelink/method_getbastionshareablelink.go b/resource-manager/network/2023-09-01/bastionshareablelink/method_getbastionshareablelink.go index d6f683c1ce9..2c1e9c470aa 100644 --- a/resource-manager/network/2023-09-01/bastionshareablelink/method_getbastionshareablelink.go +++ b/resource-manager/network/2023-09-01/bastionshareablelink/method_getbastionshareablelink.go @@ -23,6 +23,18 @@ type GetBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type GetBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBastionShareableLink ... func (c BastionShareableLinkClient) GetBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result GetBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BastionShareableLinkClient) GetBastionShareableLink(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/getShareableLinks", id.ID()), } diff --git a/resource-manager/network/2023-09-01/bastionshareablelink/method_putbastionshareablelink.go b/resource-manager/network/2023-09-01/bastionshareablelink/method_putbastionshareablelink.go index bf85b28ee63..7c6c9a0cd1d 100644 --- a/resource-manager/network/2023-09-01/bastionshareablelink/method_putbastionshareablelink.go +++ b/resource-manager/network/2023-09-01/bastionshareablelink/method_putbastionshareablelink.go @@ -26,6 +26,18 @@ type PutBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type PutBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PutBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PutBastionShareableLink ... func (c BastionShareableLinkClient) PutBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result PutBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c BastionShareableLinkClient) PutBastionShareableLink(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &PutBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/createShareableLinks", id.ID()), } diff --git a/resource-manager/network/2023-09-01/bgpservicecommunities/method_list.go b/resource-manager/network/2023-09-01/bgpservicecommunities/method_list.go index 3d8eb8c593e..633bcf897cf 100644 --- a/resource-manager/network/2023-09-01/bgpservicecommunities/method_list.go +++ b/resource-manager/network/2023-09-01/bgpservicecommunities/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BgpServiceCommunity } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BgpServiceCommunitiesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BgpServiceCommunitiesClient) List(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/bgpServiceCommunities", id.ID()), } diff --git a/resource-manager/network/2023-09-01/checkdnsavailabilities/method_checkdnsnameavailability.go b/resource-manager/network/2023-09-01/checkdnsavailabilities/method_checkdnsnameavailability.go index 7a516978d72..276e19a8dd4 100644 --- a/resource-manager/network/2023-09-01/checkdnsavailabilities/method_checkdnsnameavailability.go +++ b/resource-manager/network/2023-09-01/checkdnsavailabilities/method_checkdnsnameavailability.go @@ -53,8 +53,8 @@ func (c CheckDnsAvailabilitiesClient) CheckDnsNameAvailability(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/checkDnsNameAvailability", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/checkDnsNameAvailability", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go b/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go index b9661797464..b3e6c192d39 100644 --- a/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go +++ b/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go @@ -54,8 +54,8 @@ func (c CloudServicePublicIPAddressesClient) PublicIPAddressesGetCloudServicePub http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go b/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go index 3101695e6b4..11dfd25258c 100644 --- a/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go +++ b/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go @@ -23,6 +23,18 @@ type PublicIPAddressesListCloudServicePublicIPAddressesCompleteResult struct { Items []PublicIPAddress } +type PublicIPAddressesListCloudServicePublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListCloudServicePublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListCloudServicePublicIPAddresses ... func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServicePublicIPAddresses(ctx context.Context, id ProviderCloudServiceId) (result PublicIPAddressesListCloudServicePublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServicePu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListCloudServicePublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go b/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go index 1f8d938cb07..d1b2312ff6e 100644 --- a/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go +++ b/resource-manager/network/2023-09-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go @@ -24,6 +24,18 @@ type PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCompleteResul Items []PublicIPAddress } +type PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses ... func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses(ctx context.Context, id commonids.CloudServicesIPConfigurationId) (result PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServiceRo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2023-09-01/connectionmonitors/method_createorupdate.go b/resource-manager/network/2023-09-01/connectionmonitors/method_createorupdate.go index b54a54e92b1..f2d252c628d 100644 --- a/resource-manager/network/2023-09-01/connectionmonitors/method_createorupdate.go +++ b/resource-manager/network/2023-09-01/connectionmonitors/method_createorupdate.go @@ -57,8 +57,8 @@ func (c ConnectionMonitorsClient) CreateOrUpdate(ctx context.Context, id Connect http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/connectivityconfigurations/method_delete.go b/resource-manager/network/2023-09-01/connectivityconfigurations/method_delete.go index 39d9c109838..8646fac9ed8 100644 --- a/resource-manager/network/2023-09-01/connectivityconfigurations/method_delete.go +++ b/resource-manager/network/2023-09-01/connectivityconfigurations/method_delete.go @@ -57,8 +57,8 @@ func (c ConnectivityConfigurationsClient) Delete(ctx context.Context, id Connect http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/connectivityconfigurations/method_list.go b/resource-manager/network/2023-09-01/connectivityconfigurations/method_list.go index fd3032351bd..95ba68f0bc1 100644 --- a/resource-manager/network/2023-09-01/connectivityconfigurations/method_list.go +++ b/resource-manager/network/2023-09-01/connectivityconfigurations/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ConnectivityConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ConnectivityConfigurationsClient) List(ctx context.Context, id NetworkMa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/connectivityConfigurations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/connectivityConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/customipprefixes/method_get.go b/resource-manager/network/2023-09-01/customipprefixes/method_get.go index 04442324994..9215609651a 100644 --- a/resource-manager/network/2023-09-01/customipprefixes/method_get.go +++ b/resource-manager/network/2023-09-01/customipprefixes/method_get.go @@ -53,8 +53,8 @@ func (c CustomIPPrefixesClient) Get(ctx context.Context, id CustomIPPrefixId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/customipprefixes/method_list.go b/resource-manager/network/2023-09-01/customipprefixes/method_list.go index 22d7d1e3f86..34b4f325ee9 100644 --- a/resource-manager/network/2023-09-01/customipprefixes/method_list.go +++ b/resource-manager/network/2023-09-01/customipprefixes/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []CustomIPPrefix } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CustomIPPrefixesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CustomIPPrefixesClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/customIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2023-09-01/customipprefixes/method_listall.go b/resource-manager/network/2023-09-01/customipprefixes/method_listall.go index 221ccc71db6..82eb645deab 100644 --- a/resource-manager/network/2023-09-01/customipprefixes/method_listall.go +++ b/resource-manager/network/2023-09-01/customipprefixes/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []CustomIPPrefix } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c CustomIPPrefixesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CustomIPPrefixesClient) ListAll(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/customIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2023-09-01/ddosprotectionplans/method_list.go b/resource-manager/network/2023-09-01/ddosprotectionplans/method_list.go index 4fee924e5b5..3862b150045 100644 --- a/resource-manager/network/2023-09-01/ddosprotectionplans/method_list.go +++ b/resource-manager/network/2023-09-01/ddosprotectionplans/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DdosProtectionPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DdosProtectionPlansClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DdosProtectionPlansClient) List(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ddosProtectionPlans", id.ID()), } diff --git a/resource-manager/network/2023-09-01/ddosprotectionplans/method_listbyresourcegroup.go b/resource-manager/network/2023-09-01/ddosprotectionplans/method_listbyresourcegroup.go index 25cfd986dac..0f9eecd1db7 100644 --- a/resource-manager/network/2023-09-01/ddosprotectionplans/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/ddosprotectionplans/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DdosProtectionPlan } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ddosProtectionPlans", id.ID()), } diff --git a/resource-manager/network/2023-09-01/dscpconfigurations/method_dscpconfigurationlist.go b/resource-manager/network/2023-09-01/dscpconfigurations/method_dscpconfigurationlist.go index 7cfa7438cce..c3e8d3869d4 100644 --- a/resource-manager/network/2023-09-01/dscpconfigurations/method_dscpconfigurationlist.go +++ b/resource-manager/network/2023-09-01/dscpconfigurations/method_dscpconfigurationlist.go @@ -24,6 +24,18 @@ type DscpConfigurationListCompleteResult struct { Items []DscpConfiguration } +type DscpConfigurationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DscpConfigurationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DscpConfigurationList ... func (c DscpConfigurationsClient) DscpConfigurationList(ctx context.Context, id commonids.ResourceGroupId) (result DscpConfigurationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DscpConfigurationsClient) DscpConfigurationList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DscpConfigurationListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/dscpConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/dscpconfigurations/method_dscpconfigurationlistall.go b/resource-manager/network/2023-09-01/dscpconfigurations/method_dscpconfigurationlistall.go index 78754cede6d..fe261147a6d 100644 --- a/resource-manager/network/2023-09-01/dscpconfigurations/method_dscpconfigurationlistall.go +++ b/resource-manager/network/2023-09-01/dscpconfigurations/method_dscpconfigurationlistall.go @@ -24,6 +24,18 @@ type DscpConfigurationListAllCompleteResult struct { Items []DscpConfiguration } +type DscpConfigurationListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DscpConfigurationListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DscpConfigurationListAll ... func (c DscpConfigurationsClient) DscpConfigurationListAll(ctx context.Context, id commonids.SubscriptionId) (result DscpConfigurationListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DscpConfigurationsClient) DscpConfigurationListAll(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DscpConfigurationListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/dscpConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/endpointservices/method_availableendpointserviceslist.go b/resource-manager/network/2023-09-01/endpointservices/method_availableendpointserviceslist.go index d1653d6f5bd..28193e5d9e7 100644 --- a/resource-manager/network/2023-09-01/endpointservices/method_availableendpointserviceslist.go +++ b/resource-manager/network/2023-09-01/endpointservices/method_availableendpointserviceslist.go @@ -23,6 +23,18 @@ type AvailableEndpointServicesListCompleteResult struct { Items []EndpointServiceResult } +type AvailableEndpointServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailableEndpointServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailableEndpointServicesList ... func (c EndpointServicesClient) AvailableEndpointServicesList(ctx context.Context, id LocationId) (result AvailableEndpointServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c EndpointServicesClient) AvailableEndpointServicesList(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailableEndpointServicesListCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkAvailableEndpointServices", id.ID()), } diff --git a/resource-manager/network/2023-09-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go b/resource-manager/network/2023-09-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go index 6e9e9491ca8..27f7b0349e2 100644 --- a/resource-manager/network/2023-09-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go +++ b/resource-manager/network/2023-09-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go @@ -26,6 +26,18 @@ type ExpressRouteCircuitsListArpTableCompleteResult struct { Items []ExpressRouteCircuitArpTable } +type ExpressRouteCircuitsListArpTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCircuitsListArpTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCircuitsListArpTable ... func (c ExpressRouteCircuitArpTableClient) ExpressRouteCircuitsListArpTable(ctx context.Context, id ArpTableId) (result ExpressRouteCircuitsListArpTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCircuitArpTableClient) ExpressRouteCircuitsListArpTable(ctx http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCircuitsListArpTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2023-09-01/expressroutecircuitauthorizations/method_list.go b/resource-manager/network/2023-09-01/expressroutecircuitauthorizations/method_list.go index a689b8d8595..b726cae911d 100644 --- a/resource-manager/network/2023-09-01/expressroutecircuitauthorizations/method_list.go +++ b/resource-manager/network/2023-09-01/expressroutecircuitauthorizations/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuitAuthorization } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, id ExpressRouteCircuitId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, id Ex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/authorizations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/expressroutecircuitconnections/method_list.go b/resource-manager/network/2023-09-01/expressroutecircuitconnections/method_list.go index 706c24c1571..bacd8586f75 100644 --- a/resource-manager/network/2023-09-01/expressroutecircuitconnections/method_list.go +++ b/resource-manager/network/2023-09-01/expressroutecircuitconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuitConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitConnectionsClient) List(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCircuitConnectionsClient) List(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/connections", id.ID()), } diff --git a/resource-manager/network/2023-09-01/expressroutecircuitpeerings/method_list.go b/resource-manager/network/2023-09-01/expressroutecircuitpeerings/method_list.go index 684b16dc8db..ec6d45b259f 100644 --- a/resource-manager/network/2023-09-01/expressroutecircuitpeerings/method_list.go +++ b/resource-manager/network/2023-09-01/expressroutecircuitpeerings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuitPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitPeeringsClient) List(ctx context.Context, id ExpressRouteCircuitId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteCircuitPeeringsClient) List(ctx context.Context, id ExpressR http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerings", id.ID()), } diff --git a/resource-manager/network/2023-09-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go b/resource-manager/network/2023-09-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go index 0d55eeb8353..d193f427f2f 100644 --- a/resource-manager/network/2023-09-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go +++ b/resource-manager/network/2023-09-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go @@ -26,6 +26,18 @@ type ExpressRouteCircuitsListRoutesTableCompleteResult struct { Items []ExpressRouteCircuitRoutesTable } +type ExpressRouteCircuitsListRoutesTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCircuitsListRoutesTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCircuitsListRoutesTable ... func (c ExpressRouteCircuitRoutesTableClient) ExpressRouteCircuitsListRoutesTable(ctx context.Context, id PeeringRouteTableId) (result ExpressRouteCircuitsListRoutesTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCircuitRoutesTableClient) ExpressRouteCircuitsListRoutesTabl http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCircuitsListRoutesTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2023-09-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go b/resource-manager/network/2023-09-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go index 200e1b6b1e8..0cd493a629e 100644 --- a/resource-manager/network/2023-09-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go +++ b/resource-manager/network/2023-09-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go @@ -26,6 +26,18 @@ type ExpressRouteCircuitsListRoutesTableSummaryCompleteResult struct { Items []ExpressRouteCircuitRoutesTableSummary } +type ExpressRouteCircuitsListRoutesTableSummaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCircuitsListRoutesTableSummaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCircuitsListRoutesTableSummary ... func (c ExpressRouteCircuitRoutesTableSummaryClient) ExpressRouteCircuitsListRoutesTableSummary(ctx context.Context, id RouteTablesSummaryId) (result ExpressRouteCircuitsListRoutesTableSummaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCircuitRoutesTableSummaryClient) ExpressRouteCircuitsListRou http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCircuitsListRoutesTableSummaryCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2023-09-01/expressroutecircuits/method_list.go b/resource-manager/network/2023-09-01/expressroutecircuits/method_list.go index 7b016449fdc..dae4c03fa04 100644 --- a/resource-manager/network/2023-09-01/expressroutecircuits/method_list.go +++ b/resource-manager/network/2023-09-01/expressroutecircuits/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuit } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCircuitsClient) List(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCircuits", id.ID()), } diff --git a/resource-manager/network/2023-09-01/expressroutecircuits/method_listall.go b/resource-manager/network/2023-09-01/expressroutecircuits/method_listall.go index 0f6630e21c9..815e72b26ce 100644 --- a/resource-manager/network/2023-09-01/expressroutecircuits/method_listall.go +++ b/resource-manager/network/2023-09-01/expressroutecircuits/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []ExpressRouteCircuit } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c ExpressRouteCircuitsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCircuitsClient) ListAll(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCircuits", id.ID()), } diff --git a/resource-manager/network/2023-09-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go b/resource-manager/network/2023-09-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go index 93cb5d74c61..1aa7aed0b18 100644 --- a/resource-manager/network/2023-09-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go +++ b/resource-manager/network/2023-09-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go @@ -26,6 +26,18 @@ type ExpressRouteCrossConnectionsListArpTableCompleteResult struct { Items []ExpressRouteCircuitArpTable } +type ExpressRouteCrossConnectionsListArpTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCrossConnectionsListArpTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCrossConnectionsListArpTable ... func (c ExpressRouteCrossConnectionArpTableClient) ExpressRouteCrossConnectionsListArpTable(ctx context.Context, id PeeringArpTableId) (result ExpressRouteCrossConnectionsListArpTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCrossConnectionArpTableClient) ExpressRouteCrossConnectionsL http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCrossConnectionsListArpTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2023-09-01/expressroutecrossconnectionpeerings/method_list.go b/resource-manager/network/2023-09-01/expressroutecrossconnectionpeerings/method_list.go index fabd3a8adae..15747a19b47 100644 --- a/resource-manager/network/2023-09-01/expressroutecrossconnectionpeerings/method_list.go +++ b/resource-manager/network/2023-09-01/expressroutecrossconnectionpeerings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteCrossConnectionPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context, id ExpressRouteCrossConnectionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerings", id.ID()), } diff --git a/resource-manager/network/2023-09-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go b/resource-manager/network/2023-09-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go index 75e866bbea7..ad01c57a508 100644 --- a/resource-manager/network/2023-09-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go +++ b/resource-manager/network/2023-09-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go @@ -26,6 +26,18 @@ type ExpressRouteCrossConnectionsListRoutesTableCompleteResult struct { Items []ExpressRouteCircuitRoutesTable } +type ExpressRouteCrossConnectionsListRoutesTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCrossConnectionsListRoutesTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCrossConnectionsListRoutesTable ... func (c ExpressRouteCrossConnectionRouteTableClient) ExpressRouteCrossConnectionsListRoutesTable(ctx context.Context, id ExpressRouteCrossConnectionPeeringRouteTableId) (result ExpressRouteCrossConnectionsListRoutesTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCrossConnectionRouteTableClient) ExpressRouteCrossConnection http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCrossConnectionsListRoutesTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2023-09-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go b/resource-manager/network/2023-09-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go index 06c63e507a1..64acafa8284 100644 --- a/resource-manager/network/2023-09-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go +++ b/resource-manager/network/2023-09-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go @@ -26,6 +26,18 @@ type ExpressRouteCrossConnectionsListRoutesTableSummaryCompleteResult struct { Items []ExpressRouteCrossConnectionRoutesTableSummary } +type ExpressRouteCrossConnectionsListRoutesTableSummaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCrossConnectionsListRoutesTableSummaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCrossConnectionsListRoutesTableSummary ... func (c ExpressRouteCrossConnectionRouteTableSummaryClient) ExpressRouteCrossConnectionsListRoutesTableSummary(ctx context.Context, id PeeringRouteTablesSummaryId) (result ExpressRouteCrossConnectionsListRoutesTableSummaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCrossConnectionRouteTableSummaryClient) ExpressRouteCrossCon http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCrossConnectionsListRoutesTableSummaryCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2023-09-01/expressroutecrossconnections/method_list.go b/resource-manager/network/2023-09-01/expressroutecrossconnections/method_list.go index e469d23f330..dc5aa7af448 100644 --- a/resource-manager/network/2023-09-01/expressroutecrossconnections/method_list.go +++ b/resource-manager/network/2023-09-01/expressroutecrossconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteCrossConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCrossConnections", id.ID()), } diff --git a/resource-manager/network/2023-09-01/expressroutecrossconnections/method_listbyresourcegroup.go b/resource-manager/network/2023-09-01/expressroutecrossconnections/method_listbyresourcegroup.go index 77daf2aa898..f16b017a526 100644 --- a/resource-manager/network/2023-09-01/expressroutecrossconnections/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/expressroutecrossconnections/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ExpressRouteCrossConnection } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCrossConnections", id.ID()), } diff --git a/resource-manager/network/2023-09-01/expressroutelinks/method_list.go b/resource-manager/network/2023-09-01/expressroutelinks/method_list.go index 80d16ff05a3..bfee432049c 100644 --- a/resource-manager/network/2023-09-01/expressroutelinks/method_list.go +++ b/resource-manager/network/2023-09-01/expressroutelinks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteLink } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteLinksClient) List(ctx context.Context, id ExpressRoutePortId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteLinksClient) List(ctx context.Context, id ExpressRoutePortId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/links", id.ID()), } diff --git a/resource-manager/network/2023-09-01/expressrouteportauthorizations/method_list.go b/resource-manager/network/2023-09-01/expressrouteportauthorizations/method_list.go index 7551539278a..66e64adc644 100644 --- a/resource-manager/network/2023-09-01/expressrouteportauthorizations/method_list.go +++ b/resource-manager/network/2023-09-01/expressrouteportauthorizations/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRoutePortAuthorization } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRoutePortAuthorizationsClient) List(ctx context.Context, id ExpressRoutePortId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRoutePortAuthorizationsClient) List(ctx context.Context, id Expre http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/authorizations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/expressrouteports/method_list.go b/resource-manager/network/2023-09-01/expressrouteports/method_list.go index 0daec47a467..6ad9fc7015f 100644 --- a/resource-manager/network/2023-09-01/expressrouteports/method_list.go +++ b/resource-manager/network/2023-09-01/expressrouteports/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRoutePort } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRoutePortsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRoutePortsClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePorts", id.ID()), } diff --git a/resource-manager/network/2023-09-01/expressrouteports/method_listbyresourcegroup.go b/resource-manager/network/2023-09-01/expressrouteports/method_listbyresourcegroup.go index 11c0c743535..ff3df3bfada 100644 --- a/resource-manager/network/2023-09-01/expressrouteports/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/expressrouteports/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ExpressRoutePort } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePorts", id.ID()), } diff --git a/resource-manager/network/2023-09-01/expressrouteportslocations/method_list.go b/resource-manager/network/2023-09-01/expressrouteportslocations/method_list.go index cdb1774aac9..32b0a19fa28 100644 --- a/resource-manager/network/2023-09-01/expressrouteportslocations/method_list.go +++ b/resource-manager/network/2023-09-01/expressrouteportslocations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRoutePortsLocation } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRoutePortsLocationsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRoutePortsLocationsClient) List(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePortsLocations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/expressrouteproviderports/method_locationlist.go b/resource-manager/network/2023-09-01/expressrouteproviderports/method_locationlist.go index 816e682da61..ad8f2e59e37 100644 --- a/resource-manager/network/2023-09-01/expressrouteproviderports/method_locationlist.go +++ b/resource-manager/network/2023-09-01/expressrouteproviderports/method_locationlist.go @@ -51,6 +51,18 @@ func (o LocationListOperationOptions) ToQuery() *client.QueryParams { return &out } +type LocationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LocationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LocationList ... func (c ExpressRouteProviderPortsClient) LocationList(ctx context.Context, id commonids.SubscriptionId, options LocationListOperationOptions) (result LocationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ExpressRouteProviderPortsClient) LocationList(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteProviderPorts", id.ID()), OptionsObject: options, + Pager: &LocationListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteProviderPorts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/expressrouteserviceproviders/method_list.go b/resource-manager/network/2023-09-01/expressrouteserviceproviders/method_list.go index 632d9f32454..e8d2935ffea 100644 --- a/resource-manager/network/2023-09-01/expressrouteserviceproviders/method_list.go +++ b/resource-manager/network/2023-09-01/expressrouteserviceproviders/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteServiceProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteServiceProvidersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteServiceProvidersClient) List(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteServiceProviders", id.ID()), } diff --git a/resource-manager/network/2023-09-01/firewallpolicies/method_get.go b/resource-manager/network/2023-09-01/firewallpolicies/method_get.go index 6d04656e020..2eee26d038a 100644 --- a/resource-manager/network/2023-09-01/firewallpolicies/method_get.go +++ b/resource-manager/network/2023-09-01/firewallpolicies/method_get.go @@ -53,8 +53,8 @@ func (c FirewallPoliciesClient) Get(ctx context.Context, id FirewallPolicyId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/firewallpolicies/method_list.go b/resource-manager/network/2023-09-01/firewallpolicies/method_list.go index efe3cd5f08b..84096e094ce 100644 --- a/resource-manager/network/2023-09-01/firewallpolicies/method_list.go +++ b/resource-manager/network/2023-09-01/firewallpolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []FirewallPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/firewallPolicies", id.ID()), } diff --git a/resource-manager/network/2023-09-01/firewallpolicies/method_listall.go b/resource-manager/network/2023-09-01/firewallpolicies/method_listall.go index 1984a126505..8b1106b1f8b 100644 --- a/resource-manager/network/2023-09-01/firewallpolicies/method_listall.go +++ b/resource-manager/network/2023-09-01/firewallpolicies/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []FirewallPolicy } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c FirewallPoliciesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FirewallPoliciesClient) ListAll(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/firewallPolicies", id.ID()), } diff --git a/resource-manager/network/2023-09-01/firewallpolicyrulecollectiongroups/method_list.go b/resource-manager/network/2023-09-01/firewallpolicyrulecollectiongroups/method_list.go index d65b94bc0f4..09dd83c8896 100644 --- a/resource-manager/network/2023-09-01/firewallpolicyrulecollectiongroups/method_list.go +++ b/resource-manager/network/2023-09-01/firewallpolicyrulecollectiongroups/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []FirewallPolicyRuleCollectionGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FirewallPolicyRuleCollectionGroupsClient) List(ctx context.Context, id FirewallPolicyId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallPolicyRuleCollectionGroupsClient) List(ctx context.Context, id F http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/ruleCollectionGroups", id.ID()), } diff --git a/resource-manager/network/2023-09-01/flowlogs/method_list.go b/resource-manager/network/2023-09-01/flowlogs/method_list.go index 9d5d0ccacbd..6652ea30f55 100644 --- a/resource-manager/network/2023-09-01/flowlogs/method_list.go +++ b/resource-manager/network/2023-09-01/flowlogs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []FlowLog } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FlowLogsClient) List(ctx context.Context, id NetworkWatcherId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FlowLogsClient) List(ctx context.Context, id NetworkWatcherId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/flowLogs", id.ID()), } diff --git a/resource-manager/network/2023-09-01/ipallocations/method_get.go b/resource-manager/network/2023-09-01/ipallocations/method_get.go index 6d8c674b8b8..ad7247cf495 100644 --- a/resource-manager/network/2023-09-01/ipallocations/method_get.go +++ b/resource-manager/network/2023-09-01/ipallocations/method_get.go @@ -53,8 +53,8 @@ func (c IPAllocationsClient) Get(ctx context.Context, id IPAllocationId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/ipallocations/method_list.go b/resource-manager/network/2023-09-01/ipallocations/method_list.go index bacc2ab4add..4fa34481651 100644 --- a/resource-manager/network/2023-09-01/ipallocations/method_list.go +++ b/resource-manager/network/2023-09-01/ipallocations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []IPAllocation } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IPAllocationsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPAllocationsClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipAllocations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/ipallocations/method_listbyresourcegroup.go b/resource-manager/network/2023-09-01/ipallocations/method_listbyresourcegroup.go index 4c81449cf9a..85abe9a21cd 100644 --- a/resource-manager/network/2023-09-01/ipallocations/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/ipallocations/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []IPAllocation } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c IPAllocationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPAllocationsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipAllocations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/ipgroups/method_get.go b/resource-manager/network/2023-09-01/ipgroups/method_get.go index c1a0a108f8e..b0d5717d963 100644 --- a/resource-manager/network/2023-09-01/ipgroups/method_get.go +++ b/resource-manager/network/2023-09-01/ipgroups/method_get.go @@ -53,8 +53,8 @@ func (c IPGroupsClient) Get(ctx context.Context, id IPGroupId, options GetOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/ipgroups/method_list.go b/resource-manager/network/2023-09-01/ipgroups/method_list.go index 08097f9cca2..76ec56d5990 100644 --- a/resource-manager/network/2023-09-01/ipgroups/method_list.go +++ b/resource-manager/network/2023-09-01/ipgroups/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []IPGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IPGroupsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPGroupsClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipGroups", id.ID()), } diff --git a/resource-manager/network/2023-09-01/ipgroups/method_listbyresourcegroup.go b/resource-manager/network/2023-09-01/ipgroups/method_listbyresourcegroup.go index 7b03ce9bb50..16ea08e273b 100644 --- a/resource-manager/network/2023-09-01/ipgroups/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/ipgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []IPGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c IPGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipGroups", id.ID()), } diff --git a/resource-manager/network/2023-09-01/loadbalancers/method_get.go b/resource-manager/network/2023-09-01/loadbalancers/method_get.go index a183aa5c7ae..2cf9ca241b7 100644 --- a/resource-manager/network/2023-09-01/loadbalancers/method_get.go +++ b/resource-manager/network/2023-09-01/loadbalancers/method_get.go @@ -53,8 +53,8 @@ func (c LoadBalancersClient) Get(ctx context.Context, id ProviderLoadBalancerId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/loadbalancers/method_inboundnatrulesget.go b/resource-manager/network/2023-09-01/loadbalancers/method_inboundnatrulesget.go index 06666b1d382..92acfa0220b 100644 --- a/resource-manager/network/2023-09-01/loadbalancers/method_inboundnatrulesget.go +++ b/resource-manager/network/2023-09-01/loadbalancers/method_inboundnatrulesget.go @@ -53,8 +53,8 @@ func (c LoadBalancersClient) InboundNatRulesGet(ctx context.Context, id InboundN http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/loadbalancers/method_inboundnatruleslist.go b/resource-manager/network/2023-09-01/loadbalancers/method_inboundnatruleslist.go index 501c965bbf1..2bdb2af0a6e 100644 --- a/resource-manager/network/2023-09-01/loadbalancers/method_inboundnatruleslist.go +++ b/resource-manager/network/2023-09-01/loadbalancers/method_inboundnatruleslist.go @@ -23,6 +23,18 @@ type InboundNatRulesListCompleteResult struct { Items []InboundNatRule } +type InboundNatRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *InboundNatRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // InboundNatRulesList ... func (c LoadBalancersClient) InboundNatRulesList(ctx context.Context, id ProviderLoadBalancerId) (result InboundNatRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) InboundNatRulesList(ctx context.Context, id Provide http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &InboundNatRulesListCustomPager{}, Path: fmt.Sprintf("%s/inboundNatRules", id.ID()), } diff --git a/resource-manager/network/2023-09-01/loadbalancers/method_list.go b/resource-manager/network/2023-09-01/loadbalancers/method_list.go index 05419112689..74ca3569c7b 100644 --- a/resource-manager/network/2023-09-01/loadbalancers/method_list.go +++ b/resource-manager/network/2023-09-01/loadbalancers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []LoadBalancer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LoadBalancersClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LoadBalancersClient) List(ctx context.Context, id commonids.ResourceGrou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/loadBalancers", id.ID()), } diff --git a/resource-manager/network/2023-09-01/loadbalancers/method_listall.go b/resource-manager/network/2023-09-01/loadbalancers/method_listall.go index 25de9239c7f..74f6c49784a 100644 --- a/resource-manager/network/2023-09-01/loadbalancers/method_listall.go +++ b/resource-manager/network/2023-09-01/loadbalancers/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []LoadBalancer } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c LoadBalancersClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LoadBalancersClient) ListAll(ctx context.Context, id commonids.Subscript http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/loadBalancers", id.ID()), } diff --git a/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go b/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go index 1f9a88ad95f..42470d88640 100644 --- a/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go +++ b/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go @@ -23,6 +23,18 @@ type LoadBalancerBackendAddressPoolsListCompleteResult struct { Items []BackendAddressPool } +type LoadBalancerBackendAddressPoolsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerBackendAddressPoolsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerBackendAddressPoolsList ... func (c LoadBalancersClient) LoadBalancerBackendAddressPoolsList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerBackendAddressPoolsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerBackendAddressPoolsList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerBackendAddressPoolsListCustomPager{}, Path: fmt.Sprintf("%s/backendAddressPools", id.ID()), } diff --git a/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go b/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go index 976d076cacb..c0a472f598c 100644 --- a/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go +++ b/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go @@ -23,6 +23,18 @@ type LoadBalancerFrontendIPConfigurationsListCompleteResult struct { Items []FrontendIPConfiguration } +type LoadBalancerFrontendIPConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerFrontendIPConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerFrontendIPConfigurationsList ... func (c LoadBalancersClient) LoadBalancerFrontendIPConfigurationsList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerFrontendIPConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerFrontendIPConfigurationsList(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerFrontendIPConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/frontendIPConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go b/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go index be23a6c72db..e0c52282a3e 100644 --- a/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go +++ b/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go @@ -23,6 +23,18 @@ type LoadBalancerLoadBalancingRulesListCompleteResult struct { Items []LoadBalancingRule } +type LoadBalancerLoadBalancingRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerLoadBalancingRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerLoadBalancingRulesList ... func (c LoadBalancersClient) LoadBalancerLoadBalancingRulesList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerLoadBalancingRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerLoadBalancingRulesList(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerLoadBalancingRulesListCustomPager{}, Path: fmt.Sprintf("%s/loadBalancingRules", id.ID()), } diff --git a/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go b/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go index 5786d229c03..eed7f61c64b 100644 --- a/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go +++ b/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go @@ -23,6 +23,18 @@ type LoadBalancerNetworkInterfacesListCompleteResult struct { Items []NetworkInterface } +type LoadBalancerNetworkInterfacesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerNetworkInterfacesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerNetworkInterfacesList ... func (c LoadBalancersClient) LoadBalancerNetworkInterfacesList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerNetworkInterfacesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerNetworkInterfacesList(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerNetworkInterfacesListCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2023-09-01/loadbalancers/method_loadbalanceroutboundruleslist.go b/resource-manager/network/2023-09-01/loadbalancers/method_loadbalanceroutboundruleslist.go index 11f87c18d13..c522e068844 100644 --- a/resource-manager/network/2023-09-01/loadbalancers/method_loadbalanceroutboundruleslist.go +++ b/resource-manager/network/2023-09-01/loadbalancers/method_loadbalanceroutboundruleslist.go @@ -23,6 +23,18 @@ type LoadBalancerOutboundRulesListCompleteResult struct { Items []OutboundRule } +type LoadBalancerOutboundRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerOutboundRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerOutboundRulesList ... func (c LoadBalancersClient) LoadBalancerOutboundRulesList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerOutboundRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerOutboundRulesList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerOutboundRulesListCustomPager{}, Path: fmt.Sprintf("%s/outboundRules", id.ID()), } diff --git a/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerprobeslist.go b/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerprobeslist.go index 5146ba5bf79..c92e1df89f6 100644 --- a/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerprobeslist.go +++ b/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerprobeslist.go @@ -23,6 +23,18 @@ type LoadBalancerProbesListCompleteResult struct { Items []Probe } +type LoadBalancerProbesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerProbesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerProbesList ... func (c LoadBalancersClient) LoadBalancerProbesList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerProbesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerProbesList(ctx context.Context, id Prov http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerProbesListCustomPager{}, Path: fmt.Sprintf("%s/probes", id.ID()), } diff --git a/resource-manager/network/2023-09-01/localnetworkgateways/method_list.go b/resource-manager/network/2023-09-01/localnetworkgateways/method_list.go index 8a298cd52bc..528ccebe955 100644 --- a/resource-manager/network/2023-09-01/localnetworkgateways/method_list.go +++ b/resource-manager/network/2023-09-01/localnetworkgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []LocalNetworkGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LocalNetworkGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LocalNetworkGatewaysClient) List(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/localNetworkGateways", id.ID()), } diff --git a/resource-manager/network/2023-09-01/natgateways/method_get.go b/resource-manager/network/2023-09-01/natgateways/method_get.go index 43cb3094813..1360eae2873 100644 --- a/resource-manager/network/2023-09-01/natgateways/method_get.go +++ b/resource-manager/network/2023-09-01/natgateways/method_get.go @@ -53,8 +53,8 @@ func (c NatGatewaysClient) Get(ctx context.Context, id NatGatewayId, options Get http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/natgateways/method_list.go b/resource-manager/network/2023-09-01/natgateways/method_list.go index 1f8a5d1a76a..cf6c19572e2 100644 --- a/resource-manager/network/2023-09-01/natgateways/method_list.go +++ b/resource-manager/network/2023-09-01/natgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NatGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NatGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NatGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/natGateways", id.ID()), } diff --git a/resource-manager/network/2023-09-01/natgateways/method_listall.go b/resource-manager/network/2023-09-01/natgateways/method_listall.go index 69aeb402ae1..c417f6a9c19 100644 --- a/resource-manager/network/2023-09-01/natgateways/method_listall.go +++ b/resource-manager/network/2023-09-01/natgateways/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NatGateway } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NatGatewaysClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NatGatewaysClient) ListAll(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/natGateways", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkgroups/method_createorupdate.go b/resource-manager/network/2023-09-01/networkgroups/method_createorupdate.go index dcb392d1ae2..3ab74eeca37 100644 --- a/resource-manager/network/2023-09-01/networkgroups/method_createorupdate.go +++ b/resource-manager/network/2023-09-01/networkgroups/method_createorupdate.go @@ -54,8 +54,8 @@ func (c NetworkGroupsClient) CreateOrUpdate(ctx context.Context, id NetworkGroup http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkgroups/method_delete.go b/resource-manager/network/2023-09-01/networkgroups/method_delete.go index 567e0fb203a..452dbab57a9 100644 --- a/resource-manager/network/2023-09-01/networkgroups/method_delete.go +++ b/resource-manager/network/2023-09-01/networkgroups/method_delete.go @@ -57,8 +57,8 @@ func (c NetworkGroupsClient) Delete(ctx context.Context, id NetworkGroupId, opti http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkgroups/method_list.go b/resource-manager/network/2023-09-01/networkgroups/method_list.go index a802dbd08b3..cff4d8b0a7a 100644 --- a/resource-manager/network/2023-09-01/networkgroups/method_list.go +++ b/resource-manager/network/2023-09-01/networkgroups/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkGroupsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c NetworkGroupsClient) List(ctx context.Context, id NetworkManagerId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/networkGroups", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/networkGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_get.go b/resource-manager/network/2023-09-01/networkinterfaces/method_get.go index 14f4f1d8a0c..e1614af681d 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_get.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_get.go @@ -54,8 +54,8 @@ func (c NetworkInterfacesClient) Get(ctx context.Context, id commonids.NetworkIn http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_getcloudservicenetworkinterface.go b/resource-manager/network/2023-09-01/networkinterfaces/method_getcloudservicenetworkinterface.go index b828e37133d..7f7c58c444c 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_getcloudservicenetworkinterface.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_getcloudservicenetworkinterface.go @@ -53,8 +53,8 @@ func (c NetworkInterfacesClient) GetCloudServiceNetworkInterface(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_geteffectiveroutetable.go b/resource-manager/network/2023-09-01/networkinterfaces/method_geteffectiveroutetable.go index e64977d2735..34e568863a2 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_geteffectiveroutetable.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_geteffectiveroutetable.go @@ -27,6 +27,18 @@ type GetEffectiveRouteTableCompleteResult struct { Items []EffectiveRoute } +type GetEffectiveRouteTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetEffectiveRouteTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetEffectiveRouteTable ... func (c NetworkInterfacesClient) GetEffectiveRouteTable(ctx context.Context, id commonids.NetworkInterfaceId) (result GetEffectiveRouteTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c NetworkInterfacesClient) GetEffectiveRouteTable(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetEffectiveRouteTableCustomPager{}, Path: fmt.Sprintf("%s/effectiveRouteTable", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go b/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go index c30d98304ca..7a3d2b45272 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go @@ -54,8 +54,8 @@ func (c NetworkInterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go b/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go index 17ffc7f419c..1bef7a3da95 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go @@ -54,8 +54,8 @@ func (c NetworkInterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_list.go b/resource-manager/network/2023-09-01/networkinterfaces/method_list.go index 0cac5b10455..aba8bcae0a0 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_list.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkInterface } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkInterfacesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) List(ctx context.Context, id commonids.Resource http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_listall.go b/resource-manager/network/2023-09-01/networkinterfaces/method_listall.go index 4e462b5cfc1..aee96a1ced3 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_listall.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NetworkInterface } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NetworkInterfacesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) ListAll(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go b/resource-manager/network/2023-09-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go index e75341c2e34..7a16382102e 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go @@ -23,6 +23,18 @@ type ListCloudServiceNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListCloudServiceNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCloudServiceNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCloudServiceNetworkInterfaces ... func (c NetworkInterfacesClient) ListCloudServiceNetworkInterfaces(ctx context.Context, id ProviderCloudServiceId) (result ListCloudServiceNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListCloudServiceNetworkInterfaces(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCloudServiceNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go b/resource-manager/network/2023-09-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go index 107f550cde5..f4ae2efc987 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go @@ -23,6 +23,18 @@ type ListCloudServiceRoleInstanceNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListCloudServiceRoleInstanceNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCloudServiceRoleInstanceNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCloudServiceRoleInstanceNetworkInterfaces ... func (c NetworkInterfacesClient) ListCloudServiceRoleInstanceNetworkInterfaces(ctx context.Context, id RoleInstanceId) (result ListCloudServiceRoleInstanceNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListCloudServiceRoleInstanceNetworkInterfaces(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCloudServiceRoleInstanceNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go b/resource-manager/network/2023-09-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go index 50661e67194..8316911280d 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go @@ -27,6 +27,18 @@ type ListEffectiveNetworkSecurityGroupsCompleteResult struct { Items []EffectiveNetworkSecurityGroup } +type ListEffectiveNetworkSecurityGroupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListEffectiveNetworkSecurityGroupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListEffectiveNetworkSecurityGroups ... func (c NetworkInterfacesClient) ListEffectiveNetworkSecurityGroups(ctx context.Context, id commonids.NetworkInterfaceId) (result ListEffectiveNetworkSecurityGroupsOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c NetworkInterfacesClient) ListEffectiveNetworkSecurityGroups(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListEffectiveNetworkSecurityGroupsCustomPager{}, Path: fmt.Sprintf("%s/effectiveNetworkSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go b/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go index eea33cc5ab0..a18bdaf08cf 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go @@ -51,6 +51,18 @@ func (o ListVirtualMachineScaleSetIPConfigurationsOperationOptions) ToQuery() *c return &out } +type ListVirtualMachineScaleSetIPConfigurationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetIPConfigurationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVirtualMachineScaleSetIPConfigurations ... func (c NetworkInterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, id commonids.VirtualMachineScaleSetNetworkInterfaceId, options ListVirtualMachineScaleSetIPConfigurationsOperationOptions) (result ListVirtualMachineScaleSetIPConfigurationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkInterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), OptionsObject: options, + Pager: &ListVirtualMachineScaleSetIPConfigurationsCustomPager{}, + Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go b/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go index 1b4ce2a6774..968b1c8bbd5 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go @@ -23,6 +23,18 @@ type ListVirtualMachineScaleSetNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListVirtualMachineScaleSetNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVirtualMachineScaleSetNetworkInterfaces ... func (c NetworkInterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, id VirtualMachineScaleSetId) (result ListVirtualMachineScaleSetNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListVirtualMachineScaleSetNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go b/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go index eaa548b7373..433357587d3 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go @@ -23,6 +23,18 @@ type ListVirtualMachineScaleSetVMNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVirtualMachineScaleSetVMNetworkInterfaces ... func (c NetworkInterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, id VirtualMachineId) (result ListVirtualMachineScaleSetVMNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go b/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go index 2b472af0913..00a6c20f94c 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go @@ -24,6 +24,18 @@ type NetworkInterfaceIPConfigurationsListCompleteResult struct { Items []NetworkInterfaceIPConfiguration } +type NetworkInterfaceIPConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceIPConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkInterfaceIPConfigurationsList ... func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceIPConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsList(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceIPConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go b/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go index 8ed1e84ef81..ee4b73b4d8d 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go @@ -24,6 +24,18 @@ type NetworkInterfaceLoadBalancersListCompleteResult struct { Items []LoadBalancer } +type NetworkInterfaceLoadBalancersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceLoadBalancersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkInterfaceLoadBalancersList ... func (c NetworkInterfacesClient) NetworkInterfaceLoadBalancersList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceLoadBalancersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) NetworkInterfaceLoadBalancersList(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceLoadBalancersListCustomPager{}, Path: fmt.Sprintf("%s/loadBalancers", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go b/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go index 277fda0aa19..96b11107f62 100644 --- a/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go +++ b/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go @@ -24,6 +24,18 @@ type NetworkInterfaceTapConfigurationsListCompleteResult struct { Items []NetworkInterfaceTapConfiguration } +type NetworkInterfaceTapConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceTapConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkInterfaceTapConfigurationsList ... func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceTapConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsList(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceTapConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/tapConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go b/resource-manager/network/2023-09-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go index ddec2f40123..3e9eb347a20 100644 --- a/resource-manager/network/2023-09-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go +++ b/resource-manager/network/2023-09-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go @@ -51,6 +51,18 @@ func (o ManagementGroupNetworkManagerConnectionsListOperationOptions) ToQuery() return &out } +type ManagementGroupNetworkManagerConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ManagementGroupNetworkManagerConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ManagementGroupNetworkManagerConnectionsList ... func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsList(ctx context.Context, id commonids.ManagementGroupId, options ManagementGroupNetworkManagerConnectionsListOperationOptions) (result ManagementGroupNetworkManagerConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnection http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), OptionsObject: options, + Pager: &ManagementGroupNetworkManagerConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go b/resource-manager/network/2023-09-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go index 341b43a227d..ddf403e8a21 100644 --- a/resource-manager/network/2023-09-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go +++ b/resource-manager/network/2023-09-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go @@ -51,6 +51,18 @@ func (o SubscriptionNetworkManagerConnectionsListOperationOptions) ToQuery() *cl return &out } +type SubscriptionNetworkManagerConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SubscriptionNetworkManagerConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SubscriptionNetworkManagerConnectionsList ... func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsList(ctx context.Context, id commonids.SubscriptionId, options SubscriptionNetworkManagerConnectionsListOperationOptions) (result SubscriptionNetworkManagerConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsLi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), OptionsObject: options, + Pager: &SubscriptionNetworkManagerConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkmanagers/method_delete.go b/resource-manager/network/2023-09-01/networkmanagers/method_delete.go index ec825f20cb1..016216c8549 100644 --- a/resource-manager/network/2023-09-01/networkmanagers/method_delete.go +++ b/resource-manager/network/2023-09-01/networkmanagers/method_delete.go @@ -57,8 +57,8 @@ func (c NetworkManagersClient) Delete(ctx context.Context, id NetworkManagerId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkmanagers/method_list.go b/resource-manager/network/2023-09-01/networkmanagers/method_list.go index 18cca161414..86b71cf2d94 100644 --- a/resource-manager/network/2023-09-01/networkmanagers/method_list.go +++ b/resource-manager/network/2023-09-01/networkmanagers/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkManagersClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagersClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkmanagers/method_listbysubscription.go b/resource-manager/network/2023-09-01/networkmanagers/method_listbysubscription.go index 5faa4fab8b1..d45e89952b8 100644 --- a/resource-manager/network/2023-09-01/networkmanagers/method_listbysubscription.go +++ b/resource-manager/network/2023-09-01/networkmanagers/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c NetworkManagersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagersClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkprofiles/method_get.go b/resource-manager/network/2023-09-01/networkprofiles/method_get.go index 3b462d08204..13f98955470 100644 --- a/resource-manager/network/2023-09-01/networkprofiles/method_get.go +++ b/resource-manager/network/2023-09-01/networkprofiles/method_get.go @@ -53,8 +53,8 @@ func (c NetworkProfilesClient) Get(ctx context.Context, id NetworkProfileId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkprofiles/method_list.go b/resource-manager/network/2023-09-01/networkprofiles/method_list.go index 4adcbe6c116..e1bce2a2aa6 100644 --- a/resource-manager/network/2023-09-01/networkprofiles/method_list.go +++ b/resource-manager/network/2023-09-01/networkprofiles/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkProfile } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkProfilesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkProfilesClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkProfiles", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkprofiles/method_listall.go b/resource-manager/network/2023-09-01/networkprofiles/method_listall.go index 8d27928489b..c8509368cef 100644 --- a/resource-manager/network/2023-09-01/networkprofiles/method_listall.go +++ b/resource-manager/network/2023-09-01/networkprofiles/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NetworkProfile } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NetworkProfilesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkProfilesClient) ListAll(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkProfiles", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networksecuritygroups/method_get.go b/resource-manager/network/2023-09-01/networksecuritygroups/method_get.go index debc457321c..6ebe50d00e5 100644 --- a/resource-manager/network/2023-09-01/networksecuritygroups/method_get.go +++ b/resource-manager/network/2023-09-01/networksecuritygroups/method_get.go @@ -53,8 +53,8 @@ func (c NetworkSecurityGroupsClient) Get(ctx context.Context, id NetworkSecurity http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networksecuritygroups/method_list.go b/resource-manager/network/2023-09-01/networksecuritygroups/method_list.go index fb32dd8a5e9..8ebd9f83a71 100644 --- a/resource-manager/network/2023-09-01/networksecuritygroups/method_list.go +++ b/resource-manager/network/2023-09-01/networksecuritygroups/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkSecurityGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkSecurityGroupsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkSecurityGroupsClient) List(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networksecuritygroups/method_listall.go b/resource-manager/network/2023-09-01/networksecuritygroups/method_listall.go index 6e7c1adf74e..a6440c24150 100644 --- a/resource-manager/network/2023-09-01/networksecuritygroups/method_listall.go +++ b/resource-manager/network/2023-09-01/networksecuritygroups/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NetworkSecurityGroup } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NetworkSecurityGroupsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkSecurityGroupsClient) ListAll(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkvirtualappliances/method_get.go b/resource-manager/network/2023-09-01/networkvirtualappliances/method_get.go index ee11638f574..36076f68749 100644 --- a/resource-manager/network/2023-09-01/networkvirtualappliances/method_get.go +++ b/resource-manager/network/2023-09-01/networkvirtualappliances/method_get.go @@ -53,8 +53,8 @@ func (c NetworkVirtualAppliancesClient) Get(ctx context.Context, id NetworkVirtu http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/networkvirtualappliances/method_list.go b/resource-manager/network/2023-09-01/networkvirtualappliances/method_list.go index 8797c5f9720..35259c60e6a 100644 --- a/resource-manager/network/2023-09-01/networkvirtualappliances/method_list.go +++ b/resource-manager/network/2023-09-01/networkvirtualappliances/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkVirtualAppliance } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkVirtualAppliancesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkVirtualAppliancesClient) List(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualAppliances", id.ID()), } diff --git a/resource-manager/network/2023-09-01/networkvirtualappliances/method_listbyresourcegroup.go b/resource-manager/network/2023-09-01/networkvirtualappliances/method_listbyresourcegroup.go index 4557de37925..fe63e8307c6 100644 --- a/resource-manager/network/2023-09-01/networkvirtualappliances/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/networkvirtualappliances/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []NetworkVirtualAppliance } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NetworkVirtualAppliancesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkVirtualAppliancesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualAppliances", id.ID()), } diff --git a/resource-manager/network/2023-09-01/peerexpressroutecircuitconnections/method_list.go b/resource-manager/network/2023-09-01/peerexpressroutecircuitconnections/method_list.go index f2724c37da1..34a9aaafbe4 100644 --- a/resource-manager/network/2023-09-01/peerexpressroutecircuitconnections/method_list.go +++ b/resource-manager/network/2023-09-01/peerexpressroutecircuitconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PeerExpressRouteCircuitConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerConnections", id.ID()), } diff --git a/resource-manager/network/2023-09-01/privatednszonegroups/method_list.go b/resource-manager/network/2023-09-01/privatednszonegroups/method_list.go index 1f2c22a77bd..3abf08b87af 100644 --- a/resource-manager/network/2023-09-01/privatednszonegroups/method_list.go +++ b/resource-manager/network/2023-09-01/privatednszonegroups/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateDnsZoneGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateDnsZoneGroupsClient) List(ctx context.Context, id PrivateEndpointId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateDnsZoneGroupsClient) List(ctx context.Context, id PrivateEndpoint http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateDnsZoneGroups", id.ID()), } diff --git a/resource-manager/network/2023-09-01/privateendpoints/method_availableprivateendpointtypeslist.go b/resource-manager/network/2023-09-01/privateendpoints/method_availableprivateendpointtypeslist.go index 903cb43bbd7..f0c9af2990d 100644 --- a/resource-manager/network/2023-09-01/privateendpoints/method_availableprivateendpointtypeslist.go +++ b/resource-manager/network/2023-09-01/privateendpoints/method_availableprivateendpointtypeslist.go @@ -23,6 +23,18 @@ type AvailablePrivateEndpointTypesListCompleteResult struct { Items []AvailablePrivateEndpointType } +type AvailablePrivateEndpointTypesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailablePrivateEndpointTypesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailablePrivateEndpointTypesList ... func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesList(ctx context.Context, id LocationId) (result AvailablePrivateEndpointTypesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailablePrivateEndpointTypesListCustomPager{}, Path: fmt.Sprintf("%s/availablePrivateEndpointTypes", id.ID()), } diff --git a/resource-manager/network/2023-09-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go b/resource-manager/network/2023-09-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go index 2b24f418d5d..259ea902b1f 100644 --- a/resource-manager/network/2023-09-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go @@ -23,6 +23,18 @@ type AvailablePrivateEndpointTypesListByResourceGroupCompleteResult struct { Items []AvailablePrivateEndpointType } +type AvailablePrivateEndpointTypesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailablePrivateEndpointTypesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailablePrivateEndpointTypesListByResourceGroup ... func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListByResourceGroup(ctx context.Context, id ProviderLocationId) (result AvailablePrivateEndpointTypesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListByResourceGroup http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailablePrivateEndpointTypesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/availablePrivateEndpointTypes", id.ID()), } diff --git a/resource-manager/network/2023-09-01/privateendpoints/method_get.go b/resource-manager/network/2023-09-01/privateendpoints/method_get.go index 5f913d65fd2..80cad93eef6 100644 --- a/resource-manager/network/2023-09-01/privateendpoints/method_get.go +++ b/resource-manager/network/2023-09-01/privateendpoints/method_get.go @@ -53,8 +53,8 @@ func (c PrivateEndpointsClient) Get(ctx context.Context, id PrivateEndpointId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/privateendpoints/method_list.go b/resource-manager/network/2023-09-01/privateendpoints/method_list.go index 7d43eeb38d8..f832db84c7a 100644 --- a/resource-manager/network/2023-09-01/privateendpoints/method_list.go +++ b/resource-manager/network/2023-09-01/privateendpoints/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PrivateEndpoint } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateEndpointsClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateEndpoints", id.ID()), } diff --git a/resource-manager/network/2023-09-01/privateendpoints/method_listbysubscription.go b/resource-manager/network/2023-09-01/privateendpoints/method_listbysubscription.go index 229bfbb93bf..c517e23cdbf 100644 --- a/resource-manager/network/2023-09-01/privateendpoints/method_listbysubscription.go +++ b/resource-manager/network/2023-09-01/privateendpoints/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PrivateEndpoint } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PrivateEndpointsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateEndpointsClient) ListBySubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateEndpoints", id.ID()), } diff --git a/resource-manager/network/2023-09-01/privatelinkservices/method_get.go b/resource-manager/network/2023-09-01/privatelinkservices/method_get.go index cdd893b10fe..87bddc4d4aa 100644 --- a/resource-manager/network/2023-09-01/privatelinkservices/method_get.go +++ b/resource-manager/network/2023-09-01/privatelinkservices/method_get.go @@ -53,8 +53,8 @@ func (c PrivateLinkServicesClient) Get(ctx context.Context, id PrivateLinkServic http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/privatelinkservices/method_getprivateendpointconnection.go b/resource-manager/network/2023-09-01/privatelinkservices/method_getprivateendpointconnection.go index 1467bb48568..032d2076254 100644 --- a/resource-manager/network/2023-09-01/privatelinkservices/method_getprivateendpointconnection.go +++ b/resource-manager/network/2023-09-01/privatelinkservices/method_getprivateendpointconnection.go @@ -53,8 +53,8 @@ func (c PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/privatelinkservices/method_list.go b/resource-manager/network/2023-09-01/privatelinkservices/method_list.go index 81f52181d79..70140c6dc93 100644 --- a/resource-manager/network/2023-09-01/privatelinkservices/method_list.go +++ b/resource-manager/network/2023-09-01/privatelinkservices/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PrivateLinkService } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkServicesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkServicesClient) List(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateLinkServices", id.ID()), } diff --git a/resource-manager/network/2023-09-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go b/resource-manager/network/2023-09-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go index 3da4d7f36f9..f3156a5739c 100644 --- a/resource-manager/network/2023-09-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go +++ b/resource-manager/network/2023-09-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go @@ -23,6 +23,18 @@ type ListAutoApprovedPrivateLinkServicesCompleteResult struct { Items []AutoApprovedPrivateLinkService } +type ListAutoApprovedPrivateLinkServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAutoApprovedPrivateLinkServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAutoApprovedPrivateLinkServices ... func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx context.Context, id LocationId) (result ListAutoApprovedPrivateLinkServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAutoApprovedPrivateLinkServicesCustomPager{}, Path: fmt.Sprintf("%s/autoApprovedPrivateLinkServices", id.ID()), } diff --git a/resource-manager/network/2023-09-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go b/resource-manager/network/2023-09-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go index 82767396e1d..91eed65255f 100644 --- a/resource-manager/network/2023-09-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go @@ -23,6 +23,18 @@ type ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteResult struct { Items []AutoApprovedPrivateLinkService } +type ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAutoApprovedPrivateLinkServicesByResourceGroup ... func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx context.Context, id ProviderLocationId) (result ListAutoApprovedPrivateLinkServicesByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResource http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/autoApprovedPrivateLinkServices", id.ID()), } diff --git a/resource-manager/network/2023-09-01/privatelinkservices/method_listbysubscription.go b/resource-manager/network/2023-09-01/privatelinkservices/method_listbysubscription.go index 226fcfd8bca..63f9d6bf9c6 100644 --- a/resource-manager/network/2023-09-01/privatelinkservices/method_listbysubscription.go +++ b/resource-manager/network/2023-09-01/privatelinkservices/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PrivateLinkService } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PrivateLinkServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkServicesClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateLinkServices", id.ID()), } diff --git a/resource-manager/network/2023-09-01/privatelinkservices/method_listprivateendpointconnections.go b/resource-manager/network/2023-09-01/privatelinkservices/method_listprivateendpointconnections.go index 2c8c0ae359a..c4742974fe5 100644 --- a/resource-manager/network/2023-09-01/privatelinkservices/method_listprivateendpointconnections.go +++ b/resource-manager/network/2023-09-01/privatelinkservices/method_listprivateendpointconnections.go @@ -23,6 +23,18 @@ type ListPrivateEndpointConnectionsCompleteResult struct { Items []PrivateEndpointConnection } +type ListPrivateEndpointConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPrivateEndpointConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPrivateEndpointConnections ... func (c PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx context.Context, id PrivateLinkServiceId) (result ListPrivateEndpointConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPrivateEndpointConnectionsCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/network/2023-09-01/publicipaddresses/method_get.go b/resource-manager/network/2023-09-01/publicipaddresses/method_get.go index c5f5e5e145e..7045aad8372 100644 --- a/resource-manager/network/2023-09-01/publicipaddresses/method_get.go +++ b/resource-manager/network/2023-09-01/publicipaddresses/method_get.go @@ -54,8 +54,8 @@ func (c PublicIPAddressesClient) Get(ctx context.Context, id commonids.PublicIPA http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/publicipaddresses/method_list.go b/resource-manager/network/2023-09-01/publicipaddresses/method_list.go index 9c8fb822580..013d0306760 100644 --- a/resource-manager/network/2023-09-01/publicipaddresses/method_list.go +++ b/resource-manager/network/2023-09-01/publicipaddresses/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PublicIPAddress } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PublicIPAddressesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPAddressesClient) List(ctx context.Context, id commonids.Resource http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2023-09-01/publicipaddresses/method_listall.go b/resource-manager/network/2023-09-01/publicipaddresses/method_listall.go index 81f1cf1ccf2..fc1c5ecc247 100644 --- a/resource-manager/network/2023-09-01/publicipaddresses/method_listall.go +++ b/resource-manager/network/2023-09-01/publicipaddresses/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []PublicIPAddress } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c PublicIPAddressesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPAddressesClient) ListAll(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2023-09-01/publicipprefixes/method_get.go b/resource-manager/network/2023-09-01/publicipprefixes/method_get.go index 099ab527016..15104f80613 100644 --- a/resource-manager/network/2023-09-01/publicipprefixes/method_get.go +++ b/resource-manager/network/2023-09-01/publicipprefixes/method_get.go @@ -53,8 +53,8 @@ func (c PublicIPPrefixesClient) Get(ctx context.Context, id PublicIPPrefixId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/publicipprefixes/method_list.go b/resource-manager/network/2023-09-01/publicipprefixes/method_list.go index c413af54862..122a9df6f37 100644 --- a/resource-manager/network/2023-09-01/publicipprefixes/method_list.go +++ b/resource-manager/network/2023-09-01/publicipprefixes/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PublicIPPrefix } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PublicIPPrefixesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPPrefixesClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2023-09-01/publicipprefixes/method_listall.go b/resource-manager/network/2023-09-01/publicipprefixes/method_listall.go index c140ae5d7bb..4c49b47b3fe 100644 --- a/resource-manager/network/2023-09-01/publicipprefixes/method_listall.go +++ b/resource-manager/network/2023-09-01/publicipprefixes/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []PublicIPPrefix } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c PublicIPPrefixesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPPrefixesClient) ListAll(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2023-09-01/routefilterrules/method_listbyroutefilter.go b/resource-manager/network/2023-09-01/routefilterrules/method_listbyroutefilter.go index 6e367988a54..5c0268dc0a5 100644 --- a/resource-manager/network/2023-09-01/routefilterrules/method_listbyroutefilter.go +++ b/resource-manager/network/2023-09-01/routefilterrules/method_listbyroutefilter.go @@ -23,6 +23,18 @@ type ListByRouteFilterCompleteResult struct { Items []RouteFilterRule } +type ListByRouteFilterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByRouteFilterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByRouteFilter ... func (c RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, id RouteFilterId) (result ListByRouteFilterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, id RouteF http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByRouteFilterCustomPager{}, Path: fmt.Sprintf("%s/routeFilterRules", id.ID()), } diff --git a/resource-manager/network/2023-09-01/routefilters/method_get.go b/resource-manager/network/2023-09-01/routefilters/method_get.go index 55c6ee5fa8f..d44bd6d46b0 100644 --- a/resource-manager/network/2023-09-01/routefilters/method_get.go +++ b/resource-manager/network/2023-09-01/routefilters/method_get.go @@ -53,8 +53,8 @@ func (c RouteFiltersClient) Get(ctx context.Context, id RouteFilterId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/routefilters/method_list.go b/resource-manager/network/2023-09-01/routefilters/method_list.go index 934ec1fccd5..927387fb2da 100644 --- a/resource-manager/network/2023-09-01/routefilters/method_list.go +++ b/resource-manager/network/2023-09-01/routefilters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []RouteFilter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RouteFiltersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteFiltersClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeFilters", id.ID()), } diff --git a/resource-manager/network/2023-09-01/routefilters/method_listbyresourcegroup.go b/resource-manager/network/2023-09-01/routefilters/method_listbyresourcegroup.go index a320717ba09..256467e7de9 100644 --- a/resource-manager/network/2023-09-01/routefilters/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/routefilters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []RouteFilter } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c RouteFiltersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteFiltersClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeFilters", id.ID()), } diff --git a/resource-manager/network/2023-09-01/routes/method_list.go b/resource-manager/network/2023-09-01/routes/method_list.go index b54de6d4c7a..dddfb46f64c 100644 --- a/resource-manager/network/2023-09-01/routes/method_list.go +++ b/resource-manager/network/2023-09-01/routes/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Route } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RoutesClient) List(ctx context.Context, id RouteTableId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RoutesClient) List(ctx context.Context, id RouteTableId) (result ListOpe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/routes", id.ID()), } diff --git a/resource-manager/network/2023-09-01/routetables/method_get.go b/resource-manager/network/2023-09-01/routetables/method_get.go index 519ddb2364a..cb19ef16deb 100644 --- a/resource-manager/network/2023-09-01/routetables/method_get.go +++ b/resource-manager/network/2023-09-01/routetables/method_get.go @@ -53,8 +53,8 @@ func (c RouteTablesClient) Get(ctx context.Context, id RouteTableId, options Get http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/routetables/method_list.go b/resource-manager/network/2023-09-01/routetables/method_list.go index 2d99a93be80..c219fd770ef 100644 --- a/resource-manager/network/2023-09-01/routetables/method_list.go +++ b/resource-manager/network/2023-09-01/routetables/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []RouteTable } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RouteTablesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteTablesClient) List(ctx context.Context, id commonids.ResourceGroupI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeTables", id.ID()), } diff --git a/resource-manager/network/2023-09-01/routetables/method_listall.go b/resource-manager/network/2023-09-01/routetables/method_listall.go index 0b505ddf7dc..c3c8de7e20d 100644 --- a/resource-manager/network/2023-09-01/routetables/method_listall.go +++ b/resource-manager/network/2023-09-01/routetables/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []RouteTable } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c RouteTablesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteTablesClient) ListAll(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeTables", id.ID()), } diff --git a/resource-manager/network/2023-09-01/scopeconnections/method_list.go b/resource-manager/network/2023-09-01/scopeconnections/method_list.go index 4f298f36139..c819623c65e 100644 --- a/resource-manager/network/2023-09-01/scopeconnections/method_list.go +++ b/resource-manager/network/2023-09-01/scopeconnections/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScopeConnectionsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ScopeConnectionsClient) List(ctx context.Context, id NetworkManagerId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/scopeConnections", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/scopeConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/securityadminconfigurations/method_delete.go b/resource-manager/network/2023-09-01/securityadminconfigurations/method_delete.go index d08913b2c20..82087f7a71c 100644 --- a/resource-manager/network/2023-09-01/securityadminconfigurations/method_delete.go +++ b/resource-manager/network/2023-09-01/securityadminconfigurations/method_delete.go @@ -57,8 +57,8 @@ func (c SecurityAdminConfigurationsClient) Delete(ctx context.Context, id Securi http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/securityadminconfigurations/method_list.go b/resource-manager/network/2023-09-01/securityadminconfigurations/method_list.go index 4e0a2f41041..8fc4c2c91dc 100644 --- a/resource-manager/network/2023-09-01/securityadminconfigurations/method_list.go +++ b/resource-manager/network/2023-09-01/securityadminconfigurations/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityAdminConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SecurityAdminConfigurationsClient) List(ctx context.Context, id NetworkM http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/securityAdminConfigurations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/securityAdminConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/securitypartnerproviders/method_list.go b/resource-manager/network/2023-09-01/securitypartnerproviders/method_list.go index 2ef1d4133ba..9a4f5451680 100644 --- a/resource-manager/network/2023-09-01/securitypartnerproviders/method_list.go +++ b/resource-manager/network/2023-09-01/securitypartnerproviders/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecurityPartnerProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityPartnerProvidersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityPartnerProvidersClient) List(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/securityPartnerProviders", id.ID()), } diff --git a/resource-manager/network/2023-09-01/securitypartnerproviders/method_listbyresourcegroup.go b/resource-manager/network/2023-09-01/securitypartnerproviders/method_listbyresourcegroup.go index 5e7d3b8e25b..0616c919e32 100644 --- a/resource-manager/network/2023-09-01/securitypartnerproviders/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/securitypartnerproviders/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SecurityPartnerProvider } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/securityPartnerProviders", id.ID()), } diff --git a/resource-manager/network/2023-09-01/securityrules/method_defaultsecurityruleslist.go b/resource-manager/network/2023-09-01/securityrules/method_defaultsecurityruleslist.go index 9c554b7a019..fbf92af5b89 100644 --- a/resource-manager/network/2023-09-01/securityrules/method_defaultsecurityruleslist.go +++ b/resource-manager/network/2023-09-01/securityrules/method_defaultsecurityruleslist.go @@ -23,6 +23,18 @@ type DefaultSecurityRulesListCompleteResult struct { Items []SecurityRule } +type DefaultSecurityRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DefaultSecurityRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DefaultSecurityRulesList ... func (c SecurityRulesClient) DefaultSecurityRulesList(ctx context.Context, id NetworkSecurityGroupId) (result DefaultSecurityRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SecurityRulesClient) DefaultSecurityRulesList(ctx context.Context, id Ne http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DefaultSecurityRulesListCustomPager{}, Path: fmt.Sprintf("%s/defaultSecurityRules", id.ID()), } diff --git a/resource-manager/network/2023-09-01/securityrules/method_list.go b/resource-manager/network/2023-09-01/securityrules/method_list.go index 791f88e26a1..73b4f2f1a16 100644 --- a/resource-manager/network/2023-09-01/securityrules/method_list.go +++ b/resource-manager/network/2023-09-01/securityrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SecurityRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityRulesClient) List(ctx context.Context, id NetworkSecurityGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SecurityRulesClient) List(ctx context.Context, id NetworkSecurityGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/securityRules", id.ID()), } diff --git a/resource-manager/network/2023-09-01/serviceendpointpolicies/method_get.go b/resource-manager/network/2023-09-01/serviceendpointpolicies/method_get.go index 4b9b1c2e323..8929b01c755 100644 --- a/resource-manager/network/2023-09-01/serviceendpointpolicies/method_get.go +++ b/resource-manager/network/2023-09-01/serviceendpointpolicies/method_get.go @@ -53,8 +53,8 @@ func (c ServiceEndpointPoliciesClient) Get(ctx context.Context, id ServiceEndpoi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/serviceendpointpolicies/method_list.go b/resource-manager/network/2023-09-01/serviceendpointpolicies/method_list.go index 4c8118c4424..3a437224556 100644 --- a/resource-manager/network/2023-09-01/serviceendpointpolicies/method_list.go +++ b/resource-manager/network/2023-09-01/serviceendpointpolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ServiceEndpointPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServiceEndpointPoliciesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServiceEndpointPoliciesClient) List(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/serviceEndpointPolicies", id.ID()), } diff --git a/resource-manager/network/2023-09-01/serviceendpointpolicies/method_listbyresourcegroup.go b/resource-manager/network/2023-09-01/serviceendpointpolicies/method_listbyresourcegroup.go index 1e00f2516e2..384f7dc28fe 100644 --- a/resource-manager/network/2023-09-01/serviceendpointpolicies/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/serviceendpointpolicies/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ServiceEndpointPolicy } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/serviceEndpointPolicies", id.ID()), } diff --git a/resource-manager/network/2023-09-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go b/resource-manager/network/2023-09-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go index 17bb8bc3fc1..a4f79aa4d80 100644 --- a/resource-manager/network/2023-09-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go @@ -23,6 +23,18 @@ type ListByResourceGroupCompleteResult struct { Items []ServiceEndpointPolicyDefinition } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx context.Context, id ServiceEndpointPolicyId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/serviceEndpointPolicyDefinitions", id.ID()), } diff --git a/resource-manager/network/2023-09-01/servicetags/method_servicetaginformationlist.go b/resource-manager/network/2023-09-01/servicetags/method_servicetaginformationlist.go index a1ec8327d54..7c6de375541 100644 --- a/resource-manager/network/2023-09-01/servicetags/method_servicetaginformationlist.go +++ b/resource-manager/network/2023-09-01/servicetags/method_servicetaginformationlist.go @@ -54,6 +54,18 @@ func (o ServiceTagInformationListOperationOptions) ToQuery() *client.QueryParams return &out } +type ServiceTagInformationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceTagInformationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceTagInformationList ... func (c ServiceTagsClient) ServiceTagInformationList(ctx context.Context, id LocationId, options ServiceTagInformationListOperationOptions) (result ServiceTagInformationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ServiceTagsClient) ServiceTagInformationList(ctx context.Context, id Loc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/serviceTagDetails", id.ID()), OptionsObject: options, + Pager: &ServiceTagInformationListCustomPager{}, + Path: fmt.Sprintf("%s/serviceTagDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/staticmembers/method_list.go b/resource-manager/network/2023-09-01/staticmembers/method_list.go index fc087d77dc0..ac0788a5a34 100644 --- a/resource-manager/network/2023-09-01/staticmembers/method_list.go +++ b/resource-manager/network/2023-09-01/staticmembers/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StaticMembersClient) List(ctx context.Context, id NetworkGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c StaticMembersClient) List(ctx context.Context, id NetworkGroupId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/staticMembers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/staticMembers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/subnets/method_get.go b/resource-manager/network/2023-09-01/subnets/method_get.go index f43b6e2df8f..d77795ad632 100644 --- a/resource-manager/network/2023-09-01/subnets/method_get.go +++ b/resource-manager/network/2023-09-01/subnets/method_get.go @@ -54,8 +54,8 @@ func (c SubnetsClient) Get(ctx context.Context, id commonids.SubnetId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/subnets/method_list.go b/resource-manager/network/2023-09-01/subnets/method_list.go index 9d636728719..b9424e85280 100644 --- a/resource-manager/network/2023-09-01/subnets/method_list.go +++ b/resource-manager/network/2023-09-01/subnets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Subnet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SubnetsClient) List(ctx context.Context, id commonids.VirtualNetworkId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SubnetsClient) List(ctx context.Context, id commonids.VirtualNetworkId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/subnets", id.ID()), } diff --git a/resource-manager/network/2023-09-01/usages/method_list.go b/resource-manager/network/2023-09-01/usages/method_list.go index 6f4166f6dfc..76d13699e0c 100644 --- a/resource-manager/network/2023-09-01/usages/method_list.go +++ b/resource-manager/network/2023-09-01/usages/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Usage } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UsagesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UsagesClient) List(ctx context.Context, id LocationId) (result ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualappliancesites/method_list.go b/resource-manager/network/2023-09-01/virtualappliancesites/method_list.go index b8a9fc0c70b..ed83c3497ea 100644 --- a/resource-manager/network/2023-09-01/virtualappliancesites/method_list.go +++ b/resource-manager/network/2023-09-01/virtualappliancesites/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualApplianceSite } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualApplianceSitesClient) List(ctx context.Context, id NetworkVirtualApplianceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualApplianceSitesClient) List(ctx context.Context, id NetworkVirtual http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/virtualApplianceSites", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualapplianceskus/method_list.go b/resource-manager/network/2023-09-01/virtualapplianceskus/method_list.go index 1e8f39f7e10..a4af9a60bb6 100644 --- a/resource-manager/network/2023-09-01/virtualapplianceskus/method_list.go +++ b/resource-manager/network/2023-09-01/virtualapplianceskus/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkVirtualApplianceSku } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualApplianceSkusClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualApplianceSkusClient) List(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualApplianceSkus", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualnetworkgatewayconnections/method_list.go b/resource-manager/network/2023-09-01/virtualnetworkgatewayconnections/method_list.go index 6c9d02a4538..34dc525dce4 100644 --- a/resource-manager/network/2023-09-01/virtualnetworkgatewayconnections/method_list.go +++ b/resource-manager/network/2023-09-01/virtualnetworkgatewayconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetworkGatewayConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/connections", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualnetworkgateways/method_getadvertisedroutes.go b/resource-manager/network/2023-09-01/virtualnetworkgateways/method_getadvertisedroutes.go index 81a82f3fee4..d0dde50a8c6 100644 --- a/resource-manager/network/2023-09-01/virtualnetworkgateways/method_getadvertisedroutes.go +++ b/resource-manager/network/2023-09-01/virtualnetworkgateways/method_getadvertisedroutes.go @@ -57,8 +57,8 @@ func (c VirtualNetworkGatewaysClient) GetAdvertisedRoutes(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getAdvertisedRoutes", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getAdvertisedRoutes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/virtualnetworkgateways/method_getbgppeerstatus.go b/resource-manager/network/2023-09-01/virtualnetworkgateways/method_getbgppeerstatus.go index f8e0d0d0aae..5e6a04ac485 100644 --- a/resource-manager/network/2023-09-01/virtualnetworkgateways/method_getbgppeerstatus.go +++ b/resource-manager/network/2023-09-01/virtualnetworkgateways/method_getbgppeerstatus.go @@ -57,8 +57,8 @@ func (c VirtualNetworkGatewaysClient) GetBgpPeerStatus(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getBgpPeerStatus", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getBgpPeerStatus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/virtualnetworkgateways/method_list.go b/resource-manager/network/2023-09-01/virtualnetworkgateways/method_list.go index 71bb6d6e8be..8266a51728d 100644 --- a/resource-manager/network/2023-09-01/virtualnetworkgateways/method_list.go +++ b/resource-manager/network/2023-09-01/virtualnetworkgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetworkGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworkGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkGatewaysClient) List(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworkGateways", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualnetworkgateways/method_listconnections.go b/resource-manager/network/2023-09-01/virtualnetworkgateways/method_listconnections.go index 11416dae415..2f13ca7b97c 100644 --- a/resource-manager/network/2023-09-01/virtualnetworkgateways/method_listconnections.go +++ b/resource-manager/network/2023-09-01/virtualnetworkgateways/method_listconnections.go @@ -23,6 +23,18 @@ type ListConnectionsCompleteResult struct { Items []VirtualNetworkGatewayConnectionListEntity } +type ListConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConnections ... func (c VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, id VirtualNetworkGatewayId) (result ListConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, id Vi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConnectionsCustomPager{}, Path: fmt.Sprintf("%s/connections", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualnetworkgateways/method_reset.go b/resource-manager/network/2023-09-01/virtualnetworkgateways/method_reset.go index d766e3f0c62..433a2126e07 100644 --- a/resource-manager/network/2023-09-01/virtualnetworkgateways/method_reset.go +++ b/resource-manager/network/2023-09-01/virtualnetworkgateways/method_reset.go @@ -57,8 +57,8 @@ func (c VirtualNetworkGatewaysClient) Reset(ctx context.Context, id VirtualNetwo http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/reset", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/reset", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go b/resource-manager/network/2023-09-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go index 9fc49217e2c..ce8ee5c4965 100644 --- a/resource-manager/network/2023-09-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go +++ b/resource-manager/network/2023-09-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go @@ -23,6 +23,18 @@ type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteResult stru Items []VirtualNetworkGatewayNatRule } +type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway ... func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway(ctx context.Context, id VirtualNetworkGatewayId) (result VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesListByVirtual http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager{}, Path: fmt.Sprintf("%s/natRules", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualnetworkpeerings/method_createorupdate.go b/resource-manager/network/2023-09-01/virtualnetworkpeerings/method_createorupdate.go index e7fcc91436e..aba174940d2 100644 --- a/resource-manager/network/2023-09-01/virtualnetworkpeerings/method_createorupdate.go +++ b/resource-manager/network/2023-09-01/virtualnetworkpeerings/method_createorupdate.go @@ -57,8 +57,8 @@ func (c VirtualNetworkPeeringsClient) CreateOrUpdate(ctx context.Context, id Vir http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/virtualnetworkpeerings/method_list.go b/resource-manager/network/2023-09-01/virtualnetworkpeerings/method_list.go index 614ef8d907f..a18c0885cc9 100644 --- a/resource-manager/network/2023-09-01/virtualnetworkpeerings/method_list.go +++ b/resource-manager/network/2023-09-01/virtualnetworkpeerings/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetworkPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworkPeeringsClient) List(ctx context.Context, id commonids.VirtualNetworkId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkPeeringsClient) List(ctx context.Context, id commonids.Vir http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkPeerings", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualnetworks/method_get.go b/resource-manager/network/2023-09-01/virtualnetworks/method_get.go index e40ab49ec8e..189fd2689c1 100644 --- a/resource-manager/network/2023-09-01/virtualnetworks/method_get.go +++ b/resource-manager/network/2023-09-01/virtualnetworks/method_get.go @@ -54,8 +54,8 @@ func (c VirtualNetworksClient) Get(ctx context.Context, id commonids.VirtualNetw http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/virtualnetworks/method_list.go b/resource-manager/network/2023-09-01/virtualnetworks/method_list.go index 9162506d2da..e540706223a 100644 --- a/resource-manager/network/2023-09-01/virtualnetworks/method_list.go +++ b/resource-manager/network/2023-09-01/virtualnetworks/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetwork } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworksClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworks", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualnetworks/method_listall.go b/resource-manager/network/2023-09-01/virtualnetworks/method_listall.go index 06795ae6091..e91f96c1cf3 100644 --- a/resource-manager/network/2023-09-01/virtualnetworks/method_listall.go +++ b/resource-manager/network/2023-09-01/virtualnetworks/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []VirtualNetwork } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualNetworksClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ListAll(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworks", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualnetworks/method_resourcenavigationlinkslist.go b/resource-manager/network/2023-09-01/virtualnetworks/method_resourcenavigationlinkslist.go index 9a0b9b15f44..16f353bcd4e 100644 --- a/resource-manager/network/2023-09-01/virtualnetworks/method_resourcenavigationlinkslist.go +++ b/resource-manager/network/2023-09-01/virtualnetworks/method_resourcenavigationlinkslist.go @@ -24,6 +24,18 @@ type ResourceNavigationLinksListCompleteResult struct { Items []ResourceNavigationLink } +type ResourceNavigationLinksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceNavigationLinksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourceNavigationLinksList ... func (c VirtualNetworksClient) ResourceNavigationLinksList(ctx context.Context, id commonids.SubnetId) (result ResourceNavigationLinksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ResourceNavigationLinksList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourceNavigationLinksListCustomPager{}, Path: fmt.Sprintf("%s/resourceNavigationLinks", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualnetworks/method_serviceassociationlinkslist.go b/resource-manager/network/2023-09-01/virtualnetworks/method_serviceassociationlinkslist.go index 5d6fbf0b927..c246c98a15b 100644 --- a/resource-manager/network/2023-09-01/virtualnetworks/method_serviceassociationlinkslist.go +++ b/resource-manager/network/2023-09-01/virtualnetworks/method_serviceassociationlinkslist.go @@ -24,6 +24,18 @@ type ServiceAssociationLinksListCompleteResult struct { Items []ServiceAssociationLink } +type ServiceAssociationLinksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceAssociationLinksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceAssociationLinksList ... func (c VirtualNetworksClient) ServiceAssociationLinksList(ctx context.Context, id commonids.SubnetId) (result ServiceAssociationLinksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ServiceAssociationLinksList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServiceAssociationLinksListCustomPager{}, Path: fmt.Sprintf("%s/serviceAssociationLinks", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go b/resource-manager/network/2023-09-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go index 85ba4d73ccd..1f434189786 100644 --- a/resource-manager/network/2023-09-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go +++ b/resource-manager/network/2023-09-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go @@ -54,8 +54,8 @@ func (c VirtualNetworksClient) VirtualNetworksCheckIPAddressAvailability(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/checkIPAddressAvailability", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/checkIPAddressAvailability", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go b/resource-manager/network/2023-09-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go index c0872952086..d48736807d5 100644 --- a/resource-manager/network/2023-09-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go +++ b/resource-manager/network/2023-09-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go @@ -58,6 +58,18 @@ func (o VirtualNetworksListDdosProtectionStatusOperationOptions) ToQuery() *clie return &out } +type VirtualNetworksListDdosProtectionStatusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworksListDdosProtectionStatusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualNetworksListDdosProtectionStatus ... func (c VirtualNetworksClient) VirtualNetworksListDdosProtectionStatus(ctx context.Context, id commonids.VirtualNetworkId, options VirtualNetworksListDdosProtectionStatusOperationOptions) (result VirtualNetworksListDdosProtectionStatusOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c VirtualNetworksClient) VirtualNetworksListDdosProtectionStatus(ctx conte http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/ddosProtectionStatus", id.ID()), OptionsObject: options, + Pager: &VirtualNetworksListDdosProtectionStatusCustomPager{}, + Path: fmt.Sprintf("%s/ddosProtectionStatus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/virtualnetworks/method_virtualnetworkslistusage.go b/resource-manager/network/2023-09-01/virtualnetworks/method_virtualnetworkslistusage.go index 546a8bbc316..cfc1a239a93 100644 --- a/resource-manager/network/2023-09-01/virtualnetworks/method_virtualnetworkslistusage.go +++ b/resource-manager/network/2023-09-01/virtualnetworks/method_virtualnetworkslistusage.go @@ -24,6 +24,18 @@ type VirtualNetworksListUsageCompleteResult struct { Items []VirtualNetworkUsage } +type VirtualNetworksListUsageCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworksListUsageCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualNetworksListUsage ... func (c VirtualNetworksClient) VirtualNetworksListUsage(ctx context.Context, id commonids.VirtualNetworkId) (result VirtualNetworksListUsageOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) VirtualNetworksListUsage(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualNetworksListUsageCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualnetworktaps/method_listall.go b/resource-manager/network/2023-09-01/virtualnetworktaps/method_listall.go index aba7596749e..c73f4d2a3eb 100644 --- a/resource-manager/network/2023-09-01/virtualnetworktaps/method_listall.go +++ b/resource-manager/network/2023-09-01/virtualnetworktaps/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []VirtualNetworkTap } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualNetworkTapsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkTapsClient) ListAll(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworkTaps", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualnetworktaps/method_listbyresourcegroup.go b/resource-manager/network/2023-09-01/virtualnetworktaps/method_listbyresourcegroup.go index 7377c5f3294..91d504091c5 100644 --- a/resource-manager/network/2023-09-01/virtualnetworktaps/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/virtualnetworktaps/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualNetworkTap } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworkTaps", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualrouterpeerings/method_list.go b/resource-manager/network/2023-09-01/virtualrouterpeerings/method_list.go index c0a333e6c0d..276300c6796 100644 --- a/resource-manager/network/2023-09-01/virtualrouterpeerings/method_list.go +++ b/resource-manager/network/2023-09-01/virtualrouterpeerings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualRouterPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualRouterPeeringsClient) List(ctx context.Context, id VirtualRouterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualRouterPeeringsClient) List(ctx context.Context, id VirtualRouterI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerings", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualrouters/method_get.go b/resource-manager/network/2023-09-01/virtualrouters/method_get.go index 2e829ce071e..39415fad17f 100644 --- a/resource-manager/network/2023-09-01/virtualrouters/method_get.go +++ b/resource-manager/network/2023-09-01/virtualrouters/method_get.go @@ -53,8 +53,8 @@ func (c VirtualRoutersClient) Get(ctx context.Context, id VirtualRouterId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/virtualrouters/method_list.go b/resource-manager/network/2023-09-01/virtualrouters/method_list.go index db67e56568e..414434d4b95 100644 --- a/resource-manager/network/2023-09-01/virtualrouters/method_list.go +++ b/resource-manager/network/2023-09-01/virtualrouters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualRouter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualRoutersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualRoutersClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualRouters", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualrouters/method_listbyresourcegroup.go b/resource-manager/network/2023-09-01/virtualrouters/method_listbyresourcegroup.go index 9f01dcc539a..b34c6e266b7 100644 --- a/resource-manager/network/2023-09-01/virtualrouters/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/virtualrouters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualRouter } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualRoutersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualRoutersClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualRouters", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go b/resource-manager/network/2023-09-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go index 4d60c8f1419..d8055521e53 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go @@ -23,6 +23,18 @@ type ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteResult struct Items []VpnServerConfigurationPolicyGroup } +type ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationPolicyGroupsListByVpnServerConfiguration ... func (c VirtualWANsClient) ConfigurationPolicyGroupsListByVpnServerConfiguration(ctx context.Context, id VpnServerConfigurationId) (result ConfigurationPolicyGroupsListByVpnServerConfigurationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) ConfigurationPolicyGroupsListByVpnServerConfiguration http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager{}, Path: fmt.Sprintf("%s/configurationPolicyGroups", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_hubroutetableslist.go b/resource-manager/network/2023-09-01/virtualwans/method_hubroutetableslist.go index e95318b1194..d36631c9289 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_hubroutetableslist.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_hubroutetableslist.go @@ -23,6 +23,18 @@ type HubRouteTablesListCompleteResult struct { Items []HubRouteTable } +type HubRouteTablesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HubRouteTablesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // HubRouteTablesList ... func (c VirtualWANsClient) HubRouteTablesList(ctx context.Context, id VirtualHubId) (result HubRouteTablesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) HubRouteTablesList(ctx context.Context, id VirtualHub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &HubRouteTablesListCustomPager{}, Path: fmt.Sprintf("%s/hubRouteTables", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_hubvirtualnetworkconnectionslist.go b/resource-manager/network/2023-09-01/virtualwans/method_hubvirtualnetworkconnectionslist.go index baf9dedf27b..9ba166e19d8 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_hubvirtualnetworkconnectionslist.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_hubvirtualnetworkconnectionslist.go @@ -23,6 +23,18 @@ type HubVirtualNetworkConnectionsListCompleteResult struct { Items []HubVirtualNetworkConnection } +type HubVirtualNetworkConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HubVirtualNetworkConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // HubVirtualNetworkConnectionsList ... func (c VirtualWANsClient) HubVirtualNetworkConnectionsList(ctx context.Context, id VirtualHubId) (result HubVirtualNetworkConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) HubVirtualNetworkConnectionsList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &HubVirtualNetworkConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/hubVirtualNetworkConnections", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_natruleslistbyvpngateway.go b/resource-manager/network/2023-09-01/virtualwans/method_natruleslistbyvpngateway.go index 7c30bd1de6f..e5393de1385 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_natruleslistbyvpngateway.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_natruleslistbyvpngateway.go @@ -23,6 +23,18 @@ type NatRulesListByVpnGatewayCompleteResult struct { Items []VpnGatewayNatRule } +type NatRulesListByVpnGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NatRulesListByVpnGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NatRulesListByVpnGateway ... func (c VirtualWANsClient) NatRulesListByVpnGateway(ctx context.Context, id VpnGatewayId) (result NatRulesListByVpnGatewayOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) NatRulesListByVpnGateway(ctx context.Context, id VpnG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NatRulesListByVpnGatewayCustomPager{}, Path: fmt.Sprintf("%s/natRules", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_networkvirtualapplianceconnectionslist.go b/resource-manager/network/2023-09-01/virtualwans/method_networkvirtualapplianceconnectionslist.go index e3ef913c529..72b22855ec4 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_networkvirtualapplianceconnectionslist.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_networkvirtualapplianceconnectionslist.go @@ -23,6 +23,18 @@ type NetworkVirtualApplianceConnectionsListCompleteResult struct { Items []NetworkVirtualApplianceConnection } +type NetworkVirtualApplianceConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkVirtualApplianceConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkVirtualApplianceConnectionsList ... func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsList(ctx context.Context, id NetworkVirtualApplianceId) (result NetworkVirtualApplianceConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkVirtualApplianceConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/networkVirtualApplianceConnections", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_p2svpngatewayslist.go b/resource-manager/network/2023-09-01/virtualwans/method_p2svpngatewayslist.go index fff4e439357..b51053de49e 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_p2svpngatewayslist.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_p2svpngatewayslist.go @@ -24,6 +24,18 @@ type P2sVpnGatewaysListCompleteResult struct { Items []P2SVpnGateway } +type P2sVpnGatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *P2sVpnGatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // P2sVpnGatewaysList ... func (c VirtualWANsClient) P2sVpnGatewaysList(ctx context.Context, id commonids.SubscriptionId) (result P2sVpnGatewaysListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) P2sVpnGatewaysList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &P2sVpnGatewaysListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/p2sVpnGateways", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go b/resource-manager/network/2023-09-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go index 0224c82328e..1c57fc684fa 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go @@ -24,6 +24,18 @@ type P2sVpnGatewaysListByResourceGroupCompleteResult struct { Items []P2SVpnGateway } +type P2sVpnGatewaysListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *P2sVpnGatewaysListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // P2sVpnGatewaysListByResourceGroup ... func (c VirtualWANsClient) P2sVpnGatewaysListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result P2sVpnGatewaysListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) P2sVpnGatewaysListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &P2sVpnGatewaysListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/p2sVpnGateways", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_routemapslist.go b/resource-manager/network/2023-09-01/virtualwans/method_routemapslist.go index 3def8ca78d2..a9eddc11d95 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_routemapslist.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_routemapslist.go @@ -23,6 +23,18 @@ type RouteMapsListCompleteResult struct { Items []RouteMap } +type RouteMapsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RouteMapsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RouteMapsList ... func (c VirtualWANsClient) RouteMapsList(ctx context.Context, id VirtualHubId) (result RouteMapsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) RouteMapsList(ctx context.Context, id VirtualHubId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RouteMapsListCustomPager{}, Path: fmt.Sprintf("%s/routeMaps", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_routingintentlist.go b/resource-manager/network/2023-09-01/virtualwans/method_routingintentlist.go index ef858aa2b50..b3edd99b519 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_routingintentlist.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_routingintentlist.go @@ -23,6 +23,18 @@ type RoutingIntentListCompleteResult struct { Items []RoutingIntent } +type RoutingIntentListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RoutingIntentListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RoutingIntentList ... func (c VirtualWANsClient) RoutingIntentList(ctx context.Context, id VirtualHubId) (result RoutingIntentListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) RoutingIntentList(ctx context.Context, id VirtualHubI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RoutingIntentListCustomPager{}, Path: fmt.Sprintf("%s/routingIntent", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_virtualhubbgpconnectionslist.go b/resource-manager/network/2023-09-01/virtualwans/method_virtualhubbgpconnectionslist.go index c4b5ea29e18..802bf0b65b9 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_virtualhubbgpconnectionslist.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_virtualhubbgpconnectionslist.go @@ -23,6 +23,18 @@ type VirtualHubBgpConnectionsListCompleteResult struct { Items []BgpConnection } +type VirtualHubBgpConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubBgpConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubBgpConnectionsList ... func (c VirtualWANsClient) VirtualHubBgpConnectionsList(ctx context.Context, id VirtualHubId) (result VirtualHubBgpConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VirtualHubBgpConnectionsList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubBgpConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/bgpConnections", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_virtualhubipconfigurationlist.go b/resource-manager/network/2023-09-01/virtualwans/method_virtualhubipconfigurationlist.go index c3fa2ae6e69..8ae13b9fb7d 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_virtualhubipconfigurationlist.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_virtualhubipconfigurationlist.go @@ -23,6 +23,18 @@ type VirtualHubIPConfigurationListCompleteResult struct { Items []HubIPConfiguration } +type VirtualHubIPConfigurationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubIPConfigurationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubIPConfigurationList ... func (c VirtualWANsClient) VirtualHubIPConfigurationList(ctx context.Context, id VirtualHubId) (result VirtualHubIPConfigurationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VirtualHubIPConfigurationList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubIPConfigurationListCustomPager{}, Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_virtualhubroutetablev2slist.go b/resource-manager/network/2023-09-01/virtualwans/method_virtualhubroutetablev2slist.go index 1687bef7d4c..cf9c9ef61a3 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_virtualhubroutetablev2slist.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_virtualhubroutetablev2slist.go @@ -23,6 +23,18 @@ type VirtualHubRouteTableV2sListCompleteResult struct { Items []VirtualHubRouteTableV2 } +type VirtualHubRouteTableV2sListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubRouteTableV2sListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubRouteTableV2sList ... func (c VirtualWANsClient) VirtualHubRouteTableV2sList(ctx context.Context, id VirtualHubId) (result VirtualHubRouteTableV2sListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VirtualHubRouteTableV2sList(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubRouteTableV2sListCustomPager{}, Path: fmt.Sprintf("%s/routeTables", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_virtualhubslist.go b/resource-manager/network/2023-09-01/virtualwans/method_virtualhubslist.go index 49ab6fcec34..d8fa3805233 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_virtualhubslist.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_virtualhubslist.go @@ -24,6 +24,18 @@ type VirtualHubsListCompleteResult struct { Items []VirtualHub } +type VirtualHubsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubsList ... func (c VirtualWANsClient) VirtualHubsList(ctx context.Context, id commonids.SubscriptionId) (result VirtualHubsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualHubsList(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualHubs", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_virtualhubslistbyresourcegroup.go b/resource-manager/network/2023-09-01/virtualwans/method_virtualhubslistbyresourcegroup.go index 2eabf9bea70..9427d542093 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_virtualhubslistbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_virtualhubslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VirtualHubsListByResourceGroupCompleteResult struct { Items []VirtualHub } +type VirtualHubsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubsListByResourceGroup ... func (c VirtualWANsClient) VirtualHubsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VirtualHubsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualHubsListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualHubs", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_virtualwanslist.go b/resource-manager/network/2023-09-01/virtualwans/method_virtualwanslist.go index 394200ffe81..8a8cb8514e3 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_virtualwanslist.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_virtualwanslist.go @@ -24,6 +24,18 @@ type VirtualWansListCompleteResult struct { Items []VirtualWAN } +type VirtualWansListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualWansListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualWansList ... func (c VirtualWANsClient) VirtualWansList(ctx context.Context, id commonids.SubscriptionId) (result VirtualWansListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualWansList(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualWansListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualWans", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_virtualwanslistbyresourcegroup.go b/resource-manager/network/2023-09-01/virtualwans/method_virtualwanslistbyresourcegroup.go index fec869f75be..24b02c20232 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_virtualwanslistbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_virtualwanslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VirtualWansListByResourceGroupCompleteResult struct { Items []VirtualWAN } +type VirtualWansListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualWansListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualWansListByResourceGroup ... func (c VirtualWANsClient) VirtualWansListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VirtualWansListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualWansListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualWansListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualWans", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_vpnconnectionslistbyvpngateway.go b/resource-manager/network/2023-09-01/virtualwans/method_vpnconnectionslistbyvpngateway.go index 48d7fe22883..d1ed0d12708 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_vpnconnectionslistbyvpngateway.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_vpnconnectionslistbyvpngateway.go @@ -23,6 +23,18 @@ type VpnConnectionsListByVpnGatewayCompleteResult struct { Items []VpnConnection } +type VpnConnectionsListByVpnGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnConnectionsListByVpnGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnConnectionsListByVpnGateway ... func (c VirtualWANsClient) VpnConnectionsListByVpnGateway(ctx context.Context, id VpnGatewayId) (result VpnConnectionsListByVpnGatewayOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VpnConnectionsListByVpnGateway(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnConnectionsListByVpnGatewayCustomPager{}, Path: fmt.Sprintf("%s/vpnConnections", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_vpngatewayslist.go b/resource-manager/network/2023-09-01/virtualwans/method_vpngatewayslist.go index ca191bd2af0..d5ecf5c40ee 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_vpngatewayslist.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_vpngatewayslist.go @@ -24,6 +24,18 @@ type VpnGatewaysListCompleteResult struct { Items []VpnGateway } +type VpnGatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnGatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnGatewaysList ... func (c VirtualWANsClient) VpnGatewaysList(ctx context.Context, id commonids.SubscriptionId) (result VpnGatewaysListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnGatewaysList(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnGatewaysListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnGateways", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_vpngatewayslistbyresourcegroup.go b/resource-manager/network/2023-09-01/virtualwans/method_vpngatewayslistbyresourcegroup.go index 74f1365bd3c..e0e679927ad 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_vpngatewayslistbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_vpngatewayslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VpnGatewaysListByResourceGroupCompleteResult struct { Items []VpnGateway } +type VpnGatewaysListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnGatewaysListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnGatewaysListByResourceGroup ... func (c VirtualWANsClient) VpnGatewaysListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnGatewaysListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnGatewaysListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnGatewaysListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnGateways", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go b/resource-manager/network/2023-09-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go index 6aa787c6a6c..28dcee0d679 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go @@ -24,6 +24,18 @@ type VpnLinkConnectionsListByVpnConnectionCompleteResult struct { Items []VpnSiteLinkConnection } +type VpnLinkConnectionsListByVpnConnectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnLinkConnectionsListByVpnConnectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnLinkConnectionsListByVpnConnection ... func (c VirtualWANsClient) VpnLinkConnectionsListByVpnConnection(ctx context.Context, id commonids.VPNConnectionId) (result VpnLinkConnectionsListByVpnConnectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnLinkConnectionsListByVpnConnection(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnLinkConnectionsListByVpnConnectionCustomPager{}, Path: fmt.Sprintf("%s/vpnLinkConnections", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_vpnserverconfigurationslist.go b/resource-manager/network/2023-09-01/virtualwans/method_vpnserverconfigurationslist.go index 2b477dfd0ed..914118474d5 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_vpnserverconfigurationslist.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_vpnserverconfigurationslist.go @@ -24,6 +24,18 @@ type VpnServerConfigurationsListCompleteResult struct { Items []VpnServerConfiguration } +type VpnServerConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnServerConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnServerConfigurationsList ... func (c VirtualWANsClient) VpnServerConfigurationsList(ctx context.Context, id commonids.SubscriptionId) (result VpnServerConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnServerConfigurationsList(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnServerConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnServerConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go b/resource-manager/network/2023-09-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go index a4976dfad49..6653716f5fe 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VpnServerConfigurationsListByResourceGroupCompleteResult struct { Items []VpnServerConfiguration } +type VpnServerConfigurationsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnServerConfigurationsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnServerConfigurationsListByResourceGroup ... func (c VirtualWANsClient) VpnServerConfigurationsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnServerConfigurationsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnServerConfigurationsListByResourceGroup(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnServerConfigurationsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnServerConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go b/resource-manager/network/2023-09-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go index 58c8ae1dd18..584c5170718 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go @@ -23,6 +23,18 @@ type VpnSiteLinksListByVpnSiteCompleteResult struct { Items []VpnSiteLink } +type VpnSiteLinksListByVpnSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSiteLinksListByVpnSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnSiteLinksListByVpnSite ... func (c VirtualWANsClient) VpnSiteLinksListByVpnSite(ctx context.Context, id VpnSiteId) (result VpnSiteLinksListByVpnSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VpnSiteLinksListByVpnSite(ctx context.Context, id Vpn http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnSiteLinksListByVpnSiteCustomPager{}, Path: fmt.Sprintf("%s/vpnSiteLinks", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_vpnsiteslist.go b/resource-manager/network/2023-09-01/virtualwans/method_vpnsiteslist.go index f6008bbcb21..38bc5c86363 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_vpnsiteslist.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_vpnsiteslist.go @@ -24,6 +24,18 @@ type VpnSitesListCompleteResult struct { Items []VpnSite } +type VpnSitesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSitesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnSitesList ... func (c VirtualWANsClient) VpnSitesList(ctx context.Context, id commonids.SubscriptionId) (result VpnSitesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnSitesList(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnSitesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnSites", id.ID()), } diff --git a/resource-manager/network/2023-09-01/virtualwans/method_vpnsiteslistbyresourcegroup.go b/resource-manager/network/2023-09-01/virtualwans/method_vpnsiteslistbyresourcegroup.go index aee63f234ff..276e64b30d1 100644 --- a/resource-manager/network/2023-09-01/virtualwans/method_vpnsiteslistbyresourcegroup.go +++ b/resource-manager/network/2023-09-01/virtualwans/method_vpnsiteslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VpnSitesListByResourceGroupCompleteResult struct { Items []VpnSite } +type VpnSitesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSitesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnSitesListByResourceGroup ... func (c VirtualWANsClient) VpnSitesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnSitesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnSitesListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnSitesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnSites", id.ID()), } diff --git a/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go b/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go index f1a1235a8e2..482b018c7dc 100644 --- a/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go +++ b/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go @@ -54,8 +54,8 @@ func (c VMSSPublicIPAddressesClient) PublicIPAddressesGetVirtualMachineScaleSetP http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go b/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go index b7648a7a307..c39b6848351 100644 --- a/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go +++ b/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go @@ -23,6 +23,18 @@ type PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCompleteResult Items []PublicIPAddress } +type PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses ... func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, id VirtualMachineScaleSetId) (result PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSet http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go b/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go index e61b339d253..83d7e85289f 100644 --- a/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go +++ b/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go @@ -24,6 +24,18 @@ type PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCompleteResul Items []PublicIPAddress } +type PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses ... func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, id commonids.VirtualMachineScaleSetIPConfigurationId) (result PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSet http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2023-09-01/vpngateways/method_reset.go b/resource-manager/network/2023-09-01/vpngateways/method_reset.go index ca8defc383b..8228267e86c 100644 --- a/resource-manager/network/2023-09-01/vpngateways/method_reset.go +++ b/resource-manager/network/2023-09-01/vpngateways/method_reset.go @@ -57,8 +57,8 @@ func (c VpnGatewaysClient) Reset(ctx context.Context, id VpnGatewayId, options R http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/reset", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/reset", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_list.go b/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_list.go index dbe94a8ef0e..4a6b3abf31e 100644 --- a/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_list.go +++ b/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []WebApplicationFirewallPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WebApplicationFirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebApplicationFirewallPoliciesClient) List(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies", id.ID()), } diff --git a/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_listall.go b/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_listall.go index 652df162aed..e3a633a2655 100644 --- a/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_listall.go +++ b/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []WebApplicationFirewallPolicy } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies", id.ID()), } diff --git a/resource-manager/network/2023-09-01/webcategories/method_get.go b/resource-manager/network/2023-09-01/webcategories/method_get.go index 9038c189875..6150a24fbf4 100644 --- a/resource-manager/network/2023-09-01/webcategories/method_get.go +++ b/resource-manager/network/2023-09-01/webcategories/method_get.go @@ -53,8 +53,8 @@ func (c WebCategoriesClient) Get(ctx context.Context, id AzureWebCategoryId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-09-01/webcategories/method_listbysubscription.go b/resource-manager/network/2023-09-01/webcategories/method_listbysubscription.go index 4a3e7f4445b..8e55ebdbf11 100644 --- a/resource-manager/network/2023-09-01/webcategories/method_listbysubscription.go +++ b/resource-manager/network/2023-09-01/webcategories/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []AzureWebCategory } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WebCategoriesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebCategoriesClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureWebCategories", id.ID()), } diff --git a/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go b/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go index 2a158c78562..ec55f3fa7e6 100644 --- a/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go +++ b/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go @@ -57,8 +57,8 @@ func (c AdminRuleCollectionsClient) Delete(ctx context.Context, id RuleCollectio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/adminrulecollections/method_list.go b/resource-manager/network/2023-11-01/adminrulecollections/method_list.go index 4b76fd0901c..f4b9bfcdd61 100644 --- a/resource-manager/network/2023-11-01/adminrulecollections/method_list.go +++ b/resource-manager/network/2023-11-01/adminrulecollections/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AdminRuleCollectionsClient) List(ctx context.Context, id SecurityAdminConfigurationId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c AdminRuleCollectionsClient) List(ctx context.Context, id SecurityAdminCo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/ruleCollections", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/ruleCollections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/adminrules/method_delete.go b/resource-manager/network/2023-11-01/adminrules/method_delete.go index 6d7b0f948b8..9b07dbc4a79 100644 --- a/resource-manager/network/2023-11-01/adminrules/method_delete.go +++ b/resource-manager/network/2023-11-01/adminrules/method_delete.go @@ -57,8 +57,8 @@ func (c AdminRulesClient) Delete(ctx context.Context, id RuleId, options DeleteO http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/adminrules/method_list.go b/resource-manager/network/2023-11-01/adminrules/method_list.go index 1c41454de22..97915114117 100644 --- a/resource-manager/network/2023-11-01/adminrules/method_list.go +++ b/resource-manager/network/2023-11-01/adminrules/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BaseAdminRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AdminRulesClient) List(ctx context.Context, id RuleCollectionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AdminRulesClient) List(ctx context.Context, id RuleCollectionId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/rules", id.ID()), } diff --git a/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_list.go b/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_list.go index c77aa7c6921..595ab9b2ec1 100644 --- a/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_list.go +++ b/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationGatewayPrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationGatewayPrivateEndpointConnectionsClient) List(ctx context.Context, id ApplicationGatewayId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationGatewayPrivateEndpointConnectionsClient) List(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/method_list.go b/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/method_list.go index e50df050c40..ab3dbda73fe 100644 --- a/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/method_list.go +++ b/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationGatewayPrivateLinkResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationGatewayPrivateLinkResourcesClient) List(ctx context.Context, id ApplicationGatewayId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationGatewayPrivateLinkResourcesClient) List(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/network/2023-11-01/applicationgateways/method_backendhealth.go b/resource-manager/network/2023-11-01/applicationgateways/method_backendhealth.go index bc7254fd7d6..21c25eb922c 100644 --- a/resource-manager/network/2023-11-01/applicationgateways/method_backendhealth.go +++ b/resource-manager/network/2023-11-01/applicationgateways/method_backendhealth.go @@ -57,8 +57,8 @@ func (c ApplicationGatewaysClient) BackendHealth(ctx context.Context, id Applica http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/backendhealth", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/backendhealth", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/applicationgateways/method_backendhealthondemand.go b/resource-manager/network/2023-11-01/applicationgateways/method_backendhealthondemand.go index c99e1e55de2..2db3547857a 100644 --- a/resource-manager/network/2023-11-01/applicationgateways/method_backendhealthondemand.go +++ b/resource-manager/network/2023-11-01/applicationgateways/method_backendhealthondemand.go @@ -57,8 +57,8 @@ func (c ApplicationGatewaysClient) BackendHealthOnDemand(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getBackendHealthOnDemand", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getBackendHealthOnDemand", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/applicationgateways/method_list.go b/resource-manager/network/2023-11-01/applicationgateways/method_list.go index 5f1051eb154..5993122f77d 100644 --- a/resource-manager/network/2023-11-01/applicationgateways/method_list.go +++ b/resource-manager/network/2023-11-01/applicationgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ApplicationGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationGatewaysClient) List(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGateways", id.ID()), } diff --git a/resource-manager/network/2023-11-01/applicationgateways/method_listall.go b/resource-manager/network/2023-11-01/applicationgateways/method_listall.go index b652121174a..2339a539153 100644 --- a/resource-manager/network/2023-11-01/applicationgateways/method_listall.go +++ b/resource-manager/network/2023-11-01/applicationgateways/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []ApplicationGateway } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c ApplicationGatewaysClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationGatewaysClient) ListAll(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGateways", id.ID()), } diff --git a/resource-manager/network/2023-11-01/applicationgateways/method_listavailablesslpredefinedpolicies.go b/resource-manager/network/2023-11-01/applicationgateways/method_listavailablesslpredefinedpolicies.go index e9498c59b10..60e04b841d4 100644 --- a/resource-manager/network/2023-11-01/applicationgateways/method_listavailablesslpredefinedpolicies.go +++ b/resource-manager/network/2023-11-01/applicationgateways/method_listavailablesslpredefinedpolicies.go @@ -24,6 +24,18 @@ type ListAvailableSslPredefinedPoliciesCompleteResult struct { Items []ApplicationGatewaySslPredefinedPolicy } +type ListAvailableSslPredefinedPoliciesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAvailableSslPredefinedPoliciesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAvailableSslPredefinedPolicies ... func (c ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableSslPredefinedPoliciesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAvailableSslPredefinedPoliciesCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies", id.ID()), } diff --git a/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_get.go b/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_get.go index d07f9b4e97b..4f7a0478f78 100644 --- a/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_get.go +++ b/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_get.go @@ -23,6 +23,18 @@ type GetCompleteResult struct { Items []ApplicationGatewayWafDynamicManifestResult } +type GetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Get ... func (c ApplicationGatewayWafDynamicManifestsClient) Get(ctx context.Context, id LocationId) (result GetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationGatewayWafDynamicManifestsClient) Get(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetCustomPager{}, Path: fmt.Sprintf("%s/applicationGatewayWafDynamicManifests", id.ID()), } diff --git a/resource-manager/network/2023-11-01/applicationsecuritygroups/method_list.go b/resource-manager/network/2023-11-01/applicationsecuritygroups/method_list.go index 424c65a5cec..1e8cc5c05eb 100644 --- a/resource-manager/network/2023-11-01/applicationsecuritygroups/method_list.go +++ b/resource-manager/network/2023-11-01/applicationsecuritygroups/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ApplicationSecurityGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationSecurityGroupsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationSecurityGroupsClient) List(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2023-11-01/applicationsecuritygroups/method_listall.go b/resource-manager/network/2023-11-01/applicationsecuritygroups/method_listall.go index 38c5c8dc37f..b0f38c737fa 100644 --- a/resource-manager/network/2023-11-01/applicationsecuritygroups/method_listall.go +++ b/resource-manager/network/2023-11-01/applicationsecuritygroups/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []ApplicationSecurityGroup } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c ApplicationSecurityGroupsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationSecurityGroupsClient) ListAll(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2023-11-01/availabledelegations/method_availabledelegationslist.go b/resource-manager/network/2023-11-01/availabledelegations/method_availabledelegationslist.go index 45c22a5af12..e9a70f09fbc 100644 --- a/resource-manager/network/2023-11-01/availabledelegations/method_availabledelegationslist.go +++ b/resource-manager/network/2023-11-01/availabledelegations/method_availabledelegationslist.go @@ -23,6 +23,18 @@ type AvailableDelegationsListCompleteResult struct { Items []AvailableDelegation } +type AvailableDelegationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailableDelegationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailableDelegationsList ... func (c AvailableDelegationsClient) AvailableDelegationsList(ctx context.Context, id LocationId) (result AvailableDelegationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableDelegationsClient) AvailableDelegationsList(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailableDelegationsListCustomPager{}, Path: fmt.Sprintf("%s/availableDelegations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/availabledelegations/method_availableresourcegroupdelegationslist.go b/resource-manager/network/2023-11-01/availabledelegations/method_availableresourcegroupdelegationslist.go index c507cd333ea..1663af9f165 100644 --- a/resource-manager/network/2023-11-01/availabledelegations/method_availableresourcegroupdelegationslist.go +++ b/resource-manager/network/2023-11-01/availabledelegations/method_availableresourcegroupdelegationslist.go @@ -23,6 +23,18 @@ type AvailableResourceGroupDelegationsListCompleteResult struct { Items []AvailableDelegation } +type AvailableResourceGroupDelegationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailableResourceGroupDelegationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailableResourceGroupDelegationsList ... func (c AvailableDelegationsClient) AvailableResourceGroupDelegationsList(ctx context.Context, id ProviderLocationId) (result AvailableResourceGroupDelegationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableDelegationsClient) AvailableResourceGroupDelegationsList(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailableResourceGroupDelegationsListCustomPager{}, Path: fmt.Sprintf("%s/availableDelegations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/availableservicealiases/method_list.go b/resource-manager/network/2023-11-01/availableservicealiases/method_list.go index f5cd7f6b9a3..702ae41758c 100644 --- a/resource-manager/network/2023-11-01/availableservicealiases/method_list.go +++ b/resource-manager/network/2023-11-01/availableservicealiases/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []AvailableServiceAlias } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AvailableServiceAliasesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableServiceAliasesClient) List(ctx context.Context, id LocationId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/availableServiceAliases", id.ID()), } diff --git a/resource-manager/network/2023-11-01/availableservicealiases/method_listbyresourcegroup.go b/resource-manager/network/2023-11-01/availableservicealiases/method_listbyresourcegroup.go index dedb4883d49..0f1856bad3f 100644 --- a/resource-manager/network/2023-11-01/availableservicealiases/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/availableservicealiases/method_listbyresourcegroup.go @@ -23,6 +23,18 @@ type ListByResourceGroupCompleteResult struct { Items []AvailableServiceAlias } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Context, id ProviderLocationId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/availableServiceAliases", id.ID()), } diff --git a/resource-manager/network/2023-11-01/azurefirewalls/method_list.go b/resource-manager/network/2023-11-01/azurefirewalls/method_list.go index ffbf3c167c9..305a4b553ef 100644 --- a/resource-manager/network/2023-11-01/azurefirewalls/method_list.go +++ b/resource-manager/network/2023-11-01/azurefirewalls/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AzureFirewall } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AzureFirewallsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AzureFirewallsClient) List(ctx context.Context, id commonids.ResourceGro http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureFirewalls", id.ID()), } diff --git a/resource-manager/network/2023-11-01/azurefirewalls/method_listall.go b/resource-manager/network/2023-11-01/azurefirewalls/method_listall.go index c688f48f1de..be602f8bbd5 100644 --- a/resource-manager/network/2023-11-01/azurefirewalls/method_listall.go +++ b/resource-manager/network/2023-11-01/azurefirewalls/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []AzureFirewall } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c AzureFirewallsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AzureFirewallsClient) ListAll(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureFirewalls", id.ID()), } diff --git a/resource-manager/network/2023-11-01/bastionhosts/method_disconnectactivesessions.go b/resource-manager/network/2023-11-01/bastionhosts/method_disconnectactivesessions.go index c0aac609fe0..b5bf326b6c2 100644 --- a/resource-manager/network/2023-11-01/bastionhosts/method_disconnectactivesessions.go +++ b/resource-manager/network/2023-11-01/bastionhosts/method_disconnectactivesessions.go @@ -23,6 +23,18 @@ type DisconnectActiveSessionsCompleteResult struct { Items []BastionSessionState } +type DisconnectActiveSessionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DisconnectActiveSessionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DisconnectActiveSessions ... func (c BastionHostsClient) DisconnectActiveSessions(ctx context.Context, id BastionHostId, input SessionIds) (result DisconnectActiveSessionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BastionHostsClient) DisconnectActiveSessions(ctx context.Context, id Bas http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &DisconnectActiveSessionsCustomPager{}, Path: fmt.Sprintf("%s/disconnectActiveSessions", id.ID()), } diff --git a/resource-manager/network/2023-11-01/bastionhosts/method_getactivesessions.go b/resource-manager/network/2023-11-01/bastionhosts/method_getactivesessions.go index bc50f38fc50..ef9274ebcca 100644 --- a/resource-manager/network/2023-11-01/bastionhosts/method_getactivesessions.go +++ b/resource-manager/network/2023-11-01/bastionhosts/method_getactivesessions.go @@ -26,6 +26,18 @@ type GetActiveSessionsCompleteResult struct { Items []BastionActiveSession } +type GetActiveSessionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetActiveSessionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetActiveSessions ... func (c BastionHostsClient) GetActiveSessions(ctx context.Context, id BastionHostId) (result GetActiveSessionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c BastionHostsClient) GetActiveSessions(ctx context.Context, id BastionHos http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetActiveSessionsCustomPager{}, Path: fmt.Sprintf("%s/getActiveSessions", id.ID()), } diff --git a/resource-manager/network/2023-11-01/bastionhosts/method_getbastionshareablelink.go b/resource-manager/network/2023-11-01/bastionhosts/method_getbastionshareablelink.go index e97537890ad..c2598119199 100644 --- a/resource-manager/network/2023-11-01/bastionhosts/method_getbastionshareablelink.go +++ b/resource-manager/network/2023-11-01/bastionhosts/method_getbastionshareablelink.go @@ -23,6 +23,18 @@ type GetBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type GetBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBastionShareableLink ... func (c BastionHostsClient) GetBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result GetBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BastionHostsClient) GetBastionShareableLink(ctx context.Context, id Bast http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/getShareableLinks", id.ID()), } diff --git a/resource-manager/network/2023-11-01/bastionhosts/method_list.go b/resource-manager/network/2023-11-01/bastionhosts/method_list.go index e73d8601569..1503bda8513 100644 --- a/resource-manager/network/2023-11-01/bastionhosts/method_list.go +++ b/resource-manager/network/2023-11-01/bastionhosts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BastionHost } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BastionHostsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BastionHostsClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/bastionHosts", id.ID()), } diff --git a/resource-manager/network/2023-11-01/bastionhosts/method_listbyresourcegroup.go b/resource-manager/network/2023-11-01/bastionhosts/method_listbyresourcegroup.go index 5a80cf6aed5..9be179204d2 100644 --- a/resource-manager/network/2023-11-01/bastionhosts/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/bastionhosts/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []BastionHost } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c BastionHostsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BastionHostsClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/bastionHosts", id.ID()), } diff --git a/resource-manager/network/2023-11-01/bastionhosts/method_putbastionshareablelink.go b/resource-manager/network/2023-11-01/bastionhosts/method_putbastionshareablelink.go index 5f6e7438551..f0a53697d66 100644 --- a/resource-manager/network/2023-11-01/bastionhosts/method_putbastionshareablelink.go +++ b/resource-manager/network/2023-11-01/bastionhosts/method_putbastionshareablelink.go @@ -26,6 +26,18 @@ type PutBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type PutBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PutBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PutBastionShareableLink ... func (c BastionHostsClient) PutBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result PutBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c BastionHostsClient) PutBastionShareableLink(ctx context.Context, id Bast http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &PutBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/createShareableLinks", id.ID()), } diff --git a/resource-manager/network/2023-11-01/bastionshareablelink/method_getbastionshareablelink.go b/resource-manager/network/2023-11-01/bastionshareablelink/method_getbastionshareablelink.go index d6f683c1ce9..2c1e9c470aa 100644 --- a/resource-manager/network/2023-11-01/bastionshareablelink/method_getbastionshareablelink.go +++ b/resource-manager/network/2023-11-01/bastionshareablelink/method_getbastionshareablelink.go @@ -23,6 +23,18 @@ type GetBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type GetBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBastionShareableLink ... func (c BastionShareableLinkClient) GetBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result GetBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BastionShareableLinkClient) GetBastionShareableLink(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/getShareableLinks", id.ID()), } diff --git a/resource-manager/network/2023-11-01/bastionshareablelink/method_putbastionshareablelink.go b/resource-manager/network/2023-11-01/bastionshareablelink/method_putbastionshareablelink.go index bf85b28ee63..7c6c9a0cd1d 100644 --- a/resource-manager/network/2023-11-01/bastionshareablelink/method_putbastionshareablelink.go +++ b/resource-manager/network/2023-11-01/bastionshareablelink/method_putbastionshareablelink.go @@ -26,6 +26,18 @@ type PutBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type PutBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PutBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PutBastionShareableLink ... func (c BastionShareableLinkClient) PutBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result PutBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c BastionShareableLinkClient) PutBastionShareableLink(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &PutBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/createShareableLinks", id.ID()), } diff --git a/resource-manager/network/2023-11-01/bgpservicecommunities/method_list.go b/resource-manager/network/2023-11-01/bgpservicecommunities/method_list.go index 3d8eb8c593e..633bcf897cf 100644 --- a/resource-manager/network/2023-11-01/bgpservicecommunities/method_list.go +++ b/resource-manager/network/2023-11-01/bgpservicecommunities/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BgpServiceCommunity } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BgpServiceCommunitiesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BgpServiceCommunitiesClient) List(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/bgpServiceCommunities", id.ID()), } diff --git a/resource-manager/network/2023-11-01/checkdnsavailabilities/method_checkdnsnameavailability.go b/resource-manager/network/2023-11-01/checkdnsavailabilities/method_checkdnsnameavailability.go index 7a516978d72..276e19a8dd4 100644 --- a/resource-manager/network/2023-11-01/checkdnsavailabilities/method_checkdnsnameavailability.go +++ b/resource-manager/network/2023-11-01/checkdnsavailabilities/method_checkdnsnameavailability.go @@ -53,8 +53,8 @@ func (c CheckDnsAvailabilitiesClient) CheckDnsNameAvailability(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/checkDnsNameAvailability", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/checkDnsNameAvailability", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go b/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go index b9661797464..b3e6c192d39 100644 --- a/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go +++ b/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go @@ -54,8 +54,8 @@ func (c CloudServicePublicIPAddressesClient) PublicIPAddressesGetCloudServicePub http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go b/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go index 3101695e6b4..11dfd25258c 100644 --- a/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go +++ b/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go @@ -23,6 +23,18 @@ type PublicIPAddressesListCloudServicePublicIPAddressesCompleteResult struct { Items []PublicIPAddress } +type PublicIPAddressesListCloudServicePublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListCloudServicePublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListCloudServicePublicIPAddresses ... func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServicePublicIPAddresses(ctx context.Context, id ProviderCloudServiceId) (result PublicIPAddressesListCloudServicePublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServicePu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListCloudServicePublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go b/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go index 1f8d938cb07..d1b2312ff6e 100644 --- a/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go +++ b/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go @@ -24,6 +24,18 @@ type PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCompleteResul Items []PublicIPAddress } +type PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses ... func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses(ctx context.Context, id commonids.CloudServicesIPConfigurationId) (result PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServiceRo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2023-11-01/connectionmonitors/method_createorupdate.go b/resource-manager/network/2023-11-01/connectionmonitors/method_createorupdate.go index b54a54e92b1..f2d252c628d 100644 --- a/resource-manager/network/2023-11-01/connectionmonitors/method_createorupdate.go +++ b/resource-manager/network/2023-11-01/connectionmonitors/method_createorupdate.go @@ -57,8 +57,8 @@ func (c ConnectionMonitorsClient) CreateOrUpdate(ctx context.Context, id Connect http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/connectivityconfigurations/method_delete.go b/resource-manager/network/2023-11-01/connectivityconfigurations/method_delete.go index 39d9c109838..8646fac9ed8 100644 --- a/resource-manager/network/2023-11-01/connectivityconfigurations/method_delete.go +++ b/resource-manager/network/2023-11-01/connectivityconfigurations/method_delete.go @@ -57,8 +57,8 @@ func (c ConnectivityConfigurationsClient) Delete(ctx context.Context, id Connect http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/connectivityconfigurations/method_list.go b/resource-manager/network/2023-11-01/connectivityconfigurations/method_list.go index fd3032351bd..95ba68f0bc1 100644 --- a/resource-manager/network/2023-11-01/connectivityconfigurations/method_list.go +++ b/resource-manager/network/2023-11-01/connectivityconfigurations/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ConnectivityConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ConnectivityConfigurationsClient) List(ctx context.Context, id NetworkMa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/connectivityConfigurations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/connectivityConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/customipprefixes/method_get.go b/resource-manager/network/2023-11-01/customipprefixes/method_get.go index 04442324994..9215609651a 100644 --- a/resource-manager/network/2023-11-01/customipprefixes/method_get.go +++ b/resource-manager/network/2023-11-01/customipprefixes/method_get.go @@ -53,8 +53,8 @@ func (c CustomIPPrefixesClient) Get(ctx context.Context, id CustomIPPrefixId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/customipprefixes/method_list.go b/resource-manager/network/2023-11-01/customipprefixes/method_list.go index 22d7d1e3f86..34b4f325ee9 100644 --- a/resource-manager/network/2023-11-01/customipprefixes/method_list.go +++ b/resource-manager/network/2023-11-01/customipprefixes/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []CustomIPPrefix } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CustomIPPrefixesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CustomIPPrefixesClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/customIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2023-11-01/customipprefixes/method_listall.go b/resource-manager/network/2023-11-01/customipprefixes/method_listall.go index 221ccc71db6..82eb645deab 100644 --- a/resource-manager/network/2023-11-01/customipprefixes/method_listall.go +++ b/resource-manager/network/2023-11-01/customipprefixes/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []CustomIPPrefix } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c CustomIPPrefixesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CustomIPPrefixesClient) ListAll(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/customIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2023-11-01/ddosprotectionplans/method_list.go b/resource-manager/network/2023-11-01/ddosprotectionplans/method_list.go index 4fee924e5b5..3862b150045 100644 --- a/resource-manager/network/2023-11-01/ddosprotectionplans/method_list.go +++ b/resource-manager/network/2023-11-01/ddosprotectionplans/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DdosProtectionPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DdosProtectionPlansClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DdosProtectionPlansClient) List(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ddosProtectionPlans", id.ID()), } diff --git a/resource-manager/network/2023-11-01/ddosprotectionplans/method_listbyresourcegroup.go b/resource-manager/network/2023-11-01/ddosprotectionplans/method_listbyresourcegroup.go index 25cfd986dac..0f9eecd1db7 100644 --- a/resource-manager/network/2023-11-01/ddosprotectionplans/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/ddosprotectionplans/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DdosProtectionPlan } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ddosProtectionPlans", id.ID()), } diff --git a/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlist.go b/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlist.go index 7cfa7438cce..c3e8d3869d4 100644 --- a/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlist.go +++ b/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlist.go @@ -24,6 +24,18 @@ type DscpConfigurationListCompleteResult struct { Items []DscpConfiguration } +type DscpConfigurationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DscpConfigurationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DscpConfigurationList ... func (c DscpConfigurationsClient) DscpConfigurationList(ctx context.Context, id commonids.ResourceGroupId) (result DscpConfigurationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DscpConfigurationsClient) DscpConfigurationList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DscpConfigurationListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/dscpConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlistall.go b/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlistall.go index 78754cede6d..fe261147a6d 100644 --- a/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlistall.go +++ b/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlistall.go @@ -24,6 +24,18 @@ type DscpConfigurationListAllCompleteResult struct { Items []DscpConfiguration } +type DscpConfigurationListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DscpConfigurationListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DscpConfigurationListAll ... func (c DscpConfigurationsClient) DscpConfigurationListAll(ctx context.Context, id commonids.SubscriptionId) (result DscpConfigurationListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DscpConfigurationsClient) DscpConfigurationListAll(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DscpConfigurationListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/dscpConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/endpointservices/method_availableendpointserviceslist.go b/resource-manager/network/2023-11-01/endpointservices/method_availableendpointserviceslist.go index d1653d6f5bd..28193e5d9e7 100644 --- a/resource-manager/network/2023-11-01/endpointservices/method_availableendpointserviceslist.go +++ b/resource-manager/network/2023-11-01/endpointservices/method_availableendpointserviceslist.go @@ -23,6 +23,18 @@ type AvailableEndpointServicesListCompleteResult struct { Items []EndpointServiceResult } +type AvailableEndpointServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailableEndpointServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailableEndpointServicesList ... func (c EndpointServicesClient) AvailableEndpointServicesList(ctx context.Context, id LocationId) (result AvailableEndpointServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c EndpointServicesClient) AvailableEndpointServicesList(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailableEndpointServicesListCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkAvailableEndpointServices", id.ID()), } diff --git a/resource-manager/network/2023-11-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go b/resource-manager/network/2023-11-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go index 6e9e9491ca8..27f7b0349e2 100644 --- a/resource-manager/network/2023-11-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go +++ b/resource-manager/network/2023-11-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go @@ -26,6 +26,18 @@ type ExpressRouteCircuitsListArpTableCompleteResult struct { Items []ExpressRouteCircuitArpTable } +type ExpressRouteCircuitsListArpTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCircuitsListArpTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCircuitsListArpTable ... func (c ExpressRouteCircuitArpTableClient) ExpressRouteCircuitsListArpTable(ctx context.Context, id ArpTableId) (result ExpressRouteCircuitsListArpTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCircuitArpTableClient) ExpressRouteCircuitsListArpTable(ctx http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCircuitsListArpTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_list.go b/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_list.go index a689b8d8595..b726cae911d 100644 --- a/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_list.go +++ b/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuitAuthorization } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, id ExpressRouteCircuitId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, id Ex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/authorizations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_list.go b/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_list.go index 706c24c1571..bacd8586f75 100644 --- a/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_list.go +++ b/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuitConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitConnectionsClient) List(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCircuitConnectionsClient) List(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/connections", id.ID()), } diff --git a/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_list.go b/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_list.go index 684b16dc8db..ec6d45b259f 100644 --- a/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_list.go +++ b/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuitPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitPeeringsClient) List(ctx context.Context, id ExpressRouteCircuitId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteCircuitPeeringsClient) List(ctx context.Context, id ExpressR http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerings", id.ID()), } diff --git a/resource-manager/network/2023-11-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go b/resource-manager/network/2023-11-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go index 0d55eeb8353..d193f427f2f 100644 --- a/resource-manager/network/2023-11-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go +++ b/resource-manager/network/2023-11-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go @@ -26,6 +26,18 @@ type ExpressRouteCircuitsListRoutesTableCompleteResult struct { Items []ExpressRouteCircuitRoutesTable } +type ExpressRouteCircuitsListRoutesTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCircuitsListRoutesTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCircuitsListRoutesTable ... func (c ExpressRouteCircuitRoutesTableClient) ExpressRouteCircuitsListRoutesTable(ctx context.Context, id PeeringRouteTableId) (result ExpressRouteCircuitsListRoutesTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCircuitRoutesTableClient) ExpressRouteCircuitsListRoutesTabl http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCircuitsListRoutesTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go b/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go index 200e1b6b1e8..0cd493a629e 100644 --- a/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go +++ b/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go @@ -26,6 +26,18 @@ type ExpressRouteCircuitsListRoutesTableSummaryCompleteResult struct { Items []ExpressRouteCircuitRoutesTableSummary } +type ExpressRouteCircuitsListRoutesTableSummaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCircuitsListRoutesTableSummaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCircuitsListRoutesTableSummary ... func (c ExpressRouteCircuitRoutesTableSummaryClient) ExpressRouteCircuitsListRoutesTableSummary(ctx context.Context, id RouteTablesSummaryId) (result ExpressRouteCircuitsListRoutesTableSummaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCircuitRoutesTableSummaryClient) ExpressRouteCircuitsListRou http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCircuitsListRoutesTableSummaryCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2023-11-01/expressroutecircuits/method_list.go b/resource-manager/network/2023-11-01/expressroutecircuits/method_list.go index 7b016449fdc..dae4c03fa04 100644 --- a/resource-manager/network/2023-11-01/expressroutecircuits/method_list.go +++ b/resource-manager/network/2023-11-01/expressroutecircuits/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuit } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCircuitsClient) List(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCircuits", id.ID()), } diff --git a/resource-manager/network/2023-11-01/expressroutecircuits/method_listall.go b/resource-manager/network/2023-11-01/expressroutecircuits/method_listall.go index 0f6630e21c9..815e72b26ce 100644 --- a/resource-manager/network/2023-11-01/expressroutecircuits/method_listall.go +++ b/resource-manager/network/2023-11-01/expressroutecircuits/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []ExpressRouteCircuit } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c ExpressRouteCircuitsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCircuitsClient) ListAll(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCircuits", id.ID()), } diff --git a/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go b/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go index 93cb5d74c61..1aa7aed0b18 100644 --- a/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go +++ b/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go @@ -26,6 +26,18 @@ type ExpressRouteCrossConnectionsListArpTableCompleteResult struct { Items []ExpressRouteCircuitArpTable } +type ExpressRouteCrossConnectionsListArpTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCrossConnectionsListArpTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCrossConnectionsListArpTable ... func (c ExpressRouteCrossConnectionArpTableClient) ExpressRouteCrossConnectionsListArpTable(ctx context.Context, id PeeringArpTableId) (result ExpressRouteCrossConnectionsListArpTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCrossConnectionArpTableClient) ExpressRouteCrossConnectionsL http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCrossConnectionsListArpTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_list.go b/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_list.go index fabd3a8adae..15747a19b47 100644 --- a/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_list.go +++ b/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteCrossConnectionPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context, id ExpressRouteCrossConnectionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerings", id.ID()), } diff --git a/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go b/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go index 75e866bbea7..ad01c57a508 100644 --- a/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go +++ b/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go @@ -26,6 +26,18 @@ type ExpressRouteCrossConnectionsListRoutesTableCompleteResult struct { Items []ExpressRouteCircuitRoutesTable } +type ExpressRouteCrossConnectionsListRoutesTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCrossConnectionsListRoutesTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCrossConnectionsListRoutesTable ... func (c ExpressRouteCrossConnectionRouteTableClient) ExpressRouteCrossConnectionsListRoutesTable(ctx context.Context, id ExpressRouteCrossConnectionPeeringRouteTableId) (result ExpressRouteCrossConnectionsListRoutesTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCrossConnectionRouteTableClient) ExpressRouteCrossConnection http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCrossConnectionsListRoutesTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go b/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go index 06c63e507a1..64acafa8284 100644 --- a/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go +++ b/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go @@ -26,6 +26,18 @@ type ExpressRouteCrossConnectionsListRoutesTableSummaryCompleteResult struct { Items []ExpressRouteCrossConnectionRoutesTableSummary } +type ExpressRouteCrossConnectionsListRoutesTableSummaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCrossConnectionsListRoutesTableSummaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCrossConnectionsListRoutesTableSummary ... func (c ExpressRouteCrossConnectionRouteTableSummaryClient) ExpressRouteCrossConnectionsListRoutesTableSummary(ctx context.Context, id PeeringRouteTablesSummaryId) (result ExpressRouteCrossConnectionsListRoutesTableSummaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCrossConnectionRouteTableSummaryClient) ExpressRouteCrossCon http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCrossConnectionsListRoutesTableSummaryCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2023-11-01/expressroutecrossconnections/method_list.go b/resource-manager/network/2023-11-01/expressroutecrossconnections/method_list.go index e469d23f330..dc5aa7af448 100644 --- a/resource-manager/network/2023-11-01/expressroutecrossconnections/method_list.go +++ b/resource-manager/network/2023-11-01/expressroutecrossconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteCrossConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCrossConnections", id.ID()), } diff --git a/resource-manager/network/2023-11-01/expressroutecrossconnections/method_listbyresourcegroup.go b/resource-manager/network/2023-11-01/expressroutecrossconnections/method_listbyresourcegroup.go index 77daf2aa898..f16b017a526 100644 --- a/resource-manager/network/2023-11-01/expressroutecrossconnections/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/expressroutecrossconnections/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ExpressRouteCrossConnection } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCrossConnections", id.ID()), } diff --git a/resource-manager/network/2023-11-01/expressroutelinks/method_list.go b/resource-manager/network/2023-11-01/expressroutelinks/method_list.go index 80d16ff05a3..bfee432049c 100644 --- a/resource-manager/network/2023-11-01/expressroutelinks/method_list.go +++ b/resource-manager/network/2023-11-01/expressroutelinks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteLink } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteLinksClient) List(ctx context.Context, id ExpressRoutePortId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteLinksClient) List(ctx context.Context, id ExpressRoutePortId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/links", id.ID()), } diff --git a/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_list.go b/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_list.go index 7551539278a..66e64adc644 100644 --- a/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_list.go +++ b/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRoutePortAuthorization } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRoutePortAuthorizationsClient) List(ctx context.Context, id ExpressRoutePortId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRoutePortAuthorizationsClient) List(ctx context.Context, id Expre http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/authorizations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/expressrouteports/method_list.go b/resource-manager/network/2023-11-01/expressrouteports/method_list.go index 0daec47a467..6ad9fc7015f 100644 --- a/resource-manager/network/2023-11-01/expressrouteports/method_list.go +++ b/resource-manager/network/2023-11-01/expressrouteports/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRoutePort } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRoutePortsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRoutePortsClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePorts", id.ID()), } diff --git a/resource-manager/network/2023-11-01/expressrouteports/method_listbyresourcegroup.go b/resource-manager/network/2023-11-01/expressrouteports/method_listbyresourcegroup.go index 11c0c743535..ff3df3bfada 100644 --- a/resource-manager/network/2023-11-01/expressrouteports/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/expressrouteports/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ExpressRoutePort } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePorts", id.ID()), } diff --git a/resource-manager/network/2023-11-01/expressrouteportslocations/method_list.go b/resource-manager/network/2023-11-01/expressrouteportslocations/method_list.go index cdb1774aac9..32b0a19fa28 100644 --- a/resource-manager/network/2023-11-01/expressrouteportslocations/method_list.go +++ b/resource-manager/network/2023-11-01/expressrouteportslocations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRoutePortsLocation } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRoutePortsLocationsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRoutePortsLocationsClient) List(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePortsLocations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/expressrouteproviderports/method_locationlist.go b/resource-manager/network/2023-11-01/expressrouteproviderports/method_locationlist.go index 816e682da61..ad8f2e59e37 100644 --- a/resource-manager/network/2023-11-01/expressrouteproviderports/method_locationlist.go +++ b/resource-manager/network/2023-11-01/expressrouteproviderports/method_locationlist.go @@ -51,6 +51,18 @@ func (o LocationListOperationOptions) ToQuery() *client.QueryParams { return &out } +type LocationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LocationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LocationList ... func (c ExpressRouteProviderPortsClient) LocationList(ctx context.Context, id commonids.SubscriptionId, options LocationListOperationOptions) (result LocationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ExpressRouteProviderPortsClient) LocationList(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteProviderPorts", id.ID()), OptionsObject: options, + Pager: &LocationListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteProviderPorts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/expressrouteserviceproviders/method_list.go b/resource-manager/network/2023-11-01/expressrouteserviceproviders/method_list.go index 632d9f32454..e8d2935ffea 100644 --- a/resource-manager/network/2023-11-01/expressrouteserviceproviders/method_list.go +++ b/resource-manager/network/2023-11-01/expressrouteserviceproviders/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteServiceProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteServiceProvidersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteServiceProvidersClient) List(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteServiceProviders", id.ID()), } diff --git a/resource-manager/network/2023-11-01/firewallpolicies/method_get.go b/resource-manager/network/2023-11-01/firewallpolicies/method_get.go index 6d04656e020..2eee26d038a 100644 --- a/resource-manager/network/2023-11-01/firewallpolicies/method_get.go +++ b/resource-manager/network/2023-11-01/firewallpolicies/method_get.go @@ -53,8 +53,8 @@ func (c FirewallPoliciesClient) Get(ctx context.Context, id FirewallPolicyId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/firewallpolicies/method_list.go b/resource-manager/network/2023-11-01/firewallpolicies/method_list.go index efe3cd5f08b..84096e094ce 100644 --- a/resource-manager/network/2023-11-01/firewallpolicies/method_list.go +++ b/resource-manager/network/2023-11-01/firewallpolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []FirewallPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/firewallPolicies", id.ID()), } diff --git a/resource-manager/network/2023-11-01/firewallpolicies/method_listall.go b/resource-manager/network/2023-11-01/firewallpolicies/method_listall.go index 1984a126505..8b1106b1f8b 100644 --- a/resource-manager/network/2023-11-01/firewallpolicies/method_listall.go +++ b/resource-manager/network/2023-11-01/firewallpolicies/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []FirewallPolicy } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c FirewallPoliciesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FirewallPoliciesClient) ListAll(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/firewallPolicies", id.ID()), } diff --git a/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_list.go b/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_list.go index d65b94bc0f4..09dd83c8896 100644 --- a/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_list.go +++ b/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []FirewallPolicyRuleCollectionGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FirewallPolicyRuleCollectionGroupsClient) List(ctx context.Context, id FirewallPolicyId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallPolicyRuleCollectionGroupsClient) List(ctx context.Context, id F http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/ruleCollectionGroups", id.ID()), } diff --git a/resource-manager/network/2023-11-01/flowlogs/method_list.go b/resource-manager/network/2023-11-01/flowlogs/method_list.go index 9d5d0ccacbd..6652ea30f55 100644 --- a/resource-manager/network/2023-11-01/flowlogs/method_list.go +++ b/resource-manager/network/2023-11-01/flowlogs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []FlowLog } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FlowLogsClient) List(ctx context.Context, id NetworkWatcherId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FlowLogsClient) List(ctx context.Context, id NetworkWatcherId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/flowLogs", id.ID()), } diff --git a/resource-manager/network/2023-11-01/ipallocations/method_get.go b/resource-manager/network/2023-11-01/ipallocations/method_get.go index 6d8c674b8b8..ad7247cf495 100644 --- a/resource-manager/network/2023-11-01/ipallocations/method_get.go +++ b/resource-manager/network/2023-11-01/ipallocations/method_get.go @@ -53,8 +53,8 @@ func (c IPAllocationsClient) Get(ctx context.Context, id IPAllocationId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/ipallocations/method_list.go b/resource-manager/network/2023-11-01/ipallocations/method_list.go index bacc2ab4add..4fa34481651 100644 --- a/resource-manager/network/2023-11-01/ipallocations/method_list.go +++ b/resource-manager/network/2023-11-01/ipallocations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []IPAllocation } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IPAllocationsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPAllocationsClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipAllocations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/ipallocations/method_listbyresourcegroup.go b/resource-manager/network/2023-11-01/ipallocations/method_listbyresourcegroup.go index 4c81449cf9a..85abe9a21cd 100644 --- a/resource-manager/network/2023-11-01/ipallocations/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/ipallocations/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []IPAllocation } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c IPAllocationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPAllocationsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipAllocations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/ipgroups/method_get.go b/resource-manager/network/2023-11-01/ipgroups/method_get.go index c1a0a108f8e..b0d5717d963 100644 --- a/resource-manager/network/2023-11-01/ipgroups/method_get.go +++ b/resource-manager/network/2023-11-01/ipgroups/method_get.go @@ -53,8 +53,8 @@ func (c IPGroupsClient) Get(ctx context.Context, id IPGroupId, options GetOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/ipgroups/method_list.go b/resource-manager/network/2023-11-01/ipgroups/method_list.go index 08097f9cca2..76ec56d5990 100644 --- a/resource-manager/network/2023-11-01/ipgroups/method_list.go +++ b/resource-manager/network/2023-11-01/ipgroups/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []IPGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IPGroupsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPGroupsClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipGroups", id.ID()), } diff --git a/resource-manager/network/2023-11-01/ipgroups/method_listbyresourcegroup.go b/resource-manager/network/2023-11-01/ipgroups/method_listbyresourcegroup.go index 7b03ce9bb50..16ea08e273b 100644 --- a/resource-manager/network/2023-11-01/ipgroups/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/ipgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []IPGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c IPGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipGroups", id.ID()), } diff --git a/resource-manager/network/2023-11-01/loadbalancers/method_get.go b/resource-manager/network/2023-11-01/loadbalancers/method_get.go index a183aa5c7ae..2cf9ca241b7 100644 --- a/resource-manager/network/2023-11-01/loadbalancers/method_get.go +++ b/resource-manager/network/2023-11-01/loadbalancers/method_get.go @@ -53,8 +53,8 @@ func (c LoadBalancersClient) Get(ctx context.Context, id ProviderLoadBalancerId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesget.go b/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesget.go index 06666b1d382..92acfa0220b 100644 --- a/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesget.go +++ b/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesget.go @@ -53,8 +53,8 @@ func (c LoadBalancersClient) InboundNatRulesGet(ctx context.Context, id InboundN http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatruleslist.go b/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatruleslist.go index 501c965bbf1..2bdb2af0a6e 100644 --- a/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatruleslist.go +++ b/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatruleslist.go @@ -23,6 +23,18 @@ type InboundNatRulesListCompleteResult struct { Items []InboundNatRule } +type InboundNatRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *InboundNatRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // InboundNatRulesList ... func (c LoadBalancersClient) InboundNatRulesList(ctx context.Context, id ProviderLoadBalancerId) (result InboundNatRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) InboundNatRulesList(ctx context.Context, id Provide http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &InboundNatRulesListCustomPager{}, Path: fmt.Sprintf("%s/inboundNatRules", id.ID()), } diff --git a/resource-manager/network/2023-11-01/loadbalancers/method_list.go b/resource-manager/network/2023-11-01/loadbalancers/method_list.go index 05419112689..74ca3569c7b 100644 --- a/resource-manager/network/2023-11-01/loadbalancers/method_list.go +++ b/resource-manager/network/2023-11-01/loadbalancers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []LoadBalancer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LoadBalancersClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LoadBalancersClient) List(ctx context.Context, id commonids.ResourceGrou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/loadBalancers", id.ID()), } diff --git a/resource-manager/network/2023-11-01/loadbalancers/method_listall.go b/resource-manager/network/2023-11-01/loadbalancers/method_listall.go index 25de9239c7f..74f6c49784a 100644 --- a/resource-manager/network/2023-11-01/loadbalancers/method_listall.go +++ b/resource-manager/network/2023-11-01/loadbalancers/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []LoadBalancer } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c LoadBalancersClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LoadBalancersClient) ListAll(ctx context.Context, id commonids.Subscript http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/loadBalancers", id.ID()), } diff --git a/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go b/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go index 1f9a88ad95f..42470d88640 100644 --- a/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go +++ b/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go @@ -23,6 +23,18 @@ type LoadBalancerBackendAddressPoolsListCompleteResult struct { Items []BackendAddressPool } +type LoadBalancerBackendAddressPoolsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerBackendAddressPoolsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerBackendAddressPoolsList ... func (c LoadBalancersClient) LoadBalancerBackendAddressPoolsList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerBackendAddressPoolsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerBackendAddressPoolsList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerBackendAddressPoolsListCustomPager{}, Path: fmt.Sprintf("%s/backendAddressPools", id.ID()), } diff --git a/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go b/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go index 976d076cacb..c0a472f598c 100644 --- a/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go +++ b/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go @@ -23,6 +23,18 @@ type LoadBalancerFrontendIPConfigurationsListCompleteResult struct { Items []FrontendIPConfiguration } +type LoadBalancerFrontendIPConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerFrontendIPConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerFrontendIPConfigurationsList ... func (c LoadBalancersClient) LoadBalancerFrontendIPConfigurationsList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerFrontendIPConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerFrontendIPConfigurationsList(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerFrontendIPConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/frontendIPConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go b/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go index be23a6c72db..e0c52282a3e 100644 --- a/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go +++ b/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go @@ -23,6 +23,18 @@ type LoadBalancerLoadBalancingRulesListCompleteResult struct { Items []LoadBalancingRule } +type LoadBalancerLoadBalancingRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerLoadBalancingRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerLoadBalancingRulesList ... func (c LoadBalancersClient) LoadBalancerLoadBalancingRulesList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerLoadBalancingRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerLoadBalancingRulesList(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerLoadBalancingRulesListCustomPager{}, Path: fmt.Sprintf("%s/loadBalancingRules", id.ID()), } diff --git a/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go b/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go index 5786d229c03..eed7f61c64b 100644 --- a/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go +++ b/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go @@ -23,6 +23,18 @@ type LoadBalancerNetworkInterfacesListCompleteResult struct { Items []NetworkInterface } +type LoadBalancerNetworkInterfacesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerNetworkInterfacesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerNetworkInterfacesList ... func (c LoadBalancersClient) LoadBalancerNetworkInterfacesList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerNetworkInterfacesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerNetworkInterfacesList(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerNetworkInterfacesListCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundruleslist.go b/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundruleslist.go index 11f87c18d13..c522e068844 100644 --- a/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundruleslist.go +++ b/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundruleslist.go @@ -23,6 +23,18 @@ type LoadBalancerOutboundRulesListCompleteResult struct { Items []OutboundRule } +type LoadBalancerOutboundRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerOutboundRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerOutboundRulesList ... func (c LoadBalancersClient) LoadBalancerOutboundRulesList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerOutboundRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerOutboundRulesList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerOutboundRulesListCustomPager{}, Path: fmt.Sprintf("%s/outboundRules", id.ID()), } diff --git a/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobeslist.go b/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobeslist.go index 5146ba5bf79..c92e1df89f6 100644 --- a/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobeslist.go +++ b/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobeslist.go @@ -23,6 +23,18 @@ type LoadBalancerProbesListCompleteResult struct { Items []Probe } +type LoadBalancerProbesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerProbesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerProbesList ... func (c LoadBalancersClient) LoadBalancerProbesList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerProbesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerProbesList(ctx context.Context, id Prov http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerProbesListCustomPager{}, Path: fmt.Sprintf("%s/probes", id.ID()), } diff --git a/resource-manager/network/2023-11-01/localnetworkgateways/method_list.go b/resource-manager/network/2023-11-01/localnetworkgateways/method_list.go index 8a298cd52bc..528ccebe955 100644 --- a/resource-manager/network/2023-11-01/localnetworkgateways/method_list.go +++ b/resource-manager/network/2023-11-01/localnetworkgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []LocalNetworkGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LocalNetworkGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LocalNetworkGatewaysClient) List(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/localNetworkGateways", id.ID()), } diff --git a/resource-manager/network/2023-11-01/natgateways/method_get.go b/resource-manager/network/2023-11-01/natgateways/method_get.go index 43cb3094813..1360eae2873 100644 --- a/resource-manager/network/2023-11-01/natgateways/method_get.go +++ b/resource-manager/network/2023-11-01/natgateways/method_get.go @@ -53,8 +53,8 @@ func (c NatGatewaysClient) Get(ctx context.Context, id NatGatewayId, options Get http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/natgateways/method_list.go b/resource-manager/network/2023-11-01/natgateways/method_list.go index 1f8a5d1a76a..cf6c19572e2 100644 --- a/resource-manager/network/2023-11-01/natgateways/method_list.go +++ b/resource-manager/network/2023-11-01/natgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NatGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NatGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NatGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/natGateways", id.ID()), } diff --git a/resource-manager/network/2023-11-01/natgateways/method_listall.go b/resource-manager/network/2023-11-01/natgateways/method_listall.go index 69aeb402ae1..c417f6a9c19 100644 --- a/resource-manager/network/2023-11-01/natgateways/method_listall.go +++ b/resource-manager/network/2023-11-01/natgateways/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NatGateway } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NatGatewaysClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NatGatewaysClient) ListAll(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/natGateways", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkgroups/method_createorupdate.go b/resource-manager/network/2023-11-01/networkgroups/method_createorupdate.go index dcb392d1ae2..3ab74eeca37 100644 --- a/resource-manager/network/2023-11-01/networkgroups/method_createorupdate.go +++ b/resource-manager/network/2023-11-01/networkgroups/method_createorupdate.go @@ -54,8 +54,8 @@ func (c NetworkGroupsClient) CreateOrUpdate(ctx context.Context, id NetworkGroup http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkgroups/method_delete.go b/resource-manager/network/2023-11-01/networkgroups/method_delete.go index 567e0fb203a..452dbab57a9 100644 --- a/resource-manager/network/2023-11-01/networkgroups/method_delete.go +++ b/resource-manager/network/2023-11-01/networkgroups/method_delete.go @@ -57,8 +57,8 @@ func (c NetworkGroupsClient) Delete(ctx context.Context, id NetworkGroupId, opti http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkgroups/method_list.go b/resource-manager/network/2023-11-01/networkgroups/method_list.go index a802dbd08b3..cff4d8b0a7a 100644 --- a/resource-manager/network/2023-11-01/networkgroups/method_list.go +++ b/resource-manager/network/2023-11-01/networkgroups/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkGroupsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c NetworkGroupsClient) List(ctx context.Context, id NetworkManagerId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/networkGroups", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/networkGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_get.go b/resource-manager/network/2023-11-01/networkinterfaces/method_get.go index 14f4f1d8a0c..e1614af681d 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_get.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_get.go @@ -54,8 +54,8 @@ func (c NetworkInterfacesClient) Get(ctx context.Context, id commonids.NetworkIn http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_getcloudservicenetworkinterface.go b/resource-manager/network/2023-11-01/networkinterfaces/method_getcloudservicenetworkinterface.go index b828e37133d..7f7c58c444c 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_getcloudservicenetworkinterface.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_getcloudservicenetworkinterface.go @@ -53,8 +53,8 @@ func (c NetworkInterfacesClient) GetCloudServiceNetworkInterface(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_geteffectiveroutetable.go b/resource-manager/network/2023-11-01/networkinterfaces/method_geteffectiveroutetable.go index e64977d2735..34e568863a2 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_geteffectiveroutetable.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_geteffectiveroutetable.go @@ -27,6 +27,18 @@ type GetEffectiveRouteTableCompleteResult struct { Items []EffectiveRoute } +type GetEffectiveRouteTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetEffectiveRouteTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetEffectiveRouteTable ... func (c NetworkInterfacesClient) GetEffectiveRouteTable(ctx context.Context, id commonids.NetworkInterfaceId) (result GetEffectiveRouteTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c NetworkInterfacesClient) GetEffectiveRouteTable(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetEffectiveRouteTableCustomPager{}, Path: fmt.Sprintf("%s/effectiveRouteTable", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go b/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go index c30d98304ca..7a3d2b45272 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go @@ -54,8 +54,8 @@ func (c NetworkInterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go b/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go index 17ffc7f419c..1bef7a3da95 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go @@ -54,8 +54,8 @@ func (c NetworkInterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_list.go b/resource-manager/network/2023-11-01/networkinterfaces/method_list.go index 0cac5b10455..aba8bcae0a0 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_list.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkInterface } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkInterfacesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) List(ctx context.Context, id commonids.Resource http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_listall.go b/resource-manager/network/2023-11-01/networkinterfaces/method_listall.go index 4e462b5cfc1..aee96a1ced3 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_listall.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NetworkInterface } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NetworkInterfacesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) ListAll(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go b/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go index e75341c2e34..7a16382102e 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go @@ -23,6 +23,18 @@ type ListCloudServiceNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListCloudServiceNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCloudServiceNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCloudServiceNetworkInterfaces ... func (c NetworkInterfacesClient) ListCloudServiceNetworkInterfaces(ctx context.Context, id ProviderCloudServiceId) (result ListCloudServiceNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListCloudServiceNetworkInterfaces(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCloudServiceNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go b/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go index 107f550cde5..f4ae2efc987 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go @@ -23,6 +23,18 @@ type ListCloudServiceRoleInstanceNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListCloudServiceRoleInstanceNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCloudServiceRoleInstanceNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCloudServiceRoleInstanceNetworkInterfaces ... func (c NetworkInterfacesClient) ListCloudServiceRoleInstanceNetworkInterfaces(ctx context.Context, id RoleInstanceId) (result ListCloudServiceRoleInstanceNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListCloudServiceRoleInstanceNetworkInterfaces(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCloudServiceRoleInstanceNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go b/resource-manager/network/2023-11-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go index 50661e67194..8316911280d 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go @@ -27,6 +27,18 @@ type ListEffectiveNetworkSecurityGroupsCompleteResult struct { Items []EffectiveNetworkSecurityGroup } +type ListEffectiveNetworkSecurityGroupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListEffectiveNetworkSecurityGroupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListEffectiveNetworkSecurityGroups ... func (c NetworkInterfacesClient) ListEffectiveNetworkSecurityGroups(ctx context.Context, id commonids.NetworkInterfaceId) (result ListEffectiveNetworkSecurityGroupsOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c NetworkInterfacesClient) ListEffectiveNetworkSecurityGroups(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListEffectiveNetworkSecurityGroupsCustomPager{}, Path: fmt.Sprintf("%s/effectiveNetworkSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go b/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go index eea33cc5ab0..a18bdaf08cf 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go @@ -51,6 +51,18 @@ func (o ListVirtualMachineScaleSetIPConfigurationsOperationOptions) ToQuery() *c return &out } +type ListVirtualMachineScaleSetIPConfigurationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetIPConfigurationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVirtualMachineScaleSetIPConfigurations ... func (c NetworkInterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, id commonids.VirtualMachineScaleSetNetworkInterfaceId, options ListVirtualMachineScaleSetIPConfigurationsOperationOptions) (result ListVirtualMachineScaleSetIPConfigurationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkInterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), OptionsObject: options, + Pager: &ListVirtualMachineScaleSetIPConfigurationsCustomPager{}, + Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go b/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go index 1b4ce2a6774..968b1c8bbd5 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go @@ -23,6 +23,18 @@ type ListVirtualMachineScaleSetNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListVirtualMachineScaleSetNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVirtualMachineScaleSetNetworkInterfaces ... func (c NetworkInterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, id VirtualMachineScaleSetId) (result ListVirtualMachineScaleSetNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListVirtualMachineScaleSetNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go b/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go index eaa548b7373..433357587d3 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go @@ -23,6 +23,18 @@ type ListVirtualMachineScaleSetVMNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVirtualMachineScaleSetVMNetworkInterfaces ... func (c NetworkInterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, id VirtualMachineId) (result ListVirtualMachineScaleSetVMNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go b/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go index 2b472af0913..00a6c20f94c 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go @@ -24,6 +24,18 @@ type NetworkInterfaceIPConfigurationsListCompleteResult struct { Items []NetworkInterfaceIPConfiguration } +type NetworkInterfaceIPConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceIPConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkInterfaceIPConfigurationsList ... func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceIPConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsList(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceIPConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go b/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go index 8ed1e84ef81..ee4b73b4d8d 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go @@ -24,6 +24,18 @@ type NetworkInterfaceLoadBalancersListCompleteResult struct { Items []LoadBalancer } +type NetworkInterfaceLoadBalancersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceLoadBalancersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkInterfaceLoadBalancersList ... func (c NetworkInterfacesClient) NetworkInterfaceLoadBalancersList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceLoadBalancersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) NetworkInterfaceLoadBalancersList(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceLoadBalancersListCustomPager{}, Path: fmt.Sprintf("%s/loadBalancers", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go b/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go index 277fda0aa19..96b11107f62 100644 --- a/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go +++ b/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go @@ -24,6 +24,18 @@ type NetworkInterfaceTapConfigurationsListCompleteResult struct { Items []NetworkInterfaceTapConfiguration } +type NetworkInterfaceTapConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceTapConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkInterfaceTapConfigurationsList ... func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceTapConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsList(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceTapConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/tapConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go b/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go index ddec2f40123..3e9eb347a20 100644 --- a/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go +++ b/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go @@ -51,6 +51,18 @@ func (o ManagementGroupNetworkManagerConnectionsListOperationOptions) ToQuery() return &out } +type ManagementGroupNetworkManagerConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ManagementGroupNetworkManagerConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ManagementGroupNetworkManagerConnectionsList ... func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsList(ctx context.Context, id commonids.ManagementGroupId, options ManagementGroupNetworkManagerConnectionsListOperationOptions) (result ManagementGroupNetworkManagerConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnection http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), OptionsObject: options, + Pager: &ManagementGroupNetworkManagerConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go b/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go index 341b43a227d..ddf403e8a21 100644 --- a/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go +++ b/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go @@ -51,6 +51,18 @@ func (o SubscriptionNetworkManagerConnectionsListOperationOptions) ToQuery() *cl return &out } +type SubscriptionNetworkManagerConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SubscriptionNetworkManagerConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SubscriptionNetworkManagerConnectionsList ... func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsList(ctx context.Context, id commonids.SubscriptionId, options SubscriptionNetworkManagerConnectionsListOperationOptions) (result SubscriptionNetworkManagerConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsLi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), OptionsObject: options, + Pager: &SubscriptionNetworkManagerConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkmanagers/method_delete.go b/resource-manager/network/2023-11-01/networkmanagers/method_delete.go index ec825f20cb1..016216c8549 100644 --- a/resource-manager/network/2023-11-01/networkmanagers/method_delete.go +++ b/resource-manager/network/2023-11-01/networkmanagers/method_delete.go @@ -57,8 +57,8 @@ func (c NetworkManagersClient) Delete(ctx context.Context, id NetworkManagerId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkmanagers/method_list.go b/resource-manager/network/2023-11-01/networkmanagers/method_list.go index 18cca161414..86b71cf2d94 100644 --- a/resource-manager/network/2023-11-01/networkmanagers/method_list.go +++ b/resource-manager/network/2023-11-01/networkmanagers/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkManagersClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagersClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkmanagers/method_listbysubscription.go b/resource-manager/network/2023-11-01/networkmanagers/method_listbysubscription.go index 5faa4fab8b1..d45e89952b8 100644 --- a/resource-manager/network/2023-11-01/networkmanagers/method_listbysubscription.go +++ b/resource-manager/network/2023-11-01/networkmanagers/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c NetworkManagersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagersClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkprofiles/method_get.go b/resource-manager/network/2023-11-01/networkprofiles/method_get.go index 3b462d08204..13f98955470 100644 --- a/resource-manager/network/2023-11-01/networkprofiles/method_get.go +++ b/resource-manager/network/2023-11-01/networkprofiles/method_get.go @@ -53,8 +53,8 @@ func (c NetworkProfilesClient) Get(ctx context.Context, id NetworkProfileId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkprofiles/method_list.go b/resource-manager/network/2023-11-01/networkprofiles/method_list.go index 4adcbe6c116..e1bce2a2aa6 100644 --- a/resource-manager/network/2023-11-01/networkprofiles/method_list.go +++ b/resource-manager/network/2023-11-01/networkprofiles/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkProfile } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkProfilesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkProfilesClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkProfiles", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkprofiles/method_listall.go b/resource-manager/network/2023-11-01/networkprofiles/method_listall.go index 8d27928489b..c8509368cef 100644 --- a/resource-manager/network/2023-11-01/networkprofiles/method_listall.go +++ b/resource-manager/network/2023-11-01/networkprofiles/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NetworkProfile } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NetworkProfilesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkProfilesClient) ListAll(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkProfiles", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networksecuritygroups/method_get.go b/resource-manager/network/2023-11-01/networksecuritygroups/method_get.go index debc457321c..6ebe50d00e5 100644 --- a/resource-manager/network/2023-11-01/networksecuritygroups/method_get.go +++ b/resource-manager/network/2023-11-01/networksecuritygroups/method_get.go @@ -53,8 +53,8 @@ func (c NetworkSecurityGroupsClient) Get(ctx context.Context, id NetworkSecurity http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networksecuritygroups/method_list.go b/resource-manager/network/2023-11-01/networksecuritygroups/method_list.go index fb32dd8a5e9..8ebd9f83a71 100644 --- a/resource-manager/network/2023-11-01/networksecuritygroups/method_list.go +++ b/resource-manager/network/2023-11-01/networksecuritygroups/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkSecurityGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkSecurityGroupsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkSecurityGroupsClient) List(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networksecuritygroups/method_listall.go b/resource-manager/network/2023-11-01/networksecuritygroups/method_listall.go index 6e7c1adf74e..a6440c24150 100644 --- a/resource-manager/network/2023-11-01/networksecuritygroups/method_listall.go +++ b/resource-manager/network/2023-11-01/networksecuritygroups/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NetworkSecurityGroup } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NetworkSecurityGroupsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkSecurityGroupsClient) ListAll(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkvirtualappliances/method_get.go b/resource-manager/network/2023-11-01/networkvirtualappliances/method_get.go index ee11638f574..36076f68749 100644 --- a/resource-manager/network/2023-11-01/networkvirtualappliances/method_get.go +++ b/resource-manager/network/2023-11-01/networkvirtualappliances/method_get.go @@ -53,8 +53,8 @@ func (c NetworkVirtualAppliancesClient) Get(ctx context.Context, id NetworkVirtu http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/networkvirtualappliances/method_list.go b/resource-manager/network/2023-11-01/networkvirtualappliances/method_list.go index 8797c5f9720..35259c60e6a 100644 --- a/resource-manager/network/2023-11-01/networkvirtualappliances/method_list.go +++ b/resource-manager/network/2023-11-01/networkvirtualappliances/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkVirtualAppliance } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkVirtualAppliancesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkVirtualAppliancesClient) List(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualAppliances", id.ID()), } diff --git a/resource-manager/network/2023-11-01/networkvirtualappliances/method_listbyresourcegroup.go b/resource-manager/network/2023-11-01/networkvirtualappliances/method_listbyresourcegroup.go index 4557de37925..fe63e8307c6 100644 --- a/resource-manager/network/2023-11-01/networkvirtualappliances/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/networkvirtualappliances/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []NetworkVirtualAppliance } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NetworkVirtualAppliancesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkVirtualAppliancesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualAppliances", id.ID()), } diff --git a/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_list.go b/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_list.go index f2724c37da1..34a9aaafbe4 100644 --- a/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_list.go +++ b/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PeerExpressRouteCircuitConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerConnections", id.ID()), } diff --git a/resource-manager/network/2023-11-01/privatednszonegroups/method_list.go b/resource-manager/network/2023-11-01/privatednszonegroups/method_list.go index 1f2c22a77bd..3abf08b87af 100644 --- a/resource-manager/network/2023-11-01/privatednszonegroups/method_list.go +++ b/resource-manager/network/2023-11-01/privatednszonegroups/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateDnsZoneGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateDnsZoneGroupsClient) List(ctx context.Context, id PrivateEndpointId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateDnsZoneGroupsClient) List(ctx context.Context, id PrivateEndpoint http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateDnsZoneGroups", id.ID()), } diff --git a/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslist.go b/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslist.go index 903cb43bbd7..f0c9af2990d 100644 --- a/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslist.go +++ b/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslist.go @@ -23,6 +23,18 @@ type AvailablePrivateEndpointTypesListCompleteResult struct { Items []AvailablePrivateEndpointType } +type AvailablePrivateEndpointTypesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailablePrivateEndpointTypesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailablePrivateEndpointTypesList ... func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesList(ctx context.Context, id LocationId) (result AvailablePrivateEndpointTypesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailablePrivateEndpointTypesListCustomPager{}, Path: fmt.Sprintf("%s/availablePrivateEndpointTypes", id.ID()), } diff --git a/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go b/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go index 2b24f418d5d..259ea902b1f 100644 --- a/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go @@ -23,6 +23,18 @@ type AvailablePrivateEndpointTypesListByResourceGroupCompleteResult struct { Items []AvailablePrivateEndpointType } +type AvailablePrivateEndpointTypesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailablePrivateEndpointTypesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailablePrivateEndpointTypesListByResourceGroup ... func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListByResourceGroup(ctx context.Context, id ProviderLocationId) (result AvailablePrivateEndpointTypesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListByResourceGroup http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailablePrivateEndpointTypesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/availablePrivateEndpointTypes", id.ID()), } diff --git a/resource-manager/network/2023-11-01/privateendpoints/method_get.go b/resource-manager/network/2023-11-01/privateendpoints/method_get.go index 5f913d65fd2..80cad93eef6 100644 --- a/resource-manager/network/2023-11-01/privateendpoints/method_get.go +++ b/resource-manager/network/2023-11-01/privateendpoints/method_get.go @@ -53,8 +53,8 @@ func (c PrivateEndpointsClient) Get(ctx context.Context, id PrivateEndpointId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/privateendpoints/method_list.go b/resource-manager/network/2023-11-01/privateendpoints/method_list.go index 7d43eeb38d8..f832db84c7a 100644 --- a/resource-manager/network/2023-11-01/privateendpoints/method_list.go +++ b/resource-manager/network/2023-11-01/privateendpoints/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PrivateEndpoint } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateEndpointsClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateEndpoints", id.ID()), } diff --git a/resource-manager/network/2023-11-01/privateendpoints/method_listbysubscription.go b/resource-manager/network/2023-11-01/privateendpoints/method_listbysubscription.go index 229bfbb93bf..c517e23cdbf 100644 --- a/resource-manager/network/2023-11-01/privateendpoints/method_listbysubscription.go +++ b/resource-manager/network/2023-11-01/privateendpoints/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PrivateEndpoint } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PrivateEndpointsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateEndpointsClient) ListBySubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateEndpoints", id.ID()), } diff --git a/resource-manager/network/2023-11-01/privatelinkservices/method_get.go b/resource-manager/network/2023-11-01/privatelinkservices/method_get.go index cdd893b10fe..87bddc4d4aa 100644 --- a/resource-manager/network/2023-11-01/privatelinkservices/method_get.go +++ b/resource-manager/network/2023-11-01/privatelinkservices/method_get.go @@ -53,8 +53,8 @@ func (c PrivateLinkServicesClient) Get(ctx context.Context, id PrivateLinkServic http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/privatelinkservices/method_getprivateendpointconnection.go b/resource-manager/network/2023-11-01/privatelinkservices/method_getprivateendpointconnection.go index 1467bb48568..032d2076254 100644 --- a/resource-manager/network/2023-11-01/privatelinkservices/method_getprivateendpointconnection.go +++ b/resource-manager/network/2023-11-01/privatelinkservices/method_getprivateendpointconnection.go @@ -53,8 +53,8 @@ func (c PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/privatelinkservices/method_list.go b/resource-manager/network/2023-11-01/privatelinkservices/method_list.go index 81f52181d79..70140c6dc93 100644 --- a/resource-manager/network/2023-11-01/privatelinkservices/method_list.go +++ b/resource-manager/network/2023-11-01/privatelinkservices/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PrivateLinkService } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkServicesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkServicesClient) List(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateLinkServices", id.ID()), } diff --git a/resource-manager/network/2023-11-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go b/resource-manager/network/2023-11-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go index 3da4d7f36f9..f3156a5739c 100644 --- a/resource-manager/network/2023-11-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go +++ b/resource-manager/network/2023-11-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go @@ -23,6 +23,18 @@ type ListAutoApprovedPrivateLinkServicesCompleteResult struct { Items []AutoApprovedPrivateLinkService } +type ListAutoApprovedPrivateLinkServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAutoApprovedPrivateLinkServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAutoApprovedPrivateLinkServices ... func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx context.Context, id LocationId) (result ListAutoApprovedPrivateLinkServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAutoApprovedPrivateLinkServicesCustomPager{}, Path: fmt.Sprintf("%s/autoApprovedPrivateLinkServices", id.ID()), } diff --git a/resource-manager/network/2023-11-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go b/resource-manager/network/2023-11-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go index 82767396e1d..91eed65255f 100644 --- a/resource-manager/network/2023-11-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go @@ -23,6 +23,18 @@ type ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteResult struct { Items []AutoApprovedPrivateLinkService } +type ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAutoApprovedPrivateLinkServicesByResourceGroup ... func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx context.Context, id ProviderLocationId) (result ListAutoApprovedPrivateLinkServicesByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResource http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/autoApprovedPrivateLinkServices", id.ID()), } diff --git a/resource-manager/network/2023-11-01/privatelinkservices/method_listbysubscription.go b/resource-manager/network/2023-11-01/privatelinkservices/method_listbysubscription.go index 226fcfd8bca..63f9d6bf9c6 100644 --- a/resource-manager/network/2023-11-01/privatelinkservices/method_listbysubscription.go +++ b/resource-manager/network/2023-11-01/privatelinkservices/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PrivateLinkService } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PrivateLinkServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkServicesClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateLinkServices", id.ID()), } diff --git a/resource-manager/network/2023-11-01/privatelinkservices/method_listprivateendpointconnections.go b/resource-manager/network/2023-11-01/privatelinkservices/method_listprivateendpointconnections.go index 2c8c0ae359a..c4742974fe5 100644 --- a/resource-manager/network/2023-11-01/privatelinkservices/method_listprivateendpointconnections.go +++ b/resource-manager/network/2023-11-01/privatelinkservices/method_listprivateendpointconnections.go @@ -23,6 +23,18 @@ type ListPrivateEndpointConnectionsCompleteResult struct { Items []PrivateEndpointConnection } +type ListPrivateEndpointConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPrivateEndpointConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPrivateEndpointConnections ... func (c PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx context.Context, id PrivateLinkServiceId) (result ListPrivateEndpointConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPrivateEndpointConnectionsCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/network/2023-11-01/publicipaddresses/method_get.go b/resource-manager/network/2023-11-01/publicipaddresses/method_get.go index c5f5e5e145e..7045aad8372 100644 --- a/resource-manager/network/2023-11-01/publicipaddresses/method_get.go +++ b/resource-manager/network/2023-11-01/publicipaddresses/method_get.go @@ -54,8 +54,8 @@ func (c PublicIPAddressesClient) Get(ctx context.Context, id commonids.PublicIPA http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/publicipaddresses/method_list.go b/resource-manager/network/2023-11-01/publicipaddresses/method_list.go index 9c8fb822580..013d0306760 100644 --- a/resource-manager/network/2023-11-01/publicipaddresses/method_list.go +++ b/resource-manager/network/2023-11-01/publicipaddresses/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PublicIPAddress } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PublicIPAddressesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPAddressesClient) List(ctx context.Context, id commonids.Resource http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2023-11-01/publicipaddresses/method_listall.go b/resource-manager/network/2023-11-01/publicipaddresses/method_listall.go index 81f1cf1ccf2..fc1c5ecc247 100644 --- a/resource-manager/network/2023-11-01/publicipaddresses/method_listall.go +++ b/resource-manager/network/2023-11-01/publicipaddresses/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []PublicIPAddress } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c PublicIPAddressesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPAddressesClient) ListAll(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2023-11-01/publicipprefixes/method_get.go b/resource-manager/network/2023-11-01/publicipprefixes/method_get.go index 099ab527016..15104f80613 100644 --- a/resource-manager/network/2023-11-01/publicipprefixes/method_get.go +++ b/resource-manager/network/2023-11-01/publicipprefixes/method_get.go @@ -53,8 +53,8 @@ func (c PublicIPPrefixesClient) Get(ctx context.Context, id PublicIPPrefixId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/publicipprefixes/method_list.go b/resource-manager/network/2023-11-01/publicipprefixes/method_list.go index c413af54862..122a9df6f37 100644 --- a/resource-manager/network/2023-11-01/publicipprefixes/method_list.go +++ b/resource-manager/network/2023-11-01/publicipprefixes/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PublicIPPrefix } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PublicIPPrefixesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPPrefixesClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2023-11-01/publicipprefixes/method_listall.go b/resource-manager/network/2023-11-01/publicipprefixes/method_listall.go index c140ae5d7bb..4c49b47b3fe 100644 --- a/resource-manager/network/2023-11-01/publicipprefixes/method_listall.go +++ b/resource-manager/network/2023-11-01/publicipprefixes/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []PublicIPPrefix } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c PublicIPPrefixesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPPrefixesClient) ListAll(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2023-11-01/routefilterrules/method_listbyroutefilter.go b/resource-manager/network/2023-11-01/routefilterrules/method_listbyroutefilter.go index 6e367988a54..5c0268dc0a5 100644 --- a/resource-manager/network/2023-11-01/routefilterrules/method_listbyroutefilter.go +++ b/resource-manager/network/2023-11-01/routefilterrules/method_listbyroutefilter.go @@ -23,6 +23,18 @@ type ListByRouteFilterCompleteResult struct { Items []RouteFilterRule } +type ListByRouteFilterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByRouteFilterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByRouteFilter ... func (c RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, id RouteFilterId) (result ListByRouteFilterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, id RouteF http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByRouteFilterCustomPager{}, Path: fmt.Sprintf("%s/routeFilterRules", id.ID()), } diff --git a/resource-manager/network/2023-11-01/routefilters/method_get.go b/resource-manager/network/2023-11-01/routefilters/method_get.go index 55c6ee5fa8f..d44bd6d46b0 100644 --- a/resource-manager/network/2023-11-01/routefilters/method_get.go +++ b/resource-manager/network/2023-11-01/routefilters/method_get.go @@ -53,8 +53,8 @@ func (c RouteFiltersClient) Get(ctx context.Context, id RouteFilterId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/routefilters/method_list.go b/resource-manager/network/2023-11-01/routefilters/method_list.go index 934ec1fccd5..927387fb2da 100644 --- a/resource-manager/network/2023-11-01/routefilters/method_list.go +++ b/resource-manager/network/2023-11-01/routefilters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []RouteFilter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RouteFiltersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteFiltersClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeFilters", id.ID()), } diff --git a/resource-manager/network/2023-11-01/routefilters/method_listbyresourcegroup.go b/resource-manager/network/2023-11-01/routefilters/method_listbyresourcegroup.go index a320717ba09..256467e7de9 100644 --- a/resource-manager/network/2023-11-01/routefilters/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/routefilters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []RouteFilter } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c RouteFiltersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteFiltersClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeFilters", id.ID()), } diff --git a/resource-manager/network/2023-11-01/routes/method_list.go b/resource-manager/network/2023-11-01/routes/method_list.go index b54de6d4c7a..dddfb46f64c 100644 --- a/resource-manager/network/2023-11-01/routes/method_list.go +++ b/resource-manager/network/2023-11-01/routes/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Route } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RoutesClient) List(ctx context.Context, id RouteTableId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RoutesClient) List(ctx context.Context, id RouteTableId) (result ListOpe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/routes", id.ID()), } diff --git a/resource-manager/network/2023-11-01/routetables/method_get.go b/resource-manager/network/2023-11-01/routetables/method_get.go index 519ddb2364a..cb19ef16deb 100644 --- a/resource-manager/network/2023-11-01/routetables/method_get.go +++ b/resource-manager/network/2023-11-01/routetables/method_get.go @@ -53,8 +53,8 @@ func (c RouteTablesClient) Get(ctx context.Context, id RouteTableId, options Get http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/routetables/method_list.go b/resource-manager/network/2023-11-01/routetables/method_list.go index 2d99a93be80..c219fd770ef 100644 --- a/resource-manager/network/2023-11-01/routetables/method_list.go +++ b/resource-manager/network/2023-11-01/routetables/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []RouteTable } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RouteTablesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteTablesClient) List(ctx context.Context, id commonids.ResourceGroupI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeTables", id.ID()), } diff --git a/resource-manager/network/2023-11-01/routetables/method_listall.go b/resource-manager/network/2023-11-01/routetables/method_listall.go index 0b505ddf7dc..c3c8de7e20d 100644 --- a/resource-manager/network/2023-11-01/routetables/method_listall.go +++ b/resource-manager/network/2023-11-01/routetables/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []RouteTable } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c RouteTablesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteTablesClient) ListAll(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeTables", id.ID()), } diff --git a/resource-manager/network/2023-11-01/scopeconnections/method_list.go b/resource-manager/network/2023-11-01/scopeconnections/method_list.go index 4f298f36139..c819623c65e 100644 --- a/resource-manager/network/2023-11-01/scopeconnections/method_list.go +++ b/resource-manager/network/2023-11-01/scopeconnections/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScopeConnectionsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ScopeConnectionsClient) List(ctx context.Context, id NetworkManagerId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/scopeConnections", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/scopeConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/securityadminconfigurations/method_delete.go b/resource-manager/network/2023-11-01/securityadminconfigurations/method_delete.go index d08913b2c20..82087f7a71c 100644 --- a/resource-manager/network/2023-11-01/securityadminconfigurations/method_delete.go +++ b/resource-manager/network/2023-11-01/securityadminconfigurations/method_delete.go @@ -57,8 +57,8 @@ func (c SecurityAdminConfigurationsClient) Delete(ctx context.Context, id Securi http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/securityadminconfigurations/method_list.go b/resource-manager/network/2023-11-01/securityadminconfigurations/method_list.go index 4e0a2f41041..8fc4c2c91dc 100644 --- a/resource-manager/network/2023-11-01/securityadminconfigurations/method_list.go +++ b/resource-manager/network/2023-11-01/securityadminconfigurations/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityAdminConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SecurityAdminConfigurationsClient) List(ctx context.Context, id NetworkM http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/securityAdminConfigurations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/securityAdminConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/securitypartnerproviders/method_list.go b/resource-manager/network/2023-11-01/securitypartnerproviders/method_list.go index 2ef1d4133ba..9a4f5451680 100644 --- a/resource-manager/network/2023-11-01/securitypartnerproviders/method_list.go +++ b/resource-manager/network/2023-11-01/securitypartnerproviders/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecurityPartnerProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityPartnerProvidersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityPartnerProvidersClient) List(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/securityPartnerProviders", id.ID()), } diff --git a/resource-manager/network/2023-11-01/securitypartnerproviders/method_listbyresourcegroup.go b/resource-manager/network/2023-11-01/securitypartnerproviders/method_listbyresourcegroup.go index 5e7d3b8e25b..0616c919e32 100644 --- a/resource-manager/network/2023-11-01/securitypartnerproviders/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/securitypartnerproviders/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SecurityPartnerProvider } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/securityPartnerProviders", id.ID()), } diff --git a/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityruleslist.go b/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityruleslist.go index 9c554b7a019..fbf92af5b89 100644 --- a/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityruleslist.go +++ b/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityruleslist.go @@ -23,6 +23,18 @@ type DefaultSecurityRulesListCompleteResult struct { Items []SecurityRule } +type DefaultSecurityRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DefaultSecurityRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DefaultSecurityRulesList ... func (c SecurityRulesClient) DefaultSecurityRulesList(ctx context.Context, id NetworkSecurityGroupId) (result DefaultSecurityRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SecurityRulesClient) DefaultSecurityRulesList(ctx context.Context, id Ne http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DefaultSecurityRulesListCustomPager{}, Path: fmt.Sprintf("%s/defaultSecurityRules", id.ID()), } diff --git a/resource-manager/network/2023-11-01/securityrules/method_list.go b/resource-manager/network/2023-11-01/securityrules/method_list.go index 791f88e26a1..73b4f2f1a16 100644 --- a/resource-manager/network/2023-11-01/securityrules/method_list.go +++ b/resource-manager/network/2023-11-01/securityrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SecurityRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityRulesClient) List(ctx context.Context, id NetworkSecurityGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SecurityRulesClient) List(ctx context.Context, id NetworkSecurityGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/securityRules", id.ID()), } diff --git a/resource-manager/network/2023-11-01/serviceendpointpolicies/method_get.go b/resource-manager/network/2023-11-01/serviceendpointpolicies/method_get.go index 4b9b1c2e323..8929b01c755 100644 --- a/resource-manager/network/2023-11-01/serviceendpointpolicies/method_get.go +++ b/resource-manager/network/2023-11-01/serviceendpointpolicies/method_get.go @@ -53,8 +53,8 @@ func (c ServiceEndpointPoliciesClient) Get(ctx context.Context, id ServiceEndpoi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/serviceendpointpolicies/method_list.go b/resource-manager/network/2023-11-01/serviceendpointpolicies/method_list.go index 4c8118c4424..3a437224556 100644 --- a/resource-manager/network/2023-11-01/serviceendpointpolicies/method_list.go +++ b/resource-manager/network/2023-11-01/serviceendpointpolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ServiceEndpointPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServiceEndpointPoliciesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServiceEndpointPoliciesClient) List(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/serviceEndpointPolicies", id.ID()), } diff --git a/resource-manager/network/2023-11-01/serviceendpointpolicies/method_listbyresourcegroup.go b/resource-manager/network/2023-11-01/serviceendpointpolicies/method_listbyresourcegroup.go index 1e00f2516e2..384f7dc28fe 100644 --- a/resource-manager/network/2023-11-01/serviceendpointpolicies/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/serviceendpointpolicies/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ServiceEndpointPolicy } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/serviceEndpointPolicies", id.ID()), } diff --git a/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go b/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go index 17bb8bc3fc1..a4f79aa4d80 100644 --- a/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go @@ -23,6 +23,18 @@ type ListByResourceGroupCompleteResult struct { Items []ServiceEndpointPolicyDefinition } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx context.Context, id ServiceEndpointPolicyId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/serviceEndpointPolicyDefinitions", id.ID()), } diff --git a/resource-manager/network/2023-11-01/servicetags/method_servicetaginformationlist.go b/resource-manager/network/2023-11-01/servicetags/method_servicetaginformationlist.go index a1ec8327d54..7c6de375541 100644 --- a/resource-manager/network/2023-11-01/servicetags/method_servicetaginformationlist.go +++ b/resource-manager/network/2023-11-01/servicetags/method_servicetaginformationlist.go @@ -54,6 +54,18 @@ func (o ServiceTagInformationListOperationOptions) ToQuery() *client.QueryParams return &out } +type ServiceTagInformationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceTagInformationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceTagInformationList ... func (c ServiceTagsClient) ServiceTagInformationList(ctx context.Context, id LocationId, options ServiceTagInformationListOperationOptions) (result ServiceTagInformationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ServiceTagsClient) ServiceTagInformationList(ctx context.Context, id Loc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/serviceTagDetails", id.ID()), OptionsObject: options, + Pager: &ServiceTagInformationListCustomPager{}, + Path: fmt.Sprintf("%s/serviceTagDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/staticmembers/method_list.go b/resource-manager/network/2023-11-01/staticmembers/method_list.go index fc087d77dc0..ac0788a5a34 100644 --- a/resource-manager/network/2023-11-01/staticmembers/method_list.go +++ b/resource-manager/network/2023-11-01/staticmembers/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StaticMembersClient) List(ctx context.Context, id NetworkGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c StaticMembersClient) List(ctx context.Context, id NetworkGroupId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/staticMembers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/staticMembers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/subnets/method_get.go b/resource-manager/network/2023-11-01/subnets/method_get.go index f43b6e2df8f..d77795ad632 100644 --- a/resource-manager/network/2023-11-01/subnets/method_get.go +++ b/resource-manager/network/2023-11-01/subnets/method_get.go @@ -54,8 +54,8 @@ func (c SubnetsClient) Get(ctx context.Context, id commonids.SubnetId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/subnets/method_list.go b/resource-manager/network/2023-11-01/subnets/method_list.go index 9d636728719..b9424e85280 100644 --- a/resource-manager/network/2023-11-01/subnets/method_list.go +++ b/resource-manager/network/2023-11-01/subnets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Subnet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SubnetsClient) List(ctx context.Context, id commonids.VirtualNetworkId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SubnetsClient) List(ctx context.Context, id commonids.VirtualNetworkId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/subnets", id.ID()), } diff --git a/resource-manager/network/2023-11-01/usages/method_list.go b/resource-manager/network/2023-11-01/usages/method_list.go index 6f4166f6dfc..76d13699e0c 100644 --- a/resource-manager/network/2023-11-01/usages/method_list.go +++ b/resource-manager/network/2023-11-01/usages/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Usage } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UsagesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UsagesClient) List(ctx context.Context, id LocationId) (result ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualappliancesites/method_list.go b/resource-manager/network/2023-11-01/virtualappliancesites/method_list.go index b8a9fc0c70b..ed83c3497ea 100644 --- a/resource-manager/network/2023-11-01/virtualappliancesites/method_list.go +++ b/resource-manager/network/2023-11-01/virtualappliancesites/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualApplianceSite } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualApplianceSitesClient) List(ctx context.Context, id NetworkVirtualApplianceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualApplianceSitesClient) List(ctx context.Context, id NetworkVirtual http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/virtualApplianceSites", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualapplianceskus/method_list.go b/resource-manager/network/2023-11-01/virtualapplianceskus/method_list.go index 1e8f39f7e10..a4af9a60bb6 100644 --- a/resource-manager/network/2023-11-01/virtualapplianceskus/method_list.go +++ b/resource-manager/network/2023-11-01/virtualapplianceskus/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkVirtualApplianceSku } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualApplianceSkusClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualApplianceSkusClient) List(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualApplianceSkus", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/method_list.go b/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/method_list.go index 6c9d02a4538..34dc525dce4 100644 --- a/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/method_list.go +++ b/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetworkGatewayConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/connections", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getadvertisedroutes.go b/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getadvertisedroutes.go index 81a82f3fee4..d0dde50a8c6 100644 --- a/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getadvertisedroutes.go +++ b/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getadvertisedroutes.go @@ -57,8 +57,8 @@ func (c VirtualNetworkGatewaysClient) GetAdvertisedRoutes(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getAdvertisedRoutes", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getAdvertisedRoutes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getbgppeerstatus.go b/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getbgppeerstatus.go index f8e0d0d0aae..5e6a04ac485 100644 --- a/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getbgppeerstatus.go +++ b/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getbgppeerstatus.go @@ -57,8 +57,8 @@ func (c VirtualNetworkGatewaysClient) GetBgpPeerStatus(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getBgpPeerStatus", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getBgpPeerStatus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/virtualnetworkgateways/method_list.go b/resource-manager/network/2023-11-01/virtualnetworkgateways/method_list.go index 71bb6d6e8be..8266a51728d 100644 --- a/resource-manager/network/2023-11-01/virtualnetworkgateways/method_list.go +++ b/resource-manager/network/2023-11-01/virtualnetworkgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetworkGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworkGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkGatewaysClient) List(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworkGateways", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualnetworkgateways/method_listconnections.go b/resource-manager/network/2023-11-01/virtualnetworkgateways/method_listconnections.go index 11416dae415..2f13ca7b97c 100644 --- a/resource-manager/network/2023-11-01/virtualnetworkgateways/method_listconnections.go +++ b/resource-manager/network/2023-11-01/virtualnetworkgateways/method_listconnections.go @@ -23,6 +23,18 @@ type ListConnectionsCompleteResult struct { Items []VirtualNetworkGatewayConnectionListEntity } +type ListConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConnections ... func (c VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, id VirtualNetworkGatewayId) (result ListConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, id Vi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConnectionsCustomPager{}, Path: fmt.Sprintf("%s/connections", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualnetworkgateways/method_reset.go b/resource-manager/network/2023-11-01/virtualnetworkgateways/method_reset.go index d766e3f0c62..433a2126e07 100644 --- a/resource-manager/network/2023-11-01/virtualnetworkgateways/method_reset.go +++ b/resource-manager/network/2023-11-01/virtualnetworkgateways/method_reset.go @@ -57,8 +57,8 @@ func (c VirtualNetworkGatewaysClient) Reset(ctx context.Context, id VirtualNetwo http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/reset", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/reset", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go b/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go index 9fc49217e2c..ce8ee5c4965 100644 --- a/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go +++ b/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go @@ -23,6 +23,18 @@ type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteResult stru Items []VirtualNetworkGatewayNatRule } +type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway ... func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway(ctx context.Context, id VirtualNetworkGatewayId) (result VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesListByVirtual http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager{}, Path: fmt.Sprintf("%s/natRules", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_createorupdate.go b/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_createorupdate.go index e7fcc91436e..aba174940d2 100644 --- a/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_createorupdate.go +++ b/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_createorupdate.go @@ -57,8 +57,8 @@ func (c VirtualNetworkPeeringsClient) CreateOrUpdate(ctx context.Context, id Vir http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_list.go b/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_list.go index 614ef8d907f..a18c0885cc9 100644 --- a/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_list.go +++ b/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetworkPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworkPeeringsClient) List(ctx context.Context, id commonids.VirtualNetworkId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkPeeringsClient) List(ctx context.Context, id commonids.Vir http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkPeerings", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualnetworks/method_get.go b/resource-manager/network/2023-11-01/virtualnetworks/method_get.go index e40ab49ec8e..189fd2689c1 100644 --- a/resource-manager/network/2023-11-01/virtualnetworks/method_get.go +++ b/resource-manager/network/2023-11-01/virtualnetworks/method_get.go @@ -54,8 +54,8 @@ func (c VirtualNetworksClient) Get(ctx context.Context, id commonids.VirtualNetw http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/virtualnetworks/method_list.go b/resource-manager/network/2023-11-01/virtualnetworks/method_list.go index 9162506d2da..e540706223a 100644 --- a/resource-manager/network/2023-11-01/virtualnetworks/method_list.go +++ b/resource-manager/network/2023-11-01/virtualnetworks/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetwork } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworksClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworks", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualnetworks/method_listall.go b/resource-manager/network/2023-11-01/virtualnetworks/method_listall.go index 06795ae6091..e91f96c1cf3 100644 --- a/resource-manager/network/2023-11-01/virtualnetworks/method_listall.go +++ b/resource-manager/network/2023-11-01/virtualnetworks/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []VirtualNetwork } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualNetworksClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ListAll(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworks", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualnetworks/method_resourcenavigationlinkslist.go b/resource-manager/network/2023-11-01/virtualnetworks/method_resourcenavigationlinkslist.go index 9a0b9b15f44..16f353bcd4e 100644 --- a/resource-manager/network/2023-11-01/virtualnetworks/method_resourcenavigationlinkslist.go +++ b/resource-manager/network/2023-11-01/virtualnetworks/method_resourcenavigationlinkslist.go @@ -24,6 +24,18 @@ type ResourceNavigationLinksListCompleteResult struct { Items []ResourceNavigationLink } +type ResourceNavigationLinksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceNavigationLinksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourceNavigationLinksList ... func (c VirtualNetworksClient) ResourceNavigationLinksList(ctx context.Context, id commonids.SubnetId) (result ResourceNavigationLinksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ResourceNavigationLinksList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourceNavigationLinksListCustomPager{}, Path: fmt.Sprintf("%s/resourceNavigationLinks", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualnetworks/method_serviceassociationlinkslist.go b/resource-manager/network/2023-11-01/virtualnetworks/method_serviceassociationlinkslist.go index 5d6fbf0b927..c246c98a15b 100644 --- a/resource-manager/network/2023-11-01/virtualnetworks/method_serviceassociationlinkslist.go +++ b/resource-manager/network/2023-11-01/virtualnetworks/method_serviceassociationlinkslist.go @@ -24,6 +24,18 @@ type ServiceAssociationLinksListCompleteResult struct { Items []ServiceAssociationLink } +type ServiceAssociationLinksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceAssociationLinksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceAssociationLinksList ... func (c VirtualNetworksClient) ServiceAssociationLinksList(ctx context.Context, id commonids.SubnetId) (result ServiceAssociationLinksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ServiceAssociationLinksList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServiceAssociationLinksListCustomPager{}, Path: fmt.Sprintf("%s/serviceAssociationLinks", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go b/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go index 85ba4d73ccd..1f434189786 100644 --- a/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go +++ b/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go @@ -54,8 +54,8 @@ func (c VirtualNetworksClient) VirtualNetworksCheckIPAddressAvailability(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/checkIPAddressAvailability", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/checkIPAddressAvailability", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go b/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go index c0872952086..d48736807d5 100644 --- a/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go +++ b/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go @@ -58,6 +58,18 @@ func (o VirtualNetworksListDdosProtectionStatusOperationOptions) ToQuery() *clie return &out } +type VirtualNetworksListDdosProtectionStatusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworksListDdosProtectionStatusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualNetworksListDdosProtectionStatus ... func (c VirtualNetworksClient) VirtualNetworksListDdosProtectionStatus(ctx context.Context, id commonids.VirtualNetworkId, options VirtualNetworksListDdosProtectionStatusOperationOptions) (result VirtualNetworksListDdosProtectionStatusOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c VirtualNetworksClient) VirtualNetworksListDdosProtectionStatus(ctx conte http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/ddosProtectionStatus", id.ID()), OptionsObject: options, + Pager: &VirtualNetworksListDdosProtectionStatusCustomPager{}, + Path: fmt.Sprintf("%s/ddosProtectionStatus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistusage.go b/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistusage.go index 546a8bbc316..cfc1a239a93 100644 --- a/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistusage.go +++ b/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistusage.go @@ -24,6 +24,18 @@ type VirtualNetworksListUsageCompleteResult struct { Items []VirtualNetworkUsage } +type VirtualNetworksListUsageCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworksListUsageCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualNetworksListUsage ... func (c VirtualNetworksClient) VirtualNetworksListUsage(ctx context.Context, id commonids.VirtualNetworkId) (result VirtualNetworksListUsageOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) VirtualNetworksListUsage(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualNetworksListUsageCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualnetworktaps/method_listall.go b/resource-manager/network/2023-11-01/virtualnetworktaps/method_listall.go index aba7596749e..c73f4d2a3eb 100644 --- a/resource-manager/network/2023-11-01/virtualnetworktaps/method_listall.go +++ b/resource-manager/network/2023-11-01/virtualnetworktaps/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []VirtualNetworkTap } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualNetworkTapsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkTapsClient) ListAll(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworkTaps", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualnetworktaps/method_listbyresourcegroup.go b/resource-manager/network/2023-11-01/virtualnetworktaps/method_listbyresourcegroup.go index 7377c5f3294..91d504091c5 100644 --- a/resource-manager/network/2023-11-01/virtualnetworktaps/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/virtualnetworktaps/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualNetworkTap } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworkTaps", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualrouterpeerings/method_list.go b/resource-manager/network/2023-11-01/virtualrouterpeerings/method_list.go index c0a333e6c0d..276300c6796 100644 --- a/resource-manager/network/2023-11-01/virtualrouterpeerings/method_list.go +++ b/resource-manager/network/2023-11-01/virtualrouterpeerings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualRouterPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualRouterPeeringsClient) List(ctx context.Context, id VirtualRouterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualRouterPeeringsClient) List(ctx context.Context, id VirtualRouterI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerings", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualrouters/method_get.go b/resource-manager/network/2023-11-01/virtualrouters/method_get.go index 2e829ce071e..39415fad17f 100644 --- a/resource-manager/network/2023-11-01/virtualrouters/method_get.go +++ b/resource-manager/network/2023-11-01/virtualrouters/method_get.go @@ -53,8 +53,8 @@ func (c VirtualRoutersClient) Get(ctx context.Context, id VirtualRouterId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/virtualrouters/method_list.go b/resource-manager/network/2023-11-01/virtualrouters/method_list.go index db67e56568e..414434d4b95 100644 --- a/resource-manager/network/2023-11-01/virtualrouters/method_list.go +++ b/resource-manager/network/2023-11-01/virtualrouters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualRouter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualRoutersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualRoutersClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualRouters", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualrouters/method_listbyresourcegroup.go b/resource-manager/network/2023-11-01/virtualrouters/method_listbyresourcegroup.go index 9f01dcc539a..b34c6e266b7 100644 --- a/resource-manager/network/2023-11-01/virtualrouters/method_listbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/virtualrouters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualRouter } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualRoutersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualRoutersClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualRouters", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go b/resource-manager/network/2023-11-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go index 4d60c8f1419..d8055521e53 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go @@ -23,6 +23,18 @@ type ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteResult struct Items []VpnServerConfigurationPolicyGroup } +type ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationPolicyGroupsListByVpnServerConfiguration ... func (c VirtualWANsClient) ConfigurationPolicyGroupsListByVpnServerConfiguration(ctx context.Context, id VpnServerConfigurationId) (result ConfigurationPolicyGroupsListByVpnServerConfigurationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) ConfigurationPolicyGroupsListByVpnServerConfiguration http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager{}, Path: fmt.Sprintf("%s/configurationPolicyGroups", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_hubroutetableslist.go b/resource-manager/network/2023-11-01/virtualwans/method_hubroutetableslist.go index e95318b1194..d36631c9289 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_hubroutetableslist.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_hubroutetableslist.go @@ -23,6 +23,18 @@ type HubRouteTablesListCompleteResult struct { Items []HubRouteTable } +type HubRouteTablesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HubRouteTablesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // HubRouteTablesList ... func (c VirtualWANsClient) HubRouteTablesList(ctx context.Context, id VirtualHubId) (result HubRouteTablesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) HubRouteTablesList(ctx context.Context, id VirtualHub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &HubRouteTablesListCustomPager{}, Path: fmt.Sprintf("%s/hubRouteTables", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_hubvirtualnetworkconnectionslist.go b/resource-manager/network/2023-11-01/virtualwans/method_hubvirtualnetworkconnectionslist.go index baf9dedf27b..9ba166e19d8 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_hubvirtualnetworkconnectionslist.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_hubvirtualnetworkconnectionslist.go @@ -23,6 +23,18 @@ type HubVirtualNetworkConnectionsListCompleteResult struct { Items []HubVirtualNetworkConnection } +type HubVirtualNetworkConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HubVirtualNetworkConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // HubVirtualNetworkConnectionsList ... func (c VirtualWANsClient) HubVirtualNetworkConnectionsList(ctx context.Context, id VirtualHubId) (result HubVirtualNetworkConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) HubVirtualNetworkConnectionsList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &HubVirtualNetworkConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/hubVirtualNetworkConnections", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_natruleslistbyvpngateway.go b/resource-manager/network/2023-11-01/virtualwans/method_natruleslistbyvpngateway.go index 7c30bd1de6f..e5393de1385 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_natruleslistbyvpngateway.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_natruleslistbyvpngateway.go @@ -23,6 +23,18 @@ type NatRulesListByVpnGatewayCompleteResult struct { Items []VpnGatewayNatRule } +type NatRulesListByVpnGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NatRulesListByVpnGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NatRulesListByVpnGateway ... func (c VirtualWANsClient) NatRulesListByVpnGateway(ctx context.Context, id VpnGatewayId) (result NatRulesListByVpnGatewayOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) NatRulesListByVpnGateway(ctx context.Context, id VpnG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NatRulesListByVpnGatewayCustomPager{}, Path: fmt.Sprintf("%s/natRules", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_networkvirtualapplianceconnectionslist.go b/resource-manager/network/2023-11-01/virtualwans/method_networkvirtualapplianceconnectionslist.go index e3ef913c529..72b22855ec4 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_networkvirtualapplianceconnectionslist.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_networkvirtualapplianceconnectionslist.go @@ -23,6 +23,18 @@ type NetworkVirtualApplianceConnectionsListCompleteResult struct { Items []NetworkVirtualApplianceConnection } +type NetworkVirtualApplianceConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkVirtualApplianceConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkVirtualApplianceConnectionsList ... func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsList(ctx context.Context, id NetworkVirtualApplianceId) (result NetworkVirtualApplianceConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkVirtualApplianceConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/networkVirtualApplianceConnections", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_p2svpngatewayslist.go b/resource-manager/network/2023-11-01/virtualwans/method_p2svpngatewayslist.go index fff4e439357..b51053de49e 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_p2svpngatewayslist.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_p2svpngatewayslist.go @@ -24,6 +24,18 @@ type P2sVpnGatewaysListCompleteResult struct { Items []P2SVpnGateway } +type P2sVpnGatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *P2sVpnGatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // P2sVpnGatewaysList ... func (c VirtualWANsClient) P2sVpnGatewaysList(ctx context.Context, id commonids.SubscriptionId) (result P2sVpnGatewaysListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) P2sVpnGatewaysList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &P2sVpnGatewaysListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/p2sVpnGateways", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go b/resource-manager/network/2023-11-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go index 0224c82328e..1c57fc684fa 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go @@ -24,6 +24,18 @@ type P2sVpnGatewaysListByResourceGroupCompleteResult struct { Items []P2SVpnGateway } +type P2sVpnGatewaysListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *P2sVpnGatewaysListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // P2sVpnGatewaysListByResourceGroup ... func (c VirtualWANsClient) P2sVpnGatewaysListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result P2sVpnGatewaysListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) P2sVpnGatewaysListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &P2sVpnGatewaysListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/p2sVpnGateways", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_routemapslist.go b/resource-manager/network/2023-11-01/virtualwans/method_routemapslist.go index 3def8ca78d2..a9eddc11d95 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_routemapslist.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_routemapslist.go @@ -23,6 +23,18 @@ type RouteMapsListCompleteResult struct { Items []RouteMap } +type RouteMapsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RouteMapsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RouteMapsList ... func (c VirtualWANsClient) RouteMapsList(ctx context.Context, id VirtualHubId) (result RouteMapsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) RouteMapsList(ctx context.Context, id VirtualHubId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RouteMapsListCustomPager{}, Path: fmt.Sprintf("%s/routeMaps", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_routingintentlist.go b/resource-manager/network/2023-11-01/virtualwans/method_routingintentlist.go index ef858aa2b50..b3edd99b519 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_routingintentlist.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_routingintentlist.go @@ -23,6 +23,18 @@ type RoutingIntentListCompleteResult struct { Items []RoutingIntent } +type RoutingIntentListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RoutingIntentListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RoutingIntentList ... func (c VirtualWANsClient) RoutingIntentList(ctx context.Context, id VirtualHubId) (result RoutingIntentListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) RoutingIntentList(ctx context.Context, id VirtualHubI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RoutingIntentListCustomPager{}, Path: fmt.Sprintf("%s/routingIntent", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_virtualhubbgpconnectionslist.go b/resource-manager/network/2023-11-01/virtualwans/method_virtualhubbgpconnectionslist.go index c4b5ea29e18..802bf0b65b9 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_virtualhubbgpconnectionslist.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_virtualhubbgpconnectionslist.go @@ -23,6 +23,18 @@ type VirtualHubBgpConnectionsListCompleteResult struct { Items []BgpConnection } +type VirtualHubBgpConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubBgpConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubBgpConnectionsList ... func (c VirtualWANsClient) VirtualHubBgpConnectionsList(ctx context.Context, id VirtualHubId) (result VirtualHubBgpConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VirtualHubBgpConnectionsList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubBgpConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/bgpConnections", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_virtualhubipconfigurationlist.go b/resource-manager/network/2023-11-01/virtualwans/method_virtualhubipconfigurationlist.go index c3fa2ae6e69..8ae13b9fb7d 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_virtualhubipconfigurationlist.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_virtualhubipconfigurationlist.go @@ -23,6 +23,18 @@ type VirtualHubIPConfigurationListCompleteResult struct { Items []HubIPConfiguration } +type VirtualHubIPConfigurationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubIPConfigurationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubIPConfigurationList ... func (c VirtualWANsClient) VirtualHubIPConfigurationList(ctx context.Context, id VirtualHubId) (result VirtualHubIPConfigurationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VirtualHubIPConfigurationList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubIPConfigurationListCustomPager{}, Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_virtualhubroutetablev2slist.go b/resource-manager/network/2023-11-01/virtualwans/method_virtualhubroutetablev2slist.go index 1687bef7d4c..cf9c9ef61a3 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_virtualhubroutetablev2slist.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_virtualhubroutetablev2slist.go @@ -23,6 +23,18 @@ type VirtualHubRouteTableV2sListCompleteResult struct { Items []VirtualHubRouteTableV2 } +type VirtualHubRouteTableV2sListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubRouteTableV2sListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubRouteTableV2sList ... func (c VirtualWANsClient) VirtualHubRouteTableV2sList(ctx context.Context, id VirtualHubId) (result VirtualHubRouteTableV2sListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VirtualHubRouteTableV2sList(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubRouteTableV2sListCustomPager{}, Path: fmt.Sprintf("%s/routeTables", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_virtualhubslist.go b/resource-manager/network/2023-11-01/virtualwans/method_virtualhubslist.go index 49ab6fcec34..d8fa3805233 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_virtualhubslist.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_virtualhubslist.go @@ -24,6 +24,18 @@ type VirtualHubsListCompleteResult struct { Items []VirtualHub } +type VirtualHubsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubsList ... func (c VirtualWANsClient) VirtualHubsList(ctx context.Context, id commonids.SubscriptionId) (result VirtualHubsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualHubsList(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualHubs", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_virtualhubslistbyresourcegroup.go b/resource-manager/network/2023-11-01/virtualwans/method_virtualhubslistbyresourcegroup.go index 2eabf9bea70..9427d542093 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_virtualhubslistbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_virtualhubslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VirtualHubsListByResourceGroupCompleteResult struct { Items []VirtualHub } +type VirtualHubsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubsListByResourceGroup ... func (c VirtualWANsClient) VirtualHubsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VirtualHubsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualHubsListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualHubs", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_virtualwanslist.go b/resource-manager/network/2023-11-01/virtualwans/method_virtualwanslist.go index 394200ffe81..8a8cb8514e3 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_virtualwanslist.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_virtualwanslist.go @@ -24,6 +24,18 @@ type VirtualWansListCompleteResult struct { Items []VirtualWAN } +type VirtualWansListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualWansListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualWansList ... func (c VirtualWANsClient) VirtualWansList(ctx context.Context, id commonids.SubscriptionId) (result VirtualWansListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualWansList(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualWansListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualWans", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_virtualwanslistbyresourcegroup.go b/resource-manager/network/2023-11-01/virtualwans/method_virtualwanslistbyresourcegroup.go index fec869f75be..24b02c20232 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_virtualwanslistbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_virtualwanslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VirtualWansListByResourceGroupCompleteResult struct { Items []VirtualWAN } +type VirtualWansListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualWansListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualWansListByResourceGroup ... func (c VirtualWANsClient) VirtualWansListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VirtualWansListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualWansListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualWansListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualWans", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_vpnconnectionslistbyvpngateway.go b/resource-manager/network/2023-11-01/virtualwans/method_vpnconnectionslistbyvpngateway.go index 48d7fe22883..d1ed0d12708 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_vpnconnectionslistbyvpngateway.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_vpnconnectionslistbyvpngateway.go @@ -23,6 +23,18 @@ type VpnConnectionsListByVpnGatewayCompleteResult struct { Items []VpnConnection } +type VpnConnectionsListByVpnGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnConnectionsListByVpnGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnConnectionsListByVpnGateway ... func (c VirtualWANsClient) VpnConnectionsListByVpnGateway(ctx context.Context, id VpnGatewayId) (result VpnConnectionsListByVpnGatewayOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VpnConnectionsListByVpnGateway(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnConnectionsListByVpnGatewayCustomPager{}, Path: fmt.Sprintf("%s/vpnConnections", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_vpngatewayslist.go b/resource-manager/network/2023-11-01/virtualwans/method_vpngatewayslist.go index ca191bd2af0..d5ecf5c40ee 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_vpngatewayslist.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_vpngatewayslist.go @@ -24,6 +24,18 @@ type VpnGatewaysListCompleteResult struct { Items []VpnGateway } +type VpnGatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnGatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnGatewaysList ... func (c VirtualWANsClient) VpnGatewaysList(ctx context.Context, id commonids.SubscriptionId) (result VpnGatewaysListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnGatewaysList(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnGatewaysListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnGateways", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_vpngatewayslistbyresourcegroup.go b/resource-manager/network/2023-11-01/virtualwans/method_vpngatewayslistbyresourcegroup.go index 74f1365bd3c..e0e679927ad 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_vpngatewayslistbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_vpngatewayslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VpnGatewaysListByResourceGroupCompleteResult struct { Items []VpnGateway } +type VpnGatewaysListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnGatewaysListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnGatewaysListByResourceGroup ... func (c VirtualWANsClient) VpnGatewaysListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnGatewaysListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnGatewaysListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnGatewaysListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnGateways", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go b/resource-manager/network/2023-11-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go index 6aa787c6a6c..28dcee0d679 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go @@ -24,6 +24,18 @@ type VpnLinkConnectionsListByVpnConnectionCompleteResult struct { Items []VpnSiteLinkConnection } +type VpnLinkConnectionsListByVpnConnectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnLinkConnectionsListByVpnConnectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnLinkConnectionsListByVpnConnection ... func (c VirtualWANsClient) VpnLinkConnectionsListByVpnConnection(ctx context.Context, id commonids.VPNConnectionId) (result VpnLinkConnectionsListByVpnConnectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnLinkConnectionsListByVpnConnection(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnLinkConnectionsListByVpnConnectionCustomPager{}, Path: fmt.Sprintf("%s/vpnLinkConnections", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_vpnserverconfigurationslist.go b/resource-manager/network/2023-11-01/virtualwans/method_vpnserverconfigurationslist.go index 2b477dfd0ed..914118474d5 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_vpnserverconfigurationslist.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_vpnserverconfigurationslist.go @@ -24,6 +24,18 @@ type VpnServerConfigurationsListCompleteResult struct { Items []VpnServerConfiguration } +type VpnServerConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnServerConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnServerConfigurationsList ... func (c VirtualWANsClient) VpnServerConfigurationsList(ctx context.Context, id commonids.SubscriptionId) (result VpnServerConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnServerConfigurationsList(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnServerConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnServerConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go b/resource-manager/network/2023-11-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go index a4976dfad49..6653716f5fe 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VpnServerConfigurationsListByResourceGroupCompleteResult struct { Items []VpnServerConfiguration } +type VpnServerConfigurationsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnServerConfigurationsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnServerConfigurationsListByResourceGroup ... func (c VirtualWANsClient) VpnServerConfigurationsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnServerConfigurationsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnServerConfigurationsListByResourceGroup(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnServerConfigurationsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnServerConfigurations", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go b/resource-manager/network/2023-11-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go index 58c8ae1dd18..584c5170718 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go @@ -23,6 +23,18 @@ type VpnSiteLinksListByVpnSiteCompleteResult struct { Items []VpnSiteLink } +type VpnSiteLinksListByVpnSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSiteLinksListByVpnSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnSiteLinksListByVpnSite ... func (c VirtualWANsClient) VpnSiteLinksListByVpnSite(ctx context.Context, id VpnSiteId) (result VpnSiteLinksListByVpnSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VpnSiteLinksListByVpnSite(ctx context.Context, id Vpn http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnSiteLinksListByVpnSiteCustomPager{}, Path: fmt.Sprintf("%s/vpnSiteLinks", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_vpnsiteslist.go b/resource-manager/network/2023-11-01/virtualwans/method_vpnsiteslist.go index f6008bbcb21..38bc5c86363 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_vpnsiteslist.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_vpnsiteslist.go @@ -24,6 +24,18 @@ type VpnSitesListCompleteResult struct { Items []VpnSite } +type VpnSitesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSitesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnSitesList ... func (c VirtualWANsClient) VpnSitesList(ctx context.Context, id commonids.SubscriptionId) (result VpnSitesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnSitesList(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnSitesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnSites", id.ID()), } diff --git a/resource-manager/network/2023-11-01/virtualwans/method_vpnsiteslistbyresourcegroup.go b/resource-manager/network/2023-11-01/virtualwans/method_vpnsiteslistbyresourcegroup.go index aee63f234ff..276e64b30d1 100644 --- a/resource-manager/network/2023-11-01/virtualwans/method_vpnsiteslistbyresourcegroup.go +++ b/resource-manager/network/2023-11-01/virtualwans/method_vpnsiteslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VpnSitesListByResourceGroupCompleteResult struct { Items []VpnSite } +type VpnSitesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSitesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnSitesListByResourceGroup ... func (c VirtualWANsClient) VpnSitesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnSitesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnSitesListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnSitesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnSites", id.ID()), } diff --git a/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go b/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go index f1a1235a8e2..482b018c7dc 100644 --- a/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go +++ b/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go @@ -54,8 +54,8 @@ func (c VMSSPublicIPAddressesClient) PublicIPAddressesGetVirtualMachineScaleSetP http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go b/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go index b7648a7a307..c39b6848351 100644 --- a/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go +++ b/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go @@ -23,6 +23,18 @@ type PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCompleteResult Items []PublicIPAddress } +type PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses ... func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, id VirtualMachineScaleSetId) (result PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSet http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go b/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go index e61b339d253..83d7e85289f 100644 --- a/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go +++ b/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go @@ -24,6 +24,18 @@ type PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCompleteResul Items []PublicIPAddress } +type PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses ... func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, id commonids.VirtualMachineScaleSetIPConfigurationId) (result PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSet http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2023-11-01/vpngateways/method_reset.go b/resource-manager/network/2023-11-01/vpngateways/method_reset.go index ca8defc383b..8228267e86c 100644 --- a/resource-manager/network/2023-11-01/vpngateways/method_reset.go +++ b/resource-manager/network/2023-11-01/vpngateways/method_reset.go @@ -57,8 +57,8 @@ func (c VpnGatewaysClient) Reset(ctx context.Context, id VpnGatewayId, options R http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/reset", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/reset", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_list.go b/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_list.go index dbe94a8ef0e..4a6b3abf31e 100644 --- a/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_list.go +++ b/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []WebApplicationFirewallPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WebApplicationFirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebApplicationFirewallPoliciesClient) List(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies", id.ID()), } diff --git a/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_listall.go b/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_listall.go index 652df162aed..e3a633a2655 100644 --- a/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_listall.go +++ b/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []WebApplicationFirewallPolicy } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies", id.ID()), } diff --git a/resource-manager/network/2023-11-01/webcategories/method_get.go b/resource-manager/network/2023-11-01/webcategories/method_get.go index 9038c189875..6150a24fbf4 100644 --- a/resource-manager/network/2023-11-01/webcategories/method_get.go +++ b/resource-manager/network/2023-11-01/webcategories/method_get.go @@ -53,8 +53,8 @@ func (c WebCategoriesClient) Get(ctx context.Context, id AzureWebCategoryId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2023-11-01/webcategories/method_listbysubscription.go b/resource-manager/network/2023-11-01/webcategories/method_listbysubscription.go index 4a3e7f4445b..8e55ebdbf11 100644 --- a/resource-manager/network/2023-11-01/webcategories/method_listbysubscription.go +++ b/resource-manager/network/2023-11-01/webcategories/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []AzureWebCategory } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WebCategoriesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebCategoriesClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureWebCategories", id.ID()), } diff --git a/resource-manager/network/2024-01-01/adminrulecollections/method_delete.go b/resource-manager/network/2024-01-01/adminrulecollections/method_delete.go index 2a158c78562..ec55f3fa7e6 100644 --- a/resource-manager/network/2024-01-01/adminrulecollections/method_delete.go +++ b/resource-manager/network/2024-01-01/adminrulecollections/method_delete.go @@ -57,8 +57,8 @@ func (c AdminRuleCollectionsClient) Delete(ctx context.Context, id RuleCollectio http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/adminrulecollections/method_list.go b/resource-manager/network/2024-01-01/adminrulecollections/method_list.go index 4b76fd0901c..f4b9bfcdd61 100644 --- a/resource-manager/network/2024-01-01/adminrulecollections/method_list.go +++ b/resource-manager/network/2024-01-01/adminrulecollections/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AdminRuleCollectionsClient) List(ctx context.Context, id SecurityAdminConfigurationId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c AdminRuleCollectionsClient) List(ctx context.Context, id SecurityAdminCo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/ruleCollections", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/ruleCollections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/adminrules/method_delete.go b/resource-manager/network/2024-01-01/adminrules/method_delete.go index 6d7b0f948b8..9b07dbc4a79 100644 --- a/resource-manager/network/2024-01-01/adminrules/method_delete.go +++ b/resource-manager/network/2024-01-01/adminrules/method_delete.go @@ -57,8 +57,8 @@ func (c AdminRulesClient) Delete(ctx context.Context, id RuleId, options DeleteO http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/adminrules/method_list.go b/resource-manager/network/2024-01-01/adminrules/method_list.go index 1c41454de22..97915114117 100644 --- a/resource-manager/network/2024-01-01/adminrules/method_list.go +++ b/resource-manager/network/2024-01-01/adminrules/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BaseAdminRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AdminRulesClient) List(ctx context.Context, id RuleCollectionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AdminRulesClient) List(ctx context.Context, id RuleCollectionId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/rules", id.ID()), } diff --git a/resource-manager/network/2024-01-01/applicationgatewayprivateendpointconnections/method_list.go b/resource-manager/network/2024-01-01/applicationgatewayprivateendpointconnections/method_list.go index c77aa7c6921..595ab9b2ec1 100644 --- a/resource-manager/network/2024-01-01/applicationgatewayprivateendpointconnections/method_list.go +++ b/resource-manager/network/2024-01-01/applicationgatewayprivateendpointconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationGatewayPrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationGatewayPrivateEndpointConnectionsClient) List(ctx context.Context, id ApplicationGatewayId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationGatewayPrivateEndpointConnectionsClient) List(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/network/2024-01-01/applicationgatewayprivatelinkresources/method_list.go b/resource-manager/network/2024-01-01/applicationgatewayprivatelinkresources/method_list.go index e50df050c40..ab3dbda73fe 100644 --- a/resource-manager/network/2024-01-01/applicationgatewayprivatelinkresources/method_list.go +++ b/resource-manager/network/2024-01-01/applicationgatewayprivatelinkresources/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationGatewayPrivateLinkResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationGatewayPrivateLinkResourcesClient) List(ctx context.Context, id ApplicationGatewayId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationGatewayPrivateLinkResourcesClient) List(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/network/2024-01-01/applicationgateways/method_backendhealth.go b/resource-manager/network/2024-01-01/applicationgateways/method_backendhealth.go index bc7254fd7d6..21c25eb922c 100644 --- a/resource-manager/network/2024-01-01/applicationgateways/method_backendhealth.go +++ b/resource-manager/network/2024-01-01/applicationgateways/method_backendhealth.go @@ -57,8 +57,8 @@ func (c ApplicationGatewaysClient) BackendHealth(ctx context.Context, id Applica http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/backendhealth", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/backendhealth", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/applicationgateways/method_backendhealthondemand.go b/resource-manager/network/2024-01-01/applicationgateways/method_backendhealthondemand.go index c99e1e55de2..2db3547857a 100644 --- a/resource-manager/network/2024-01-01/applicationgateways/method_backendhealthondemand.go +++ b/resource-manager/network/2024-01-01/applicationgateways/method_backendhealthondemand.go @@ -57,8 +57,8 @@ func (c ApplicationGatewaysClient) BackendHealthOnDemand(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getBackendHealthOnDemand", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getBackendHealthOnDemand", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/applicationgateways/method_list.go b/resource-manager/network/2024-01-01/applicationgateways/method_list.go index 5f1051eb154..5993122f77d 100644 --- a/resource-manager/network/2024-01-01/applicationgateways/method_list.go +++ b/resource-manager/network/2024-01-01/applicationgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ApplicationGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationGatewaysClient) List(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGateways", id.ID()), } diff --git a/resource-manager/network/2024-01-01/applicationgateways/method_listall.go b/resource-manager/network/2024-01-01/applicationgateways/method_listall.go index b652121174a..2339a539153 100644 --- a/resource-manager/network/2024-01-01/applicationgateways/method_listall.go +++ b/resource-manager/network/2024-01-01/applicationgateways/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []ApplicationGateway } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c ApplicationGatewaysClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationGatewaysClient) ListAll(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGateways", id.ID()), } diff --git a/resource-manager/network/2024-01-01/applicationgateways/method_listavailablesslpredefinedpolicies.go b/resource-manager/network/2024-01-01/applicationgateways/method_listavailablesslpredefinedpolicies.go index e9498c59b10..60e04b841d4 100644 --- a/resource-manager/network/2024-01-01/applicationgateways/method_listavailablesslpredefinedpolicies.go +++ b/resource-manager/network/2024-01-01/applicationgateways/method_listavailablesslpredefinedpolicies.go @@ -24,6 +24,18 @@ type ListAvailableSslPredefinedPoliciesCompleteResult struct { Items []ApplicationGatewaySslPredefinedPolicy } +type ListAvailableSslPredefinedPoliciesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAvailableSslPredefinedPoliciesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAvailableSslPredefinedPolicies ... func (c ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableSslPredefinedPoliciesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAvailableSslPredefinedPoliciesCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies", id.ID()), } diff --git a/resource-manager/network/2024-01-01/applicationgatewaywafdynamicmanifests/method_get.go b/resource-manager/network/2024-01-01/applicationgatewaywafdynamicmanifests/method_get.go index d07f9b4e97b..4f7a0478f78 100644 --- a/resource-manager/network/2024-01-01/applicationgatewaywafdynamicmanifests/method_get.go +++ b/resource-manager/network/2024-01-01/applicationgatewaywafdynamicmanifests/method_get.go @@ -23,6 +23,18 @@ type GetCompleteResult struct { Items []ApplicationGatewayWafDynamicManifestResult } +type GetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Get ... func (c ApplicationGatewayWafDynamicManifestsClient) Get(ctx context.Context, id LocationId) (result GetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationGatewayWafDynamicManifestsClient) Get(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetCustomPager{}, Path: fmt.Sprintf("%s/applicationGatewayWafDynamicManifests", id.ID()), } diff --git a/resource-manager/network/2024-01-01/applicationsecuritygroups/method_list.go b/resource-manager/network/2024-01-01/applicationsecuritygroups/method_list.go index 424c65a5cec..1e8cc5c05eb 100644 --- a/resource-manager/network/2024-01-01/applicationsecuritygroups/method_list.go +++ b/resource-manager/network/2024-01-01/applicationsecuritygroups/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ApplicationSecurityGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationSecurityGroupsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationSecurityGroupsClient) List(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2024-01-01/applicationsecuritygroups/method_listall.go b/resource-manager/network/2024-01-01/applicationsecuritygroups/method_listall.go index 38c5c8dc37f..b0f38c737fa 100644 --- a/resource-manager/network/2024-01-01/applicationsecuritygroups/method_listall.go +++ b/resource-manager/network/2024-01-01/applicationsecuritygroups/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []ApplicationSecurityGroup } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c ApplicationSecurityGroupsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ApplicationSecurityGroupsClient) ListAll(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2024-01-01/availabledelegations/method_availabledelegationslist.go b/resource-manager/network/2024-01-01/availabledelegations/method_availabledelegationslist.go index 45c22a5af12..e9a70f09fbc 100644 --- a/resource-manager/network/2024-01-01/availabledelegations/method_availabledelegationslist.go +++ b/resource-manager/network/2024-01-01/availabledelegations/method_availabledelegationslist.go @@ -23,6 +23,18 @@ type AvailableDelegationsListCompleteResult struct { Items []AvailableDelegation } +type AvailableDelegationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailableDelegationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailableDelegationsList ... func (c AvailableDelegationsClient) AvailableDelegationsList(ctx context.Context, id LocationId) (result AvailableDelegationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableDelegationsClient) AvailableDelegationsList(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailableDelegationsListCustomPager{}, Path: fmt.Sprintf("%s/availableDelegations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/availabledelegations/method_availableresourcegroupdelegationslist.go b/resource-manager/network/2024-01-01/availabledelegations/method_availableresourcegroupdelegationslist.go index c507cd333ea..1663af9f165 100644 --- a/resource-manager/network/2024-01-01/availabledelegations/method_availableresourcegroupdelegationslist.go +++ b/resource-manager/network/2024-01-01/availabledelegations/method_availableresourcegroupdelegationslist.go @@ -23,6 +23,18 @@ type AvailableResourceGroupDelegationsListCompleteResult struct { Items []AvailableDelegation } +type AvailableResourceGroupDelegationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailableResourceGroupDelegationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailableResourceGroupDelegationsList ... func (c AvailableDelegationsClient) AvailableResourceGroupDelegationsList(ctx context.Context, id ProviderLocationId) (result AvailableResourceGroupDelegationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableDelegationsClient) AvailableResourceGroupDelegationsList(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailableResourceGroupDelegationsListCustomPager{}, Path: fmt.Sprintf("%s/availableDelegations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/availableservicealiases/method_list.go b/resource-manager/network/2024-01-01/availableservicealiases/method_list.go index f5cd7f6b9a3..702ae41758c 100644 --- a/resource-manager/network/2024-01-01/availableservicealiases/method_list.go +++ b/resource-manager/network/2024-01-01/availableservicealiases/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []AvailableServiceAlias } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AvailableServiceAliasesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableServiceAliasesClient) List(ctx context.Context, id LocationId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/availableServiceAliases", id.ID()), } diff --git a/resource-manager/network/2024-01-01/availableservicealiases/method_listbyresourcegroup.go b/resource-manager/network/2024-01-01/availableservicealiases/method_listbyresourcegroup.go index dedb4883d49..0f1856bad3f 100644 --- a/resource-manager/network/2024-01-01/availableservicealiases/method_listbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/availableservicealiases/method_listbyresourcegroup.go @@ -23,6 +23,18 @@ type ListByResourceGroupCompleteResult struct { Items []AvailableServiceAlias } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Context, id ProviderLocationId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailableServiceAliasesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/availableServiceAliases", id.ID()), } diff --git a/resource-manager/network/2024-01-01/azurefirewalls/method_list.go b/resource-manager/network/2024-01-01/azurefirewalls/method_list.go index ffbf3c167c9..305a4b553ef 100644 --- a/resource-manager/network/2024-01-01/azurefirewalls/method_list.go +++ b/resource-manager/network/2024-01-01/azurefirewalls/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AzureFirewall } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AzureFirewallsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AzureFirewallsClient) List(ctx context.Context, id commonids.ResourceGro http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureFirewalls", id.ID()), } diff --git a/resource-manager/network/2024-01-01/azurefirewalls/method_listall.go b/resource-manager/network/2024-01-01/azurefirewalls/method_listall.go index c688f48f1de..be602f8bbd5 100644 --- a/resource-manager/network/2024-01-01/azurefirewalls/method_listall.go +++ b/resource-manager/network/2024-01-01/azurefirewalls/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []AzureFirewall } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c AzureFirewallsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AzureFirewallsClient) ListAll(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureFirewalls", id.ID()), } diff --git a/resource-manager/network/2024-01-01/bastionhosts/method_disconnectactivesessions.go b/resource-manager/network/2024-01-01/bastionhosts/method_disconnectactivesessions.go index c0aac609fe0..b5bf326b6c2 100644 --- a/resource-manager/network/2024-01-01/bastionhosts/method_disconnectactivesessions.go +++ b/resource-manager/network/2024-01-01/bastionhosts/method_disconnectactivesessions.go @@ -23,6 +23,18 @@ type DisconnectActiveSessionsCompleteResult struct { Items []BastionSessionState } +type DisconnectActiveSessionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DisconnectActiveSessionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DisconnectActiveSessions ... func (c BastionHostsClient) DisconnectActiveSessions(ctx context.Context, id BastionHostId, input SessionIds) (result DisconnectActiveSessionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BastionHostsClient) DisconnectActiveSessions(ctx context.Context, id Bas http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &DisconnectActiveSessionsCustomPager{}, Path: fmt.Sprintf("%s/disconnectActiveSessions", id.ID()), } diff --git a/resource-manager/network/2024-01-01/bastionhosts/method_getactivesessions.go b/resource-manager/network/2024-01-01/bastionhosts/method_getactivesessions.go index bc50f38fc50..ef9274ebcca 100644 --- a/resource-manager/network/2024-01-01/bastionhosts/method_getactivesessions.go +++ b/resource-manager/network/2024-01-01/bastionhosts/method_getactivesessions.go @@ -26,6 +26,18 @@ type GetActiveSessionsCompleteResult struct { Items []BastionActiveSession } +type GetActiveSessionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetActiveSessionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetActiveSessions ... func (c BastionHostsClient) GetActiveSessions(ctx context.Context, id BastionHostId) (result GetActiveSessionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c BastionHostsClient) GetActiveSessions(ctx context.Context, id BastionHos http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetActiveSessionsCustomPager{}, Path: fmt.Sprintf("%s/getActiveSessions", id.ID()), } diff --git a/resource-manager/network/2024-01-01/bastionhosts/method_getbastionshareablelink.go b/resource-manager/network/2024-01-01/bastionhosts/method_getbastionshareablelink.go index e97537890ad..c2598119199 100644 --- a/resource-manager/network/2024-01-01/bastionhosts/method_getbastionshareablelink.go +++ b/resource-manager/network/2024-01-01/bastionhosts/method_getbastionshareablelink.go @@ -23,6 +23,18 @@ type GetBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type GetBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBastionShareableLink ... func (c BastionHostsClient) GetBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result GetBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BastionHostsClient) GetBastionShareableLink(ctx context.Context, id Bast http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/getShareableLinks", id.ID()), } diff --git a/resource-manager/network/2024-01-01/bastionhosts/method_list.go b/resource-manager/network/2024-01-01/bastionhosts/method_list.go index e73d8601569..1503bda8513 100644 --- a/resource-manager/network/2024-01-01/bastionhosts/method_list.go +++ b/resource-manager/network/2024-01-01/bastionhosts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BastionHost } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BastionHostsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BastionHostsClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/bastionHosts", id.ID()), } diff --git a/resource-manager/network/2024-01-01/bastionhosts/method_listbyresourcegroup.go b/resource-manager/network/2024-01-01/bastionhosts/method_listbyresourcegroup.go index 5a80cf6aed5..9be179204d2 100644 --- a/resource-manager/network/2024-01-01/bastionhosts/method_listbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/bastionhosts/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []BastionHost } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c BastionHostsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BastionHostsClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/bastionHosts", id.ID()), } diff --git a/resource-manager/network/2024-01-01/bastionhosts/method_putbastionshareablelink.go b/resource-manager/network/2024-01-01/bastionhosts/method_putbastionshareablelink.go index 5f6e7438551..f0a53697d66 100644 --- a/resource-manager/network/2024-01-01/bastionhosts/method_putbastionshareablelink.go +++ b/resource-manager/network/2024-01-01/bastionhosts/method_putbastionshareablelink.go @@ -26,6 +26,18 @@ type PutBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type PutBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PutBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PutBastionShareableLink ... func (c BastionHostsClient) PutBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result PutBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c BastionHostsClient) PutBastionShareableLink(ctx context.Context, id Bast http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &PutBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/createShareableLinks", id.ID()), } diff --git a/resource-manager/network/2024-01-01/bastionshareablelink/method_getbastionshareablelink.go b/resource-manager/network/2024-01-01/bastionshareablelink/method_getbastionshareablelink.go index d6f683c1ce9..2c1e9c470aa 100644 --- a/resource-manager/network/2024-01-01/bastionshareablelink/method_getbastionshareablelink.go +++ b/resource-manager/network/2024-01-01/bastionshareablelink/method_getbastionshareablelink.go @@ -23,6 +23,18 @@ type GetBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type GetBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBastionShareableLink ... func (c BastionShareableLinkClient) GetBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result GetBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BastionShareableLinkClient) GetBastionShareableLink(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/getShareableLinks", id.ID()), } diff --git a/resource-manager/network/2024-01-01/bastionshareablelink/method_putbastionshareablelink.go b/resource-manager/network/2024-01-01/bastionshareablelink/method_putbastionshareablelink.go index bf85b28ee63..7c6c9a0cd1d 100644 --- a/resource-manager/network/2024-01-01/bastionshareablelink/method_putbastionshareablelink.go +++ b/resource-manager/network/2024-01-01/bastionshareablelink/method_putbastionshareablelink.go @@ -26,6 +26,18 @@ type PutBastionShareableLinkCompleteResult struct { Items []BastionShareableLink } +type PutBastionShareableLinkCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PutBastionShareableLinkCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PutBastionShareableLink ... func (c BastionShareableLinkClient) PutBastionShareableLink(ctx context.Context, id BastionHostId, input BastionShareableLinkListRequest) (result PutBastionShareableLinkOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c BastionShareableLinkClient) PutBastionShareableLink(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &PutBastionShareableLinkCustomPager{}, Path: fmt.Sprintf("%s/createShareableLinks", id.ID()), } diff --git a/resource-manager/network/2024-01-01/bgpservicecommunities/method_list.go b/resource-manager/network/2024-01-01/bgpservicecommunities/method_list.go index 3d8eb8c593e..633bcf897cf 100644 --- a/resource-manager/network/2024-01-01/bgpservicecommunities/method_list.go +++ b/resource-manager/network/2024-01-01/bgpservicecommunities/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []BgpServiceCommunity } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BgpServiceCommunitiesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BgpServiceCommunitiesClient) List(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/bgpServiceCommunities", id.ID()), } diff --git a/resource-manager/network/2024-01-01/checkdnsavailabilities/method_checkdnsnameavailability.go b/resource-manager/network/2024-01-01/checkdnsavailabilities/method_checkdnsnameavailability.go index 7a516978d72..276e19a8dd4 100644 --- a/resource-manager/network/2024-01-01/checkdnsavailabilities/method_checkdnsnameavailability.go +++ b/resource-manager/network/2024-01-01/checkdnsavailabilities/method_checkdnsnameavailability.go @@ -53,8 +53,8 @@ func (c CheckDnsAvailabilitiesClient) CheckDnsNameAvailability(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/checkDnsNameAvailability", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/checkDnsNameAvailability", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go b/resource-manager/network/2024-01-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go index b9661797464..b3e6c192d39 100644 --- a/resource-manager/network/2024-01-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go +++ b/resource-manager/network/2024-01-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go @@ -54,8 +54,8 @@ func (c CloudServicePublicIPAddressesClient) PublicIPAddressesGetCloudServicePub http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go b/resource-manager/network/2024-01-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go index 3101695e6b4..11dfd25258c 100644 --- a/resource-manager/network/2024-01-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go +++ b/resource-manager/network/2024-01-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go @@ -23,6 +23,18 @@ type PublicIPAddressesListCloudServicePublicIPAddressesCompleteResult struct { Items []PublicIPAddress } +type PublicIPAddressesListCloudServicePublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListCloudServicePublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListCloudServicePublicIPAddresses ... func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServicePublicIPAddresses(ctx context.Context, id ProviderCloudServiceId) (result PublicIPAddressesListCloudServicePublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServicePu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListCloudServicePublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2024-01-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go b/resource-manager/network/2024-01-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go index 1f8d938cb07..d1b2312ff6e 100644 --- a/resource-manager/network/2024-01-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go +++ b/resource-manager/network/2024-01-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go @@ -24,6 +24,18 @@ type PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCompleteResul Items []PublicIPAddress } +type PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses ... func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses(ctx context.Context, id commonids.CloudServicesIPConfigurationId) (result PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CloudServicePublicIPAddressesClient) PublicIPAddressesListCloudServiceRo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2024-01-01/connectionmonitors/method_createorupdate.go b/resource-manager/network/2024-01-01/connectionmonitors/method_createorupdate.go index b54a54e92b1..f2d252c628d 100644 --- a/resource-manager/network/2024-01-01/connectionmonitors/method_createorupdate.go +++ b/resource-manager/network/2024-01-01/connectionmonitors/method_createorupdate.go @@ -57,8 +57,8 @@ func (c ConnectionMonitorsClient) CreateOrUpdate(ctx context.Context, id Connect http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/connectivityconfigurations/method_delete.go b/resource-manager/network/2024-01-01/connectivityconfigurations/method_delete.go index 39d9c109838..8646fac9ed8 100644 --- a/resource-manager/network/2024-01-01/connectivityconfigurations/method_delete.go +++ b/resource-manager/network/2024-01-01/connectivityconfigurations/method_delete.go @@ -57,8 +57,8 @@ func (c ConnectivityConfigurationsClient) Delete(ctx context.Context, id Connect http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/connectivityconfigurations/method_list.go b/resource-manager/network/2024-01-01/connectivityconfigurations/method_list.go index fd3032351bd..95ba68f0bc1 100644 --- a/resource-manager/network/2024-01-01/connectivityconfigurations/method_list.go +++ b/resource-manager/network/2024-01-01/connectivityconfigurations/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ConnectivityConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ConnectivityConfigurationsClient) List(ctx context.Context, id NetworkMa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/connectivityConfigurations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/connectivityConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/customipprefixes/method_get.go b/resource-manager/network/2024-01-01/customipprefixes/method_get.go index 04442324994..9215609651a 100644 --- a/resource-manager/network/2024-01-01/customipprefixes/method_get.go +++ b/resource-manager/network/2024-01-01/customipprefixes/method_get.go @@ -53,8 +53,8 @@ func (c CustomIPPrefixesClient) Get(ctx context.Context, id CustomIPPrefixId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/customipprefixes/method_list.go b/resource-manager/network/2024-01-01/customipprefixes/method_list.go index 22d7d1e3f86..34b4f325ee9 100644 --- a/resource-manager/network/2024-01-01/customipprefixes/method_list.go +++ b/resource-manager/network/2024-01-01/customipprefixes/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []CustomIPPrefix } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CustomIPPrefixesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CustomIPPrefixesClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/customIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2024-01-01/customipprefixes/method_listall.go b/resource-manager/network/2024-01-01/customipprefixes/method_listall.go index 221ccc71db6..82eb645deab 100644 --- a/resource-manager/network/2024-01-01/customipprefixes/method_listall.go +++ b/resource-manager/network/2024-01-01/customipprefixes/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []CustomIPPrefix } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c CustomIPPrefixesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CustomIPPrefixesClient) ListAll(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/customIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2024-01-01/ddosprotectionplans/method_list.go b/resource-manager/network/2024-01-01/ddosprotectionplans/method_list.go index 4fee924e5b5..3862b150045 100644 --- a/resource-manager/network/2024-01-01/ddosprotectionplans/method_list.go +++ b/resource-manager/network/2024-01-01/ddosprotectionplans/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DdosProtectionPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DdosProtectionPlansClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DdosProtectionPlansClient) List(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ddosProtectionPlans", id.ID()), } diff --git a/resource-manager/network/2024-01-01/ddosprotectionplans/method_listbyresourcegroup.go b/resource-manager/network/2024-01-01/ddosprotectionplans/method_listbyresourcegroup.go index 25cfd986dac..0f9eecd1db7 100644 --- a/resource-manager/network/2024-01-01/ddosprotectionplans/method_listbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/ddosprotectionplans/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DdosProtectionPlan } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DdosProtectionPlansClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ddosProtectionPlans", id.ID()), } diff --git a/resource-manager/network/2024-01-01/dscpconfigurations/method_dscpconfigurationlist.go b/resource-manager/network/2024-01-01/dscpconfigurations/method_dscpconfigurationlist.go index 7cfa7438cce..c3e8d3869d4 100644 --- a/resource-manager/network/2024-01-01/dscpconfigurations/method_dscpconfigurationlist.go +++ b/resource-manager/network/2024-01-01/dscpconfigurations/method_dscpconfigurationlist.go @@ -24,6 +24,18 @@ type DscpConfigurationListCompleteResult struct { Items []DscpConfiguration } +type DscpConfigurationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DscpConfigurationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DscpConfigurationList ... func (c DscpConfigurationsClient) DscpConfigurationList(ctx context.Context, id commonids.ResourceGroupId) (result DscpConfigurationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DscpConfigurationsClient) DscpConfigurationList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DscpConfigurationListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/dscpConfigurations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/dscpconfigurations/method_dscpconfigurationlistall.go b/resource-manager/network/2024-01-01/dscpconfigurations/method_dscpconfigurationlistall.go index 78754cede6d..fe261147a6d 100644 --- a/resource-manager/network/2024-01-01/dscpconfigurations/method_dscpconfigurationlistall.go +++ b/resource-manager/network/2024-01-01/dscpconfigurations/method_dscpconfigurationlistall.go @@ -24,6 +24,18 @@ type DscpConfigurationListAllCompleteResult struct { Items []DscpConfiguration } +type DscpConfigurationListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DscpConfigurationListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DscpConfigurationListAll ... func (c DscpConfigurationsClient) DscpConfigurationListAll(ctx context.Context, id commonids.SubscriptionId) (result DscpConfigurationListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DscpConfigurationsClient) DscpConfigurationListAll(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DscpConfigurationListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/dscpConfigurations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/endpointservices/method_availableendpointserviceslist.go b/resource-manager/network/2024-01-01/endpointservices/method_availableendpointserviceslist.go index d1653d6f5bd..28193e5d9e7 100644 --- a/resource-manager/network/2024-01-01/endpointservices/method_availableendpointserviceslist.go +++ b/resource-manager/network/2024-01-01/endpointservices/method_availableendpointserviceslist.go @@ -23,6 +23,18 @@ type AvailableEndpointServicesListCompleteResult struct { Items []EndpointServiceResult } +type AvailableEndpointServicesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailableEndpointServicesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailableEndpointServicesList ... func (c EndpointServicesClient) AvailableEndpointServicesList(ctx context.Context, id LocationId) (result AvailableEndpointServicesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c EndpointServicesClient) AvailableEndpointServicesList(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailableEndpointServicesListCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkAvailableEndpointServices", id.ID()), } diff --git a/resource-manager/network/2024-01-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go b/resource-manager/network/2024-01-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go index 6e9e9491ca8..27f7b0349e2 100644 --- a/resource-manager/network/2024-01-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go +++ b/resource-manager/network/2024-01-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go @@ -26,6 +26,18 @@ type ExpressRouteCircuitsListArpTableCompleteResult struct { Items []ExpressRouteCircuitArpTable } +type ExpressRouteCircuitsListArpTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCircuitsListArpTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCircuitsListArpTable ... func (c ExpressRouteCircuitArpTableClient) ExpressRouteCircuitsListArpTable(ctx context.Context, id ArpTableId) (result ExpressRouteCircuitsListArpTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCircuitArpTableClient) ExpressRouteCircuitsListArpTable(ctx http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCircuitsListArpTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2024-01-01/expressroutecircuitauthorizations/method_list.go b/resource-manager/network/2024-01-01/expressroutecircuitauthorizations/method_list.go index a689b8d8595..b726cae911d 100644 --- a/resource-manager/network/2024-01-01/expressroutecircuitauthorizations/method_list.go +++ b/resource-manager/network/2024-01-01/expressroutecircuitauthorizations/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuitAuthorization } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, id ExpressRouteCircuitId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteCircuitAuthorizationsClient) List(ctx context.Context, id Ex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/authorizations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/expressroutecircuitconnections/method_list.go b/resource-manager/network/2024-01-01/expressroutecircuitconnections/method_list.go index 706c24c1571..bacd8586f75 100644 --- a/resource-manager/network/2024-01-01/expressroutecircuitconnections/method_list.go +++ b/resource-manager/network/2024-01-01/expressroutecircuitconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuitConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitConnectionsClient) List(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCircuitConnectionsClient) List(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/connections", id.ID()), } diff --git a/resource-manager/network/2024-01-01/expressroutecircuitpeerings/method_list.go b/resource-manager/network/2024-01-01/expressroutecircuitpeerings/method_list.go index 684b16dc8db..ec6d45b259f 100644 --- a/resource-manager/network/2024-01-01/expressroutecircuitpeerings/method_list.go +++ b/resource-manager/network/2024-01-01/expressroutecircuitpeerings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuitPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitPeeringsClient) List(ctx context.Context, id ExpressRouteCircuitId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteCircuitPeeringsClient) List(ctx context.Context, id ExpressR http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerings", id.ID()), } diff --git a/resource-manager/network/2024-01-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go b/resource-manager/network/2024-01-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go index 0d55eeb8353..d193f427f2f 100644 --- a/resource-manager/network/2024-01-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go +++ b/resource-manager/network/2024-01-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go @@ -26,6 +26,18 @@ type ExpressRouteCircuitsListRoutesTableCompleteResult struct { Items []ExpressRouteCircuitRoutesTable } +type ExpressRouteCircuitsListRoutesTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCircuitsListRoutesTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCircuitsListRoutesTable ... func (c ExpressRouteCircuitRoutesTableClient) ExpressRouteCircuitsListRoutesTable(ctx context.Context, id PeeringRouteTableId) (result ExpressRouteCircuitsListRoutesTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCircuitRoutesTableClient) ExpressRouteCircuitsListRoutesTabl http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCircuitsListRoutesTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2024-01-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go b/resource-manager/network/2024-01-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go index 200e1b6b1e8..0cd493a629e 100644 --- a/resource-manager/network/2024-01-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go +++ b/resource-manager/network/2024-01-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go @@ -26,6 +26,18 @@ type ExpressRouteCircuitsListRoutesTableSummaryCompleteResult struct { Items []ExpressRouteCircuitRoutesTableSummary } +type ExpressRouteCircuitsListRoutesTableSummaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCircuitsListRoutesTableSummaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCircuitsListRoutesTableSummary ... func (c ExpressRouteCircuitRoutesTableSummaryClient) ExpressRouteCircuitsListRoutesTableSummary(ctx context.Context, id RouteTablesSummaryId) (result ExpressRouteCircuitsListRoutesTableSummaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCircuitRoutesTableSummaryClient) ExpressRouteCircuitsListRou http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCircuitsListRoutesTableSummaryCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2024-01-01/expressroutecircuits/method_list.go b/resource-manager/network/2024-01-01/expressroutecircuits/method_list.go index 7b016449fdc..dae4c03fa04 100644 --- a/resource-manager/network/2024-01-01/expressroutecircuits/method_list.go +++ b/resource-manager/network/2024-01-01/expressroutecircuits/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteCircuit } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCircuitsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCircuitsClient) List(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCircuits", id.ID()), } diff --git a/resource-manager/network/2024-01-01/expressroutecircuits/method_listall.go b/resource-manager/network/2024-01-01/expressroutecircuits/method_listall.go index 0f6630e21c9..815e72b26ce 100644 --- a/resource-manager/network/2024-01-01/expressroutecircuits/method_listall.go +++ b/resource-manager/network/2024-01-01/expressroutecircuits/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []ExpressRouteCircuit } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c ExpressRouteCircuitsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCircuitsClient) ListAll(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCircuits", id.ID()), } diff --git a/resource-manager/network/2024-01-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go b/resource-manager/network/2024-01-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go index 93cb5d74c61..1aa7aed0b18 100644 --- a/resource-manager/network/2024-01-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go +++ b/resource-manager/network/2024-01-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go @@ -26,6 +26,18 @@ type ExpressRouteCrossConnectionsListArpTableCompleteResult struct { Items []ExpressRouteCircuitArpTable } +type ExpressRouteCrossConnectionsListArpTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCrossConnectionsListArpTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCrossConnectionsListArpTable ... func (c ExpressRouteCrossConnectionArpTableClient) ExpressRouteCrossConnectionsListArpTable(ctx context.Context, id PeeringArpTableId) (result ExpressRouteCrossConnectionsListArpTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCrossConnectionArpTableClient) ExpressRouteCrossConnectionsL http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCrossConnectionsListArpTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2024-01-01/expressroutecrossconnectionpeerings/method_list.go b/resource-manager/network/2024-01-01/expressroutecrossconnectionpeerings/method_list.go index fabd3a8adae..15747a19b47 100644 --- a/resource-manager/network/2024-01-01/expressroutecrossconnectionpeerings/method_list.go +++ b/resource-manager/network/2024-01-01/expressroutecrossconnectionpeerings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteCrossConnectionPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context, id ExpressRouteCrossConnectionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteCrossConnectionPeeringsClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerings", id.ID()), } diff --git a/resource-manager/network/2024-01-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go b/resource-manager/network/2024-01-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go index 75e866bbea7..ad01c57a508 100644 --- a/resource-manager/network/2024-01-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go +++ b/resource-manager/network/2024-01-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go @@ -26,6 +26,18 @@ type ExpressRouteCrossConnectionsListRoutesTableCompleteResult struct { Items []ExpressRouteCircuitRoutesTable } +type ExpressRouteCrossConnectionsListRoutesTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCrossConnectionsListRoutesTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCrossConnectionsListRoutesTable ... func (c ExpressRouteCrossConnectionRouteTableClient) ExpressRouteCrossConnectionsListRoutesTable(ctx context.Context, id ExpressRouteCrossConnectionPeeringRouteTableId) (result ExpressRouteCrossConnectionsListRoutesTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCrossConnectionRouteTableClient) ExpressRouteCrossConnection http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCrossConnectionsListRoutesTableCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2024-01-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go b/resource-manager/network/2024-01-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go index 06c63e507a1..64acafa8284 100644 --- a/resource-manager/network/2024-01-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go +++ b/resource-manager/network/2024-01-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go @@ -26,6 +26,18 @@ type ExpressRouteCrossConnectionsListRoutesTableSummaryCompleteResult struct { Items []ExpressRouteCrossConnectionRoutesTableSummary } +type ExpressRouteCrossConnectionsListRoutesTableSummaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExpressRouteCrossConnectionsListRoutesTableSummaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExpressRouteCrossConnectionsListRoutesTableSummary ... func (c ExpressRouteCrossConnectionRouteTableSummaryClient) ExpressRouteCrossConnectionsListRoutesTableSummary(ctx context.Context, id PeeringRouteTablesSummaryId) (result ExpressRouteCrossConnectionsListRoutesTableSummaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ExpressRouteCrossConnectionRouteTableSummaryClient) ExpressRouteCrossCon http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ExpressRouteCrossConnectionsListRoutesTableSummaryCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/network/2024-01-01/expressroutecrossconnections/method_list.go b/resource-manager/network/2024-01-01/expressroutecrossconnections/method_list.go index 7b85f881c69..af589ec0b8f 100644 --- a/resource-manager/network/2024-01-01/expressroutecrossconnections/method_list.go +++ b/resource-manager/network/2024-01-01/expressroutecrossconnections/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCrossConnections", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCrossConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/expressroutecrossconnections/method_listbyresourcegroup.go b/resource-manager/network/2024-01-01/expressroutecrossconnections/method_listbyresourcegroup.go index 77daf2aa898..f16b017a526 100644 --- a/resource-manager/network/2024-01-01/expressroutecrossconnections/method_listbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/expressroutecrossconnections/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ExpressRouteCrossConnection } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteCrossConnectionsClient) ListByResourceGroup(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCrossConnections", id.ID()), } diff --git a/resource-manager/network/2024-01-01/expressroutelinks/method_list.go b/resource-manager/network/2024-01-01/expressroutelinks/method_list.go index 80d16ff05a3..bfee432049c 100644 --- a/resource-manager/network/2024-01-01/expressroutelinks/method_list.go +++ b/resource-manager/network/2024-01-01/expressroutelinks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteLink } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteLinksClient) List(ctx context.Context, id ExpressRoutePortId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRouteLinksClient) List(ctx context.Context, id ExpressRoutePortId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/links", id.ID()), } diff --git a/resource-manager/network/2024-01-01/expressrouteportauthorizations/method_list.go b/resource-manager/network/2024-01-01/expressrouteportauthorizations/method_list.go index 7551539278a..66e64adc644 100644 --- a/resource-manager/network/2024-01-01/expressrouteportauthorizations/method_list.go +++ b/resource-manager/network/2024-01-01/expressrouteportauthorizations/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRoutePortAuthorization } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRoutePortAuthorizationsClient) List(ctx context.Context, id ExpressRoutePortId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ExpressRoutePortAuthorizationsClient) List(ctx context.Context, id Expre http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/authorizations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/expressrouteports/method_list.go b/resource-manager/network/2024-01-01/expressrouteports/method_list.go index 0daec47a467..6ad9fc7015f 100644 --- a/resource-manager/network/2024-01-01/expressrouteports/method_list.go +++ b/resource-manager/network/2024-01-01/expressrouteports/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRoutePort } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRoutePortsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRoutePortsClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePorts", id.ID()), } diff --git a/resource-manager/network/2024-01-01/expressrouteports/method_listbyresourcegroup.go b/resource-manager/network/2024-01-01/expressrouteports/method_listbyresourcegroup.go index 11c0c743535..ff3df3bfada 100644 --- a/resource-manager/network/2024-01-01/expressrouteports/method_listbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/expressrouteports/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ExpressRoutePort } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePorts", id.ID()), } diff --git a/resource-manager/network/2024-01-01/expressrouteportslocations/method_list.go b/resource-manager/network/2024-01-01/expressrouteportslocations/method_list.go index cdb1774aac9..32b0a19fa28 100644 --- a/resource-manager/network/2024-01-01/expressrouteportslocations/method_list.go +++ b/resource-manager/network/2024-01-01/expressrouteportslocations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRoutePortsLocation } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRoutePortsLocationsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRoutePortsLocationsClient) List(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePortsLocations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/expressrouteproviderports/method_locationlist.go b/resource-manager/network/2024-01-01/expressrouteproviderports/method_locationlist.go index 816e682da61..ad8f2e59e37 100644 --- a/resource-manager/network/2024-01-01/expressrouteproviderports/method_locationlist.go +++ b/resource-manager/network/2024-01-01/expressrouteproviderports/method_locationlist.go @@ -51,6 +51,18 @@ func (o LocationListOperationOptions) ToQuery() *client.QueryParams { return &out } +type LocationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LocationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LocationList ... func (c ExpressRouteProviderPortsClient) LocationList(ctx context.Context, id commonids.SubscriptionId, options LocationListOperationOptions) (result LocationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ExpressRouteProviderPortsClient) LocationList(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteProviderPorts", id.ID()), OptionsObject: options, + Pager: &LocationListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteProviderPorts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/expressrouteserviceproviders/method_list.go b/resource-manager/network/2024-01-01/expressrouteserviceproviders/method_list.go index 632d9f32454..e8d2935ffea 100644 --- a/resource-manager/network/2024-01-01/expressrouteserviceproviders/method_list.go +++ b/resource-manager/network/2024-01-01/expressrouteserviceproviders/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ExpressRouteServiceProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExpressRouteServiceProvidersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExpressRouteServiceProvidersClient) List(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteServiceProviders", id.ID()), } diff --git a/resource-manager/network/2024-01-01/firewallpolicies/method_get.go b/resource-manager/network/2024-01-01/firewallpolicies/method_get.go index 6d04656e020..2eee26d038a 100644 --- a/resource-manager/network/2024-01-01/firewallpolicies/method_get.go +++ b/resource-manager/network/2024-01-01/firewallpolicies/method_get.go @@ -53,8 +53,8 @@ func (c FirewallPoliciesClient) Get(ctx context.Context, id FirewallPolicyId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/firewallpolicies/method_list.go b/resource-manager/network/2024-01-01/firewallpolicies/method_list.go index efe3cd5f08b..84096e094ce 100644 --- a/resource-manager/network/2024-01-01/firewallpolicies/method_list.go +++ b/resource-manager/network/2024-01-01/firewallpolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []FirewallPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/firewallPolicies", id.ID()), } diff --git a/resource-manager/network/2024-01-01/firewallpolicies/method_listall.go b/resource-manager/network/2024-01-01/firewallpolicies/method_listall.go index 1984a126505..8b1106b1f8b 100644 --- a/resource-manager/network/2024-01-01/firewallpolicies/method_listall.go +++ b/resource-manager/network/2024-01-01/firewallpolicies/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []FirewallPolicy } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c FirewallPoliciesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FirewallPoliciesClient) ListAll(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/firewallPolicies", id.ID()), } diff --git a/resource-manager/network/2024-01-01/firewallpolicyrulecollectiongroups/method_list.go b/resource-manager/network/2024-01-01/firewallpolicyrulecollectiongroups/method_list.go index d65b94bc0f4..09dd83c8896 100644 --- a/resource-manager/network/2024-01-01/firewallpolicyrulecollectiongroups/method_list.go +++ b/resource-manager/network/2024-01-01/firewallpolicyrulecollectiongroups/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []FirewallPolicyRuleCollectionGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FirewallPolicyRuleCollectionGroupsClient) List(ctx context.Context, id FirewallPolicyId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallPolicyRuleCollectionGroupsClient) List(ctx context.Context, id F http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/ruleCollectionGroups", id.ID()), } diff --git a/resource-manager/network/2024-01-01/flowlogs/method_list.go b/resource-manager/network/2024-01-01/flowlogs/method_list.go index 9d5d0ccacbd..6652ea30f55 100644 --- a/resource-manager/network/2024-01-01/flowlogs/method_list.go +++ b/resource-manager/network/2024-01-01/flowlogs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []FlowLog } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FlowLogsClient) List(ctx context.Context, id NetworkWatcherId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FlowLogsClient) List(ctx context.Context, id NetworkWatcherId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/flowLogs", id.ID()), } diff --git a/resource-manager/network/2024-01-01/ipallocations/method_get.go b/resource-manager/network/2024-01-01/ipallocations/method_get.go index 6d8c674b8b8..ad7247cf495 100644 --- a/resource-manager/network/2024-01-01/ipallocations/method_get.go +++ b/resource-manager/network/2024-01-01/ipallocations/method_get.go @@ -53,8 +53,8 @@ func (c IPAllocationsClient) Get(ctx context.Context, id IPAllocationId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/ipallocations/method_list.go b/resource-manager/network/2024-01-01/ipallocations/method_list.go index bacc2ab4add..4fa34481651 100644 --- a/resource-manager/network/2024-01-01/ipallocations/method_list.go +++ b/resource-manager/network/2024-01-01/ipallocations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []IPAllocation } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IPAllocationsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPAllocationsClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipAllocations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/ipallocations/method_listbyresourcegroup.go b/resource-manager/network/2024-01-01/ipallocations/method_listbyresourcegroup.go index 4c81449cf9a..85abe9a21cd 100644 --- a/resource-manager/network/2024-01-01/ipallocations/method_listbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/ipallocations/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []IPAllocation } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c IPAllocationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPAllocationsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipAllocations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/ipgroups/method_get.go b/resource-manager/network/2024-01-01/ipgroups/method_get.go index c1a0a108f8e..b0d5717d963 100644 --- a/resource-manager/network/2024-01-01/ipgroups/method_get.go +++ b/resource-manager/network/2024-01-01/ipgroups/method_get.go @@ -53,8 +53,8 @@ func (c IPGroupsClient) Get(ctx context.Context, id IPGroupId, options GetOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/ipgroups/method_list.go b/resource-manager/network/2024-01-01/ipgroups/method_list.go index 08097f9cca2..76ec56d5990 100644 --- a/resource-manager/network/2024-01-01/ipgroups/method_list.go +++ b/resource-manager/network/2024-01-01/ipgroups/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []IPGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IPGroupsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPGroupsClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipGroups", id.ID()), } diff --git a/resource-manager/network/2024-01-01/ipgroups/method_listbyresourcegroup.go b/resource-manager/network/2024-01-01/ipgroups/method_listbyresourcegroup.go index 7b03ce9bb50..16ea08e273b 100644 --- a/resource-manager/network/2024-01-01/ipgroups/method_listbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/ipgroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []IPGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c IPGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/ipGroups", id.ID()), } diff --git a/resource-manager/network/2024-01-01/loadbalancers/method_get.go b/resource-manager/network/2024-01-01/loadbalancers/method_get.go index a183aa5c7ae..2cf9ca241b7 100644 --- a/resource-manager/network/2024-01-01/loadbalancers/method_get.go +++ b/resource-manager/network/2024-01-01/loadbalancers/method_get.go @@ -53,8 +53,8 @@ func (c LoadBalancersClient) Get(ctx context.Context, id ProviderLoadBalancerId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/loadbalancers/method_inboundnatrulesget.go b/resource-manager/network/2024-01-01/loadbalancers/method_inboundnatrulesget.go index 06666b1d382..92acfa0220b 100644 --- a/resource-manager/network/2024-01-01/loadbalancers/method_inboundnatrulesget.go +++ b/resource-manager/network/2024-01-01/loadbalancers/method_inboundnatrulesget.go @@ -53,8 +53,8 @@ func (c LoadBalancersClient) InboundNatRulesGet(ctx context.Context, id InboundN http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/loadbalancers/method_inboundnatruleslist.go b/resource-manager/network/2024-01-01/loadbalancers/method_inboundnatruleslist.go index 501c965bbf1..2bdb2af0a6e 100644 --- a/resource-manager/network/2024-01-01/loadbalancers/method_inboundnatruleslist.go +++ b/resource-manager/network/2024-01-01/loadbalancers/method_inboundnatruleslist.go @@ -23,6 +23,18 @@ type InboundNatRulesListCompleteResult struct { Items []InboundNatRule } +type InboundNatRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *InboundNatRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // InboundNatRulesList ... func (c LoadBalancersClient) InboundNatRulesList(ctx context.Context, id ProviderLoadBalancerId) (result InboundNatRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) InboundNatRulesList(ctx context.Context, id Provide http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &InboundNatRulesListCustomPager{}, Path: fmt.Sprintf("%s/inboundNatRules", id.ID()), } diff --git a/resource-manager/network/2024-01-01/loadbalancers/method_list.go b/resource-manager/network/2024-01-01/loadbalancers/method_list.go index 05419112689..74ca3569c7b 100644 --- a/resource-manager/network/2024-01-01/loadbalancers/method_list.go +++ b/resource-manager/network/2024-01-01/loadbalancers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []LoadBalancer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LoadBalancersClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LoadBalancersClient) List(ctx context.Context, id commonids.ResourceGrou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/loadBalancers", id.ID()), } diff --git a/resource-manager/network/2024-01-01/loadbalancers/method_listall.go b/resource-manager/network/2024-01-01/loadbalancers/method_listall.go index 25de9239c7f..74f6c49784a 100644 --- a/resource-manager/network/2024-01-01/loadbalancers/method_listall.go +++ b/resource-manager/network/2024-01-01/loadbalancers/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []LoadBalancer } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c LoadBalancersClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LoadBalancersClient) ListAll(ctx context.Context, id commonids.Subscript http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/loadBalancers", id.ID()), } diff --git a/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go b/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go index 1f9a88ad95f..42470d88640 100644 --- a/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go +++ b/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go @@ -23,6 +23,18 @@ type LoadBalancerBackendAddressPoolsListCompleteResult struct { Items []BackendAddressPool } +type LoadBalancerBackendAddressPoolsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerBackendAddressPoolsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerBackendAddressPoolsList ... func (c LoadBalancersClient) LoadBalancerBackendAddressPoolsList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerBackendAddressPoolsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerBackendAddressPoolsList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerBackendAddressPoolsListCustomPager{}, Path: fmt.Sprintf("%s/backendAddressPools", id.ID()), } diff --git a/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go b/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go index 976d076cacb..c0a472f598c 100644 --- a/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go +++ b/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go @@ -23,6 +23,18 @@ type LoadBalancerFrontendIPConfigurationsListCompleteResult struct { Items []FrontendIPConfiguration } +type LoadBalancerFrontendIPConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerFrontendIPConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerFrontendIPConfigurationsList ... func (c LoadBalancersClient) LoadBalancerFrontendIPConfigurationsList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerFrontendIPConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerFrontendIPConfigurationsList(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerFrontendIPConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/frontendIPConfigurations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go b/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go index be23a6c72db..e0c52282a3e 100644 --- a/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go +++ b/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go @@ -23,6 +23,18 @@ type LoadBalancerLoadBalancingRulesListCompleteResult struct { Items []LoadBalancingRule } +type LoadBalancerLoadBalancingRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerLoadBalancingRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerLoadBalancingRulesList ... func (c LoadBalancersClient) LoadBalancerLoadBalancingRulesList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerLoadBalancingRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerLoadBalancingRulesList(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerLoadBalancingRulesListCustomPager{}, Path: fmt.Sprintf("%s/loadBalancingRules", id.ID()), } diff --git a/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go b/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go index 5786d229c03..eed7f61c64b 100644 --- a/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go +++ b/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go @@ -23,6 +23,18 @@ type LoadBalancerNetworkInterfacesListCompleteResult struct { Items []NetworkInterface } +type LoadBalancerNetworkInterfacesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerNetworkInterfacesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerNetworkInterfacesList ... func (c LoadBalancersClient) LoadBalancerNetworkInterfacesList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerNetworkInterfacesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerNetworkInterfacesList(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerNetworkInterfacesListCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2024-01-01/loadbalancers/method_loadbalanceroutboundruleslist.go b/resource-manager/network/2024-01-01/loadbalancers/method_loadbalanceroutboundruleslist.go index 11f87c18d13..c522e068844 100644 --- a/resource-manager/network/2024-01-01/loadbalancers/method_loadbalanceroutboundruleslist.go +++ b/resource-manager/network/2024-01-01/loadbalancers/method_loadbalanceroutboundruleslist.go @@ -23,6 +23,18 @@ type LoadBalancerOutboundRulesListCompleteResult struct { Items []OutboundRule } +type LoadBalancerOutboundRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerOutboundRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerOutboundRulesList ... func (c LoadBalancersClient) LoadBalancerOutboundRulesList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerOutboundRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerOutboundRulesList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerOutboundRulesListCustomPager{}, Path: fmt.Sprintf("%s/outboundRules", id.ID()), } diff --git a/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerprobeslist.go b/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerprobeslist.go index 5146ba5bf79..c92e1df89f6 100644 --- a/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerprobeslist.go +++ b/resource-manager/network/2024-01-01/loadbalancers/method_loadbalancerprobeslist.go @@ -23,6 +23,18 @@ type LoadBalancerProbesListCompleteResult struct { Items []Probe } +type LoadBalancerProbesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LoadBalancerProbesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LoadBalancerProbesList ... func (c LoadBalancersClient) LoadBalancerProbesList(ctx context.Context, id ProviderLoadBalancerId) (result LoadBalancerProbesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LoadBalancersClient) LoadBalancerProbesList(ctx context.Context, id Prov http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LoadBalancerProbesListCustomPager{}, Path: fmt.Sprintf("%s/probes", id.ID()), } diff --git a/resource-manager/network/2024-01-01/localnetworkgateways/method_list.go b/resource-manager/network/2024-01-01/localnetworkgateways/method_list.go index 8a298cd52bc..528ccebe955 100644 --- a/resource-manager/network/2024-01-01/localnetworkgateways/method_list.go +++ b/resource-manager/network/2024-01-01/localnetworkgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []LocalNetworkGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LocalNetworkGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LocalNetworkGatewaysClient) List(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/localNetworkGateways", id.ID()), } diff --git a/resource-manager/network/2024-01-01/natgateways/method_get.go b/resource-manager/network/2024-01-01/natgateways/method_get.go index 43cb3094813..1360eae2873 100644 --- a/resource-manager/network/2024-01-01/natgateways/method_get.go +++ b/resource-manager/network/2024-01-01/natgateways/method_get.go @@ -53,8 +53,8 @@ func (c NatGatewaysClient) Get(ctx context.Context, id NatGatewayId, options Get http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/natgateways/method_list.go b/resource-manager/network/2024-01-01/natgateways/method_list.go index 1f8a5d1a76a..cf6c19572e2 100644 --- a/resource-manager/network/2024-01-01/natgateways/method_list.go +++ b/resource-manager/network/2024-01-01/natgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NatGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NatGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NatGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/natGateways", id.ID()), } diff --git a/resource-manager/network/2024-01-01/natgateways/method_listall.go b/resource-manager/network/2024-01-01/natgateways/method_listall.go index 69aeb402ae1..c417f6a9c19 100644 --- a/resource-manager/network/2024-01-01/natgateways/method_listall.go +++ b/resource-manager/network/2024-01-01/natgateways/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NatGateway } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NatGatewaysClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NatGatewaysClient) ListAll(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/natGateways", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkgroups/method_createorupdate.go b/resource-manager/network/2024-01-01/networkgroups/method_createorupdate.go index dcb392d1ae2..3ab74eeca37 100644 --- a/resource-manager/network/2024-01-01/networkgroups/method_createorupdate.go +++ b/resource-manager/network/2024-01-01/networkgroups/method_createorupdate.go @@ -54,8 +54,8 @@ func (c NetworkGroupsClient) CreateOrUpdate(ctx context.Context, id NetworkGroup http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkgroups/method_delete.go b/resource-manager/network/2024-01-01/networkgroups/method_delete.go index 567e0fb203a..452dbab57a9 100644 --- a/resource-manager/network/2024-01-01/networkgroups/method_delete.go +++ b/resource-manager/network/2024-01-01/networkgroups/method_delete.go @@ -57,8 +57,8 @@ func (c NetworkGroupsClient) Delete(ctx context.Context, id NetworkGroupId, opti http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkgroups/method_list.go b/resource-manager/network/2024-01-01/networkgroups/method_list.go index a802dbd08b3..cff4d8b0a7a 100644 --- a/resource-manager/network/2024-01-01/networkgroups/method_list.go +++ b/resource-manager/network/2024-01-01/networkgroups/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkGroupsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c NetworkGroupsClient) List(ctx context.Context, id NetworkManagerId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/networkGroups", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/networkGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_get.go b/resource-manager/network/2024-01-01/networkinterfaces/method_get.go index 14f4f1d8a0c..e1614af681d 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_get.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_get.go @@ -54,8 +54,8 @@ func (c NetworkInterfacesClient) Get(ctx context.Context, id commonids.NetworkIn http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_getcloudservicenetworkinterface.go b/resource-manager/network/2024-01-01/networkinterfaces/method_getcloudservicenetworkinterface.go index b828e37133d..7f7c58c444c 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_getcloudservicenetworkinterface.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_getcloudservicenetworkinterface.go @@ -53,8 +53,8 @@ func (c NetworkInterfacesClient) GetCloudServiceNetworkInterface(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_geteffectiveroutetable.go b/resource-manager/network/2024-01-01/networkinterfaces/method_geteffectiveroutetable.go index e64977d2735..34e568863a2 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_geteffectiveroutetable.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_geteffectiveroutetable.go @@ -27,6 +27,18 @@ type GetEffectiveRouteTableCompleteResult struct { Items []EffectiveRoute } +type GetEffectiveRouteTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetEffectiveRouteTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetEffectiveRouteTable ... func (c NetworkInterfacesClient) GetEffectiveRouteTable(ctx context.Context, id commonids.NetworkInterfaceId) (result GetEffectiveRouteTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c NetworkInterfacesClient) GetEffectiveRouteTable(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetEffectiveRouteTableCustomPager{}, Path: fmt.Sprintf("%s/effectiveRouteTable", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go b/resource-manager/network/2024-01-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go index c30d98304ca..7a3d2b45272 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go @@ -54,8 +54,8 @@ func (c NetworkInterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go b/resource-manager/network/2024-01-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go index 17ffc7f419c..1bef7a3da95 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go @@ -54,8 +54,8 @@ func (c NetworkInterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_list.go b/resource-manager/network/2024-01-01/networkinterfaces/method_list.go index 0cac5b10455..aba8bcae0a0 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_list.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkInterface } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkInterfacesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) List(ctx context.Context, id commonids.Resource http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_listall.go b/resource-manager/network/2024-01-01/networkinterfaces/method_listall.go index 4e462b5cfc1..aee96a1ced3 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_listall.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NetworkInterface } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NetworkInterfacesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) ListAll(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go b/resource-manager/network/2024-01-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go index e75341c2e34..7a16382102e 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go @@ -23,6 +23,18 @@ type ListCloudServiceNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListCloudServiceNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCloudServiceNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCloudServiceNetworkInterfaces ... func (c NetworkInterfacesClient) ListCloudServiceNetworkInterfaces(ctx context.Context, id ProviderCloudServiceId) (result ListCloudServiceNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListCloudServiceNetworkInterfaces(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCloudServiceNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go b/resource-manager/network/2024-01-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go index 107f550cde5..f4ae2efc987 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go @@ -23,6 +23,18 @@ type ListCloudServiceRoleInstanceNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListCloudServiceRoleInstanceNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCloudServiceRoleInstanceNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCloudServiceRoleInstanceNetworkInterfaces ... func (c NetworkInterfacesClient) ListCloudServiceRoleInstanceNetworkInterfaces(ctx context.Context, id RoleInstanceId) (result ListCloudServiceRoleInstanceNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListCloudServiceRoleInstanceNetworkInterfaces(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCloudServiceRoleInstanceNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go b/resource-manager/network/2024-01-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go index 50661e67194..8316911280d 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go @@ -27,6 +27,18 @@ type ListEffectiveNetworkSecurityGroupsCompleteResult struct { Items []EffectiveNetworkSecurityGroup } +type ListEffectiveNetworkSecurityGroupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListEffectiveNetworkSecurityGroupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListEffectiveNetworkSecurityGroups ... func (c NetworkInterfacesClient) ListEffectiveNetworkSecurityGroups(ctx context.Context, id commonids.NetworkInterfaceId) (result ListEffectiveNetworkSecurityGroupsOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c NetworkInterfacesClient) ListEffectiveNetworkSecurityGroups(ctx context. http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListEffectiveNetworkSecurityGroupsCustomPager{}, Path: fmt.Sprintf("%s/effectiveNetworkSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go b/resource-manager/network/2024-01-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go index eea33cc5ab0..a18bdaf08cf 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go @@ -51,6 +51,18 @@ func (o ListVirtualMachineScaleSetIPConfigurationsOperationOptions) ToQuery() *c return &out } +type ListVirtualMachineScaleSetIPConfigurationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetIPConfigurationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVirtualMachineScaleSetIPConfigurations ... func (c NetworkInterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx context.Context, id commonids.VirtualMachineScaleSetNetworkInterfaceId, options ListVirtualMachineScaleSetIPConfigurationsOperationOptions) (result ListVirtualMachineScaleSetIPConfigurationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkInterfacesClient) ListVirtualMachineScaleSetIPConfigurations(ctx http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), OptionsObject: options, + Pager: &ListVirtualMachineScaleSetIPConfigurationsCustomPager{}, + Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go b/resource-manager/network/2024-01-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go index 1b4ce2a6774..968b1c8bbd5 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go @@ -23,6 +23,18 @@ type ListVirtualMachineScaleSetNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListVirtualMachineScaleSetNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVirtualMachineScaleSetNetworkInterfaces ... func (c NetworkInterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx context.Context, id VirtualMachineScaleSetId) (result ListVirtualMachineScaleSetNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListVirtualMachineScaleSetNetworkInterfaces(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListVirtualMachineScaleSetNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go b/resource-manager/network/2024-01-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go index eaa548b7373..433357587d3 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go @@ -23,6 +23,18 @@ type ListVirtualMachineScaleSetVMNetworkInterfacesCompleteResult struct { Items []NetworkInterface } +type ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVirtualMachineScaleSetVMNetworkInterfaces ... func (c NetworkInterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(ctx context.Context, id VirtualMachineId) (result ListVirtualMachineScaleSetVMNetworkInterfacesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkInterfacesClient) ListVirtualMachineScaleSetVMNetworkInterfaces(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListVirtualMachineScaleSetVMNetworkInterfacesCustomPager{}, Path: fmt.Sprintf("%s/networkInterfaces", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go b/resource-manager/network/2024-01-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go index 2b472af0913..00a6c20f94c 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go @@ -24,6 +24,18 @@ type NetworkInterfaceIPConfigurationsListCompleteResult struct { Items []NetworkInterfaceIPConfiguration } +type NetworkInterfaceIPConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceIPConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkInterfaceIPConfigurationsList ... func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceIPConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsList(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceIPConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go b/resource-manager/network/2024-01-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go index 8ed1e84ef81..ee4b73b4d8d 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go @@ -24,6 +24,18 @@ type NetworkInterfaceLoadBalancersListCompleteResult struct { Items []LoadBalancer } +type NetworkInterfaceLoadBalancersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceLoadBalancersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkInterfaceLoadBalancersList ... func (c NetworkInterfacesClient) NetworkInterfaceLoadBalancersList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceLoadBalancersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) NetworkInterfaceLoadBalancersList(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceLoadBalancersListCustomPager{}, Path: fmt.Sprintf("%s/loadBalancers", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go b/resource-manager/network/2024-01-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go index 277fda0aa19..96b11107f62 100644 --- a/resource-manager/network/2024-01-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go +++ b/resource-manager/network/2024-01-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go @@ -24,6 +24,18 @@ type NetworkInterfaceTapConfigurationsListCompleteResult struct { Items []NetworkInterfaceTapConfiguration } +type NetworkInterfaceTapConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkInterfaceTapConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkInterfaceTapConfigurationsList ... func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsList(ctx context.Context, id commonids.NetworkInterfaceId) (result NetworkInterfaceTapConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsList(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkInterfaceTapConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/tapConfigurations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go b/resource-manager/network/2024-01-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go index ddec2f40123..3e9eb347a20 100644 --- a/resource-manager/network/2024-01-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go +++ b/resource-manager/network/2024-01-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go @@ -51,6 +51,18 @@ func (o ManagementGroupNetworkManagerConnectionsListOperationOptions) ToQuery() return &out } +type ManagementGroupNetworkManagerConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ManagementGroupNetworkManagerConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ManagementGroupNetworkManagerConnectionsList ... func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnectionsList(ctx context.Context, id commonids.ManagementGroupId, options ManagementGroupNetworkManagerConnectionsListOperationOptions) (result ManagementGroupNetworkManagerConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnection http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), OptionsObject: options, + Pager: &ManagementGroupNetworkManagerConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go b/resource-manager/network/2024-01-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go index 341b43a227d..ddf403e8a21 100644 --- a/resource-manager/network/2024-01-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go +++ b/resource-manager/network/2024-01-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go @@ -51,6 +51,18 @@ func (o SubscriptionNetworkManagerConnectionsListOperationOptions) ToQuery() *cl return &out } +type SubscriptionNetworkManagerConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SubscriptionNetworkManagerConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SubscriptionNetworkManagerConnectionsList ... func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsList(ctx context.Context, id commonids.SubscriptionId, options SubscriptionNetworkManagerConnectionsListOperationOptions) (result SubscriptionNetworkManagerConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsLi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), OptionsObject: options, + Pager: &SubscriptionNetworkManagerConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagerConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkmanagers/method_delete.go b/resource-manager/network/2024-01-01/networkmanagers/method_delete.go index ec825f20cb1..016216c8549 100644 --- a/resource-manager/network/2024-01-01/networkmanagers/method_delete.go +++ b/resource-manager/network/2024-01-01/networkmanagers/method_delete.go @@ -57,8 +57,8 @@ func (c NetworkManagersClient) Delete(ctx context.Context, id NetworkManagerId, http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkmanagers/method_list.go b/resource-manager/network/2024-01-01/networkmanagers/method_list.go index 18cca161414..86b71cf2d94 100644 --- a/resource-manager/network/2024-01-01/networkmanagers/method_list.go +++ b/resource-manager/network/2024-01-01/networkmanagers/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkManagersClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagersClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkmanagers/method_listbysubscription.go b/resource-manager/network/2024-01-01/networkmanagers/method_listbysubscription.go index 5faa4fab8b1..d45e89952b8 100644 --- a/resource-manager/network/2024-01-01/networkmanagers/method_listbysubscription.go +++ b/resource-manager/network/2024-01-01/networkmanagers/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c NetworkManagersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NetworkManagersClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkManagers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkprofiles/method_get.go b/resource-manager/network/2024-01-01/networkprofiles/method_get.go index 3b462d08204..13f98955470 100644 --- a/resource-manager/network/2024-01-01/networkprofiles/method_get.go +++ b/resource-manager/network/2024-01-01/networkprofiles/method_get.go @@ -53,8 +53,8 @@ func (c NetworkProfilesClient) Get(ctx context.Context, id NetworkProfileId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkprofiles/method_list.go b/resource-manager/network/2024-01-01/networkprofiles/method_list.go index 4adcbe6c116..e1bce2a2aa6 100644 --- a/resource-manager/network/2024-01-01/networkprofiles/method_list.go +++ b/resource-manager/network/2024-01-01/networkprofiles/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkProfile } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkProfilesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkProfilesClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkProfiles", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkprofiles/method_listall.go b/resource-manager/network/2024-01-01/networkprofiles/method_listall.go index 8d27928489b..c8509368cef 100644 --- a/resource-manager/network/2024-01-01/networkprofiles/method_listall.go +++ b/resource-manager/network/2024-01-01/networkprofiles/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NetworkProfile } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NetworkProfilesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkProfilesClient) ListAll(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkProfiles", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networksecuritygroups/method_get.go b/resource-manager/network/2024-01-01/networksecuritygroups/method_get.go index debc457321c..6ebe50d00e5 100644 --- a/resource-manager/network/2024-01-01/networksecuritygroups/method_get.go +++ b/resource-manager/network/2024-01-01/networksecuritygroups/method_get.go @@ -53,8 +53,8 @@ func (c NetworkSecurityGroupsClient) Get(ctx context.Context, id NetworkSecurity http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networksecuritygroups/method_list.go b/resource-manager/network/2024-01-01/networksecuritygroups/method_list.go index fb32dd8a5e9..8ebd9f83a71 100644 --- a/resource-manager/network/2024-01-01/networksecuritygroups/method_list.go +++ b/resource-manager/network/2024-01-01/networksecuritygroups/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkSecurityGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkSecurityGroupsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkSecurityGroupsClient) List(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networksecuritygroups/method_listall.go b/resource-manager/network/2024-01-01/networksecuritygroups/method_listall.go index 6e7c1adf74e..a6440c24150 100644 --- a/resource-manager/network/2024-01-01/networksecuritygroups/method_listall.go +++ b/resource-manager/network/2024-01-01/networksecuritygroups/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NetworkSecurityGroup } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NetworkSecurityGroupsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkSecurityGroupsClient) ListAll(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkSecurityGroups", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkvirtualappliances/method_get.go b/resource-manager/network/2024-01-01/networkvirtualappliances/method_get.go index ee11638f574..36076f68749 100644 --- a/resource-manager/network/2024-01-01/networkvirtualappliances/method_get.go +++ b/resource-manager/network/2024-01-01/networkvirtualappliances/method_get.go @@ -53,8 +53,8 @@ func (c NetworkVirtualAppliancesClient) Get(ctx context.Context, id NetworkVirtu http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/networkvirtualappliances/method_list.go b/resource-manager/network/2024-01-01/networkvirtualappliances/method_list.go index 8797c5f9720..35259c60e6a 100644 --- a/resource-manager/network/2024-01-01/networkvirtualappliances/method_list.go +++ b/resource-manager/network/2024-01-01/networkvirtualappliances/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkVirtualAppliance } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NetworkVirtualAppliancesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkVirtualAppliancesClient) List(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualAppliances", id.ID()), } diff --git a/resource-manager/network/2024-01-01/networkvirtualappliances/method_listbyresourcegroup.go b/resource-manager/network/2024-01-01/networkvirtualappliances/method_listbyresourcegroup.go index 4557de37925..fe63e8307c6 100644 --- a/resource-manager/network/2024-01-01/networkvirtualappliances/method_listbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/networkvirtualappliances/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []NetworkVirtualAppliance } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NetworkVirtualAppliancesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkVirtualAppliancesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualAppliances", id.ID()), } diff --git a/resource-manager/network/2024-01-01/peerexpressroutecircuitconnections/method_list.go b/resource-manager/network/2024-01-01/peerexpressroutecircuitconnections/method_list.go index f2724c37da1..34a9aaafbe4 100644 --- a/resource-manager/network/2024-01-01/peerexpressroutecircuitconnections/method_list.go +++ b/resource-manager/network/2024-01-01/peerexpressroutecircuitconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PeerExpressRouteCircuitConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, id commonids.ExpressRouteCircuitPeeringId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PeerExpressRouteCircuitConnectionsClient) List(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerConnections", id.ID()), } diff --git a/resource-manager/network/2024-01-01/privatednszonegroups/method_list.go b/resource-manager/network/2024-01-01/privatednszonegroups/method_list.go index 1f2c22a77bd..3abf08b87af 100644 --- a/resource-manager/network/2024-01-01/privatednszonegroups/method_list.go +++ b/resource-manager/network/2024-01-01/privatednszonegroups/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateDnsZoneGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateDnsZoneGroupsClient) List(ctx context.Context, id PrivateEndpointId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateDnsZoneGroupsClient) List(ctx context.Context, id PrivateEndpoint http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateDnsZoneGroups", id.ID()), } diff --git a/resource-manager/network/2024-01-01/privateendpoints/method_availableprivateendpointtypeslist.go b/resource-manager/network/2024-01-01/privateendpoints/method_availableprivateendpointtypeslist.go index 903cb43bbd7..f0c9af2990d 100644 --- a/resource-manager/network/2024-01-01/privateendpoints/method_availableprivateendpointtypeslist.go +++ b/resource-manager/network/2024-01-01/privateendpoints/method_availableprivateendpointtypeslist.go @@ -23,6 +23,18 @@ type AvailablePrivateEndpointTypesListCompleteResult struct { Items []AvailablePrivateEndpointType } +type AvailablePrivateEndpointTypesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailablePrivateEndpointTypesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailablePrivateEndpointTypesList ... func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesList(ctx context.Context, id LocationId) (result AvailablePrivateEndpointTypesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailablePrivateEndpointTypesListCustomPager{}, Path: fmt.Sprintf("%s/availablePrivateEndpointTypes", id.ID()), } diff --git a/resource-manager/network/2024-01-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go b/resource-manager/network/2024-01-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go index 2b24f418d5d..259ea902b1f 100644 --- a/resource-manager/network/2024-01-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go @@ -23,6 +23,18 @@ type AvailablePrivateEndpointTypesListByResourceGroupCompleteResult struct { Items []AvailablePrivateEndpointType } +type AvailablePrivateEndpointTypesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailablePrivateEndpointTypesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailablePrivateEndpointTypesListByResourceGroup ... func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListByResourceGroup(ctx context.Context, id ProviderLocationId) (result AvailablePrivateEndpointTypesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointsClient) AvailablePrivateEndpointTypesListByResourceGroup http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AvailablePrivateEndpointTypesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/availablePrivateEndpointTypes", id.ID()), } diff --git a/resource-manager/network/2024-01-01/privateendpoints/method_get.go b/resource-manager/network/2024-01-01/privateendpoints/method_get.go index 5f913d65fd2..80cad93eef6 100644 --- a/resource-manager/network/2024-01-01/privateendpoints/method_get.go +++ b/resource-manager/network/2024-01-01/privateendpoints/method_get.go @@ -53,8 +53,8 @@ func (c PrivateEndpointsClient) Get(ctx context.Context, id PrivateEndpointId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/privateendpoints/method_list.go b/resource-manager/network/2024-01-01/privateendpoints/method_list.go index 7d43eeb38d8..f832db84c7a 100644 --- a/resource-manager/network/2024-01-01/privateendpoints/method_list.go +++ b/resource-manager/network/2024-01-01/privateendpoints/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PrivateEndpoint } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateEndpointsClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateEndpoints", id.ID()), } diff --git a/resource-manager/network/2024-01-01/privateendpoints/method_listbysubscription.go b/resource-manager/network/2024-01-01/privateendpoints/method_listbysubscription.go index 229bfbb93bf..c517e23cdbf 100644 --- a/resource-manager/network/2024-01-01/privateendpoints/method_listbysubscription.go +++ b/resource-manager/network/2024-01-01/privateendpoints/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PrivateEndpoint } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PrivateEndpointsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateEndpointsClient) ListBySubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateEndpoints", id.ID()), } diff --git a/resource-manager/network/2024-01-01/privatelinkservices/method_get.go b/resource-manager/network/2024-01-01/privatelinkservices/method_get.go index cdd893b10fe..87bddc4d4aa 100644 --- a/resource-manager/network/2024-01-01/privatelinkservices/method_get.go +++ b/resource-manager/network/2024-01-01/privatelinkservices/method_get.go @@ -53,8 +53,8 @@ func (c PrivateLinkServicesClient) Get(ctx context.Context, id PrivateLinkServic http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/privatelinkservices/method_getprivateendpointconnection.go b/resource-manager/network/2024-01-01/privatelinkservices/method_getprivateendpointconnection.go index 1467bb48568..032d2076254 100644 --- a/resource-manager/network/2024-01-01/privatelinkservices/method_getprivateendpointconnection.go +++ b/resource-manager/network/2024-01-01/privatelinkservices/method_getprivateendpointconnection.go @@ -53,8 +53,8 @@ func (c PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/privatelinkservices/method_list.go b/resource-manager/network/2024-01-01/privatelinkservices/method_list.go index 81f52181d79..70140c6dc93 100644 --- a/resource-manager/network/2024-01-01/privatelinkservices/method_list.go +++ b/resource-manager/network/2024-01-01/privatelinkservices/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PrivateLinkService } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkServicesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkServicesClient) List(ctx context.Context, id commonids.Resour http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateLinkServices", id.ID()), } diff --git a/resource-manager/network/2024-01-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go b/resource-manager/network/2024-01-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go index 3da4d7f36f9..f3156a5739c 100644 --- a/resource-manager/network/2024-01-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go +++ b/resource-manager/network/2024-01-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go @@ -23,6 +23,18 @@ type ListAutoApprovedPrivateLinkServicesCompleteResult struct { Items []AutoApprovedPrivateLinkService } +type ListAutoApprovedPrivateLinkServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAutoApprovedPrivateLinkServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAutoApprovedPrivateLinkServices ... func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx context.Context, id LocationId) (result ListAutoApprovedPrivateLinkServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAutoApprovedPrivateLinkServicesCustomPager{}, Path: fmt.Sprintf("%s/autoApprovedPrivateLinkServices", id.ID()), } diff --git a/resource-manager/network/2024-01-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go b/resource-manager/network/2024-01-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go index 82767396e1d..91eed65255f 100644 --- a/resource-manager/network/2024-01-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go @@ -23,6 +23,18 @@ type ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteResult struct { Items []AutoApprovedPrivateLinkService } +type ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAutoApprovedPrivateLinkServicesByResourceGroup ... func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx context.Context, id ProviderLocationId) (result ListAutoApprovedPrivateLinkServicesByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResource http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/autoApprovedPrivateLinkServices", id.ID()), } diff --git a/resource-manager/network/2024-01-01/privatelinkservices/method_listbysubscription.go b/resource-manager/network/2024-01-01/privatelinkservices/method_listbysubscription.go index 226fcfd8bca..63f9d6bf9c6 100644 --- a/resource-manager/network/2024-01-01/privatelinkservices/method_listbysubscription.go +++ b/resource-manager/network/2024-01-01/privatelinkservices/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []PrivateLinkService } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c PrivateLinkServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkServicesClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateLinkServices", id.ID()), } diff --git a/resource-manager/network/2024-01-01/privatelinkservices/method_listprivateendpointconnections.go b/resource-manager/network/2024-01-01/privatelinkservices/method_listprivateendpointconnections.go index 2c8c0ae359a..c4742974fe5 100644 --- a/resource-manager/network/2024-01-01/privatelinkservices/method_listprivateendpointconnections.go +++ b/resource-manager/network/2024-01-01/privatelinkservices/method_listprivateendpointconnections.go @@ -23,6 +23,18 @@ type ListPrivateEndpointConnectionsCompleteResult struct { Items []PrivateEndpointConnection } +type ListPrivateEndpointConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPrivateEndpointConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPrivateEndpointConnections ... func (c PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx context.Context, id PrivateLinkServiceId) (result ListPrivateEndpointConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPrivateEndpointConnectionsCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/network/2024-01-01/publicipaddresses/method_get.go b/resource-manager/network/2024-01-01/publicipaddresses/method_get.go index c5f5e5e145e..7045aad8372 100644 --- a/resource-manager/network/2024-01-01/publicipaddresses/method_get.go +++ b/resource-manager/network/2024-01-01/publicipaddresses/method_get.go @@ -54,8 +54,8 @@ func (c PublicIPAddressesClient) Get(ctx context.Context, id commonids.PublicIPA http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/publicipaddresses/method_list.go b/resource-manager/network/2024-01-01/publicipaddresses/method_list.go index 9c8fb822580..013d0306760 100644 --- a/resource-manager/network/2024-01-01/publicipaddresses/method_list.go +++ b/resource-manager/network/2024-01-01/publicipaddresses/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PublicIPAddress } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PublicIPAddressesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPAddressesClient) List(ctx context.Context, id commonids.Resource http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2024-01-01/publicipaddresses/method_listall.go b/resource-manager/network/2024-01-01/publicipaddresses/method_listall.go index 81f1cf1ccf2..fc1c5ecc247 100644 --- a/resource-manager/network/2024-01-01/publicipaddresses/method_listall.go +++ b/resource-manager/network/2024-01-01/publicipaddresses/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []PublicIPAddress } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c PublicIPAddressesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPAddressesClient) ListAll(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2024-01-01/publicipprefixes/method_get.go b/resource-manager/network/2024-01-01/publicipprefixes/method_get.go index 099ab527016..15104f80613 100644 --- a/resource-manager/network/2024-01-01/publicipprefixes/method_get.go +++ b/resource-manager/network/2024-01-01/publicipprefixes/method_get.go @@ -53,8 +53,8 @@ func (c PublicIPPrefixesClient) Get(ctx context.Context, id PublicIPPrefixId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/publicipprefixes/method_list.go b/resource-manager/network/2024-01-01/publicipprefixes/method_list.go index c413af54862..122a9df6f37 100644 --- a/resource-manager/network/2024-01-01/publicipprefixes/method_list.go +++ b/resource-manager/network/2024-01-01/publicipprefixes/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PublicIPPrefix } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PublicIPPrefixesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPPrefixesClient) List(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2024-01-01/publicipprefixes/method_listall.go b/resource-manager/network/2024-01-01/publicipprefixes/method_listall.go index c140ae5d7bb..4c49b47b3fe 100644 --- a/resource-manager/network/2024-01-01/publicipprefixes/method_listall.go +++ b/resource-manager/network/2024-01-01/publicipprefixes/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []PublicIPPrefix } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c PublicIPPrefixesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PublicIPPrefixesClient) ListAll(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPPrefixes", id.ID()), } diff --git a/resource-manager/network/2024-01-01/routefilterrules/method_listbyroutefilter.go b/resource-manager/network/2024-01-01/routefilterrules/method_listbyroutefilter.go index 6e367988a54..5c0268dc0a5 100644 --- a/resource-manager/network/2024-01-01/routefilterrules/method_listbyroutefilter.go +++ b/resource-manager/network/2024-01-01/routefilterrules/method_listbyroutefilter.go @@ -23,6 +23,18 @@ type ListByRouteFilterCompleteResult struct { Items []RouteFilterRule } +type ListByRouteFilterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByRouteFilterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByRouteFilter ... func (c RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, id RouteFilterId) (result ListByRouteFilterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RouteFilterRulesClient) ListByRouteFilter(ctx context.Context, id RouteF http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByRouteFilterCustomPager{}, Path: fmt.Sprintf("%s/routeFilterRules", id.ID()), } diff --git a/resource-manager/network/2024-01-01/routefilters/method_get.go b/resource-manager/network/2024-01-01/routefilters/method_get.go index 55c6ee5fa8f..d44bd6d46b0 100644 --- a/resource-manager/network/2024-01-01/routefilters/method_get.go +++ b/resource-manager/network/2024-01-01/routefilters/method_get.go @@ -53,8 +53,8 @@ func (c RouteFiltersClient) Get(ctx context.Context, id RouteFilterId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/routefilters/method_list.go b/resource-manager/network/2024-01-01/routefilters/method_list.go index 934ec1fccd5..927387fb2da 100644 --- a/resource-manager/network/2024-01-01/routefilters/method_list.go +++ b/resource-manager/network/2024-01-01/routefilters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []RouteFilter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RouteFiltersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteFiltersClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeFilters", id.ID()), } diff --git a/resource-manager/network/2024-01-01/routefilters/method_listbyresourcegroup.go b/resource-manager/network/2024-01-01/routefilters/method_listbyresourcegroup.go index a320717ba09..256467e7de9 100644 --- a/resource-manager/network/2024-01-01/routefilters/method_listbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/routefilters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []RouteFilter } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c RouteFiltersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteFiltersClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeFilters", id.ID()), } diff --git a/resource-manager/network/2024-01-01/routes/method_list.go b/resource-manager/network/2024-01-01/routes/method_list.go index b54de6d4c7a..dddfb46f64c 100644 --- a/resource-manager/network/2024-01-01/routes/method_list.go +++ b/resource-manager/network/2024-01-01/routes/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Route } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RoutesClient) List(ctx context.Context, id RouteTableId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RoutesClient) List(ctx context.Context, id RouteTableId) (result ListOpe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/routes", id.ID()), } diff --git a/resource-manager/network/2024-01-01/routetables/method_get.go b/resource-manager/network/2024-01-01/routetables/method_get.go index 519ddb2364a..cb19ef16deb 100644 --- a/resource-manager/network/2024-01-01/routetables/method_get.go +++ b/resource-manager/network/2024-01-01/routetables/method_get.go @@ -53,8 +53,8 @@ func (c RouteTablesClient) Get(ctx context.Context, id RouteTableId, options Get http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/routetables/method_list.go b/resource-manager/network/2024-01-01/routetables/method_list.go index 2d99a93be80..c219fd770ef 100644 --- a/resource-manager/network/2024-01-01/routetables/method_list.go +++ b/resource-manager/network/2024-01-01/routetables/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []RouteTable } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RouteTablesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteTablesClient) List(ctx context.Context, id commonids.ResourceGroupI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeTables", id.ID()), } diff --git a/resource-manager/network/2024-01-01/routetables/method_listall.go b/resource-manager/network/2024-01-01/routetables/method_listall.go index 0b505ddf7dc..c3c8de7e20d 100644 --- a/resource-manager/network/2024-01-01/routetables/method_listall.go +++ b/resource-manager/network/2024-01-01/routetables/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []RouteTable } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c RouteTablesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RouteTablesClient) ListAll(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeTables", id.ID()), } diff --git a/resource-manager/network/2024-01-01/scopeconnections/method_list.go b/resource-manager/network/2024-01-01/scopeconnections/method_list.go index 4f298f36139..c819623c65e 100644 --- a/resource-manager/network/2024-01-01/scopeconnections/method_list.go +++ b/resource-manager/network/2024-01-01/scopeconnections/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScopeConnectionsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ScopeConnectionsClient) List(ctx context.Context, id NetworkManagerId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/scopeConnections", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/scopeConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/securityadminconfigurations/method_delete.go b/resource-manager/network/2024-01-01/securityadminconfigurations/method_delete.go index d08913b2c20..82087f7a71c 100644 --- a/resource-manager/network/2024-01-01/securityadminconfigurations/method_delete.go +++ b/resource-manager/network/2024-01-01/securityadminconfigurations/method_delete.go @@ -57,8 +57,8 @@ func (c SecurityAdminConfigurationsClient) Delete(ctx context.Context, id Securi http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/securityadminconfigurations/method_list.go b/resource-manager/network/2024-01-01/securityadminconfigurations/method_list.go index 4e0a2f41041..8fc4c2c91dc 100644 --- a/resource-manager/network/2024-01-01/securityadminconfigurations/method_list.go +++ b/resource-manager/network/2024-01-01/securityadminconfigurations/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityAdminConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SecurityAdminConfigurationsClient) List(ctx context.Context, id NetworkM http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/securityAdminConfigurations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/securityAdminConfigurations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/securitypartnerproviders/method_list.go b/resource-manager/network/2024-01-01/securitypartnerproviders/method_list.go index 2ef1d4133ba..9a4f5451680 100644 --- a/resource-manager/network/2024-01-01/securitypartnerproviders/method_list.go +++ b/resource-manager/network/2024-01-01/securitypartnerproviders/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecurityPartnerProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityPartnerProvidersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityPartnerProvidersClient) List(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/securityPartnerProviders", id.ID()), } diff --git a/resource-manager/network/2024-01-01/securitypartnerproviders/method_listbyresourcegroup.go b/resource-manager/network/2024-01-01/securitypartnerproviders/method_listbyresourcegroup.go index 5e7d3b8e25b..0616c919e32 100644 --- a/resource-manager/network/2024-01-01/securitypartnerproviders/method_listbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/securitypartnerproviders/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SecurityPartnerProvider } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityPartnerProvidersClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/securityPartnerProviders", id.ID()), } diff --git a/resource-manager/network/2024-01-01/securityrules/method_defaultsecurityruleslist.go b/resource-manager/network/2024-01-01/securityrules/method_defaultsecurityruleslist.go index 9c554b7a019..fbf92af5b89 100644 --- a/resource-manager/network/2024-01-01/securityrules/method_defaultsecurityruleslist.go +++ b/resource-manager/network/2024-01-01/securityrules/method_defaultsecurityruleslist.go @@ -23,6 +23,18 @@ type DefaultSecurityRulesListCompleteResult struct { Items []SecurityRule } +type DefaultSecurityRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DefaultSecurityRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DefaultSecurityRulesList ... func (c SecurityRulesClient) DefaultSecurityRulesList(ctx context.Context, id NetworkSecurityGroupId) (result DefaultSecurityRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SecurityRulesClient) DefaultSecurityRulesList(ctx context.Context, id Ne http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DefaultSecurityRulesListCustomPager{}, Path: fmt.Sprintf("%s/defaultSecurityRules", id.ID()), } diff --git a/resource-manager/network/2024-01-01/securityrules/method_list.go b/resource-manager/network/2024-01-01/securityrules/method_list.go index 791f88e26a1..73b4f2f1a16 100644 --- a/resource-manager/network/2024-01-01/securityrules/method_list.go +++ b/resource-manager/network/2024-01-01/securityrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SecurityRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityRulesClient) List(ctx context.Context, id NetworkSecurityGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SecurityRulesClient) List(ctx context.Context, id NetworkSecurityGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/securityRules", id.ID()), } diff --git a/resource-manager/network/2024-01-01/serviceendpointpolicies/method_get.go b/resource-manager/network/2024-01-01/serviceendpointpolicies/method_get.go index 4b9b1c2e323..8929b01c755 100644 --- a/resource-manager/network/2024-01-01/serviceendpointpolicies/method_get.go +++ b/resource-manager/network/2024-01-01/serviceendpointpolicies/method_get.go @@ -53,8 +53,8 @@ func (c ServiceEndpointPoliciesClient) Get(ctx context.Context, id ServiceEndpoi http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/serviceendpointpolicies/method_list.go b/resource-manager/network/2024-01-01/serviceendpointpolicies/method_list.go index 4c8118c4424..3a437224556 100644 --- a/resource-manager/network/2024-01-01/serviceendpointpolicies/method_list.go +++ b/resource-manager/network/2024-01-01/serviceendpointpolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ServiceEndpointPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServiceEndpointPoliciesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServiceEndpointPoliciesClient) List(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/serviceEndpointPolicies", id.ID()), } diff --git a/resource-manager/network/2024-01-01/serviceendpointpolicies/method_listbyresourcegroup.go b/resource-manager/network/2024-01-01/serviceendpointpolicies/method_listbyresourcegroup.go index 1e00f2516e2..384f7dc28fe 100644 --- a/resource-manager/network/2024-01-01/serviceendpointpolicies/method_listbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/serviceendpointpolicies/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ServiceEndpointPolicy } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/serviceEndpointPolicies", id.ID()), } diff --git a/resource-manager/network/2024-01-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go b/resource-manager/network/2024-01-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go index 17bb8bc3fc1..a4f79aa4d80 100644 --- a/resource-manager/network/2024-01-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go @@ -23,6 +23,18 @@ type ListByResourceGroupCompleteResult struct { Items []ServiceEndpointPolicyDefinition } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx context.Context, id ServiceEndpointPolicyId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServiceEndpointPolicyDefinitionsClient) ListByResourceGroup(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/serviceEndpointPolicyDefinitions", id.ID()), } diff --git a/resource-manager/network/2024-01-01/servicetags/method_servicetaginformationlist.go b/resource-manager/network/2024-01-01/servicetags/method_servicetaginformationlist.go index a1ec8327d54..7c6de375541 100644 --- a/resource-manager/network/2024-01-01/servicetags/method_servicetaginformationlist.go +++ b/resource-manager/network/2024-01-01/servicetags/method_servicetaginformationlist.go @@ -54,6 +54,18 @@ func (o ServiceTagInformationListOperationOptions) ToQuery() *client.QueryParams return &out } +type ServiceTagInformationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceTagInformationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceTagInformationList ... func (c ServiceTagsClient) ServiceTagInformationList(ctx context.Context, id LocationId, options ServiceTagInformationListOperationOptions) (result ServiceTagInformationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ServiceTagsClient) ServiceTagInformationList(ctx context.Context, id Loc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/serviceTagDetails", id.ID()), OptionsObject: options, + Pager: &ServiceTagInformationListCustomPager{}, + Path: fmt.Sprintf("%s/serviceTagDetails", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/staticmembers/method_list.go b/resource-manager/network/2024-01-01/staticmembers/method_list.go index fc087d77dc0..ac0788a5a34 100644 --- a/resource-manager/network/2024-01-01/staticmembers/method_list.go +++ b/resource-manager/network/2024-01-01/staticmembers/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StaticMembersClient) List(ctx context.Context, id NetworkGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c StaticMembersClient) List(ctx context.Context, id NetworkGroupId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/staticMembers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/staticMembers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/subnets/method_get.go b/resource-manager/network/2024-01-01/subnets/method_get.go index f43b6e2df8f..d77795ad632 100644 --- a/resource-manager/network/2024-01-01/subnets/method_get.go +++ b/resource-manager/network/2024-01-01/subnets/method_get.go @@ -54,8 +54,8 @@ func (c SubnetsClient) Get(ctx context.Context, id commonids.SubnetId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/subnets/method_list.go b/resource-manager/network/2024-01-01/subnets/method_list.go index 9d636728719..b9424e85280 100644 --- a/resource-manager/network/2024-01-01/subnets/method_list.go +++ b/resource-manager/network/2024-01-01/subnets/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Subnet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SubnetsClient) List(ctx context.Context, id commonids.VirtualNetworkId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SubnetsClient) List(ctx context.Context, id commonids.VirtualNetworkId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/subnets", id.ID()), } diff --git a/resource-manager/network/2024-01-01/usages/method_list.go b/resource-manager/network/2024-01-01/usages/method_list.go index 6f4166f6dfc..76d13699e0c 100644 --- a/resource-manager/network/2024-01-01/usages/method_list.go +++ b/resource-manager/network/2024-01-01/usages/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Usage } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UsagesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c UsagesClient) List(ctx context.Context, id LocationId) (result ListOpera http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualappliancesites/method_list.go b/resource-manager/network/2024-01-01/virtualappliancesites/method_list.go index b8a9fc0c70b..ed83c3497ea 100644 --- a/resource-manager/network/2024-01-01/virtualappliancesites/method_list.go +++ b/resource-manager/network/2024-01-01/virtualappliancesites/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualApplianceSite } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualApplianceSitesClient) List(ctx context.Context, id NetworkVirtualApplianceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualApplianceSitesClient) List(ctx context.Context, id NetworkVirtual http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/virtualApplianceSites", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualapplianceskus/method_list.go b/resource-manager/network/2024-01-01/virtualapplianceskus/method_list.go index 1e8f39f7e10..a4af9a60bb6 100644 --- a/resource-manager/network/2024-01-01/virtualapplianceskus/method_list.go +++ b/resource-manager/network/2024-01-01/virtualapplianceskus/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NetworkVirtualApplianceSku } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualApplianceSkusClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualApplianceSkusClient) List(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkVirtualApplianceSkus", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualnetworkgatewayconnections/method_list.go b/resource-manager/network/2024-01-01/virtualnetworkgatewayconnections/method_list.go index 6c9d02a4538..34dc525dce4 100644 --- a/resource-manager/network/2024-01-01/virtualnetworkgatewayconnections/method_list.go +++ b/resource-manager/network/2024-01-01/virtualnetworkgatewayconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetworkGatewayConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/connections", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualnetworkgateways/method_getadvertisedroutes.go b/resource-manager/network/2024-01-01/virtualnetworkgateways/method_getadvertisedroutes.go index 81a82f3fee4..d0dde50a8c6 100644 --- a/resource-manager/network/2024-01-01/virtualnetworkgateways/method_getadvertisedroutes.go +++ b/resource-manager/network/2024-01-01/virtualnetworkgateways/method_getadvertisedroutes.go @@ -57,8 +57,8 @@ func (c VirtualNetworkGatewaysClient) GetAdvertisedRoutes(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getAdvertisedRoutes", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getAdvertisedRoutes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/virtualnetworkgateways/method_getbgppeerstatus.go b/resource-manager/network/2024-01-01/virtualnetworkgateways/method_getbgppeerstatus.go index f8e0d0d0aae..5e6a04ac485 100644 --- a/resource-manager/network/2024-01-01/virtualnetworkgateways/method_getbgppeerstatus.go +++ b/resource-manager/network/2024-01-01/virtualnetworkgateways/method_getbgppeerstatus.go @@ -57,8 +57,8 @@ func (c VirtualNetworkGatewaysClient) GetBgpPeerStatus(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getBgpPeerStatus", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getBgpPeerStatus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/virtualnetworkgateways/method_list.go b/resource-manager/network/2024-01-01/virtualnetworkgateways/method_list.go index 71bb6d6e8be..8266a51728d 100644 --- a/resource-manager/network/2024-01-01/virtualnetworkgateways/method_list.go +++ b/resource-manager/network/2024-01-01/virtualnetworkgateways/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetworkGateway } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworkGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkGatewaysClient) List(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworkGateways", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualnetworkgateways/method_listconnections.go b/resource-manager/network/2024-01-01/virtualnetworkgateways/method_listconnections.go index 11416dae415..2f13ca7b97c 100644 --- a/resource-manager/network/2024-01-01/virtualnetworkgateways/method_listconnections.go +++ b/resource-manager/network/2024-01-01/virtualnetworkgateways/method_listconnections.go @@ -23,6 +23,18 @@ type ListConnectionsCompleteResult struct { Items []VirtualNetworkGatewayConnectionListEntity } +type ListConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConnections ... func (c VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, id VirtualNetworkGatewayId) (result ListConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualNetworkGatewaysClient) ListConnections(ctx context.Context, id Vi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConnectionsCustomPager{}, Path: fmt.Sprintf("%s/connections", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualnetworkgateways/method_reset.go b/resource-manager/network/2024-01-01/virtualnetworkgateways/method_reset.go index d766e3f0c62..433a2126e07 100644 --- a/resource-manager/network/2024-01-01/virtualnetworkgateways/method_reset.go +++ b/resource-manager/network/2024-01-01/virtualnetworkgateways/method_reset.go @@ -57,8 +57,8 @@ func (c VirtualNetworkGatewaysClient) Reset(ctx context.Context, id VirtualNetwo http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/reset", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/reset", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go b/resource-manager/network/2024-01-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go index 9fc49217e2c..ce8ee5c4965 100644 --- a/resource-manager/network/2024-01-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go +++ b/resource-manager/network/2024-01-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go @@ -23,6 +23,18 @@ type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCompleteResult stru Items []VirtualNetworkGatewayNatRule } +type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway ... func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway(ctx context.Context, id VirtualNetworkGatewayId) (result VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesListByVirtual http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayCustomPager{}, Path: fmt.Sprintf("%s/natRules", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualnetworkpeerings/method_createorupdate.go b/resource-manager/network/2024-01-01/virtualnetworkpeerings/method_createorupdate.go index e7fcc91436e..aba174940d2 100644 --- a/resource-manager/network/2024-01-01/virtualnetworkpeerings/method_createorupdate.go +++ b/resource-manager/network/2024-01-01/virtualnetworkpeerings/method_createorupdate.go @@ -57,8 +57,8 @@ func (c VirtualNetworkPeeringsClient) CreateOrUpdate(ctx context.Context, id Vir http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/virtualnetworkpeerings/method_list.go b/resource-manager/network/2024-01-01/virtualnetworkpeerings/method_list.go index 614ef8d907f..a18c0885cc9 100644 --- a/resource-manager/network/2024-01-01/virtualnetworkpeerings/method_list.go +++ b/resource-manager/network/2024-01-01/virtualnetworkpeerings/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetworkPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworkPeeringsClient) List(ctx context.Context, id commonids.VirtualNetworkId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkPeeringsClient) List(ctx context.Context, id commonids.Vir http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkPeerings", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualnetworks/method_get.go b/resource-manager/network/2024-01-01/virtualnetworks/method_get.go index e40ab49ec8e..189fd2689c1 100644 --- a/resource-manager/network/2024-01-01/virtualnetworks/method_get.go +++ b/resource-manager/network/2024-01-01/virtualnetworks/method_get.go @@ -54,8 +54,8 @@ func (c VirtualNetworksClient) Get(ctx context.Context, id commonids.VirtualNetw http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/virtualnetworks/method_list.go b/resource-manager/network/2024-01-01/virtualnetworks/method_list.go index 9162506d2da..e540706223a 100644 --- a/resource-manager/network/2024-01-01/virtualnetworks/method_list.go +++ b/resource-manager/network/2024-01-01/virtualnetworks/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualNetwork } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworksClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) List(ctx context.Context, id commonids.ResourceGr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworks", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualnetworks/method_listall.go b/resource-manager/network/2024-01-01/virtualnetworks/method_listall.go index 06795ae6091..e91f96c1cf3 100644 --- a/resource-manager/network/2024-01-01/virtualnetworks/method_listall.go +++ b/resource-manager/network/2024-01-01/virtualnetworks/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []VirtualNetwork } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualNetworksClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ListAll(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworks", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualnetworks/method_resourcenavigationlinkslist.go b/resource-manager/network/2024-01-01/virtualnetworks/method_resourcenavigationlinkslist.go index 9a0b9b15f44..16f353bcd4e 100644 --- a/resource-manager/network/2024-01-01/virtualnetworks/method_resourcenavigationlinkslist.go +++ b/resource-manager/network/2024-01-01/virtualnetworks/method_resourcenavigationlinkslist.go @@ -24,6 +24,18 @@ type ResourceNavigationLinksListCompleteResult struct { Items []ResourceNavigationLink } +type ResourceNavigationLinksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourceNavigationLinksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourceNavigationLinksList ... func (c VirtualNetworksClient) ResourceNavigationLinksList(ctx context.Context, id commonids.SubnetId) (result ResourceNavigationLinksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ResourceNavigationLinksList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ResourceNavigationLinksListCustomPager{}, Path: fmt.Sprintf("%s/resourceNavigationLinks", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualnetworks/method_serviceassociationlinkslist.go b/resource-manager/network/2024-01-01/virtualnetworks/method_serviceassociationlinkslist.go index 5d6fbf0b927..c246c98a15b 100644 --- a/resource-manager/network/2024-01-01/virtualnetworks/method_serviceassociationlinkslist.go +++ b/resource-manager/network/2024-01-01/virtualnetworks/method_serviceassociationlinkslist.go @@ -24,6 +24,18 @@ type ServiceAssociationLinksListCompleteResult struct { Items []ServiceAssociationLink } +type ServiceAssociationLinksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServiceAssociationLinksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServiceAssociationLinksList ... func (c VirtualNetworksClient) ServiceAssociationLinksList(ctx context.Context, id commonids.SubnetId) (result ServiceAssociationLinksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ServiceAssociationLinksList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServiceAssociationLinksListCustomPager{}, Path: fmt.Sprintf("%s/serviceAssociationLinks", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go b/resource-manager/network/2024-01-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go index 85ba4d73ccd..1f434189786 100644 --- a/resource-manager/network/2024-01-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go +++ b/resource-manager/network/2024-01-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go @@ -54,8 +54,8 @@ func (c VirtualNetworksClient) VirtualNetworksCheckIPAddressAvailability(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/checkIPAddressAvailability", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/checkIPAddressAvailability", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go b/resource-manager/network/2024-01-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go index c0872952086..d48736807d5 100644 --- a/resource-manager/network/2024-01-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go +++ b/resource-manager/network/2024-01-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go @@ -58,6 +58,18 @@ func (o VirtualNetworksListDdosProtectionStatusOperationOptions) ToQuery() *clie return &out } +type VirtualNetworksListDdosProtectionStatusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworksListDdosProtectionStatusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualNetworksListDdosProtectionStatus ... func (c VirtualNetworksClient) VirtualNetworksListDdosProtectionStatus(ctx context.Context, id commonids.VirtualNetworkId, options VirtualNetworksListDdosProtectionStatusOperationOptions) (result VirtualNetworksListDdosProtectionStatusOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c VirtualNetworksClient) VirtualNetworksListDdosProtectionStatus(ctx conte http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/ddosProtectionStatus", id.ID()), OptionsObject: options, + Pager: &VirtualNetworksListDdosProtectionStatusCustomPager{}, + Path: fmt.Sprintf("%s/ddosProtectionStatus", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/virtualnetworks/method_virtualnetworkslistusage.go b/resource-manager/network/2024-01-01/virtualnetworks/method_virtualnetworkslistusage.go index 546a8bbc316..cfc1a239a93 100644 --- a/resource-manager/network/2024-01-01/virtualnetworks/method_virtualnetworkslistusage.go +++ b/resource-manager/network/2024-01-01/virtualnetworks/method_virtualnetworkslistusage.go @@ -24,6 +24,18 @@ type VirtualNetworksListUsageCompleteResult struct { Items []VirtualNetworkUsage } +type VirtualNetworksListUsageCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualNetworksListUsageCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualNetworksListUsage ... func (c VirtualNetworksClient) VirtualNetworksListUsage(ctx context.Context, id commonids.VirtualNetworkId) (result VirtualNetworksListUsageOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) VirtualNetworksListUsage(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualNetworksListUsageCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualnetworktaps/method_listall.go b/resource-manager/network/2024-01-01/virtualnetworktaps/method_listall.go index aba7596749e..c73f4d2a3eb 100644 --- a/resource-manager/network/2024-01-01/virtualnetworktaps/method_listall.go +++ b/resource-manager/network/2024-01-01/virtualnetworktaps/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []VirtualNetworkTap } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c VirtualNetworkTapsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkTapsClient) ListAll(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworkTaps", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualnetworktaps/method_listbyresourcegroup.go b/resource-manager/network/2024-01-01/virtualnetworktaps/method_listbyresourcegroup.go index 7377c5f3294..91d504091c5 100644 --- a/resource-manager/network/2024-01-01/virtualnetworktaps/method_listbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/virtualnetworktaps/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualNetworkTap } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkTapsClient) ListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualNetworkTaps", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualrouterpeerings/method_list.go b/resource-manager/network/2024-01-01/virtualrouterpeerings/method_list.go index c0a333e6c0d..276300c6796 100644 --- a/resource-manager/network/2024-01-01/virtualrouterpeerings/method_list.go +++ b/resource-manager/network/2024-01-01/virtualrouterpeerings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualRouterPeering } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualRouterPeeringsClient) List(ctx context.Context, id VirtualRouterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualRouterPeeringsClient) List(ctx context.Context, id VirtualRouterI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/peerings", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualrouters/method_get.go b/resource-manager/network/2024-01-01/virtualrouters/method_get.go index 2e829ce071e..39415fad17f 100644 --- a/resource-manager/network/2024-01-01/virtualrouters/method_get.go +++ b/resource-manager/network/2024-01-01/virtualrouters/method_get.go @@ -53,8 +53,8 @@ func (c VirtualRoutersClient) Get(ctx context.Context, id VirtualRouterId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/virtualrouters/method_list.go b/resource-manager/network/2024-01-01/virtualrouters/method_list.go index db67e56568e..414434d4b95 100644 --- a/resource-manager/network/2024-01-01/virtualrouters/method_list.go +++ b/resource-manager/network/2024-01-01/virtualrouters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualRouter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualRoutersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualRoutersClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualRouters", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualrouters/method_listbyresourcegroup.go b/resource-manager/network/2024-01-01/virtualrouters/method_listbyresourcegroup.go index 9f01dcc539a..b34c6e266b7 100644 --- a/resource-manager/network/2024-01-01/virtualrouters/method_listbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/virtualrouters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualRouter } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualRoutersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualRoutersClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualRouters", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go b/resource-manager/network/2024-01-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go index 4d60c8f1419..d8055521e53 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go @@ -23,6 +23,18 @@ type ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteResult struct Items []VpnServerConfigurationPolicyGroup } +type ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationPolicyGroupsListByVpnServerConfiguration ... func (c VirtualWANsClient) ConfigurationPolicyGroupsListByVpnServerConfiguration(ctx context.Context, id VpnServerConfigurationId) (result ConfigurationPolicyGroupsListByVpnServerConfigurationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) ConfigurationPolicyGroupsListByVpnServerConfiguration http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager{}, Path: fmt.Sprintf("%s/configurationPolicyGroups", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_hubroutetableslist.go b/resource-manager/network/2024-01-01/virtualwans/method_hubroutetableslist.go index e95318b1194..d36631c9289 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_hubroutetableslist.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_hubroutetableslist.go @@ -23,6 +23,18 @@ type HubRouteTablesListCompleteResult struct { Items []HubRouteTable } +type HubRouteTablesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HubRouteTablesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // HubRouteTablesList ... func (c VirtualWANsClient) HubRouteTablesList(ctx context.Context, id VirtualHubId) (result HubRouteTablesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) HubRouteTablesList(ctx context.Context, id VirtualHub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &HubRouteTablesListCustomPager{}, Path: fmt.Sprintf("%s/hubRouteTables", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_hubvirtualnetworkconnectionslist.go b/resource-manager/network/2024-01-01/virtualwans/method_hubvirtualnetworkconnectionslist.go index baf9dedf27b..9ba166e19d8 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_hubvirtualnetworkconnectionslist.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_hubvirtualnetworkconnectionslist.go @@ -23,6 +23,18 @@ type HubVirtualNetworkConnectionsListCompleteResult struct { Items []HubVirtualNetworkConnection } +type HubVirtualNetworkConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HubVirtualNetworkConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // HubVirtualNetworkConnectionsList ... func (c VirtualWANsClient) HubVirtualNetworkConnectionsList(ctx context.Context, id VirtualHubId) (result HubVirtualNetworkConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) HubVirtualNetworkConnectionsList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &HubVirtualNetworkConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/hubVirtualNetworkConnections", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_natruleslistbyvpngateway.go b/resource-manager/network/2024-01-01/virtualwans/method_natruleslistbyvpngateway.go index 7c30bd1de6f..e5393de1385 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_natruleslistbyvpngateway.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_natruleslistbyvpngateway.go @@ -23,6 +23,18 @@ type NatRulesListByVpnGatewayCompleteResult struct { Items []VpnGatewayNatRule } +type NatRulesListByVpnGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NatRulesListByVpnGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NatRulesListByVpnGateway ... func (c VirtualWANsClient) NatRulesListByVpnGateway(ctx context.Context, id VpnGatewayId) (result NatRulesListByVpnGatewayOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) NatRulesListByVpnGateway(ctx context.Context, id VpnG http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NatRulesListByVpnGatewayCustomPager{}, Path: fmt.Sprintf("%s/natRules", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_networkvirtualapplianceconnectionslist.go b/resource-manager/network/2024-01-01/virtualwans/method_networkvirtualapplianceconnectionslist.go index e3ef913c529..72b22855ec4 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_networkvirtualapplianceconnectionslist.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_networkvirtualapplianceconnectionslist.go @@ -23,6 +23,18 @@ type NetworkVirtualApplianceConnectionsListCompleteResult struct { Items []NetworkVirtualApplianceConnection } +type NetworkVirtualApplianceConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkVirtualApplianceConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkVirtualApplianceConnectionsList ... func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsList(ctx context.Context, id NetworkVirtualApplianceId) (result NetworkVirtualApplianceConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsList(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkVirtualApplianceConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/networkVirtualApplianceConnections", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_p2svpngatewayslist.go b/resource-manager/network/2024-01-01/virtualwans/method_p2svpngatewayslist.go index fff4e439357..b51053de49e 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_p2svpngatewayslist.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_p2svpngatewayslist.go @@ -24,6 +24,18 @@ type P2sVpnGatewaysListCompleteResult struct { Items []P2SVpnGateway } +type P2sVpnGatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *P2sVpnGatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // P2sVpnGatewaysList ... func (c VirtualWANsClient) P2sVpnGatewaysList(ctx context.Context, id commonids.SubscriptionId) (result P2sVpnGatewaysListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) P2sVpnGatewaysList(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &P2sVpnGatewaysListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/p2sVpnGateways", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go b/resource-manager/network/2024-01-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go index 0224c82328e..1c57fc684fa 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go @@ -24,6 +24,18 @@ type P2sVpnGatewaysListByResourceGroupCompleteResult struct { Items []P2SVpnGateway } +type P2sVpnGatewaysListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *P2sVpnGatewaysListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // P2sVpnGatewaysListByResourceGroup ... func (c VirtualWANsClient) P2sVpnGatewaysListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result P2sVpnGatewaysListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) P2sVpnGatewaysListByResourceGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &P2sVpnGatewaysListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/p2sVpnGateways", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_routemapslist.go b/resource-manager/network/2024-01-01/virtualwans/method_routemapslist.go index 3def8ca78d2..a9eddc11d95 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_routemapslist.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_routemapslist.go @@ -23,6 +23,18 @@ type RouteMapsListCompleteResult struct { Items []RouteMap } +type RouteMapsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RouteMapsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RouteMapsList ... func (c VirtualWANsClient) RouteMapsList(ctx context.Context, id VirtualHubId) (result RouteMapsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) RouteMapsList(ctx context.Context, id VirtualHubId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RouteMapsListCustomPager{}, Path: fmt.Sprintf("%s/routeMaps", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_routingintentlist.go b/resource-manager/network/2024-01-01/virtualwans/method_routingintentlist.go index ef858aa2b50..b3edd99b519 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_routingintentlist.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_routingintentlist.go @@ -23,6 +23,18 @@ type RoutingIntentListCompleteResult struct { Items []RoutingIntent } +type RoutingIntentListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RoutingIntentListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RoutingIntentList ... func (c VirtualWANsClient) RoutingIntentList(ctx context.Context, id VirtualHubId) (result RoutingIntentListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) RoutingIntentList(ctx context.Context, id VirtualHubI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RoutingIntentListCustomPager{}, Path: fmt.Sprintf("%s/routingIntent", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_virtualhubbgpconnectionslist.go b/resource-manager/network/2024-01-01/virtualwans/method_virtualhubbgpconnectionslist.go index c4b5ea29e18..802bf0b65b9 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_virtualhubbgpconnectionslist.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_virtualhubbgpconnectionslist.go @@ -23,6 +23,18 @@ type VirtualHubBgpConnectionsListCompleteResult struct { Items []BgpConnection } +type VirtualHubBgpConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubBgpConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubBgpConnectionsList ... func (c VirtualWANsClient) VirtualHubBgpConnectionsList(ctx context.Context, id VirtualHubId) (result VirtualHubBgpConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VirtualHubBgpConnectionsList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubBgpConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/bgpConnections", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_virtualhubipconfigurationlist.go b/resource-manager/network/2024-01-01/virtualwans/method_virtualhubipconfigurationlist.go index c3fa2ae6e69..8ae13b9fb7d 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_virtualhubipconfigurationlist.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_virtualhubipconfigurationlist.go @@ -23,6 +23,18 @@ type VirtualHubIPConfigurationListCompleteResult struct { Items []HubIPConfiguration } +type VirtualHubIPConfigurationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubIPConfigurationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubIPConfigurationList ... func (c VirtualWANsClient) VirtualHubIPConfigurationList(ctx context.Context, id VirtualHubId) (result VirtualHubIPConfigurationListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VirtualHubIPConfigurationList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubIPConfigurationListCustomPager{}, Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_virtualhubroutetablev2slist.go b/resource-manager/network/2024-01-01/virtualwans/method_virtualhubroutetablev2slist.go index 1687bef7d4c..cf9c9ef61a3 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_virtualhubroutetablev2slist.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_virtualhubroutetablev2slist.go @@ -23,6 +23,18 @@ type VirtualHubRouteTableV2sListCompleteResult struct { Items []VirtualHubRouteTableV2 } +type VirtualHubRouteTableV2sListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubRouteTableV2sListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubRouteTableV2sList ... func (c VirtualWANsClient) VirtualHubRouteTableV2sList(ctx context.Context, id VirtualHubId) (result VirtualHubRouteTableV2sListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VirtualHubRouteTableV2sList(ctx context.Context, id V http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubRouteTableV2sListCustomPager{}, Path: fmt.Sprintf("%s/routeTables", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_virtualhubslist.go b/resource-manager/network/2024-01-01/virtualwans/method_virtualhubslist.go index 49ab6fcec34..d8fa3805233 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_virtualhubslist.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_virtualhubslist.go @@ -24,6 +24,18 @@ type VirtualHubsListCompleteResult struct { Items []VirtualHub } +type VirtualHubsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubsList ... func (c VirtualWANsClient) VirtualHubsList(ctx context.Context, id commonids.SubscriptionId) (result VirtualHubsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualHubsList(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualHubs", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_virtualhubslistbyresourcegroup.go b/resource-manager/network/2024-01-01/virtualwans/method_virtualhubslistbyresourcegroup.go index 2eabf9bea70..9427d542093 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_virtualhubslistbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_virtualhubslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VirtualHubsListByResourceGroupCompleteResult struct { Items []VirtualHub } +type VirtualHubsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualHubsListByResourceGroup ... func (c VirtualWANsClient) VirtualHubsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VirtualHubsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualHubsListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualHubsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualHubs", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_virtualwanslist.go b/resource-manager/network/2024-01-01/virtualwans/method_virtualwanslist.go index 394200ffe81..8a8cb8514e3 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_virtualwanslist.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_virtualwanslist.go @@ -24,6 +24,18 @@ type VirtualWansListCompleteResult struct { Items []VirtualWAN } +type VirtualWansListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualWansListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualWansList ... func (c VirtualWANsClient) VirtualWansList(ctx context.Context, id commonids.SubscriptionId) (result VirtualWansListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualWansList(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualWansListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualWans", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_virtualwanslistbyresourcegroup.go b/resource-manager/network/2024-01-01/virtualwans/method_virtualwanslistbyresourcegroup.go index fec869f75be..24b02c20232 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_virtualwanslistbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_virtualwanslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VirtualWansListByResourceGroupCompleteResult struct { Items []VirtualWAN } +type VirtualWansListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualWansListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualWansListByResourceGroup ... func (c VirtualWANsClient) VirtualWansListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VirtualWansListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VirtualWansListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualWansListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualWans", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_vpnconnectionslistbyvpngateway.go b/resource-manager/network/2024-01-01/virtualwans/method_vpnconnectionslistbyvpngateway.go index 48d7fe22883..d1ed0d12708 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_vpnconnectionslistbyvpngateway.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_vpnconnectionslistbyvpngateway.go @@ -23,6 +23,18 @@ type VpnConnectionsListByVpnGatewayCompleteResult struct { Items []VpnConnection } +type VpnConnectionsListByVpnGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnConnectionsListByVpnGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnConnectionsListByVpnGateway ... func (c VirtualWANsClient) VpnConnectionsListByVpnGateway(ctx context.Context, id VpnGatewayId) (result VpnConnectionsListByVpnGatewayOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VpnConnectionsListByVpnGateway(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnConnectionsListByVpnGatewayCustomPager{}, Path: fmt.Sprintf("%s/vpnConnections", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_vpngatewayslist.go b/resource-manager/network/2024-01-01/virtualwans/method_vpngatewayslist.go index ca191bd2af0..d5ecf5c40ee 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_vpngatewayslist.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_vpngatewayslist.go @@ -24,6 +24,18 @@ type VpnGatewaysListCompleteResult struct { Items []VpnGateway } +type VpnGatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnGatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnGatewaysList ... func (c VirtualWANsClient) VpnGatewaysList(ctx context.Context, id commonids.SubscriptionId) (result VpnGatewaysListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnGatewaysList(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnGatewaysListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnGateways", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_vpngatewayslistbyresourcegroup.go b/resource-manager/network/2024-01-01/virtualwans/method_vpngatewayslistbyresourcegroup.go index 74f1365bd3c..e0e679927ad 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_vpngatewayslistbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_vpngatewayslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VpnGatewaysListByResourceGroupCompleteResult struct { Items []VpnGateway } +type VpnGatewaysListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnGatewaysListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnGatewaysListByResourceGroup ... func (c VirtualWANsClient) VpnGatewaysListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnGatewaysListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnGatewaysListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnGatewaysListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnGateways", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go b/resource-manager/network/2024-01-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go index 6aa787c6a6c..28dcee0d679 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go @@ -24,6 +24,18 @@ type VpnLinkConnectionsListByVpnConnectionCompleteResult struct { Items []VpnSiteLinkConnection } +type VpnLinkConnectionsListByVpnConnectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnLinkConnectionsListByVpnConnectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnLinkConnectionsListByVpnConnection ... func (c VirtualWANsClient) VpnLinkConnectionsListByVpnConnection(ctx context.Context, id commonids.VPNConnectionId) (result VpnLinkConnectionsListByVpnConnectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnLinkConnectionsListByVpnConnection(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnLinkConnectionsListByVpnConnectionCustomPager{}, Path: fmt.Sprintf("%s/vpnLinkConnections", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_vpnserverconfigurationslist.go b/resource-manager/network/2024-01-01/virtualwans/method_vpnserverconfigurationslist.go index 2b477dfd0ed..914118474d5 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_vpnserverconfigurationslist.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_vpnserverconfigurationslist.go @@ -24,6 +24,18 @@ type VpnServerConfigurationsListCompleteResult struct { Items []VpnServerConfiguration } +type VpnServerConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnServerConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnServerConfigurationsList ... func (c VirtualWANsClient) VpnServerConfigurationsList(ctx context.Context, id commonids.SubscriptionId) (result VpnServerConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnServerConfigurationsList(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnServerConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnServerConfigurations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go b/resource-manager/network/2024-01-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go index a4976dfad49..6653716f5fe 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VpnServerConfigurationsListByResourceGroupCompleteResult struct { Items []VpnServerConfiguration } +type VpnServerConfigurationsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnServerConfigurationsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnServerConfigurationsListByResourceGroup ... func (c VirtualWANsClient) VpnServerConfigurationsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnServerConfigurationsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnServerConfigurationsListByResourceGroup(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnServerConfigurationsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnServerConfigurations", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go b/resource-manager/network/2024-01-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go index 58c8ae1dd18..584c5170718 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go @@ -23,6 +23,18 @@ type VpnSiteLinksListByVpnSiteCompleteResult struct { Items []VpnSiteLink } +type VpnSiteLinksListByVpnSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSiteLinksListByVpnSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnSiteLinksListByVpnSite ... func (c VirtualWANsClient) VpnSiteLinksListByVpnSite(ctx context.Context, id VpnSiteId) (result VpnSiteLinksListByVpnSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualWANsClient) VpnSiteLinksListByVpnSite(ctx context.Context, id Vpn http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnSiteLinksListByVpnSiteCustomPager{}, Path: fmt.Sprintf("%s/vpnSiteLinks", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_vpnsiteslist.go b/resource-manager/network/2024-01-01/virtualwans/method_vpnsiteslist.go index f6008bbcb21..38bc5c86363 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_vpnsiteslist.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_vpnsiteslist.go @@ -24,6 +24,18 @@ type VpnSitesListCompleteResult struct { Items []VpnSite } +type VpnSitesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSitesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnSitesList ... func (c VirtualWANsClient) VpnSitesList(ctx context.Context, id commonids.SubscriptionId) (result VpnSitesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnSitesList(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnSitesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnSites", id.ID()), } diff --git a/resource-manager/network/2024-01-01/virtualwans/method_vpnsiteslistbyresourcegroup.go b/resource-manager/network/2024-01-01/virtualwans/method_vpnsiteslistbyresourcegroup.go index aee63f234ff..276e64b30d1 100644 --- a/resource-manager/network/2024-01-01/virtualwans/method_vpnsiteslistbyresourcegroup.go +++ b/resource-manager/network/2024-01-01/virtualwans/method_vpnsiteslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VpnSitesListByResourceGroupCompleteResult struct { Items []VpnSite } +type VpnSitesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSitesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VpnSitesListByResourceGroup ... func (c VirtualWANsClient) VpnSitesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnSitesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualWANsClient) VpnSitesListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VpnSitesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnSites", id.ID()), } diff --git a/resource-manager/network/2024-01-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go b/resource-manager/network/2024-01-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go index f1a1235a8e2..482b018c7dc 100644 --- a/resource-manager/network/2024-01-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go +++ b/resource-manager/network/2024-01-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go @@ -54,8 +54,8 @@ func (c VMSSPublicIPAddressesClient) PublicIPAddressesGetVirtualMachineScaleSetP http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go b/resource-manager/network/2024-01-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go index b7648a7a307..c39b6848351 100644 --- a/resource-manager/network/2024-01-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go +++ b/resource-manager/network/2024-01-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go @@ -23,6 +23,18 @@ type PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCompleteResult Items []PublicIPAddress } +type PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses ... func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses(ctx context.Context, id VirtualMachineScaleSetId) (result PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSet http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2024-01-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go b/resource-manager/network/2024-01-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go index e61b339d253..83d7e85289f 100644 --- a/resource-manager/network/2024-01-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go +++ b/resource-manager/network/2024-01-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go @@ -24,6 +24,18 @@ type PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCompleteResul Items []PublicIPAddress } +type PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses ... func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses(ctx context.Context, id commonids.VirtualMachineScaleSetIPConfigurationId) (result PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VMSSPublicIPAddressesClient) PublicIPAddressesListVirtualMachineScaleSet http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesCustomPager{}, Path: fmt.Sprintf("%s/publicIPAddresses", id.ID()), } diff --git a/resource-manager/network/2024-01-01/vpngateways/method_reset.go b/resource-manager/network/2024-01-01/vpngateways/method_reset.go index ca8defc383b..8228267e86c 100644 --- a/resource-manager/network/2024-01-01/vpngateways/method_reset.go +++ b/resource-manager/network/2024-01-01/vpngateways/method_reset.go @@ -57,8 +57,8 @@ func (c VpnGatewaysClient) Reset(ctx context.Context, id VpnGatewayId, options R http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/reset", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/reset", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/webapplicationfirewallpolicies/method_list.go b/resource-manager/network/2024-01-01/webapplicationfirewallpolicies/method_list.go index dbe94a8ef0e..4a6b3abf31e 100644 --- a/resource-manager/network/2024-01-01/webapplicationfirewallpolicies/method_list.go +++ b/resource-manager/network/2024-01-01/webapplicationfirewallpolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []WebApplicationFirewallPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WebApplicationFirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebApplicationFirewallPoliciesClient) List(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies", id.ID()), } diff --git a/resource-manager/network/2024-01-01/webapplicationfirewallpolicies/method_listall.go b/resource-manager/network/2024-01-01/webapplicationfirewallpolicies/method_listall.go index 652df162aed..e3a633a2655 100644 --- a/resource-manager/network/2024-01-01/webapplicationfirewallpolicies/method_listall.go +++ b/resource-manager/network/2024-01-01/webapplicationfirewallpolicies/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []WebApplicationFirewallPolicy } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies", id.ID()), } diff --git a/resource-manager/network/2024-01-01/webcategories/method_get.go b/resource-manager/network/2024-01-01/webcategories/method_get.go index 9038c189875..6150a24fbf4 100644 --- a/resource-manager/network/2024-01-01/webcategories/method_get.go +++ b/resource-manager/network/2024-01-01/webcategories/method_get.go @@ -53,8 +53,8 @@ func (c WebCategoriesClient) Get(ctx context.Context, id AzureWebCategoryId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/network/2024-01-01/webcategories/method_listbysubscription.go b/resource-manager/network/2024-01-01/webcategories/method_listbysubscription.go index 4a3e7f4445b..8e55ebdbf11 100644 --- a/resource-manager/network/2024-01-01/webcategories/method_listbysubscription.go +++ b/resource-manager/network/2024-01-01/webcategories/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []AzureWebCategory } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WebCategoriesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebCategoriesClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Network/azureWebCategories", id.ID()), } diff --git a/resource-manager/networkanalytics/2023-11-15/dataproducts/method_listbyresourcegroup.go b/resource-manager/networkanalytics/2023-11-15/dataproducts/method_listbyresourcegroup.go index de26cb90057..7a43603ce39 100644 --- a/resource-manager/networkanalytics/2023-11-15/dataproducts/method_listbyresourcegroup.go +++ b/resource-manager/networkanalytics/2023-11-15/dataproducts/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DataProduct } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DataProductsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataProductsClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkAnalytics/dataProducts", id.ID()), } diff --git a/resource-manager/networkanalytics/2023-11-15/dataproducts/method_listbysubscription.go b/resource-manager/networkanalytics/2023-11-15/dataproducts/method_listbysubscription.go index d5b8bb92202..fb21befcd06 100644 --- a/resource-manager/networkanalytics/2023-11-15/dataproducts/method_listbysubscription.go +++ b/resource-manager/networkanalytics/2023-11-15/dataproducts/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DataProduct } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DataProductsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataProductsClient) ListBySubscription(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkAnalytics/dataProducts", id.ID()), } diff --git a/resource-manager/networkanalytics/2023-11-15/dataproductscatalogs/method_listbyresourcegroup.go b/resource-manager/networkanalytics/2023-11-15/dataproductscatalogs/method_listbyresourcegroup.go index 5cf923e27dd..f174c65e876 100644 --- a/resource-manager/networkanalytics/2023-11-15/dataproductscatalogs/method_listbyresourcegroup.go +++ b/resource-manager/networkanalytics/2023-11-15/dataproductscatalogs/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DataProductsCatalog } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DataProductsCatalogsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataProductsCatalogsClient) ListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", id.ID()), } diff --git a/resource-manager/networkanalytics/2023-11-15/dataproductscatalogs/method_listbysubscription.go b/resource-manager/networkanalytics/2023-11-15/dataproductscatalogs/method_listbysubscription.go index cae1173fda2..e99287f3f54 100644 --- a/resource-manager/networkanalytics/2023-11-15/dataproductscatalogs/method_listbysubscription.go +++ b/resource-manager/networkanalytics/2023-11-15/dataproductscatalogs/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DataProductsCatalog } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DataProductsCatalogsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataProductsCatalogsClient) ListBySubscription(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkAnalytics/dataProductsCatalogs", id.ID()), } diff --git a/resource-manager/networkanalytics/2023-11-15/datatypes/method_listbydataproduct.go b/resource-manager/networkanalytics/2023-11-15/datatypes/method_listbydataproduct.go index 1f1d2ce61c5..78673bfcd86 100644 --- a/resource-manager/networkanalytics/2023-11-15/datatypes/method_listbydataproduct.go +++ b/resource-manager/networkanalytics/2023-11-15/datatypes/method_listbydataproduct.go @@ -23,6 +23,18 @@ type ListByDataProductCompleteResult struct { Items []DataType } +type ListByDataProductCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDataProductCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDataProduct ... func (c DataTypesClient) ListByDataProduct(ctx context.Context, id DataProductId) (result ListByDataProductOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DataTypesClient) ListByDataProduct(ctx context.Context, id DataProductId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDataProductCustomPager{}, Path: fmt.Sprintf("%s/dataTypes", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_agentpoolslistbykubernetescluster.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_agentpoolslistbykubernetescluster.go index 2831ba14bb6..002e0906e83 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_agentpoolslistbykubernetescluster.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_agentpoolslistbykubernetescluster.go @@ -23,6 +23,18 @@ type AgentPoolsListByKubernetesClusterCompleteResult struct { Items []AgentPool } +type AgentPoolsListByKubernetesClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AgentPoolsListByKubernetesClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AgentPoolsListByKubernetesCluster ... func (c NetworkcloudsClient) AgentPoolsListByKubernetesCluster(ctx context.Context, id KubernetesClusterId) (result AgentPoolsListByKubernetesClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkcloudsClient) AgentPoolsListByKubernetesCluster(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AgentPoolsListByKubernetesClusterCustomPager{}, Path: fmt.Sprintf("%s/agentPools", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_baremetalmachinekeysetslistbycluster.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_baremetalmachinekeysetslistbycluster.go index 9b6b0ae6fd3..383e2e9e04e 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_baremetalmachinekeysetslistbycluster.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_baremetalmachinekeysetslistbycluster.go @@ -23,6 +23,18 @@ type BareMetalMachineKeySetsListByClusterCompleteResult struct { Items []BareMetalMachineKeySet } +type BareMetalMachineKeySetsListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BareMetalMachineKeySetsListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BareMetalMachineKeySetsListByCluster ... func (c NetworkcloudsClient) BareMetalMachineKeySetsListByCluster(ctx context.Context, id ClusterId) (result BareMetalMachineKeySetsListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkcloudsClient) BareMetalMachineKeySetsListByCluster(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BareMetalMachineKeySetsListByClusterCustomPager{}, Path: fmt.Sprintf("%s/bareMetalMachineKeySets", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_baremetalmachineslistbyresourcegroup.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_baremetalmachineslistbyresourcegroup.go index 532f5164b35..13bac200220 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_baremetalmachineslistbyresourcegroup.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_baremetalmachineslistbyresourcegroup.go @@ -24,6 +24,18 @@ type BareMetalMachinesListByResourceGroupCompleteResult struct { Items []BareMetalMachine } +type BareMetalMachinesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BareMetalMachinesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BareMetalMachinesListByResourceGroup ... func (c NetworkcloudsClient) BareMetalMachinesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result BareMetalMachinesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) BareMetalMachinesListByResourceGroup(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BareMetalMachinesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/bareMetalMachines", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_baremetalmachineslistbysubscription.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_baremetalmachineslistbysubscription.go index 79fb287a7c6..d7931b5946b 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_baremetalmachineslistbysubscription.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_baremetalmachineslistbysubscription.go @@ -24,6 +24,18 @@ type BareMetalMachinesListBySubscriptionCompleteResult struct { Items []BareMetalMachine } +type BareMetalMachinesListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BareMetalMachinesListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BareMetalMachinesListBySubscription ... func (c NetworkcloudsClient) BareMetalMachinesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result BareMetalMachinesListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) BareMetalMachinesListBySubscription(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BareMetalMachinesListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/bareMetalMachines", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_bmckeysetslistbycluster.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_bmckeysetslistbycluster.go index 5a3c8d4c8c7..8f2b7821e9f 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_bmckeysetslistbycluster.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_bmckeysetslistbycluster.go @@ -23,6 +23,18 @@ type BmcKeySetsListByClusterCompleteResult struct { Items []BmcKeySet } +type BmcKeySetsListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BmcKeySetsListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BmcKeySetsListByCluster ... func (c NetworkcloudsClient) BmcKeySetsListByCluster(ctx context.Context, id ClusterId) (result BmcKeySetsListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkcloudsClient) BmcKeySetsListByCluster(ctx context.Context, id Clu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BmcKeySetsListByClusterCustomPager{}, Path: fmt.Sprintf("%s/bmcKeySets", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_cloudservicesnetworkslistbyresourcegroup.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_cloudservicesnetworkslistbyresourcegroup.go index 52dad4fe07c..0c3ce2aad54 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_cloudservicesnetworkslistbyresourcegroup.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_cloudservicesnetworkslistbyresourcegroup.go @@ -24,6 +24,18 @@ type CloudServicesNetworksListByResourceGroupCompleteResult struct { Items []CloudServicesNetwork } +type CloudServicesNetworksListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CloudServicesNetworksListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CloudServicesNetworksListByResourceGroup ... func (c NetworkcloudsClient) CloudServicesNetworksListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result CloudServicesNetworksListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) CloudServicesNetworksListByResourceGroup(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CloudServicesNetworksListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/cloudServicesNetworks", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_cloudservicesnetworkslistbysubscription.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_cloudservicesnetworkslistbysubscription.go index 4b0d6e191f7..ecb758fefab 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_cloudservicesnetworkslistbysubscription.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_cloudservicesnetworkslistbysubscription.go @@ -24,6 +24,18 @@ type CloudServicesNetworksListBySubscriptionCompleteResult struct { Items []CloudServicesNetwork } +type CloudServicesNetworksListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CloudServicesNetworksListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CloudServicesNetworksListBySubscription ... func (c NetworkcloudsClient) CloudServicesNetworksListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result CloudServicesNetworksListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) CloudServicesNetworksListBySubscription(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CloudServicesNetworksListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/cloudServicesNetworks", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_clustermanagerslistbyresourcegroup.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_clustermanagerslistbyresourcegroup.go index 48b99147fb9..0f35f56bc35 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_clustermanagerslistbyresourcegroup.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_clustermanagerslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ClusterManagersListByResourceGroupCompleteResult struct { Items []ClusterManager } +type ClusterManagersListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ClusterManagersListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ClusterManagersListByResourceGroup ... func (c NetworkcloudsClient) ClusterManagersListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ClusterManagersListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) ClusterManagersListByResourceGroup(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ClusterManagersListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/clusterManagers", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_clustermanagerslistbysubscription.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_clustermanagerslistbysubscription.go index f41f8605942..40796857573 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_clustermanagerslistbysubscription.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_clustermanagerslistbysubscription.go @@ -24,6 +24,18 @@ type ClusterManagersListBySubscriptionCompleteResult struct { Items []ClusterManager } +type ClusterManagersListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ClusterManagersListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ClusterManagersListBySubscription ... func (c NetworkcloudsClient) ClusterManagersListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ClusterManagersListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) ClusterManagersListBySubscription(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ClusterManagersListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/clusterManagers", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_clusterslistbyresourcegroup.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_clusterslistbyresourcegroup.go index b7f99368e67..c929ab55c6f 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_clusterslistbyresourcegroup.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_clusterslistbyresourcegroup.go @@ -24,6 +24,18 @@ type ClustersListByResourceGroupCompleteResult struct { Items []Cluster } +type ClustersListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ClustersListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ClustersListByResourceGroup ... func (c NetworkcloudsClient) ClustersListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ClustersListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) ClustersListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ClustersListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/clusters", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_clusterslistbysubscription.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_clusterslistbysubscription.go index 47bfbfe57f8..d1984a6090b 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_clusterslistbysubscription.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_clusterslistbysubscription.go @@ -24,6 +24,18 @@ type ClustersListBySubscriptionCompleteResult struct { Items []Cluster } +type ClustersListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ClustersListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ClustersListBySubscription ... func (c NetworkcloudsClient) ClustersListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ClustersListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) ClustersListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ClustersListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/clusters", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_consoleslistbyvirtualmachine.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_consoleslistbyvirtualmachine.go index 177f3f756bd..eb52d7381c0 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_consoleslistbyvirtualmachine.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_consoleslistbyvirtualmachine.go @@ -23,6 +23,18 @@ type ConsolesListByVirtualMachineCompleteResult struct { Items []Console } +type ConsolesListByVirtualMachineCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConsolesListByVirtualMachineCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConsolesListByVirtualMachine ... func (c NetworkcloudsClient) ConsolesListByVirtualMachine(ctx context.Context, id VirtualMachineId) (result ConsolesListByVirtualMachineOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkcloudsClient) ConsolesListByVirtualMachine(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConsolesListByVirtualMachineCustomPager{}, Path: fmt.Sprintf("%s/consoles", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_kubernetesclusterslistbyresourcegroup.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_kubernetesclusterslistbyresourcegroup.go index a126d7e0deb..47f472d246c 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_kubernetesclusterslistbyresourcegroup.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_kubernetesclusterslistbyresourcegroup.go @@ -24,6 +24,18 @@ type KubernetesClustersListByResourceGroupCompleteResult struct { Items []KubernetesCluster } +type KubernetesClustersListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *KubernetesClustersListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // KubernetesClustersListByResourceGroup ... func (c NetworkcloudsClient) KubernetesClustersListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result KubernetesClustersListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) KubernetesClustersListByResourceGroup(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &KubernetesClustersListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/kubernetesClusters", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_kubernetesclusterslistbysubscription.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_kubernetesclusterslistbysubscription.go index 7e9e11490ff..ea5495c4a61 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_kubernetesclusterslistbysubscription.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_kubernetesclusterslistbysubscription.go @@ -24,6 +24,18 @@ type KubernetesClustersListBySubscriptionCompleteResult struct { Items []KubernetesCluster } +type KubernetesClustersListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *KubernetesClustersListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // KubernetesClustersListBySubscription ... func (c NetworkcloudsClient) KubernetesClustersListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result KubernetesClustersListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) KubernetesClustersListBySubscription(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &KubernetesClustersListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/kubernetesClusters", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_l2networkslistbyresourcegroup.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_l2networkslistbyresourcegroup.go index 4b8f23789c8..61806a0343d 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_l2networkslistbyresourcegroup.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_l2networkslistbyresourcegroup.go @@ -24,6 +24,18 @@ type L2NetworksListByResourceGroupCompleteResult struct { Items []L2Network } +type L2NetworksListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *L2NetworksListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // L2NetworksListByResourceGroup ... func (c NetworkcloudsClient) L2NetworksListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result L2NetworksListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) L2NetworksListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &L2NetworksListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/l2Networks", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_l2networkslistbysubscription.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_l2networkslistbysubscription.go index 992107b1c7b..311c580ee0f 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_l2networkslistbysubscription.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_l2networkslistbysubscription.go @@ -24,6 +24,18 @@ type L2NetworksListBySubscriptionCompleteResult struct { Items []L2Network } +type L2NetworksListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *L2NetworksListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // L2NetworksListBySubscription ... func (c NetworkcloudsClient) L2NetworksListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result L2NetworksListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) L2NetworksListBySubscription(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &L2NetworksListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/l2Networks", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_l3networkslistbyresourcegroup.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_l3networkslistbyresourcegroup.go index 7087c0c9eaa..4a069c03f3a 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_l3networkslistbyresourcegroup.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_l3networkslistbyresourcegroup.go @@ -24,6 +24,18 @@ type L3NetworksListByResourceGroupCompleteResult struct { Items []L3Network } +type L3NetworksListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *L3NetworksListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // L3NetworksListByResourceGroup ... func (c NetworkcloudsClient) L3NetworksListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result L3NetworksListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) L3NetworksListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &L3NetworksListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/l3Networks", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_l3networkslistbysubscription.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_l3networkslistbysubscription.go index c2ce14611e9..16acde9c89f 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_l3networkslistbysubscription.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_l3networkslistbysubscription.go @@ -24,6 +24,18 @@ type L3NetworksListBySubscriptionCompleteResult struct { Items []L3Network } +type L3NetworksListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *L3NetworksListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // L3NetworksListBySubscription ... func (c NetworkcloudsClient) L3NetworksListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result L3NetworksListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) L3NetworksListBySubscription(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &L3NetworksListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/l3Networks", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_metricsconfigurationslistbycluster.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_metricsconfigurationslistbycluster.go index 040ceee7b79..b88f8385b61 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_metricsconfigurationslistbycluster.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_metricsconfigurationslistbycluster.go @@ -23,6 +23,18 @@ type MetricsConfigurationsListByClusterCompleteResult struct { Items []ClusterMetricsConfiguration } +type MetricsConfigurationsListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MetricsConfigurationsListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MetricsConfigurationsListByCluster ... func (c NetworkcloudsClient) MetricsConfigurationsListByCluster(ctx context.Context, id ClusterId) (result MetricsConfigurationsListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NetworkcloudsClient) MetricsConfigurationsListByCluster(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &MetricsConfigurationsListByClusterCustomPager{}, Path: fmt.Sprintf("%s/metricsConfigurations", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_rackskuslistbysubscription.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_rackskuslistbysubscription.go index 9b44579adab..7f8c250adc6 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_rackskuslistbysubscription.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_rackskuslistbysubscription.go @@ -24,6 +24,18 @@ type RackSkusListBySubscriptionCompleteResult struct { Items []RackSku } +type RackSkusListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RackSkusListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RackSkusListBySubscription ... func (c NetworkcloudsClient) RackSkusListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result RackSkusListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) RackSkusListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RackSkusListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/rackSkus", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_rackslistbyresourcegroup.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_rackslistbyresourcegroup.go index 8b5fa527fb3..ac827b79e55 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_rackslistbyresourcegroup.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_rackslistbyresourcegroup.go @@ -24,6 +24,18 @@ type RacksListByResourceGroupCompleteResult struct { Items []Rack } +type RacksListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RacksListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RacksListByResourceGroup ... func (c NetworkcloudsClient) RacksListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result RacksListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) RacksListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RacksListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/racks", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_rackslistbysubscription.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_rackslistbysubscription.go index 6fd714e90db..937e6edd4de 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_rackslistbysubscription.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_rackslistbysubscription.go @@ -24,6 +24,18 @@ type RacksListBySubscriptionCompleteResult struct { Items []Rack } +type RacksListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RacksListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RacksListBySubscription ... func (c NetworkcloudsClient) RacksListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result RacksListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) RacksListBySubscription(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RacksListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/racks", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_storageapplianceslistbyresourcegroup.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_storageapplianceslistbyresourcegroup.go index f77a24dd871..787864ebabe 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_storageapplianceslistbyresourcegroup.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_storageapplianceslistbyresourcegroup.go @@ -24,6 +24,18 @@ type StorageAppliancesListByResourceGroupCompleteResult struct { Items []StorageAppliance } +type StorageAppliancesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *StorageAppliancesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StorageAppliancesListByResourceGroup ... func (c NetworkcloudsClient) StorageAppliancesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result StorageAppliancesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) StorageAppliancesListByResourceGroup(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &StorageAppliancesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/storageAppliances", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_storageapplianceslistbysubscription.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_storageapplianceslistbysubscription.go index 6e0818e8730..b1195f23421 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_storageapplianceslistbysubscription.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_storageapplianceslistbysubscription.go @@ -24,6 +24,18 @@ type StorageAppliancesListBySubscriptionCompleteResult struct { Items []StorageAppliance } +type StorageAppliancesListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *StorageAppliancesListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StorageAppliancesListBySubscription ... func (c NetworkcloudsClient) StorageAppliancesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result StorageAppliancesListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) StorageAppliancesListBySubscription(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &StorageAppliancesListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/storageAppliances", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_trunkednetworkslistbyresourcegroup.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_trunkednetworkslistbyresourcegroup.go index ea19473e55c..36db263e346 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_trunkednetworkslistbyresourcegroup.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_trunkednetworkslistbyresourcegroup.go @@ -24,6 +24,18 @@ type TrunkedNetworksListByResourceGroupCompleteResult struct { Items []TrunkedNetwork } +type TrunkedNetworksListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TrunkedNetworksListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TrunkedNetworksListByResourceGroup ... func (c NetworkcloudsClient) TrunkedNetworksListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result TrunkedNetworksListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) TrunkedNetworksListByResourceGroup(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &TrunkedNetworksListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/trunkedNetworks", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_trunkednetworkslistbysubscription.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_trunkednetworkslistbysubscription.go index 684de1fa5fc..4e99bafe3c2 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_trunkednetworkslistbysubscription.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_trunkednetworkslistbysubscription.go @@ -24,6 +24,18 @@ type TrunkedNetworksListBySubscriptionCompleteResult struct { Items []TrunkedNetwork } +type TrunkedNetworksListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TrunkedNetworksListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TrunkedNetworksListBySubscription ... func (c NetworkcloudsClient) TrunkedNetworksListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result TrunkedNetworksListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) TrunkedNetworksListBySubscription(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &TrunkedNetworksListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/trunkedNetworks", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_virtualmachineslistbyresourcegroup.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_virtualmachineslistbyresourcegroup.go index acd94de63b8..6e9ffd78a99 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_virtualmachineslistbyresourcegroup.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_virtualmachineslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VirtualMachinesListByResourceGroupCompleteResult struct { Items []VirtualMachine } +type VirtualMachinesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualMachinesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualMachinesListByResourceGroup ... func (c NetworkcloudsClient) VirtualMachinesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VirtualMachinesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) VirtualMachinesListByResourceGroup(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualMachinesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/virtualMachines", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_virtualmachineslistbysubscription.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_virtualmachineslistbysubscription.go index c5bb840e9ae..06b592377a7 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_virtualmachineslistbysubscription.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_virtualmachineslistbysubscription.go @@ -24,6 +24,18 @@ type VirtualMachinesListBySubscriptionCompleteResult struct { Items []VirtualMachine } +type VirtualMachinesListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualMachinesListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VirtualMachinesListBySubscription ... func (c NetworkcloudsClient) VirtualMachinesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result VirtualMachinesListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) VirtualMachinesListBySubscription(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VirtualMachinesListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/virtualMachines", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_volumeslistbyresourcegroup.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_volumeslistbyresourcegroup.go index 7fa2ddee828..81af7b60699 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_volumeslistbyresourcegroup.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_volumeslistbyresourcegroup.go @@ -24,6 +24,18 @@ type VolumesListByResourceGroupCompleteResult struct { Items []Volume } +type VolumesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VolumesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VolumesListByResourceGroup ... func (c NetworkcloudsClient) VolumesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VolumesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) VolumesListByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VolumesListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/volumes", id.ID()), } diff --git a/resource-manager/networkcloud/2023-07-01/networkclouds/method_volumeslistbysubscription.go b/resource-manager/networkcloud/2023-07-01/networkclouds/method_volumeslistbysubscription.go index bfbe90c703e..14f0be4d5b2 100644 --- a/resource-manager/networkcloud/2023-07-01/networkclouds/method_volumeslistbysubscription.go +++ b/resource-manager/networkcloud/2023-07-01/networkclouds/method_volumeslistbysubscription.go @@ -24,6 +24,18 @@ type VolumesListBySubscriptionCompleteResult struct { Items []Volume } +type VolumesListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VolumesListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VolumesListBySubscription ... func (c NetworkcloudsClient) VolumesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result VolumesListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkcloudsClient) VolumesListBySubscription(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &VolumesListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkCloud/volumes", id.ID()), } diff --git a/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_byresourcegrouplist.go b/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_byresourcegrouplist.go index 05e8f471fea..76402ecec45 100644 --- a/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_byresourcegrouplist.go +++ b/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_byresourcegrouplist.go @@ -24,6 +24,18 @@ type ByResourceGroupListCompleteResult struct { Items []AzureTrafficCollector } +type ByResourceGroupListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ByResourceGroupListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ByResourceGroupList ... func (c AzureTrafficCollectorsClient) ByResourceGroupList(ctx context.Context, id commonids.ResourceGroupId) (result ByResourceGroupListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AzureTrafficCollectorsClient) ByResourceGroupList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ByResourceGroupListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkFunction/azureTrafficCollectors", id.ID()), } diff --git a/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_bysubscriptionlist.go b/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_bysubscriptionlist.go index cbdba7568b3..50a396daf47 100644 --- a/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_bysubscriptionlist.go +++ b/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_bysubscriptionlist.go @@ -24,6 +24,18 @@ type BySubscriptionListCompleteResult struct { Items []AzureTrafficCollector } +type BySubscriptionListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *BySubscriptionListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // BySubscriptionList ... func (c AzureTrafficCollectorsClient) BySubscriptionList(ctx context.Context, id commonids.SubscriptionId) (result BySubscriptionListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AzureTrafficCollectorsClient) BySubscriptionList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &BySubscriptionListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NetworkFunction/azureTrafficCollectors", id.ID()), } diff --git a/resource-manager/networkfunction/2022-11-01/collectorpolicies/method_list.go b/resource-manager/networkfunction/2022-11-01/collectorpolicies/method_list.go index c61ba6c77ec..12c0af49fd9 100644 --- a/resource-manager/networkfunction/2022-11-01/collectorpolicies/method_list.go +++ b/resource-manager/networkfunction/2022-11-01/collectorpolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CollectorPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CollectorPoliciesClient) List(ctx context.Context, id AzureTrafficCollectorId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CollectorPoliciesClient) List(ctx context.Context, id AzureTrafficCollec http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/collectorPolicies", id.ID()), } diff --git a/resource-manager/newrelic/2022-07-01/accounts/method_list.go b/resource-manager/newrelic/2022-07-01/accounts/method_list.go index 38ec1e309c2..ec9038fe53d 100644 --- a/resource-manager/newrelic/2022-07-01/accounts/method_list.go +++ b/resource-manager/newrelic/2022-07-01/accounts/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AccountsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c AccountsClient) List(ctx context.Context, id commonids.SubscriptionId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/NewRelic.Observability/accounts", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/NewRelic.Observability/accounts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/newrelic/2022-07-01/monitors/method_delete.go b/resource-manager/newrelic/2022-07-01/monitors/method_delete.go index 738e0b8e56f..2c8a078705e 100644 --- a/resource-manager/newrelic/2022-07-01/monitors/method_delete.go +++ b/resource-manager/newrelic/2022-07-01/monitors/method_delete.go @@ -57,8 +57,8 @@ func (c MonitorsClient) Delete(ctx context.Context, id MonitorId, options Delete http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/newrelic/2022-07-01/monitors/method_listappservices.go b/resource-manager/newrelic/2022-07-01/monitors/method_listappservices.go index 662ffbf8930..9e8ec56a900 100644 --- a/resource-manager/newrelic/2022-07-01/monitors/method_listappservices.go +++ b/resource-manager/newrelic/2022-07-01/monitors/method_listappservices.go @@ -23,6 +23,18 @@ type ListAppServicesCompleteResult struct { Items []AppServiceInfo } +type ListAppServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAppServices ... func (c MonitorsClient) ListAppServices(ctx context.Context, id MonitorId, input AppServicesGetRequest) (result ListAppServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListAppServices(ctx context.Context, id MonitorId, input http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListAppServicesCustomPager{}, Path: fmt.Sprintf("%s/listAppServices", id.ID()), } diff --git a/resource-manager/newrelic/2022-07-01/monitors/method_listbyresourcegroup.go b/resource-manager/newrelic/2022-07-01/monitors/method_listbyresourcegroup.go index 9d8f6fd650b..344e6889edc 100644 --- a/resource-manager/newrelic/2022-07-01/monitors/method_listbyresourcegroup.go +++ b/resource-manager/newrelic/2022-07-01/monitors/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []NewRelicMonitorResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c MonitorsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/NewRelic.Observability/monitors", id.ID()), } diff --git a/resource-manager/newrelic/2022-07-01/monitors/method_listbysubscription.go b/resource-manager/newrelic/2022-07-01/monitors/method_listbysubscription.go index 80fd9b03dd0..427fc39568c 100644 --- a/resource-manager/newrelic/2022-07-01/monitors/method_listbysubscription.go +++ b/resource-manager/newrelic/2022-07-01/monitors/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []NewRelicMonitorResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c MonitorsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/NewRelic.Observability/monitors", id.ID()), } diff --git a/resource-manager/newrelic/2022-07-01/monitors/method_listhosts.go b/resource-manager/newrelic/2022-07-01/monitors/method_listhosts.go index da0c5e87bb6..8ad15541853 100644 --- a/resource-manager/newrelic/2022-07-01/monitors/method_listhosts.go +++ b/resource-manager/newrelic/2022-07-01/monitors/method_listhosts.go @@ -23,6 +23,18 @@ type ListHostsCompleteResult struct { Items []VMInfo } +type ListHostsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHostsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHosts ... func (c MonitorsClient) ListHosts(ctx context.Context, id MonitorId, input HostsGetRequest) (result ListHostsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListHosts(ctx context.Context, id MonitorId, input Hosts http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListHostsCustomPager{}, Path: fmt.Sprintf("%s/listHosts", id.ID()), } diff --git a/resource-manager/newrelic/2022-07-01/monitors/method_listmonitoredresources.go b/resource-manager/newrelic/2022-07-01/monitors/method_listmonitoredresources.go index 219a6ed3f4b..196681273b3 100644 --- a/resource-manager/newrelic/2022-07-01/monitors/method_listmonitoredresources.go +++ b/resource-manager/newrelic/2022-07-01/monitors/method_listmonitoredresources.go @@ -23,6 +23,18 @@ type ListMonitoredResourcesCompleteResult struct { Items []MonitoredResource } +type ListMonitoredResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMonitoredResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMonitoredResources ... func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId) (result ListMonitoredResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListMonitoredResourcesCustomPager{}, Path: fmt.Sprintf("%s/monitoredResources", id.ID()), } diff --git a/resource-manager/newrelic/2022-07-01/organizations/method_list.go b/resource-manager/newrelic/2022-07-01/organizations/method_list.go index 70d7027c443..37546d69ebf 100644 --- a/resource-manager/newrelic/2022-07-01/organizations/method_list.go +++ b/resource-manager/newrelic/2022-07-01/organizations/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OrganizationsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c OrganizationsClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/NewRelic.Observability/organizations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/NewRelic.Observability/organizations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/newrelic/2022-07-01/plan/method_list.go b/resource-manager/newrelic/2022-07-01/plan/method_list.go index ddca48040cf..fac82eefbbd 100644 --- a/resource-manager/newrelic/2022-07-01/plan/method_list.go +++ b/resource-manager/newrelic/2022-07-01/plan/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PlanClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PlanClient) List(ctx context.Context, id commonids.SubscriptionId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/NewRelic.Observability/plans", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/NewRelic.Observability/plans", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/newrelic/2022-07-01/tagrules/method_listbynewrelicmonitorresource.go b/resource-manager/newrelic/2022-07-01/tagrules/method_listbynewrelicmonitorresource.go index a3d533ff3d9..e7e1a901412 100644 --- a/resource-manager/newrelic/2022-07-01/tagrules/method_listbynewrelicmonitorresource.go +++ b/resource-manager/newrelic/2022-07-01/tagrules/method_listbynewrelicmonitorresource.go @@ -23,6 +23,18 @@ type ListByNewRelicMonitorResourceCompleteResult struct { Items []TagRule } +type ListByNewRelicMonitorResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNewRelicMonitorResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNewRelicMonitorResource ... func (c TagRulesClient) ListByNewRelicMonitorResource(ctx context.Context, id MonitorId) (result ListByNewRelicMonitorResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TagRulesClient) ListByNewRelicMonitorResource(ctx context.Context, id Mo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByNewRelicMonitorResourceCustomPager{}, Path: fmt.Sprintf("%s/tagRules", id.ID()), } diff --git a/resource-manager/newrelic/2024-03-01/accounts/method_list.go b/resource-manager/newrelic/2024-03-01/accounts/method_list.go index 38ec1e309c2..ec9038fe53d 100644 --- a/resource-manager/newrelic/2024-03-01/accounts/method_list.go +++ b/resource-manager/newrelic/2024-03-01/accounts/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AccountsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c AccountsClient) List(ctx context.Context, id commonids.SubscriptionId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/NewRelic.Observability/accounts", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/NewRelic.Observability/accounts", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/newrelic/2024-03-01/connectedresources/method_connectedpartnerresourceslist.go b/resource-manager/newrelic/2024-03-01/connectedresources/method_connectedpartnerresourceslist.go index e603cd3c263..8a4025c1132 100644 --- a/resource-manager/newrelic/2024-03-01/connectedresources/method_connectedpartnerresourceslist.go +++ b/resource-manager/newrelic/2024-03-01/connectedresources/method_connectedpartnerresourceslist.go @@ -23,6 +23,18 @@ type ConnectedPartnerResourcesListCompleteResult struct { Items []ConnectedPartnerResourcesListFormat } +type ConnectedPartnerResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConnectedPartnerResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConnectedPartnerResourcesList ... func (c ConnectedResourcesClient) ConnectedPartnerResourcesList(ctx context.Context, id MonitorId, input string) (result ConnectedPartnerResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectedResourcesClient) ConnectedPartnerResourcesList(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ConnectedPartnerResourcesListCustomPager{}, Path: fmt.Sprintf("%s/listConnectedPartnerResources", id.ID()), } diff --git a/resource-manager/newrelic/2024-03-01/linkedresources/method_monitorslistlinkedresources.go b/resource-manager/newrelic/2024-03-01/linkedresources/method_monitorslistlinkedresources.go index ed5bb198c33..ddc72b2816a 100644 --- a/resource-manager/newrelic/2024-03-01/linkedresources/method_monitorslistlinkedresources.go +++ b/resource-manager/newrelic/2024-03-01/linkedresources/method_monitorslistlinkedresources.go @@ -23,6 +23,18 @@ type MonitorsListLinkedResourcesCompleteResult struct { Items []LinkedResource } +type MonitorsListLinkedResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *MonitorsListLinkedResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // MonitorsListLinkedResources ... func (c LinkedResourcesClient) MonitorsListLinkedResources(ctx context.Context, id MonitorId) (result MonitorsListLinkedResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LinkedResourcesClient) MonitorsListLinkedResources(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &MonitorsListLinkedResourcesCustomPager{}, Path: fmt.Sprintf("%s/listLinkedResources", id.ID()), } diff --git a/resource-manager/newrelic/2024-03-01/monitoredsubscriptions/method_list.go b/resource-manager/newrelic/2024-03-01/monitoredsubscriptions/method_list.go index 201f4d5d14d..0b2feef2399 100644 --- a/resource-manager/newrelic/2024-03-01/monitoredsubscriptions/method_list.go +++ b/resource-manager/newrelic/2024-03-01/monitoredsubscriptions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MonitoredSubscriptionProperties } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MonitoredSubscriptionsClient) List(ctx context.Context, id MonitorId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitoredSubscriptionsClient) List(ctx context.Context, id MonitorId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/monitoredSubscriptions", id.ID()), } diff --git a/resource-manager/newrelic/2024-03-01/monitors/method_delete.go b/resource-manager/newrelic/2024-03-01/monitors/method_delete.go index 738e0b8e56f..2c8a078705e 100644 --- a/resource-manager/newrelic/2024-03-01/monitors/method_delete.go +++ b/resource-manager/newrelic/2024-03-01/monitors/method_delete.go @@ -57,8 +57,8 @@ func (c MonitorsClient) Delete(ctx context.Context, id MonitorId, options Delete http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/newrelic/2024-03-01/monitors/method_listappservices.go b/resource-manager/newrelic/2024-03-01/monitors/method_listappservices.go index 662ffbf8930..9e8ec56a900 100644 --- a/resource-manager/newrelic/2024-03-01/monitors/method_listappservices.go +++ b/resource-manager/newrelic/2024-03-01/monitors/method_listappservices.go @@ -23,6 +23,18 @@ type ListAppServicesCompleteResult struct { Items []AppServiceInfo } +type ListAppServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAppServices ... func (c MonitorsClient) ListAppServices(ctx context.Context, id MonitorId, input AppServicesGetRequest) (result ListAppServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListAppServices(ctx context.Context, id MonitorId, input http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListAppServicesCustomPager{}, Path: fmt.Sprintf("%s/listAppServices", id.ID()), } diff --git a/resource-manager/newrelic/2024-03-01/monitors/method_listbyresourcegroup.go b/resource-manager/newrelic/2024-03-01/monitors/method_listbyresourcegroup.go index 9d8f6fd650b..344e6889edc 100644 --- a/resource-manager/newrelic/2024-03-01/monitors/method_listbyresourcegroup.go +++ b/resource-manager/newrelic/2024-03-01/monitors/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []NewRelicMonitorResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c MonitorsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/NewRelic.Observability/monitors", id.ID()), } diff --git a/resource-manager/newrelic/2024-03-01/monitors/method_listbysubscription.go b/resource-manager/newrelic/2024-03-01/monitors/method_listbysubscription.go index 80fd9b03dd0..427fc39568c 100644 --- a/resource-manager/newrelic/2024-03-01/monitors/method_listbysubscription.go +++ b/resource-manager/newrelic/2024-03-01/monitors/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []NewRelicMonitorResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c MonitorsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/NewRelic.Observability/monitors", id.ID()), } diff --git a/resource-manager/newrelic/2024-03-01/monitors/method_listhosts.go b/resource-manager/newrelic/2024-03-01/monitors/method_listhosts.go index da0c5e87bb6..8ad15541853 100644 --- a/resource-manager/newrelic/2024-03-01/monitors/method_listhosts.go +++ b/resource-manager/newrelic/2024-03-01/monitors/method_listhosts.go @@ -23,6 +23,18 @@ type ListHostsCompleteResult struct { Items []VMInfo } +type ListHostsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHostsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHosts ... func (c MonitorsClient) ListHosts(ctx context.Context, id MonitorId, input HostsGetRequest) (result ListHostsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListHosts(ctx context.Context, id MonitorId, input Hosts http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListHostsCustomPager{}, Path: fmt.Sprintf("%s/listHosts", id.ID()), } diff --git a/resource-manager/newrelic/2024-03-01/monitors/method_listmonitoredresources.go b/resource-manager/newrelic/2024-03-01/monitors/method_listmonitoredresources.go index 219a6ed3f4b..196681273b3 100644 --- a/resource-manager/newrelic/2024-03-01/monitors/method_listmonitoredresources.go +++ b/resource-manager/newrelic/2024-03-01/monitors/method_listmonitoredresources.go @@ -23,6 +23,18 @@ type ListMonitoredResourcesCompleteResult struct { Items []MonitoredResource } +type ListMonitoredResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMonitoredResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMonitoredResources ... func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId) (result ListMonitoredResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListMonitoredResourcesCustomPager{}, Path: fmt.Sprintf("%s/monitoredResources", id.ID()), } diff --git a/resource-manager/newrelic/2024-03-01/organizations/method_list.go b/resource-manager/newrelic/2024-03-01/organizations/method_list.go index 70d7027c443..37546d69ebf 100644 --- a/resource-manager/newrelic/2024-03-01/organizations/method_list.go +++ b/resource-manager/newrelic/2024-03-01/organizations/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OrganizationsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c OrganizationsClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/NewRelic.Observability/organizations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/NewRelic.Observability/organizations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/newrelic/2024-03-01/plan/method_list.go b/resource-manager/newrelic/2024-03-01/plan/method_list.go index ddca48040cf..fac82eefbbd 100644 --- a/resource-manager/newrelic/2024-03-01/plan/method_list.go +++ b/resource-manager/newrelic/2024-03-01/plan/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PlanClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PlanClient) List(ctx context.Context, id commonids.SubscriptionId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/NewRelic.Observability/plans", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/NewRelic.Observability/plans", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/newrelic/2024-03-01/tagrules/method_listbynewrelicmonitorresource.go b/resource-manager/newrelic/2024-03-01/tagrules/method_listbynewrelicmonitorresource.go index a3d533ff3d9..e7e1a901412 100644 --- a/resource-manager/newrelic/2024-03-01/tagrules/method_listbynewrelicmonitorresource.go +++ b/resource-manager/newrelic/2024-03-01/tagrules/method_listbynewrelicmonitorresource.go @@ -23,6 +23,18 @@ type ListByNewRelicMonitorResourceCompleteResult struct { Items []TagRule } +type ListByNewRelicMonitorResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNewRelicMonitorResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNewRelicMonitorResource ... func (c TagRulesClient) ListByNewRelicMonitorResource(ctx context.Context, id MonitorId) (result ListByNewRelicMonitorResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TagRulesClient) ListByNewRelicMonitorResource(ctx context.Context, id Mo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByNewRelicMonitorResourceCustomPager{}, Path: fmt.Sprintf("%s/tagRules", id.ID()), } diff --git a/resource-manager/nginx/2023-04-01/nginxcertificate/method_certificateslist.go b/resource-manager/nginx/2023-04-01/nginxcertificate/method_certificateslist.go index 7c04cf5ffaf..759cf53eb4f 100644 --- a/resource-manager/nginx/2023-04-01/nginxcertificate/method_certificateslist.go +++ b/resource-manager/nginx/2023-04-01/nginxcertificate/method_certificateslist.go @@ -23,6 +23,18 @@ type CertificatesListCompleteResult struct { Items []NginxCertificate } +type CertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CertificatesList ... func (c NginxCertificateClient) CertificatesList(ctx context.Context, id NginxDeploymentId) (result CertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NginxCertificateClient) CertificatesList(ctx context.Context, id NginxDe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CertificatesListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/nginx/2023-04-01/nginxconfiguration/method_configurationslist.go b/resource-manager/nginx/2023-04-01/nginxconfiguration/method_configurationslist.go index 34c3a779185..b450e93d029 100644 --- a/resource-manager/nginx/2023-04-01/nginxconfiguration/method_configurationslist.go +++ b/resource-manager/nginx/2023-04-01/nginxconfiguration/method_configurationslist.go @@ -23,6 +23,18 @@ type ConfigurationsListCompleteResult struct { Items []NginxConfiguration } +type ConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationsList ... func (c NginxConfigurationClient) ConfigurationsList(ctx context.Context, id NginxDeploymentId) (result ConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NginxConfigurationClient) ConfigurationsList(ctx context.Context, id Ngi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/configurations", id.ID()), } diff --git a/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentslist.go b/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentslist.go index 98d25063f3a..f9a1c4b11c4 100644 --- a/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentslist.go +++ b/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentslist.go @@ -24,6 +24,18 @@ type DeploymentsListCompleteResult struct { Items []NginxDeployment } +type DeploymentsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeploymentsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeploymentsList ... func (c NginxDeploymentClient) DeploymentsList(ctx context.Context, id commonids.SubscriptionId) (result DeploymentsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NginxDeploymentClient) DeploymentsList(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DeploymentsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Nginx.NginxPlus/nginxDeployments", id.ID()), } diff --git a/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentslistbyresourcegroup.go b/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentslistbyresourcegroup.go index c6b8eafe014..3ac1cec05f7 100644 --- a/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentslistbyresourcegroup.go +++ b/resource-manager/nginx/2023-04-01/nginxdeployment/method_deploymentslistbyresourcegroup.go @@ -24,6 +24,18 @@ type DeploymentsListByResourceGroupCompleteResult struct { Items []NginxDeployment } +type DeploymentsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeploymentsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeploymentsListByResourceGroup ... func (c NginxDeploymentClient) DeploymentsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result DeploymentsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NginxDeploymentClient) DeploymentsListByResourceGroup(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DeploymentsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Nginx.NginxPlus/nginxDeployments", id.ID()), } diff --git a/resource-manager/nginx/2023-09-01/nginxcertificate/method_certificateslist.go b/resource-manager/nginx/2023-09-01/nginxcertificate/method_certificateslist.go index 7c04cf5ffaf..759cf53eb4f 100644 --- a/resource-manager/nginx/2023-09-01/nginxcertificate/method_certificateslist.go +++ b/resource-manager/nginx/2023-09-01/nginxcertificate/method_certificateslist.go @@ -23,6 +23,18 @@ type CertificatesListCompleteResult struct { Items []NginxCertificate } +type CertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CertificatesList ... func (c NginxCertificateClient) CertificatesList(ctx context.Context, id NginxDeploymentId) (result CertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NginxCertificateClient) CertificatesList(ctx context.Context, id NginxDe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CertificatesListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/nginx/2023-09-01/nginxconfiguration/method_configurationslist.go b/resource-manager/nginx/2023-09-01/nginxconfiguration/method_configurationslist.go index 34c3a779185..b450e93d029 100644 --- a/resource-manager/nginx/2023-09-01/nginxconfiguration/method_configurationslist.go +++ b/resource-manager/nginx/2023-09-01/nginxconfiguration/method_configurationslist.go @@ -23,6 +23,18 @@ type ConfigurationsListCompleteResult struct { Items []NginxConfiguration } +type ConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationsList ... func (c NginxConfigurationClient) ConfigurationsList(ctx context.Context, id NginxDeploymentId) (result ConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NginxConfigurationClient) ConfigurationsList(ctx context.Context, id Ngi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/configurations", id.ID()), } diff --git a/resource-manager/nginx/2023-09-01/nginxdeployment/method_deploymentslist.go b/resource-manager/nginx/2023-09-01/nginxdeployment/method_deploymentslist.go index 98d25063f3a..f9a1c4b11c4 100644 --- a/resource-manager/nginx/2023-09-01/nginxdeployment/method_deploymentslist.go +++ b/resource-manager/nginx/2023-09-01/nginxdeployment/method_deploymentslist.go @@ -24,6 +24,18 @@ type DeploymentsListCompleteResult struct { Items []NginxDeployment } +type DeploymentsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeploymentsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeploymentsList ... func (c NginxDeploymentClient) DeploymentsList(ctx context.Context, id commonids.SubscriptionId) (result DeploymentsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NginxDeploymentClient) DeploymentsList(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DeploymentsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Nginx.NginxPlus/nginxDeployments", id.ID()), } diff --git a/resource-manager/nginx/2023-09-01/nginxdeployment/method_deploymentslistbyresourcegroup.go b/resource-manager/nginx/2023-09-01/nginxdeployment/method_deploymentslistbyresourcegroup.go index c6b8eafe014..3ac1cec05f7 100644 --- a/resource-manager/nginx/2023-09-01/nginxdeployment/method_deploymentslistbyresourcegroup.go +++ b/resource-manager/nginx/2023-09-01/nginxdeployment/method_deploymentslistbyresourcegroup.go @@ -24,6 +24,18 @@ type DeploymentsListByResourceGroupCompleteResult struct { Items []NginxDeployment } +type DeploymentsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeploymentsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeploymentsListByResourceGroup ... func (c NginxDeploymentClient) DeploymentsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result DeploymentsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NginxDeploymentClient) DeploymentsListByResourceGroup(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DeploymentsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Nginx.NginxPlus/nginxDeployments", id.ID()), } diff --git a/resource-manager/nginx/2024-01-01-preview/nginxcertificate/method_certificateslist.go b/resource-manager/nginx/2024-01-01-preview/nginxcertificate/method_certificateslist.go index 7c04cf5ffaf..759cf53eb4f 100644 --- a/resource-manager/nginx/2024-01-01-preview/nginxcertificate/method_certificateslist.go +++ b/resource-manager/nginx/2024-01-01-preview/nginxcertificate/method_certificateslist.go @@ -23,6 +23,18 @@ type CertificatesListCompleteResult struct { Items []NginxCertificate } +type CertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CertificatesList ... func (c NginxCertificateClient) CertificatesList(ctx context.Context, id NginxDeploymentId) (result CertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NginxCertificateClient) CertificatesList(ctx context.Context, id NginxDe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CertificatesListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/nginx/2024-01-01-preview/nginxconfiguration/method_configurationslist.go b/resource-manager/nginx/2024-01-01-preview/nginxconfiguration/method_configurationslist.go index 34c3a779185..b450e93d029 100644 --- a/resource-manager/nginx/2024-01-01-preview/nginxconfiguration/method_configurationslist.go +++ b/resource-manager/nginx/2024-01-01-preview/nginxconfiguration/method_configurationslist.go @@ -23,6 +23,18 @@ type ConfigurationsListCompleteResult struct { Items []NginxConfiguration } +type ConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationsList ... func (c NginxConfigurationClient) ConfigurationsList(ctx context.Context, id NginxDeploymentId) (result ConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NginxConfigurationClient) ConfigurationsList(ctx context.Context, id Ngi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/configurations", id.ID()), } diff --git a/resource-manager/nginx/2024-01-01-preview/nginxdeployment/method_deploymentslist.go b/resource-manager/nginx/2024-01-01-preview/nginxdeployment/method_deploymentslist.go index 98d25063f3a..f9a1c4b11c4 100644 --- a/resource-manager/nginx/2024-01-01-preview/nginxdeployment/method_deploymentslist.go +++ b/resource-manager/nginx/2024-01-01-preview/nginxdeployment/method_deploymentslist.go @@ -24,6 +24,18 @@ type DeploymentsListCompleteResult struct { Items []NginxDeployment } +type DeploymentsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeploymentsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeploymentsList ... func (c NginxDeploymentClient) DeploymentsList(ctx context.Context, id commonids.SubscriptionId) (result DeploymentsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NginxDeploymentClient) DeploymentsList(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DeploymentsListCustomPager{}, Path: fmt.Sprintf("%s/providers/Nginx.NginxPlus/nginxDeployments", id.ID()), } diff --git a/resource-manager/nginx/2024-01-01-preview/nginxdeployment/method_deploymentslistbyresourcegroup.go b/resource-manager/nginx/2024-01-01-preview/nginxdeployment/method_deploymentslistbyresourcegroup.go index c6b8eafe014..3ac1cec05f7 100644 --- a/resource-manager/nginx/2024-01-01-preview/nginxdeployment/method_deploymentslistbyresourcegroup.go +++ b/resource-manager/nginx/2024-01-01-preview/nginxdeployment/method_deploymentslistbyresourcegroup.go @@ -24,6 +24,18 @@ type DeploymentsListByResourceGroupCompleteResult struct { Items []NginxDeployment } +type DeploymentsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DeploymentsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DeploymentsListByResourceGroup ... func (c NginxDeploymentClient) DeploymentsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result DeploymentsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NginxDeploymentClient) DeploymentsListByResourceGroup(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DeploymentsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Nginx.NginxPlus/nginxDeployments", id.ID()), } diff --git a/resource-manager/notificationhubs/2017-04-01/namespaces/method_list.go b/resource-manager/notificationhubs/2017-04-01/namespaces/method_list.go index 0bfa2249c9d..0270c385ae5 100644 --- a/resource-manager/notificationhubs/2017-04-01/namespaces/method_list.go +++ b/resource-manager/notificationhubs/2017-04-01/namespaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []NamespaceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NamespacesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) List(ctx context.Context, id commonids.ResourceGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NotificationHubs/namespaces", id.ID()), } diff --git a/resource-manager/notificationhubs/2017-04-01/namespaces/method_listall.go b/resource-manager/notificationhubs/2017-04-01/namespaces/method_listall.go index 57dd7828abb..e094ef784e5 100644 --- a/resource-manager/notificationhubs/2017-04-01/namespaces/method_listall.go +++ b/resource-manager/notificationhubs/2017-04-01/namespaces/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []NamespaceResource } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NamespacesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) ListAll(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.NotificationHubs/namespaces", id.ID()), } diff --git a/resource-manager/notificationhubs/2017-04-01/namespaces/method_listauthorizationrules.go b/resource-manager/notificationhubs/2017-04-01/namespaces/method_listauthorizationrules.go index 16c0b10003a..799a6055b6f 100644 --- a/resource-manager/notificationhubs/2017-04-01/namespaces/method_listauthorizationrules.go +++ b/resource-manager/notificationhubs/2017-04-01/namespaces/method_listauthorizationrules.go @@ -23,6 +23,18 @@ type ListAuthorizationRulesCompleteResult struct { Items []SharedAccessAuthorizationRuleResource } +type ListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAuthorizationRules ... func (c NamespacesClient) ListAuthorizationRules(ctx context.Context, id NamespaceId) (result ListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesClient) ListAuthorizationRules(ctx context.Context, id Namespa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/notificationhubs/2017-04-01/notificationhubs/method_list.go b/resource-manager/notificationhubs/2017-04-01/notificationhubs/method_list.go index e5a3fdf83e5..6edca6a1a05 100644 --- a/resource-manager/notificationhubs/2017-04-01/notificationhubs/method_list.go +++ b/resource-manager/notificationhubs/2017-04-01/notificationhubs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []NotificationHubResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NotificationHubsClient) List(ctx context.Context, id NamespaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NotificationHubsClient) List(ctx context.Context, id NamespaceId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/notificationHubs", id.ID()), } diff --git a/resource-manager/notificationhubs/2017-04-01/notificationhubs/method_listauthorizationrules.go b/resource-manager/notificationhubs/2017-04-01/notificationhubs/method_listauthorizationrules.go index bd6dd3d4b14..98296a748b7 100644 --- a/resource-manager/notificationhubs/2017-04-01/notificationhubs/method_listauthorizationrules.go +++ b/resource-manager/notificationhubs/2017-04-01/notificationhubs/method_listauthorizationrules.go @@ -23,6 +23,18 @@ type ListAuthorizationRulesCompleteResult struct { Items []SharedAccessAuthorizationRuleResource } +type ListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAuthorizationRules ... func (c NotificationHubsClient) ListAuthorizationRules(ctx context.Context, id NotificationHubId) (result ListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NotificationHubsClient) ListAuthorizationRules(ctx context.Context, id N http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslist.go b/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslist.go index 6e9e23d6acd..4970dba0957 100644 --- a/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslist.go +++ b/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslist.go @@ -50,6 +50,18 @@ func (o NotificationHubsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type NotificationHubsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NotificationHubsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NotificationHubsList ... func (c HubsClient) NotificationHubsList(ctx context.Context, id NamespaceId, options NotificationHubsListOperationOptions) (result NotificationHubsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c HubsClient) NotificationHubsList(ctx context.Context, id NamespaceId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/notificationHubs", id.ID()), OptionsObject: options, + Pager: &NotificationHubsListCustomPager{}, + Path: fmt.Sprintf("%s/notificationHubs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslistauthorizationrules.go b/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslistauthorizationrules.go index f80ae8eadab..07bc014f660 100644 --- a/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslistauthorizationrules.go +++ b/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslistauthorizationrules.go @@ -23,6 +23,18 @@ type NotificationHubsListAuthorizationRulesCompleteResult struct { Items []SharedAccessAuthorizationRuleResource } +type NotificationHubsListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NotificationHubsListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NotificationHubsListAuthorizationRules ... func (c HubsClient) NotificationHubsListAuthorizationRules(ctx context.Context, id NotificationHubId) (result NotificationHubsListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HubsClient) NotificationHubsListAuthorizationRules(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NotificationHubsListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/notificationhubs/2023-09-01/namespaces/method_list.go b/resource-manager/notificationhubs/2023-09-01/namespaces/method_list.go index 0e7e3caf299..a899e019aa0 100644 --- a/resource-manager/notificationhubs/2023-09-01/namespaces/method_list.go +++ b/resource-manager/notificationhubs/2023-09-01/namespaces/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NamespacesClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NamespacesClient) List(ctx context.Context, id commonids.ResourceGroupId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.NotificationHubs/namespaces", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.NotificationHubs/namespaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/notificationhubs/2023-09-01/namespaces/method_listall.go b/resource-manager/notificationhubs/2023-09-01/namespaces/method_listall.go index 5467510c59d..c8c956b2708 100644 --- a/resource-manager/notificationhubs/2023-09-01/namespaces/method_listall.go +++ b/resource-manager/notificationhubs/2023-09-01/namespaces/method_listall.go @@ -51,6 +51,18 @@ func (o ListAllOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c NamespacesClient) ListAll(ctx context.Context, id commonids.SubscriptionId, options ListAllOperationOptions) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c NamespacesClient) ListAll(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.NotificationHubs/namespaces", id.ID()), OptionsObject: options, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.NotificationHubs/namespaces", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/notificationhubs/2023-09-01/namespaces/method_listauthorizationrules.go b/resource-manager/notificationhubs/2023-09-01/namespaces/method_listauthorizationrules.go index 16c0b10003a..799a6055b6f 100644 --- a/resource-manager/notificationhubs/2023-09-01/namespaces/method_listauthorizationrules.go +++ b/resource-manager/notificationhubs/2023-09-01/namespaces/method_listauthorizationrules.go @@ -23,6 +23,18 @@ type ListAuthorizationRulesCompleteResult struct { Items []SharedAccessAuthorizationRuleResource } +type ListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAuthorizationRules ... func (c NamespacesClient) ListAuthorizationRules(ctx context.Context, id NamespaceId) (result ListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesClient) ListAuthorizationRules(ctx context.Context, id Namespa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/notificationhubs/2023-09-01/privatelink/method_privateendpointconnectionslist.go b/resource-manager/notificationhubs/2023-09-01/privatelink/method_privateendpointconnectionslist.go index 9cd51f13021..c541f6e1fea 100644 --- a/resource-manager/notificationhubs/2023-09-01/privatelink/method_privateendpointconnectionslist.go +++ b/resource-manager/notificationhubs/2023-09-01/privatelink/method_privateendpointconnectionslist.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListCompleteResult struct { Items []PrivateEndpointConnectionResource } +type PrivateEndpointConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsList ... func (c PrivateLinkClient) PrivateEndpointConnectionsList(ctx context.Context, id NamespaceId) (result PrivateEndpointConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkClient) PrivateEndpointConnectionsList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/notificationhubs/2023-09-01/privatelink/method_privateendpointconnectionslistgroupids.go b/resource-manager/notificationhubs/2023-09-01/privatelink/method_privateendpointconnectionslistgroupids.go index 796749a1c9c..07b97e65735 100644 --- a/resource-manager/notificationhubs/2023-09-01/privatelink/method_privateendpointconnectionslistgroupids.go +++ b/resource-manager/notificationhubs/2023-09-01/privatelink/method_privateendpointconnectionslistgroupids.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListGroupIdsCompleteResult struct { Items []PrivateLinkResource } +type PrivateEndpointConnectionsListGroupIdsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListGroupIdsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsListGroupIds ... func (c PrivateLinkClient) PrivateEndpointConnectionsListGroupIds(ctx context.Context, id NamespaceId) (result PrivateEndpointConnectionsListGroupIdsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkClient) PrivateEndpointConnectionsListGroupIds(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListGroupIdsCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_querieslist.go b/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_querieslist.go index 7297cf6b6ed..278058205db 100644 --- a/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_querieslist.go +++ b/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_querieslist.go @@ -54,6 +54,18 @@ func (o QueriesListOperationOptions) ToQuery() *client.QueryParams { return &out } +type QueriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *QueriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // QueriesList ... func (c QueryPackQueriesClient) QueriesList(ctx context.Context, id QueryPackId, options QueriesListOperationOptions) (result QueriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c QueryPackQueriesClient) QueriesList(ctx context.Context, id QueryPackId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/queries", id.ID()), OptionsObject: options, + Pager: &QueriesListCustomPager{}, + Path: fmt.Sprintf("%s/queries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriessearch.go b/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriessearch.go index 3e2c4aaca01..b37a40c80c9 100644 --- a/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriessearch.go +++ b/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriessearch.go @@ -54,6 +54,18 @@ func (o QueriesSearchOperationOptions) ToQuery() *client.QueryParams { return &out } +type QueriesSearchCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *QueriesSearchCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // QueriesSearch ... func (c QueryPackQueriesClient) QueriesSearch(ctx context.Context, id QueryPackId, input LogAnalyticsQueryPackQuerySearchProperties, options QueriesSearchOperationOptions) (result QueriesSearchOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c QueryPackQueriesClient) QueriesSearch(ctx context.Context, id QueryPackI http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/queries/search", id.ID()), OptionsObject: options, + Pager: &QueriesSearchCustomPager{}, + Path: fmt.Sprintf("%s/queries/search", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/operationalinsights/2019-09-01/querypacks/method_list.go b/resource-manager/operationalinsights/2019-09-01/querypacks/method_list.go index fb9f1183296..32b92f450e9 100644 --- a/resource-manager/operationalinsights/2019-09-01/querypacks/method_list.go +++ b/resource-manager/operationalinsights/2019-09-01/querypacks/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []LogAnalyticsQueryPack } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c QueryPacksClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c QueryPacksClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.OperationalInsights/queryPacks", id.ID()), } diff --git a/resource-manager/operationalinsights/2019-09-01/querypacks/method_listbyresourcegroup.go b/resource-manager/operationalinsights/2019-09-01/querypacks/method_listbyresourcegroup.go index c05d715d827..e856e976ce0 100644 --- a/resource-manager/operationalinsights/2019-09-01/querypacks/method_listbyresourcegroup.go +++ b/resource-manager/operationalinsights/2019-09-01/querypacks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []LogAnalyticsQueryPack } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c QueryPacksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c QueryPacksClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.OperationalInsights/queryPacks", id.ID()), } diff --git a/resource-manager/operationalinsights/2020-08-01/clusters/method_list.go b/resource-manager/operationalinsights/2020-08-01/clusters/method_list.go index 9ae6ba22921..84041722337 100644 --- a/resource-manager/operationalinsights/2020-08-01/clusters/method_list.go +++ b/resource-manager/operationalinsights/2020-08-01/clusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.OperationalInsights/clusters", id.ID()), } diff --git a/resource-manager/operationalinsights/2020-08-01/clusters/method_listbyresourcegroup.go b/resource-manager/operationalinsights/2020-08-01/clusters/method_listbyresourcegroup.go index 4e753894d7d..2bd22023e91 100644 --- a/resource-manager/operationalinsights/2020-08-01/clusters/method_listbyresourcegroup.go +++ b/resource-manager/operationalinsights/2020-08-01/clusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.OperationalInsights/clusters", id.ID()), } diff --git a/resource-manager/operationalinsights/2020-08-01/datasources/method_listbyworkspace.go b/resource-manager/operationalinsights/2020-08-01/datasources/method_listbyworkspace.go index ffbd2aa55aa..27abd72a59d 100644 --- a/resource-manager/operationalinsights/2020-08-01/datasources/method_listbyworkspace.go +++ b/resource-manager/operationalinsights/2020-08-01/datasources/method_listbyworkspace.go @@ -50,6 +50,18 @@ func (o ListByWorkspaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c DataSourcesClient) ListByWorkspace(ctx context.Context, id WorkspaceId, options ListByWorkspaceOperationOptions) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DataSourcesClient) ListByWorkspace(ctx context.Context, id WorkspaceId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/dataSources", id.ID()), OptionsObject: options, + Pager: &ListByWorkspaceCustomPager{}, + Path: fmt.Sprintf("%s/dataSources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/operationalinsights/2020-08-01/storageinsights/method_storageinsightconfigslistbyworkspace.go b/resource-manager/operationalinsights/2020-08-01/storageinsights/method_storageinsightconfigslistbyworkspace.go index d31f4771fdb..eaed4a10791 100644 --- a/resource-manager/operationalinsights/2020-08-01/storageinsights/method_storageinsightconfigslistbyworkspace.go +++ b/resource-manager/operationalinsights/2020-08-01/storageinsights/method_storageinsightconfigslistbyworkspace.go @@ -23,6 +23,18 @@ type StorageInsightConfigsListByWorkspaceCompleteResult struct { Items []StorageInsight } +type StorageInsightConfigsListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"@odata.nextLink"` +} + +func (p *StorageInsightConfigsListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StorageInsightConfigsListByWorkspace ... func (c StorageInsightsClient) StorageInsightConfigsListByWorkspace(ctx context.Context, id WorkspaceId) (result StorageInsightConfigsListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StorageInsightsClient) StorageInsightConfigsListByWorkspace(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &StorageInsightConfigsListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/storageInsightConfigs", id.ID()), } diff --git a/resource-manager/operationalinsights/2020-08-01/workspaces/method_delete.go b/resource-manager/operationalinsights/2020-08-01/workspaces/method_delete.go index 1afdfd7c137..7a3578c5108 100644 --- a/resource-manager/operationalinsights/2020-08-01/workspaces/method_delete.go +++ b/resource-manager/operationalinsights/2020-08-01/workspaces/method_delete.go @@ -57,8 +57,8 @@ func (c WorkspacesClient) Delete(ctx context.Context, id WorkspaceId, options De http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/operationalinsights/2021-06-01/clusters/method_list.go b/resource-manager/operationalinsights/2021-06-01/clusters/method_list.go index 9ae6ba22921..84041722337 100644 --- a/resource-manager/operationalinsights/2021-06-01/clusters/method_list.go +++ b/resource-manager/operationalinsights/2021-06-01/clusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.OperationalInsights/clusters", id.ID()), } diff --git a/resource-manager/operationalinsights/2021-06-01/clusters/method_listbyresourcegroup.go b/resource-manager/operationalinsights/2021-06-01/clusters/method_listbyresourcegroup.go index 4e753894d7d..2bd22023e91 100644 --- a/resource-manager/operationalinsights/2021-06-01/clusters/method_listbyresourcegroup.go +++ b/resource-manager/operationalinsights/2021-06-01/clusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.OperationalInsights/clusters", id.ID()), } diff --git a/resource-manager/operationalinsights/2021-06-01/workspaces/method_delete.go b/resource-manager/operationalinsights/2021-06-01/workspaces/method_delete.go index 1afdfd7c137..7a3578c5108 100644 --- a/resource-manager/operationalinsights/2021-06-01/workspaces/method_delete.go +++ b/resource-manager/operationalinsights/2021-06-01/workspaces/method_delete.go @@ -57,8 +57,8 @@ func (c WorkspacesClient) Delete(ctx context.Context, id WorkspaceId, options De http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/operationalinsights/2022-10-01/clusters/method_list.go b/resource-manager/operationalinsights/2022-10-01/clusters/method_list.go index 9ae6ba22921..84041722337 100644 --- a/resource-manager/operationalinsights/2022-10-01/clusters/method_list.go +++ b/resource-manager/operationalinsights/2022-10-01/clusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.OperationalInsights/clusters", id.ID()), } diff --git a/resource-manager/operationalinsights/2022-10-01/clusters/method_listbyresourcegroup.go b/resource-manager/operationalinsights/2022-10-01/clusters/method_listbyresourcegroup.go index 4e753894d7d..2bd22023e91 100644 --- a/resource-manager/operationalinsights/2022-10-01/clusters/method_listbyresourcegroup.go +++ b/resource-manager/operationalinsights/2022-10-01/clusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.OperationalInsights/clusters", id.ID()), } diff --git a/resource-manager/operationalinsights/2022-10-01/workspaces/method_delete.go b/resource-manager/operationalinsights/2022-10-01/workspaces/method_delete.go index 1afdfd7c137..7a3578c5108 100644 --- a/resource-manager/operationalinsights/2022-10-01/workspaces/method_delete.go +++ b/resource-manager/operationalinsights/2022-10-01/workspaces/method_delete.go @@ -57,8 +57,8 @@ func (c WorkspacesClient) Delete(ctx context.Context, id WorkspaceId, options De http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/operationalinsights/2023-09-01/workspaces/method_delete.go b/resource-manager/operationalinsights/2023-09-01/workspaces/method_delete.go index 1afdfd7c137..7a3578c5108 100644 --- a/resource-manager/operationalinsights/2023-09-01/workspaces/method_delete.go +++ b/resource-manager/operationalinsights/2023-09-01/workspaces/method_delete.go @@ -57,8 +57,8 @@ func (c WorkspacesClient) Delete(ctx context.Context, id WorkspaceId, options De http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/orbital/2022-11-01/contact/method_list.go b/resource-manager/orbital/2022-11-01/contact/method_list.go index 7040420bd05..3a40e361003 100644 --- a/resource-manager/orbital/2022-11-01/contact/method_list.go +++ b/resource-manager/orbital/2022-11-01/contact/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Contact } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ContactClient) List(ctx context.Context, id SpacecraftId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContactClient) List(ctx context.Context, id SpacecraftId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/contacts", id.ID()), } diff --git a/resource-manager/orbital/2022-11-01/contact/method_spacecraftslistavailablecontacts.go b/resource-manager/orbital/2022-11-01/contact/method_spacecraftslistavailablecontacts.go index f062347bb12..0ce21ef3e36 100644 --- a/resource-manager/orbital/2022-11-01/contact/method_spacecraftslistavailablecontacts.go +++ b/resource-manager/orbital/2022-11-01/contact/method_spacecraftslistavailablecontacts.go @@ -26,6 +26,18 @@ type SpacecraftsListAvailableContactsCompleteResult struct { Items []AvailableContacts } +type SpacecraftsListAvailableContactsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SpacecraftsListAvailableContactsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SpacecraftsListAvailableContacts ... func (c ContactClient) SpacecraftsListAvailableContacts(ctx context.Context, id SpacecraftId, input ContactParameters) (result SpacecraftsListAvailableContactsOperationResponse, err error) { opts := client.RequestOptions{ @@ -35,6 +47,7 @@ func (c ContactClient) SpacecraftsListAvailableContacts(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &SpacecraftsListAvailableContactsCustomPager{}, Path: fmt.Sprintf("%s/listAvailableContacts", id.ID()), } diff --git a/resource-manager/orbital/2022-11-01/contactprofile/method_list.go b/resource-manager/orbital/2022-11-01/contactprofile/method_list.go index 808e9b05a5f..623de9581ab 100644 --- a/resource-manager/orbital/2022-11-01/contactprofile/method_list.go +++ b/resource-manager/orbital/2022-11-01/contactprofile/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ContactProfile } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ContactProfileClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ContactProfileClient) List(ctx context.Context, id commonids.ResourceGro http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Orbital/contactProfiles", id.ID()), } diff --git a/resource-manager/orbital/2022-11-01/contactprofile/method_listbysubscription.go b/resource-manager/orbital/2022-11-01/contactprofile/method_listbysubscription.go index b03b5993bd9..296efd8ceb0 100644 --- a/resource-manager/orbital/2022-11-01/contactprofile/method_listbysubscription.go +++ b/resource-manager/orbital/2022-11-01/contactprofile/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ContactProfile } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ContactProfileClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ContactProfileClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Orbital/contactProfiles", id.ID()), } diff --git a/resource-manager/orbital/2022-11-01/groundstation/method_availablegroundstationslistbycapability.go b/resource-manager/orbital/2022-11-01/groundstation/method_availablegroundstationslistbycapability.go index d293271b5ca..7844bdcbea1 100644 --- a/resource-manager/orbital/2022-11-01/groundstation/method_availablegroundstationslistbycapability.go +++ b/resource-manager/orbital/2022-11-01/groundstation/method_availablegroundstationslistbycapability.go @@ -51,6 +51,18 @@ func (o AvailableGroundStationsListByCapabilityOperationOptions) ToQuery() *clie return &out } +type AvailableGroundStationsListByCapabilityCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AvailableGroundStationsListByCapabilityCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AvailableGroundStationsListByCapability ... func (c GroundStationClient) AvailableGroundStationsListByCapability(ctx context.Context, id commonids.SubscriptionId, options AvailableGroundStationsListByCapabilityOperationOptions) (result AvailableGroundStationsListByCapabilityOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c GroundStationClient) AvailableGroundStationsListByCapability(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Orbital/availableGroundStations", id.ID()), OptionsObject: options, + Pager: &AvailableGroundStationsListByCapabilityCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Orbital/availableGroundStations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/orbital/2022-11-01/spacecraft/method_list.go b/resource-manager/orbital/2022-11-01/spacecraft/method_list.go index 010bc27f5f2..88bbf8453c2 100644 --- a/resource-manager/orbital/2022-11-01/spacecraft/method_list.go +++ b/resource-manager/orbital/2022-11-01/spacecraft/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Spacecraft } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SpacecraftClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SpacecraftClient) List(ctx context.Context, id commonids.ResourceGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Orbital/spacecrafts", id.ID()), } diff --git a/resource-manager/orbital/2022-11-01/spacecraft/method_listbysubscription.go b/resource-manager/orbital/2022-11-01/spacecraft/method_listbysubscription.go index 05834d262f0..3755ede0739 100644 --- a/resource-manager/orbital/2022-11-01/spacecraft/method_listbysubscription.go +++ b/resource-manager/orbital/2022-11-01/spacecraft/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Spacecraft } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SpacecraftClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SpacecraftClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Orbital/spacecrafts", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/method_list.go b/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/method_list.go index 5a5267e9d41..a1d8a03ad2c 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/method_list.go +++ b/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CertificateObjectGlobalRulestackResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CertificateObjectGlobalRulestackClient) List(ctx context.Context, id GlobalRulestackId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificateObjectGlobalRulestackClient) List(ctx context.Context, id Glo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/method_listbylocalrulestacks.go b/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/method_listbylocalrulestacks.go index 3d2cdd8bd9d..8d6679651cc 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/method_listbylocalrulestacks.go +++ b/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/method_listbylocalrulestacks.go @@ -23,6 +23,18 @@ type ListByLocalRulestacksCompleteResult struct { Items []CertificateObjectLocalRulestackResource } +type ListByLocalRulestacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocalRulestacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocalRulestacks ... func (c CertificateObjectLocalRulestackClient) ListByLocalRulestacks(ctx context.Context, id LocalRulestackId) (result ListByLocalRulestacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificateObjectLocalRulestackClient) ListByLocalRulestacks(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocalRulestacksCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getsupportinfo.go b/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getsupportinfo.go index a192a196df3..ca6cea4afef 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getsupportinfo.go +++ b/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getsupportinfo.go @@ -53,8 +53,8 @@ func (c FirewallsClient) GetSupportInfo(ctx context.Context, id FirewallId, opti http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getSupportInfo", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getSupportInfo", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_listbyresourcegroup.go b/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_listbyresourcegroup.go index 8cffbfeae69..37b80b3d6df 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_listbyresourcegroup.go +++ b/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []FirewallResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c FirewallsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FirewallsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/PaloAltoNetworks.Cloudngfw/firewalls", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_listbysubscription.go b/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_listbysubscription.go index 0822fbd6123..55088896a66 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_listbysubscription.go +++ b/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []FirewallResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c FirewallsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FirewallsClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/PaloAltoNetworks.Cloudngfw/firewalls", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/method_listbyfirewalls.go b/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/method_listbyfirewalls.go index fd1fb62d730..2e7ec77f34a 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/method_listbyfirewalls.go +++ b/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/method_listbyfirewalls.go @@ -23,6 +23,18 @@ type ListByFirewallsCompleteResult struct { Items []FirewallStatusResource } +type ListByFirewallsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFirewallsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFirewalls ... func (c FirewallStatusClient) ListByFirewalls(ctx context.Context, id FirewallId) (result ListByFirewallsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallStatusClient) ListByFirewalls(ctx context.Context, id FirewallId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFirewallsCustomPager{}, Path: fmt.Sprintf("%s/statuses", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/method_list.go b/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/method_list.go index d9a5e15c886..b00b89c2328 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/method_list.go +++ b/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []FqdnListGlobalRulestackResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FqdnListGlobalRulestackClient) List(ctx context.Context, id GlobalRulestackId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FqdnListGlobalRulestackClient) List(ctx context.Context, id GlobalRulest http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/fqdnLists", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/method_listbylocalrulestacks.go b/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/method_listbylocalrulestacks.go index 5b5601f9e9f..d2d4200fa84 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/method_listbylocalrulestacks.go +++ b/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/method_listbylocalrulestacks.go @@ -23,6 +23,18 @@ type ListByLocalRulestacksCompleteResult struct { Items []FqdnListLocalRulestackResource } +type ListByLocalRulestacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocalRulestacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocalRulestacks ... func (c FqdnListLocalRulestackClient) ListByLocalRulestacks(ctx context.Context, id LocalRulestackId) (result ListByLocalRulestacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FqdnListLocalRulestackClient) ListByLocalRulestacks(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocalRulestacksCustomPager{}, Path: fmt.Sprintf("%s/fqdnLists", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_list.go b/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_list.go index d1887d5fbc4..e2144c1fc25 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_list.go +++ b/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []GlobalRulestackResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GlobalRulestackClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GlobalRulestackClient) List(ctx context.Context) (result ListOperationRe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks", } diff --git a/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listadvancedsecurityobjects.go b/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listadvancedsecurityobjects.go index e52a990687c..fe87d9febc3 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listadvancedsecurityobjects.go +++ b/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listadvancedsecurityobjects.go @@ -58,6 +58,18 @@ func (o ListAdvancedSecurityObjectsOperationOptions) ToQuery() *client.QueryPara return &out } +type ListAdvancedSecurityObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAdvancedSecurityObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAdvancedSecurityObjects ... func (c GlobalRulestackClient) ListAdvancedSecurityObjects(ctx context.Context, id GlobalRulestackId, options ListAdvancedSecurityObjectsOperationOptions) (result ListAdvancedSecurityObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GlobalRulestackClient) ListAdvancedSecurityObjects(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listAdvancedSecurityObjects", id.ID()), OptionsObject: options, + Pager: &ListAdvancedSecurityObjectsCustomPager{}, + Path: fmt.Sprintf("%s/listAdvancedSecurityObjects", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listappids.go b/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listappids.go index 94d594ffd98..9502e473e1c 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listappids.go +++ b/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listappids.go @@ -62,6 +62,18 @@ func (o ListAppIdsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAppIdsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppIdsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAppIds ... func (c GlobalRulestackClient) ListAppIds(ctx context.Context, id GlobalRulestackId, options ListAppIdsOperationOptions) (result ListAppIdsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c GlobalRulestackClient) ListAppIds(ctx context.Context, id GlobalRulestac http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listAppIds", id.ID()), OptionsObject: options, + Pager: &ListAppIdsCustomPager{}, + Path: fmt.Sprintf("%s/listAppIds", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listcountries.go b/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listcountries.go index 651d7a750f9..7500f83f242 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listcountries.go +++ b/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listcountries.go @@ -54,6 +54,18 @@ func (o ListCountriesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCountriesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCountriesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCountries ... func (c GlobalRulestackClient) ListCountries(ctx context.Context, id GlobalRulestackId, options ListCountriesOperationOptions) (result ListCountriesOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c GlobalRulestackClient) ListCountries(ctx context.Context, id GlobalRules http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listCountries", id.ID()), OptionsObject: options, + Pager: &ListCountriesCustomPager{}, + Path: fmt.Sprintf("%s/listCountries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listfirewalls.go b/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listfirewalls.go index 55332ef3bbd..e84442657d8 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listfirewalls.go +++ b/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listfirewalls.go @@ -23,6 +23,18 @@ type ListFirewallsCompleteResult struct { Items []string } +type ListFirewallsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListFirewallsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListFirewalls ... func (c GlobalRulestackClient) ListFirewalls(ctx context.Context, id GlobalRulestackId) (result ListFirewallsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GlobalRulestackClient) ListFirewalls(ctx context.Context, id GlobalRules http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListFirewallsCustomPager{}, Path: fmt.Sprintf("%s/listFirewalls", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listpredefinedurlcategories.go b/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listpredefinedurlcategories.go index 531611464a7..8ef7328d4d8 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listpredefinedurlcategories.go +++ b/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listpredefinedurlcategories.go @@ -54,6 +54,18 @@ func (o ListPredefinedUrlCategoriesOperationOptions) ToQuery() *client.QueryPara return &out } +type ListPredefinedUrlCategoriesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPredefinedUrlCategoriesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPredefinedUrlCategories ... func (c GlobalRulestackClient) ListPredefinedUrlCategories(ctx context.Context, id GlobalRulestackId, options ListPredefinedUrlCategoriesOperationOptions) (result ListPredefinedUrlCategoriesOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c GlobalRulestackClient) ListPredefinedUrlCategories(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listPredefinedUrlCategories", id.ID()), OptionsObject: options, + Pager: &ListPredefinedUrlCategoriesCustomPager{}, + Path: fmt.Sprintf("%s/listPredefinedUrlCategories", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listsecurityservices.go b/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listsecurityservices.go index 403f520b29e..d513d0a796d 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listsecurityservices.go +++ b/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listsecurityservices.go @@ -58,6 +58,18 @@ func (o ListSecurityServicesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListSecurityServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSecurityServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSecurityServices ... func (c GlobalRulestackClient) ListSecurityServices(ctx context.Context, id GlobalRulestackId, options ListSecurityServicesOperationOptions) (result ListSecurityServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GlobalRulestackClient) ListSecurityServices(ctx context.Context, id Glob http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listSecurityServices", id.ID()), OptionsObject: options, + Pager: &ListSecurityServicesCustomPager{}, + Path: fmt.Sprintf("%s/listSecurityServices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/localrules/method_getcounters.go b/resource-manager/paloaltonetworks/2022-08-29/localrules/method_getcounters.go index fa56c2451fb..8667a19ac1a 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/localrules/method_getcounters.go +++ b/resource-manager/paloaltonetworks/2022-08-29/localrules/method_getcounters.go @@ -53,8 +53,8 @@ func (c LocalRulesClient) GetCounters(ctx context.Context, id LocalRuleId, optio http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/localrules/method_listbylocalrulestacks.go b/resource-manager/paloaltonetworks/2022-08-29/localrules/method_listbylocalrulestacks.go index 1518db79be3..24f218ce39d 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/localrules/method_listbylocalrulestacks.go +++ b/resource-manager/paloaltonetworks/2022-08-29/localrules/method_listbylocalrulestacks.go @@ -23,6 +23,18 @@ type ListByLocalRulestacksCompleteResult struct { Items []LocalRulesResource } +type ListByLocalRulestacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocalRulestacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocalRulestacks ... func (c LocalRulesClient) ListByLocalRulestacks(ctx context.Context, id LocalRulestackId) (result ListByLocalRulestacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LocalRulesClient) ListByLocalRulestacks(ctx context.Context, id LocalRul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocalRulestacksCustomPager{}, Path: fmt.Sprintf("%s/localRules", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/localrules/method_refreshcounters.go b/resource-manager/paloaltonetworks/2022-08-29/localrules/method_refreshcounters.go index bd8cb1221ad..eb986a4d5a7 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/localrules/method_refreshcounters.go +++ b/resource-manager/paloaltonetworks/2022-08-29/localrules/method_refreshcounters.go @@ -52,8 +52,8 @@ func (c LocalRulesClient) RefreshCounters(ctx context.Context, id LocalRuleId, o http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/refreshCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/refreshCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/localrules/method_resetcounters.go b/resource-manager/paloaltonetworks/2022-08-29/localrules/method_resetcounters.go index decf92d500f..9263a03dafb 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/localrules/method_resetcounters.go +++ b/resource-manager/paloaltonetworks/2022-08-29/localrules/method_resetcounters.go @@ -53,8 +53,8 @@ func (c LocalRulesClient) ResetCounters(ctx context.Context, id LocalRuleId, opt http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resetCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/resetCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_getsupportinfo.go b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_getsupportinfo.go index 296d185216f..5f4a6cce25f 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_getsupportinfo.go +++ b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_getsupportinfo.go @@ -53,8 +53,8 @@ func (c LocalRulestacksClient) GetSupportInfo(ctx context.Context, id LocalRules http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getSupportInfo", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getSupportInfo", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listadvancedsecurityobjects.go b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listadvancedsecurityobjects.go index 7c578b0c09e..068e60af148 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listadvancedsecurityobjects.go +++ b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listadvancedsecurityobjects.go @@ -58,6 +58,18 @@ func (o ListAdvancedSecurityObjectsOperationOptions) ToQuery() *client.QueryPara return &out } +type ListAdvancedSecurityObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAdvancedSecurityObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAdvancedSecurityObjects ... func (c LocalRulestacksClient) ListAdvancedSecurityObjects(ctx context.Context, id LocalRulestackId, options ListAdvancedSecurityObjectsOperationOptions) (result ListAdvancedSecurityObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c LocalRulestacksClient) ListAdvancedSecurityObjects(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listAdvancedSecurityObjects", id.ID()), OptionsObject: options, + Pager: &ListAdvancedSecurityObjectsCustomPager{}, + Path: fmt.Sprintf("%s/listAdvancedSecurityObjects", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listappids.go b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listappids.go index e18dc0d8ec2..1cfaa156ca7 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listappids.go +++ b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listappids.go @@ -62,6 +62,18 @@ func (o ListAppIdsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAppIdsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppIdsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAppIds ... func (c LocalRulestacksClient) ListAppIds(ctx context.Context, id LocalRulestackId, options ListAppIdsOperationOptions) (result ListAppIdsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c LocalRulestacksClient) ListAppIds(ctx context.Context, id LocalRulestack http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listAppIds", id.ID()), OptionsObject: options, + Pager: &ListAppIdsCustomPager{}, + Path: fmt.Sprintf("%s/listAppIds", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listbyresourcegroup.go b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listbyresourcegroup.go index 98883bffe22..c9074344e03 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listbyresourcegroup.go +++ b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []LocalRulestackResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c LocalRulestacksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LocalRulestacksClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/PaloAltoNetworks.Cloudngfw/localRulestacks", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listbysubscription.go b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listbysubscription.go index dead3ace4d4..b9bad56d043 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listbysubscription.go +++ b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []LocalRulestackResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c LocalRulestacksClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LocalRulestacksClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/PaloAltoNetworks.Cloudngfw/localRulestacks", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listcountries.go b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listcountries.go index 12a2a8ed144..4967691f1c6 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listcountries.go +++ b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listcountries.go @@ -54,6 +54,18 @@ func (o ListCountriesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCountriesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCountriesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCountries ... func (c LocalRulestacksClient) ListCountries(ctx context.Context, id LocalRulestackId, options ListCountriesOperationOptions) (result ListCountriesOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LocalRulestacksClient) ListCountries(ctx context.Context, id LocalRulest http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listCountries", id.ID()), OptionsObject: options, + Pager: &ListCountriesCustomPager{}, + Path: fmt.Sprintf("%s/listCountries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listfirewalls.go b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listfirewalls.go index 7c968862562..a22e56fa357 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listfirewalls.go +++ b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listfirewalls.go @@ -23,6 +23,18 @@ type ListFirewallsCompleteResult struct { Items []string } +type ListFirewallsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListFirewallsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListFirewalls ... func (c LocalRulestacksClient) ListFirewalls(ctx context.Context, id LocalRulestackId) (result ListFirewallsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LocalRulestacksClient) ListFirewalls(ctx context.Context, id LocalRulest http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListFirewallsCustomPager{}, Path: fmt.Sprintf("%s/listFirewalls", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listpredefinedurlcategories.go b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listpredefinedurlcategories.go index a69bde33d78..313cb881abd 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listpredefinedurlcategories.go +++ b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listpredefinedurlcategories.go @@ -54,6 +54,18 @@ func (o ListPredefinedUrlCategoriesOperationOptions) ToQuery() *client.QueryPara return &out } +type ListPredefinedUrlCategoriesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPredefinedUrlCategoriesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPredefinedUrlCategories ... func (c LocalRulestacksClient) ListPredefinedUrlCategories(ctx context.Context, id LocalRulestackId, options ListPredefinedUrlCategoriesOperationOptions) (result ListPredefinedUrlCategoriesOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LocalRulestacksClient) ListPredefinedUrlCategories(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listPredefinedUrlCategories", id.ID()), OptionsObject: options, + Pager: &ListPredefinedUrlCategoriesCustomPager{}, + Path: fmt.Sprintf("%s/listPredefinedUrlCategories", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listsecurityservices.go b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listsecurityservices.go index a2e69db5e9c..1e5b508ab74 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listsecurityservices.go +++ b/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listsecurityservices.go @@ -58,6 +58,18 @@ func (o ListSecurityServicesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListSecurityServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSecurityServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSecurityServices ... func (c LocalRulestacksClient) ListSecurityServices(ctx context.Context, id LocalRulestackId, options ListSecurityServicesOperationOptions) (result ListSecurityServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c LocalRulestacksClient) ListSecurityServices(ctx context.Context, id Loca http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listSecurityServices", id.ID()), OptionsObject: options, + Pager: &ListSecurityServicesCustomPager{}, + Path: fmt.Sprintf("%s/listSecurityServices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/postrules/method_getcounters.go b/resource-manager/paloaltonetworks/2022-08-29/postrules/method_getcounters.go index 5c42e84e472..7f5b245bdd3 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/postrules/method_getcounters.go +++ b/resource-manager/paloaltonetworks/2022-08-29/postrules/method_getcounters.go @@ -53,8 +53,8 @@ func (c PostRulesClient) GetCounters(ctx context.Context, id PostRuleId, options http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/postrules/method_list.go b/resource-manager/paloaltonetworks/2022-08-29/postrules/method_list.go index ddfce925e19..7b5b8e02588 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/postrules/method_list.go +++ b/resource-manager/paloaltonetworks/2022-08-29/postrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PostRulesResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PostRulesClient) List(ctx context.Context, id GlobalRulestackId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PostRulesClient) List(ctx context.Context, id GlobalRulestackId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/postRules", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/postrules/method_refreshcounters.go b/resource-manager/paloaltonetworks/2022-08-29/postrules/method_refreshcounters.go index 94c0b1c77db..5f13d57507c 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/postrules/method_refreshcounters.go +++ b/resource-manager/paloaltonetworks/2022-08-29/postrules/method_refreshcounters.go @@ -52,8 +52,8 @@ func (c PostRulesClient) RefreshCounters(ctx context.Context, id PostRuleId, opt http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/refreshCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/refreshCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/postrules/method_resetcounters.go b/resource-manager/paloaltonetworks/2022-08-29/postrules/method_resetcounters.go index 0492b989460..9b86dfc935b 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/postrules/method_resetcounters.go +++ b/resource-manager/paloaltonetworks/2022-08-29/postrules/method_resetcounters.go @@ -53,8 +53,8 @@ func (c PostRulesClient) ResetCounters(ctx context.Context, id PostRuleId, optio http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resetCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/resetCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/method_list.go b/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/method_list.go index b015158a3f4..1399ceab3bf 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/method_list.go +++ b/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrefixListGlobalRulestackResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrefixListGlobalRulestackClient) List(ctx context.Context, id GlobalRulestackId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrefixListGlobalRulestackClient) List(ctx context.Context, id GlobalRule http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/prefixLists", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/method_listbylocalrulestacks.go b/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/method_listbylocalrulestacks.go index 2302893a9ac..f0c51bed8b0 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/method_listbylocalrulestacks.go +++ b/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/method_listbylocalrulestacks.go @@ -23,6 +23,18 @@ type ListByLocalRulestacksCompleteResult struct { Items []PrefixListResource } +type ListByLocalRulestacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocalRulestacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocalRulestacks ... func (c PrefixListLocalRulestackClient) ListByLocalRulestacks(ctx context.Context, id LocalRulestackId) (result ListByLocalRulestacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrefixListLocalRulestackClient) ListByLocalRulestacks(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocalRulestacksCustomPager{}, Path: fmt.Sprintf("%s/prefixLists", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/prerules/method_getcounters.go b/resource-manager/paloaltonetworks/2022-08-29/prerules/method_getcounters.go index 035c204ae0a..e11bb703e5f 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/prerules/method_getcounters.go +++ b/resource-manager/paloaltonetworks/2022-08-29/prerules/method_getcounters.go @@ -53,8 +53,8 @@ func (c PreRulesClient) GetCounters(ctx context.Context, id PreRuleId, options G http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/prerules/method_list.go b/resource-manager/paloaltonetworks/2022-08-29/prerules/method_list.go index 7d5e3d3b68a..fea7255f6cb 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/prerules/method_list.go +++ b/resource-manager/paloaltonetworks/2022-08-29/prerules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PreRulesResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PreRulesClient) List(ctx context.Context, id GlobalRulestackId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PreRulesClient) List(ctx context.Context, id GlobalRulestackId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/preRules", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2022-08-29/prerules/method_refreshcounters.go b/resource-manager/paloaltonetworks/2022-08-29/prerules/method_refreshcounters.go index 87bb84242f0..57b1f95568e 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/prerules/method_refreshcounters.go +++ b/resource-manager/paloaltonetworks/2022-08-29/prerules/method_refreshcounters.go @@ -52,8 +52,8 @@ func (c PreRulesClient) RefreshCounters(ctx context.Context, id PreRuleId, optio http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/refreshCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/refreshCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2022-08-29/prerules/method_resetcounters.go b/resource-manager/paloaltonetworks/2022-08-29/prerules/method_resetcounters.go index 529c65de9c6..24728260a67 100644 --- a/resource-manager/paloaltonetworks/2022-08-29/prerules/method_resetcounters.go +++ b/resource-manager/paloaltonetworks/2022-08-29/prerules/method_resetcounters.go @@ -53,8 +53,8 @@ func (c PreRulesClient) ResetCounters(ctx context.Context, id PreRuleId, options http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resetCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/resetCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/method_list.go b/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/method_list.go index 5a5267e9d41..a1d8a03ad2c 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/method_list.go +++ b/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CertificateObjectGlobalRulestackResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CertificateObjectGlobalRulestackClient) List(ctx context.Context, id GlobalRulestackId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificateObjectGlobalRulestackClient) List(ctx context.Context, id Glo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/method_listbylocalrulestacks.go b/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/method_listbylocalrulestacks.go index 3d2cdd8bd9d..8d6679651cc 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/method_listbylocalrulestacks.go +++ b/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/method_listbylocalrulestacks.go @@ -23,6 +23,18 @@ type ListByLocalRulestacksCompleteResult struct { Items []CertificateObjectLocalRulestackResource } +type ListByLocalRulestacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocalRulestacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocalRulestacks ... func (c CertificateObjectLocalRulestackClient) ListByLocalRulestacks(ctx context.Context, id LocalRulestackId) (result ListByLocalRulestacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificateObjectLocalRulestackClient) ListByLocalRulestacks(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocalRulestacksCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getsupportinfo.go b/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getsupportinfo.go index a192a196df3..ca6cea4afef 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getsupportinfo.go +++ b/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getsupportinfo.go @@ -53,8 +53,8 @@ func (c FirewallsClient) GetSupportInfo(ctx context.Context, id FirewallId, opti http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getSupportInfo", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getSupportInfo", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_listbyresourcegroup.go b/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_listbyresourcegroup.go index 8cffbfeae69..37b80b3d6df 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_listbyresourcegroup.go +++ b/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []FirewallResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c FirewallsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FirewallsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/PaloAltoNetworks.Cloudngfw/firewalls", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_listbysubscription.go b/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_listbysubscription.go index 0822fbd6123..55088896a66 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_listbysubscription.go +++ b/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []FirewallResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c FirewallsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FirewallsClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/PaloAltoNetworks.Cloudngfw/firewalls", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/method_listbyfirewalls.go b/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/method_listbyfirewalls.go index fd1fb62d730..2e7ec77f34a 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/method_listbyfirewalls.go +++ b/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/method_listbyfirewalls.go @@ -23,6 +23,18 @@ type ListByFirewallsCompleteResult struct { Items []FirewallStatusResource } +type ListByFirewallsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByFirewallsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByFirewalls ... func (c FirewallStatusClient) ListByFirewalls(ctx context.Context, id FirewallId) (result ListByFirewallsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallStatusClient) ListByFirewalls(ctx context.Context, id FirewallId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByFirewallsCustomPager{}, Path: fmt.Sprintf("%s/statuses", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/method_list.go b/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/method_list.go index d9a5e15c886..b00b89c2328 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/method_list.go +++ b/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []FqdnListGlobalRulestackResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FqdnListGlobalRulestackClient) List(ctx context.Context, id GlobalRulestackId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FqdnListGlobalRulestackClient) List(ctx context.Context, id GlobalRulest http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/fqdnLists", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/method_listbylocalrulestacks.go b/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/method_listbylocalrulestacks.go index 5b5601f9e9f..d2d4200fa84 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/method_listbylocalrulestacks.go +++ b/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/method_listbylocalrulestacks.go @@ -23,6 +23,18 @@ type ListByLocalRulestacksCompleteResult struct { Items []FqdnListLocalRulestackResource } +type ListByLocalRulestacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocalRulestacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocalRulestacks ... func (c FqdnListLocalRulestackClient) ListByLocalRulestacks(ctx context.Context, id LocalRulestackId) (result ListByLocalRulestacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FqdnListLocalRulestackClient) ListByLocalRulestacks(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocalRulestacksCustomPager{}, Path: fmt.Sprintf("%s/fqdnLists", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_list.go b/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_list.go index d1887d5fbc4..e2144c1fc25 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_list.go +++ b/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []GlobalRulestackResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GlobalRulestackClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GlobalRulestackClient) List(ctx context.Context) (result ListOperationRe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/PaloAltoNetworks.Cloudngfw/globalRulestacks", } diff --git a/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listadvancedsecurityobjects.go b/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listadvancedsecurityobjects.go index e52a990687c..fe87d9febc3 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listadvancedsecurityobjects.go +++ b/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listadvancedsecurityobjects.go @@ -58,6 +58,18 @@ func (o ListAdvancedSecurityObjectsOperationOptions) ToQuery() *client.QueryPara return &out } +type ListAdvancedSecurityObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAdvancedSecurityObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAdvancedSecurityObjects ... func (c GlobalRulestackClient) ListAdvancedSecurityObjects(ctx context.Context, id GlobalRulestackId, options ListAdvancedSecurityObjectsOperationOptions) (result ListAdvancedSecurityObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GlobalRulestackClient) ListAdvancedSecurityObjects(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listAdvancedSecurityObjects", id.ID()), OptionsObject: options, + Pager: &ListAdvancedSecurityObjectsCustomPager{}, + Path: fmt.Sprintf("%s/listAdvancedSecurityObjects", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listappids.go b/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listappids.go index 94d594ffd98..9502e473e1c 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listappids.go +++ b/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listappids.go @@ -62,6 +62,18 @@ func (o ListAppIdsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAppIdsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppIdsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAppIds ... func (c GlobalRulestackClient) ListAppIds(ctx context.Context, id GlobalRulestackId, options ListAppIdsOperationOptions) (result ListAppIdsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c GlobalRulestackClient) ListAppIds(ctx context.Context, id GlobalRulestac http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listAppIds", id.ID()), OptionsObject: options, + Pager: &ListAppIdsCustomPager{}, + Path: fmt.Sprintf("%s/listAppIds", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listcountries.go b/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listcountries.go index 651d7a750f9..7500f83f242 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listcountries.go +++ b/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listcountries.go @@ -54,6 +54,18 @@ func (o ListCountriesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCountriesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCountriesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCountries ... func (c GlobalRulestackClient) ListCountries(ctx context.Context, id GlobalRulestackId, options ListCountriesOperationOptions) (result ListCountriesOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c GlobalRulestackClient) ListCountries(ctx context.Context, id GlobalRules http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listCountries", id.ID()), OptionsObject: options, + Pager: &ListCountriesCustomPager{}, + Path: fmt.Sprintf("%s/listCountries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listfirewalls.go b/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listfirewalls.go index 55332ef3bbd..e84442657d8 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listfirewalls.go +++ b/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listfirewalls.go @@ -23,6 +23,18 @@ type ListFirewallsCompleteResult struct { Items []string } +type ListFirewallsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListFirewallsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListFirewalls ... func (c GlobalRulestackClient) ListFirewalls(ctx context.Context, id GlobalRulestackId) (result ListFirewallsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GlobalRulestackClient) ListFirewalls(ctx context.Context, id GlobalRules http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListFirewallsCustomPager{}, Path: fmt.Sprintf("%s/listFirewalls", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listpredefinedurlcategories.go b/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listpredefinedurlcategories.go index 531611464a7..8ef7328d4d8 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listpredefinedurlcategories.go +++ b/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listpredefinedurlcategories.go @@ -54,6 +54,18 @@ func (o ListPredefinedUrlCategoriesOperationOptions) ToQuery() *client.QueryPara return &out } +type ListPredefinedUrlCategoriesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPredefinedUrlCategoriesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPredefinedUrlCategories ... func (c GlobalRulestackClient) ListPredefinedUrlCategories(ctx context.Context, id GlobalRulestackId, options ListPredefinedUrlCategoriesOperationOptions) (result ListPredefinedUrlCategoriesOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c GlobalRulestackClient) ListPredefinedUrlCategories(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listPredefinedUrlCategories", id.ID()), OptionsObject: options, + Pager: &ListPredefinedUrlCategoriesCustomPager{}, + Path: fmt.Sprintf("%s/listPredefinedUrlCategories", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listsecurityservices.go b/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listsecurityservices.go index 403f520b29e..d513d0a796d 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listsecurityservices.go +++ b/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listsecurityservices.go @@ -58,6 +58,18 @@ func (o ListSecurityServicesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListSecurityServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSecurityServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSecurityServices ... func (c GlobalRulestackClient) ListSecurityServices(ctx context.Context, id GlobalRulestackId, options ListSecurityServicesOperationOptions) (result ListSecurityServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c GlobalRulestackClient) ListSecurityServices(ctx context.Context, id Glob http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listSecurityServices", id.ID()), OptionsObject: options, + Pager: &ListSecurityServicesCustomPager{}, + Path: fmt.Sprintf("%s/listSecurityServices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/localrules/method_getcounters.go b/resource-manager/paloaltonetworks/2023-09-01/localrules/method_getcounters.go index fa56c2451fb..8667a19ac1a 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/localrules/method_getcounters.go +++ b/resource-manager/paloaltonetworks/2023-09-01/localrules/method_getcounters.go @@ -53,8 +53,8 @@ func (c LocalRulesClient) GetCounters(ctx context.Context, id LocalRuleId, optio http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/localrules/method_listbylocalrulestacks.go b/resource-manager/paloaltonetworks/2023-09-01/localrules/method_listbylocalrulestacks.go index 1518db79be3..24f218ce39d 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/localrules/method_listbylocalrulestacks.go +++ b/resource-manager/paloaltonetworks/2023-09-01/localrules/method_listbylocalrulestacks.go @@ -23,6 +23,18 @@ type ListByLocalRulestacksCompleteResult struct { Items []LocalRulesResource } +type ListByLocalRulestacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocalRulestacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocalRulestacks ... func (c LocalRulesClient) ListByLocalRulestacks(ctx context.Context, id LocalRulestackId) (result ListByLocalRulestacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LocalRulesClient) ListByLocalRulestacks(ctx context.Context, id LocalRul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocalRulestacksCustomPager{}, Path: fmt.Sprintf("%s/localRules", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/localrules/method_refreshcounters.go b/resource-manager/paloaltonetworks/2023-09-01/localrules/method_refreshcounters.go index bd8cb1221ad..eb986a4d5a7 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/localrules/method_refreshcounters.go +++ b/resource-manager/paloaltonetworks/2023-09-01/localrules/method_refreshcounters.go @@ -52,8 +52,8 @@ func (c LocalRulesClient) RefreshCounters(ctx context.Context, id LocalRuleId, o http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/refreshCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/refreshCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/localrules/method_resetcounters.go b/resource-manager/paloaltonetworks/2023-09-01/localrules/method_resetcounters.go index decf92d500f..9263a03dafb 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/localrules/method_resetcounters.go +++ b/resource-manager/paloaltonetworks/2023-09-01/localrules/method_resetcounters.go @@ -53,8 +53,8 @@ func (c LocalRulesClient) ResetCounters(ctx context.Context, id LocalRuleId, opt http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resetCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/resetCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_getsupportinfo.go b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_getsupportinfo.go index 296d185216f..5f4a6cce25f 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_getsupportinfo.go +++ b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_getsupportinfo.go @@ -53,8 +53,8 @@ func (c LocalRulestacksClient) GetSupportInfo(ctx context.Context, id LocalRules http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getSupportInfo", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getSupportInfo", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listadvancedsecurityobjects.go b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listadvancedsecurityobjects.go index 7c578b0c09e..068e60af148 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listadvancedsecurityobjects.go +++ b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listadvancedsecurityobjects.go @@ -58,6 +58,18 @@ func (o ListAdvancedSecurityObjectsOperationOptions) ToQuery() *client.QueryPara return &out } +type ListAdvancedSecurityObjectsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAdvancedSecurityObjectsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAdvancedSecurityObjects ... func (c LocalRulestacksClient) ListAdvancedSecurityObjects(ctx context.Context, id LocalRulestackId, options ListAdvancedSecurityObjectsOperationOptions) (result ListAdvancedSecurityObjectsOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c LocalRulestacksClient) ListAdvancedSecurityObjects(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listAdvancedSecurityObjects", id.ID()), OptionsObject: options, + Pager: &ListAdvancedSecurityObjectsCustomPager{}, + Path: fmt.Sprintf("%s/listAdvancedSecurityObjects", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listappids.go b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listappids.go index e18dc0d8ec2..1cfaa156ca7 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listappids.go +++ b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listappids.go @@ -62,6 +62,18 @@ func (o ListAppIdsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAppIdsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppIdsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAppIds ... func (c LocalRulestacksClient) ListAppIds(ctx context.Context, id LocalRulestackId, options ListAppIdsOperationOptions) (result ListAppIdsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c LocalRulestacksClient) ListAppIds(ctx context.Context, id LocalRulestack http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listAppIds", id.ID()), OptionsObject: options, + Pager: &ListAppIdsCustomPager{}, + Path: fmt.Sprintf("%s/listAppIds", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listbyresourcegroup.go b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listbyresourcegroup.go index 98883bffe22..c9074344e03 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listbyresourcegroup.go +++ b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []LocalRulestackResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c LocalRulestacksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LocalRulestacksClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/PaloAltoNetworks.Cloudngfw/localRulestacks", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listbysubscription.go b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listbysubscription.go index dead3ace4d4..b9bad56d043 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listbysubscription.go +++ b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []LocalRulestackResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c LocalRulestacksClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LocalRulestacksClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/PaloAltoNetworks.Cloudngfw/localRulestacks", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listcountries.go b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listcountries.go index 12a2a8ed144..4967691f1c6 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listcountries.go +++ b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listcountries.go @@ -54,6 +54,18 @@ func (o ListCountriesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCountriesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCountriesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCountries ... func (c LocalRulestacksClient) ListCountries(ctx context.Context, id LocalRulestackId, options ListCountriesOperationOptions) (result ListCountriesOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LocalRulestacksClient) ListCountries(ctx context.Context, id LocalRulest http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listCountries", id.ID()), OptionsObject: options, + Pager: &ListCountriesCustomPager{}, + Path: fmt.Sprintf("%s/listCountries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listfirewalls.go b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listfirewalls.go index 7c968862562..a22e56fa357 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listfirewalls.go +++ b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listfirewalls.go @@ -23,6 +23,18 @@ type ListFirewallsCompleteResult struct { Items []string } +type ListFirewallsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListFirewallsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListFirewalls ... func (c LocalRulestacksClient) ListFirewalls(ctx context.Context, id LocalRulestackId) (result ListFirewallsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LocalRulestacksClient) ListFirewalls(ctx context.Context, id LocalRulest http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListFirewallsCustomPager{}, Path: fmt.Sprintf("%s/listFirewalls", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listpredefinedurlcategories.go b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listpredefinedurlcategories.go index a69bde33d78..313cb881abd 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listpredefinedurlcategories.go +++ b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listpredefinedurlcategories.go @@ -54,6 +54,18 @@ func (o ListPredefinedUrlCategoriesOperationOptions) ToQuery() *client.QueryPara return &out } +type ListPredefinedUrlCategoriesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPredefinedUrlCategoriesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPredefinedUrlCategories ... func (c LocalRulestacksClient) ListPredefinedUrlCategories(ctx context.Context, id LocalRulestackId, options ListPredefinedUrlCategoriesOperationOptions) (result ListPredefinedUrlCategoriesOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LocalRulestacksClient) ListPredefinedUrlCategories(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listPredefinedUrlCategories", id.ID()), OptionsObject: options, + Pager: &ListPredefinedUrlCategoriesCustomPager{}, + Path: fmt.Sprintf("%s/listPredefinedUrlCategories", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listsecurityservices.go b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listsecurityservices.go index a2e69db5e9c..1e5b508ab74 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listsecurityservices.go +++ b/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listsecurityservices.go @@ -58,6 +58,18 @@ func (o ListSecurityServicesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListSecurityServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSecurityServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSecurityServices ... func (c LocalRulestacksClient) ListSecurityServices(ctx context.Context, id LocalRulestackId, options ListSecurityServicesOperationOptions) (result ListSecurityServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c LocalRulestacksClient) ListSecurityServices(ctx context.Context, id Loca http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listSecurityServices", id.ID()), OptionsObject: options, + Pager: &ListSecurityServicesCustomPager{}, + Path: fmt.Sprintf("%s/listSecurityServices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/postrules/method_getcounters.go b/resource-manager/paloaltonetworks/2023-09-01/postrules/method_getcounters.go index 5c42e84e472..7f5b245bdd3 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/postrules/method_getcounters.go +++ b/resource-manager/paloaltonetworks/2023-09-01/postrules/method_getcounters.go @@ -53,8 +53,8 @@ func (c PostRulesClient) GetCounters(ctx context.Context, id PostRuleId, options http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/postrules/method_list.go b/resource-manager/paloaltonetworks/2023-09-01/postrules/method_list.go index ddfce925e19..7b5b8e02588 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/postrules/method_list.go +++ b/resource-manager/paloaltonetworks/2023-09-01/postrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PostRulesResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PostRulesClient) List(ctx context.Context, id GlobalRulestackId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PostRulesClient) List(ctx context.Context, id GlobalRulestackId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/postRules", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/postrules/method_refreshcounters.go b/resource-manager/paloaltonetworks/2023-09-01/postrules/method_refreshcounters.go index 94c0b1c77db..5f13d57507c 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/postrules/method_refreshcounters.go +++ b/resource-manager/paloaltonetworks/2023-09-01/postrules/method_refreshcounters.go @@ -52,8 +52,8 @@ func (c PostRulesClient) RefreshCounters(ctx context.Context, id PostRuleId, opt http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/refreshCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/refreshCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/postrules/method_resetcounters.go b/resource-manager/paloaltonetworks/2023-09-01/postrules/method_resetcounters.go index 0492b989460..9b86dfc935b 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/postrules/method_resetcounters.go +++ b/resource-manager/paloaltonetworks/2023-09-01/postrules/method_resetcounters.go @@ -53,8 +53,8 @@ func (c PostRulesClient) ResetCounters(ctx context.Context, id PostRuleId, optio http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resetCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/resetCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/method_list.go b/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/method_list.go index b015158a3f4..1399ceab3bf 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/method_list.go +++ b/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrefixListGlobalRulestackResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrefixListGlobalRulestackClient) List(ctx context.Context, id GlobalRulestackId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrefixListGlobalRulestackClient) List(ctx context.Context, id GlobalRule http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/prefixLists", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/method_listbylocalrulestacks.go b/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/method_listbylocalrulestacks.go index 2302893a9ac..f0c51bed8b0 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/method_listbylocalrulestacks.go +++ b/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/method_listbylocalrulestacks.go @@ -23,6 +23,18 @@ type ListByLocalRulestacksCompleteResult struct { Items []PrefixListResource } +type ListByLocalRulestacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocalRulestacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocalRulestacks ... func (c PrefixListLocalRulestackClient) ListByLocalRulestacks(ctx context.Context, id LocalRulestackId) (result ListByLocalRulestacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrefixListLocalRulestackClient) ListByLocalRulestacks(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocalRulestacksCustomPager{}, Path: fmt.Sprintf("%s/prefixLists", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/prerules/method_getcounters.go b/resource-manager/paloaltonetworks/2023-09-01/prerules/method_getcounters.go index 035c204ae0a..e11bb703e5f 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/prerules/method_getcounters.go +++ b/resource-manager/paloaltonetworks/2023-09-01/prerules/method_getcounters.go @@ -53,8 +53,8 @@ func (c PreRulesClient) GetCounters(ctx context.Context, id PreRuleId, options G http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/getCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/getCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/prerules/method_list.go b/resource-manager/paloaltonetworks/2023-09-01/prerules/method_list.go index 7d5e3d3b68a..fea7255f6cb 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/prerules/method_list.go +++ b/resource-manager/paloaltonetworks/2023-09-01/prerules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PreRulesResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PreRulesClient) List(ctx context.Context, id GlobalRulestackId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PreRulesClient) List(ctx context.Context, id GlobalRulestackId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/preRules", id.ID()), } diff --git a/resource-manager/paloaltonetworks/2023-09-01/prerules/method_refreshcounters.go b/resource-manager/paloaltonetworks/2023-09-01/prerules/method_refreshcounters.go index 87bb84242f0..57b1f95568e 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/prerules/method_refreshcounters.go +++ b/resource-manager/paloaltonetworks/2023-09-01/prerules/method_refreshcounters.go @@ -52,8 +52,8 @@ func (c PreRulesClient) RefreshCounters(ctx context.Context, id PreRuleId, optio http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/refreshCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/refreshCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/paloaltonetworks/2023-09-01/prerules/method_resetcounters.go b/resource-manager/paloaltonetworks/2023-09-01/prerules/method_resetcounters.go index 529c65de9c6..24728260a67 100644 --- a/resource-manager/paloaltonetworks/2023-09-01/prerules/method_resetcounters.go +++ b/resource-manager/paloaltonetworks/2023-09-01/prerules/method_resetcounters.go @@ -53,8 +53,8 @@ func (c PreRulesClient) ResetCounters(ctx context.Context, id PreRuleId, options http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/resetCounters", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/resetCounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatmanagementgroup.go b/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatmanagementgroup.go index 9de79d7aa6d..f25cd5df359 100644 --- a/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatmanagementgroup.go +++ b/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatmanagementgroup.go @@ -50,6 +50,18 @@ func (o ListDeploymentsAtManagementGroupOperationOptions) ToQuery() *client.Quer return &out } +type ListDeploymentsAtManagementGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDeploymentsAtManagementGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDeploymentsAtManagementGroup ... func (c RemediationsClient) ListDeploymentsAtManagementGroup(ctx context.Context, id Providers2RemediationId, options ListDeploymentsAtManagementGroupOperationOptions) (result ListDeploymentsAtManagementGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c RemediationsClient) ListDeploymentsAtManagementGroup(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listDeployments", id.ID()), OptionsObject: options, + Pager: &ListDeploymentsAtManagementGroupCustomPager{}, + Path: fmt.Sprintf("%s/listDeployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresource.go b/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresource.go index 8d489524aa1..4f488712394 100644 --- a/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresource.go +++ b/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresource.go @@ -50,6 +50,18 @@ func (o ListDeploymentsAtResourceOperationOptions) ToQuery() *client.QueryParams return &out } +type ListDeploymentsAtResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDeploymentsAtResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDeploymentsAtResource ... func (c RemediationsClient) ListDeploymentsAtResource(ctx context.Context, id ScopedRemediationId, options ListDeploymentsAtResourceOperationOptions) (result ListDeploymentsAtResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c RemediationsClient) ListDeploymentsAtResource(ctx context.Context, id Sc http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listDeployments", id.ID()), OptionsObject: options, + Pager: &ListDeploymentsAtResourceCustomPager{}, + Path: fmt.Sprintf("%s/listDeployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresourcegroup.go b/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresourcegroup.go index 8ee010ffb9d..39bdfce404d 100644 --- a/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresourcegroup.go +++ b/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresourcegroup.go @@ -50,6 +50,18 @@ func (o ListDeploymentsAtResourceGroupOperationOptions) ToQuery() *client.QueryP return &out } +type ListDeploymentsAtResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDeploymentsAtResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDeploymentsAtResourceGroup ... func (c RemediationsClient) ListDeploymentsAtResourceGroup(ctx context.Context, id ProviderRemediationId, options ListDeploymentsAtResourceGroupOperationOptions) (result ListDeploymentsAtResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c RemediationsClient) ListDeploymentsAtResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listDeployments", id.ID()), OptionsObject: options, + Pager: &ListDeploymentsAtResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/listDeployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatsubscription.go b/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatsubscription.go index f444f91bb6e..01f28953a55 100644 --- a/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatsubscription.go +++ b/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatsubscription.go @@ -50,6 +50,18 @@ func (o ListDeploymentsAtSubscriptionOperationOptions) ToQuery() *client.QueryPa return &out } +type ListDeploymentsAtSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDeploymentsAtSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDeploymentsAtSubscription ... func (c RemediationsClient) ListDeploymentsAtSubscription(ctx context.Context, id RemediationId, options ListDeploymentsAtSubscriptionOperationOptions) (result ListDeploymentsAtSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c RemediationsClient) ListDeploymentsAtSubscription(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listDeployments", id.ID()), OptionsObject: options, + Pager: &ListDeploymentsAtSubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/listDeployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/policyinsights/2021-10-01/remediations/method_listformanagementgroup.go b/resource-manager/policyinsights/2021-10-01/remediations/method_listformanagementgroup.go index 3527fd9bcbf..2b60f0ffcab 100644 --- a/resource-manager/policyinsights/2021-10-01/remediations/method_listformanagementgroup.go +++ b/resource-manager/policyinsights/2021-10-01/remediations/method_listformanagementgroup.go @@ -54,6 +54,18 @@ func (o ListForManagementGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForManagementGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForManagementGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForManagementGroup ... func (c RemediationsClient) ListForManagementGroup(ctx context.Context, id ManagementGroupId, options ListForManagementGroupOperationOptions) (result ListForManagementGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c RemediationsClient) ListForManagementGroup(ctx context.Context, id Manag http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.PolicyInsights/remediations", id.ID()), OptionsObject: options, + Pager: &ListForManagementGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.PolicyInsights/remediations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/policyinsights/2021-10-01/remediations/method_listforresource.go b/resource-manager/policyinsights/2021-10-01/remediations/method_listforresource.go index ec7cf8e1818..43a70d3a5fc 100644 --- a/resource-manager/policyinsights/2021-10-01/remediations/method_listforresource.go +++ b/resource-manager/policyinsights/2021-10-01/remediations/method_listforresource.go @@ -55,6 +55,18 @@ func (o ListForResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResource ... func (c RemediationsClient) ListForResource(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (result ListForResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RemediationsClient) ListForResource(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.PolicyInsights/remediations", id.ID()), OptionsObject: options, + Pager: &ListForResourceCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.PolicyInsights/remediations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/policyinsights/2021-10-01/remediations/method_listforresourcegroup.go b/resource-manager/policyinsights/2021-10-01/remediations/method_listforresourcegroup.go index 55301a75c1e..f788d641c8c 100644 --- a/resource-manager/policyinsights/2021-10-01/remediations/method_listforresourcegroup.go +++ b/resource-manager/policyinsights/2021-10-01/remediations/method_listforresourcegroup.go @@ -55,6 +55,18 @@ func (o ListForResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResourceGroup ... func (c RemediationsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (result ListForResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RemediationsClient) ListForResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.PolicyInsights/remediations", id.ID()), OptionsObject: options, + Pager: &ListForResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.PolicyInsights/remediations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/policyinsights/2021-10-01/remediations/method_listforsubscription.go b/resource-manager/policyinsights/2021-10-01/remediations/method_listforsubscription.go index c752e6033b5..a0f43f3b4e4 100644 --- a/resource-manager/policyinsights/2021-10-01/remediations/method_listforsubscription.go +++ b/resource-manager/policyinsights/2021-10-01/remediations/method_listforsubscription.go @@ -55,6 +55,18 @@ func (o ListForSubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForSubscription ... func (c RemediationsClient) ListForSubscription(ctx context.Context, id commonids.SubscriptionId, options ListForSubscriptionOperationOptions) (result ListForSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RemediationsClient) ListForSubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.PolicyInsights/remediations", id.ID()), OptionsObject: options, + Pager: &ListForSubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.PolicyInsights/remediations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/policyinsights/2022-09-01/attestations/method_listforresource.go b/resource-manager/policyinsights/2022-09-01/attestations/method_listforresource.go index b64e960c361..e677b8e43e0 100644 --- a/resource-manager/policyinsights/2022-09-01/attestations/method_listforresource.go +++ b/resource-manager/policyinsights/2022-09-01/attestations/method_listforresource.go @@ -55,6 +55,18 @@ func (o ListForResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResource ... func (c AttestationsClient) ListForResource(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (result ListForResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c AttestationsClient) ListForResource(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.PolicyInsights/attestations", id.ID()), OptionsObject: options, + Pager: &ListForResourceCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.PolicyInsights/attestations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/policyinsights/2022-09-01/attestations/method_listforresourcegroup.go b/resource-manager/policyinsights/2022-09-01/attestations/method_listforresourcegroup.go index 5edbba01058..96ee450043d 100644 --- a/resource-manager/policyinsights/2022-09-01/attestations/method_listforresourcegroup.go +++ b/resource-manager/policyinsights/2022-09-01/attestations/method_listforresourcegroup.go @@ -55,6 +55,18 @@ func (o ListForResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResourceGroup ... func (c AttestationsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (result ListForResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c AttestationsClient) ListForResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.PolicyInsights/attestations", id.ID()), OptionsObject: options, + Pager: &ListForResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.PolicyInsights/attestations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/policyinsights/2022-09-01/attestations/method_listforsubscription.go b/resource-manager/policyinsights/2022-09-01/attestations/method_listforsubscription.go index e4323c63aa9..36532a64e96 100644 --- a/resource-manager/policyinsights/2022-09-01/attestations/method_listforsubscription.go +++ b/resource-manager/policyinsights/2022-09-01/attestations/method_listforsubscription.go @@ -55,6 +55,18 @@ func (o ListForSubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForSubscription ... func (c AttestationsClient) ListForSubscription(ctx context.Context, id commonids.SubscriptionId, options ListForSubscriptionOperationOptions) (result ListForSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c AttestationsClient) ListForSubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.PolicyInsights/attestations", id.ID()), OptionsObject: options, + Pager: &ListForSubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.PolicyInsights/attestations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/portal/2019-01-01-preview/dashboard/method_listbyresourcegroup.go b/resource-manager/portal/2019-01-01-preview/dashboard/method_listbyresourcegroup.go index 72a5ac839c1..c353fa2063d 100644 --- a/resource-manager/portal/2019-01-01-preview/dashboard/method_listbyresourcegroup.go +++ b/resource-manager/portal/2019-01-01-preview/dashboard/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Dashboard } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DashboardClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DashboardClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Portal/dashboards", id.ID()), } diff --git a/resource-manager/portal/2019-01-01-preview/dashboard/method_listbysubscription.go b/resource-manager/portal/2019-01-01-preview/dashboard/method_listbysubscription.go index caefe844dd4..2ac417d82c7 100644 --- a/resource-manager/portal/2019-01-01-preview/dashboard/method_listbysubscription.go +++ b/resource-manager/portal/2019-01-01-preview/dashboard/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Dashboard } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DashboardClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DashboardClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Portal/dashboards", id.ID()), } diff --git a/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_list.go b/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_list.go index 9878ce914ff..69dbcf98bca 100644 --- a/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_list.go +++ b/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Configuration } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TenantConfigurationClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TenantConfigurationClient) List(ctx context.Context) (result ListOperati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.Portal/tenantConfigurations", } diff --git a/resource-manager/portal/2020-09-01-preview/dashboard/method_listbyresourcegroup.go b/resource-manager/portal/2020-09-01-preview/dashboard/method_listbyresourcegroup.go index 72a5ac839c1..c353fa2063d 100644 --- a/resource-manager/portal/2020-09-01-preview/dashboard/method_listbyresourcegroup.go +++ b/resource-manager/portal/2020-09-01-preview/dashboard/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Dashboard } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DashboardClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DashboardClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Portal/dashboards", id.ID()), } diff --git a/resource-manager/portal/2020-09-01-preview/dashboard/method_listbysubscription.go b/resource-manager/portal/2020-09-01-preview/dashboard/method_listbysubscription.go index caefe844dd4..2ac417d82c7 100644 --- a/resource-manager/portal/2020-09-01-preview/dashboard/method_listbysubscription.go +++ b/resource-manager/portal/2020-09-01-preview/dashboard/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Dashboard } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DashboardClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DashboardClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Portal/dashboards", id.ID()), } diff --git a/resource-manager/portal/2020-09-01-preview/listtenantconfigurationviolations/method_list.go b/resource-manager/portal/2020-09-01-preview/listtenantconfigurationviolations/method_list.go index ddea197f235..6f569b96318 100644 --- a/resource-manager/portal/2020-09-01-preview/listtenantconfigurationviolations/method_list.go +++ b/resource-manager/portal/2020-09-01-preview/listtenantconfigurationviolations/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Violation } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ListTenantConfigurationViolationsClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ListTenantConfigurationViolationsClient) List(ctx context.Context) (resu http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.Portal/listTenantConfigurationViolations", } diff --git a/resource-manager/portal/2020-09-01-preview/tenantconfiguration/method_list.go b/resource-manager/portal/2020-09-01-preview/tenantconfiguration/method_list.go index 9878ce914ff..69dbcf98bca 100644 --- a/resource-manager/portal/2020-09-01-preview/tenantconfiguration/method_list.go +++ b/resource-manager/portal/2020-09-01-preview/tenantconfiguration/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Configuration } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TenantConfigurationClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TenantConfigurationClient) List(ctx context.Context) (result ListOperati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.Portal/tenantConfigurations", } diff --git a/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/method_listbyserver.go b/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/method_listbyserver.go index 3ecfe89a63c..f56e0ff6eb3 100644 --- a/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/method_listbyserver.go +++ b/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []ServerSecurityAlertPolicy } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/securityAlertPolicies", id.ID()), } diff --git a/resource-manager/postgresql/2017-12-01/virtualnetworkrules/method_listbyserver.go b/resource-manager/postgresql/2017-12-01/virtualnetworkrules/method_listbyserver.go index c965d49ec55..d851635e6b8 100644 --- a/resource-manager/postgresql/2017-12-01/virtualnetworkrules/method_listbyserver.go +++ b/resource-manager/postgresql/2017-12-01/virtualnetworkrules/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []VirtualNetworkRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c VirtualNetworkRulesClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualNetworkRulesClient) ListByServer(ctx context.Context, id ServerId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkRules", id.ID()), } diff --git a/resource-manager/postgresql/2020-01-01/serverkeys/method_list.go b/resource-manager/postgresql/2020-01-01/serverkeys/method_list.go index 4bc1fe03033..3ddbe301605 100644 --- a/resource-manager/postgresql/2020-01-01/serverkeys/method_list.go +++ b/resource-manager/postgresql/2020-01-01/serverkeys/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ServerKey } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServerKeysClient) List(ctx context.Context, id ServerId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServerKeysClient) List(ctx context.Context, id ServerId) (result ListOpe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/keys", id.ID()), } diff --git a/resource-manager/postgresql/2021-06-01/configurations/method_listbyserver.go b/resource-manager/postgresql/2021-06-01/configurations/method_listbyserver.go index 0fb48358cee..bef8498dc6b 100644 --- a/resource-manager/postgresql/2021-06-01/configurations/method_listbyserver.go +++ b/resource-manager/postgresql/2021-06-01/configurations/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []Configuration } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/configurations", id.ID()), } diff --git a/resource-manager/postgresql/2021-06-01/databases/method_listbyserver.go b/resource-manager/postgresql/2021-06-01/databases/method_listbyserver.go index effbee5917c..68487e28ffb 100644 --- a/resource-manager/postgresql/2021-06-01/databases/method_listbyserver.go +++ b/resource-manager/postgresql/2021-06-01/databases/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []Database } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c DatabasesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DatabasesClient) ListByServer(ctx context.Context, id FlexibleServerId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/postgresql/2021-06-01/firewallrules/method_listbyserver.go b/resource-manager/postgresql/2021-06-01/firewallrules/method_listbyserver.go index beaab6068da..5f3772c0193 100644 --- a/resource-manager/postgresql/2021-06-01/firewallrules/method_listbyserver.go +++ b/resource-manager/postgresql/2021-06-01/firewallrules/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []FirewallRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c FirewallRulesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallRulesClient) ListByServer(ctx context.Context, id FlexibleServer http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/postgresql/2021-06-01/locationbasedcapabilities/method_execute.go b/resource-manager/postgresql/2021-06-01/locationbasedcapabilities/method_execute.go index 05e2fd14449..162b91263ee 100644 --- a/resource-manager/postgresql/2021-06-01/locationbasedcapabilities/method_execute.go +++ b/resource-manager/postgresql/2021-06-01/locationbasedcapabilities/method_execute.go @@ -23,6 +23,18 @@ type ExecuteCompleteResult struct { Items []CapabilityProperties } +type ExecuteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExecuteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Execute ... func (c LocationBasedCapabilitiesClient) Execute(ctx context.Context, id LocationId) (result ExecuteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LocationBasedCapabilitiesClient) Execute(ctx context.Context, id Locatio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ExecuteCustomPager{}, Path: fmt.Sprintf("%s/capabilities", id.ID()), } diff --git a/resource-manager/postgresql/2021-06-01/servers/method_list.go b/resource-manager/postgresql/2021-06-01/servers/method_list.go index ff69884c482..e288bb76ead 100644 --- a/resource-manager/postgresql/2021-06-01/servers/method_list.go +++ b/resource-manager/postgresql/2021-06-01/servers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Server } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforPostgreSQL/flexibleServers", id.ID()), } diff --git a/resource-manager/postgresql/2021-06-01/servers/method_listbyresourcegroup.go b/resource-manager/postgresql/2021-06-01/servers/method_listbyresourcegroup.go index f498cdb4fce..f2e980ef6e1 100644 --- a/resource-manager/postgresql/2021-06-01/servers/method_listbyresourcegroup.go +++ b/resource-manager/postgresql/2021-06-01/servers/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Server } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforPostgreSQL/flexibleServers", id.ID()), } diff --git a/resource-manager/postgresql/2022-12-01/administrators/method_listbyserver.go b/resource-manager/postgresql/2022-12-01/administrators/method_listbyserver.go index ff8e4ae6676..0d5db978165 100644 --- a/resource-manager/postgresql/2022-12-01/administrators/method_listbyserver.go +++ b/resource-manager/postgresql/2022-12-01/administrators/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []ActiveDirectoryAdministrator } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c AdministratorsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AdministratorsClient) ListByServer(ctx context.Context, id FlexibleServe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/administrators", id.ID()), } diff --git a/resource-manager/postgresql/2022-12-01/backups/method_listbyserver.go b/resource-manager/postgresql/2022-12-01/backups/method_listbyserver.go index 3b572dd6305..b9beeb1342e 100644 --- a/resource-manager/postgresql/2022-12-01/backups/method_listbyserver.go +++ b/resource-manager/postgresql/2022-12-01/backups/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []ServerBackup } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c BackupsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupsClient) ListByServer(ctx context.Context, id FlexibleServerId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/backups", id.ID()), } diff --git a/resource-manager/postgresql/2022-12-01/configurations/method_listbyserver.go b/resource-manager/postgresql/2022-12-01/configurations/method_listbyserver.go index 0fb48358cee..bef8498dc6b 100644 --- a/resource-manager/postgresql/2022-12-01/configurations/method_listbyserver.go +++ b/resource-manager/postgresql/2022-12-01/configurations/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []Configuration } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/configurations", id.ID()), } diff --git a/resource-manager/postgresql/2022-12-01/databases/method_listbyserver.go b/resource-manager/postgresql/2022-12-01/databases/method_listbyserver.go index effbee5917c..68487e28ffb 100644 --- a/resource-manager/postgresql/2022-12-01/databases/method_listbyserver.go +++ b/resource-manager/postgresql/2022-12-01/databases/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []Database } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c DatabasesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DatabasesClient) ListByServer(ctx context.Context, id FlexibleServerId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/postgresql/2022-12-01/firewallrules/method_listbyserver.go b/resource-manager/postgresql/2022-12-01/firewallrules/method_listbyserver.go index beaab6068da..5f3772c0193 100644 --- a/resource-manager/postgresql/2022-12-01/firewallrules/method_listbyserver.go +++ b/resource-manager/postgresql/2022-12-01/firewallrules/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []FirewallRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c FirewallRulesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallRulesClient) ListByServer(ctx context.Context, id FlexibleServer http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/postgresql/2022-12-01/locationbasedcapabilities/method_execute.go b/resource-manager/postgresql/2022-12-01/locationbasedcapabilities/method_execute.go index 05e2fd14449..162b91263ee 100644 --- a/resource-manager/postgresql/2022-12-01/locationbasedcapabilities/method_execute.go +++ b/resource-manager/postgresql/2022-12-01/locationbasedcapabilities/method_execute.go @@ -23,6 +23,18 @@ type ExecuteCompleteResult struct { Items []CapabilityProperties } +type ExecuteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExecuteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Execute ... func (c LocationBasedCapabilitiesClient) Execute(ctx context.Context, id LocationId) (result ExecuteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LocationBasedCapabilitiesClient) Execute(ctx context.Context, id Locatio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ExecuteCustomPager{}, Path: fmt.Sprintf("%s/capabilities", id.ID()), } diff --git a/resource-manager/postgresql/2022-12-01/replicas/method_listbyserver.go b/resource-manager/postgresql/2022-12-01/replicas/method_listbyserver.go index 636fa5aea8d..16d7c7771c4 100644 --- a/resource-manager/postgresql/2022-12-01/replicas/method_listbyserver.go +++ b/resource-manager/postgresql/2022-12-01/replicas/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []Server } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ReplicasClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicasClient) ListByServer(ctx context.Context, id FlexibleServerId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/replicas", id.ID()), } diff --git a/resource-manager/postgresql/2022-12-01/servers/method_list.go b/resource-manager/postgresql/2022-12-01/servers/method_list.go index ff69884c482..e288bb76ead 100644 --- a/resource-manager/postgresql/2022-12-01/servers/method_list.go +++ b/resource-manager/postgresql/2022-12-01/servers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Server } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforPostgreSQL/flexibleServers", id.ID()), } diff --git a/resource-manager/postgresql/2022-12-01/servers/method_listbyresourcegroup.go b/resource-manager/postgresql/2022-12-01/servers/method_listbyresourcegroup.go index f498cdb4fce..f2e980ef6e1 100644 --- a/resource-manager/postgresql/2022-12-01/servers/method_listbyresourcegroup.go +++ b/resource-manager/postgresql/2022-12-01/servers/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Server } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforPostgreSQL/flexibleServers", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/administrators/method_listbyserver.go b/resource-manager/postgresql/2023-06-01-preview/administrators/method_listbyserver.go index ff8e4ae6676..0d5db978165 100644 --- a/resource-manager/postgresql/2023-06-01-preview/administrators/method_listbyserver.go +++ b/resource-manager/postgresql/2023-06-01-preview/administrators/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []ActiveDirectoryAdministrator } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c AdministratorsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AdministratorsClient) ListByServer(ctx context.Context, id FlexibleServe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/administrators", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/advancedthreatprotectionsettings/method_serverthreatprotectionsettingslistbyserver.go b/resource-manager/postgresql/2023-06-01-preview/advancedthreatprotectionsettings/method_serverthreatprotectionsettingslistbyserver.go index 99655f16328..1547145f636 100644 --- a/resource-manager/postgresql/2023-06-01-preview/advancedthreatprotectionsettings/method_serverthreatprotectionsettingslistbyserver.go +++ b/resource-manager/postgresql/2023-06-01-preview/advancedthreatprotectionsettings/method_serverthreatprotectionsettingslistbyserver.go @@ -23,6 +23,18 @@ type ServerThreatProtectionSettingsListByServerCompleteResult struct { Items []ServerThreatProtectionSettingsModel } +type ServerThreatProtectionSettingsListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServerThreatProtectionSettingsListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServerThreatProtectionSettingsListByServer ... func (c AdvancedThreatProtectionSettingsClient) ServerThreatProtectionSettingsListByServer(ctx context.Context, id FlexibleServerId) (result ServerThreatProtectionSettingsListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AdvancedThreatProtectionSettingsClient) ServerThreatProtectionSettingsLi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServerThreatProtectionSettingsListByServerCustomPager{}, Path: fmt.Sprintf("%s/advancedThreatProtectionSettings", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/backups/method_listbyserver.go b/resource-manager/postgresql/2023-06-01-preview/backups/method_listbyserver.go index 3b572dd6305..b9beeb1342e 100644 --- a/resource-manager/postgresql/2023-06-01-preview/backups/method_listbyserver.go +++ b/resource-manager/postgresql/2023-06-01-preview/backups/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []ServerBackup } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c BackupsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BackupsClient) ListByServer(ctx context.Context, id FlexibleServerId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/backups", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/configurations/method_listbyserver.go b/resource-manager/postgresql/2023-06-01-preview/configurations/method_listbyserver.go index 0fb48358cee..bef8498dc6b 100644 --- a/resource-manager/postgresql/2023-06-01-preview/configurations/method_listbyserver.go +++ b/resource-manager/postgresql/2023-06-01-preview/configurations/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []Configuration } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConfigurationsClient) ListByServer(ctx context.Context, id FlexibleServe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/configurations", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/databases/method_listbyserver.go b/resource-manager/postgresql/2023-06-01-preview/databases/method_listbyserver.go index effbee5917c..68487e28ffb 100644 --- a/resource-manager/postgresql/2023-06-01-preview/databases/method_listbyserver.go +++ b/resource-manager/postgresql/2023-06-01-preview/databases/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []Database } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c DatabasesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DatabasesClient) ListByServer(ctx context.Context, id FlexibleServerId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/firewallrules/method_listbyserver.go b/resource-manager/postgresql/2023-06-01-preview/firewallrules/method_listbyserver.go index beaab6068da..5f3772c0193 100644 --- a/resource-manager/postgresql/2023-06-01-preview/firewallrules/method_listbyserver.go +++ b/resource-manager/postgresql/2023-06-01-preview/firewallrules/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []FirewallRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c FirewallRulesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallRulesClient) ListByServer(ctx context.Context, id FlexibleServer http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/flexibleservercapabilities/method_servercapabilitieslist.go b/resource-manager/postgresql/2023-06-01-preview/flexibleservercapabilities/method_servercapabilitieslist.go index ae049b1e3c3..155caa280c4 100644 --- a/resource-manager/postgresql/2023-06-01-preview/flexibleservercapabilities/method_servercapabilitieslist.go +++ b/resource-manager/postgresql/2023-06-01-preview/flexibleservercapabilities/method_servercapabilitieslist.go @@ -23,6 +23,18 @@ type ServerCapabilitiesListCompleteResult struct { Items []FlexibleServerCapability } +type ServerCapabilitiesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServerCapabilitiesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServerCapabilitiesList ... func (c FlexibleServerCapabilitiesClient) ServerCapabilitiesList(ctx context.Context, id FlexibleServerId) (result ServerCapabilitiesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FlexibleServerCapabilitiesClient) ServerCapabilitiesList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServerCapabilitiesListCustomPager{}, Path: fmt.Sprintf("%s/capabilities", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/locationbasedcapabilities/method_execute.go b/resource-manager/postgresql/2023-06-01-preview/locationbasedcapabilities/method_execute.go index 86567ca60c3..1656228d279 100644 --- a/resource-manager/postgresql/2023-06-01-preview/locationbasedcapabilities/method_execute.go +++ b/resource-manager/postgresql/2023-06-01-preview/locationbasedcapabilities/method_execute.go @@ -23,6 +23,18 @@ type ExecuteCompleteResult struct { Items []FlexibleServerCapability } +type ExecuteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExecuteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Execute ... func (c LocationBasedCapabilitiesClient) Execute(ctx context.Context, id LocationId) (result ExecuteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LocationBasedCapabilitiesClient) Execute(ctx context.Context, id Locatio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ExecuteCustomPager{}, Path: fmt.Sprintf("%s/capabilities", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/logfiles/method_listbyserver.go b/resource-manager/postgresql/2023-06-01-preview/logfiles/method_listbyserver.go index c9f0d1ee8c5..8b163e0f91f 100644 --- a/resource-manager/postgresql/2023-06-01-preview/logfiles/method_listbyserver.go +++ b/resource-manager/postgresql/2023-06-01-preview/logfiles/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []LogFile } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c LogFilesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LogFilesClient) ListByServer(ctx context.Context, id FlexibleServerId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/logFiles", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/longtermretentionbackup/method_ltrbackupoperationslistbyserver.go b/resource-manager/postgresql/2023-06-01-preview/longtermretentionbackup/method_ltrbackupoperationslistbyserver.go index 0baf4a8828d..f39994ccfc4 100644 --- a/resource-manager/postgresql/2023-06-01-preview/longtermretentionbackup/method_ltrbackupoperationslistbyserver.go +++ b/resource-manager/postgresql/2023-06-01-preview/longtermretentionbackup/method_ltrbackupoperationslistbyserver.go @@ -23,6 +23,18 @@ type LtrBackupOperationsListByServerCompleteResult struct { Items []LtrServerBackupOperation } +type LtrBackupOperationsListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LtrBackupOperationsListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LtrBackupOperationsListByServer ... func (c LongTermRetentionBackupClient) LtrBackupOperationsListByServer(ctx context.Context, id FlexibleServerId) (result LtrBackupOperationsListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LongTermRetentionBackupClient) LtrBackupOperationsListByServer(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LtrBackupOperationsListByServerCustomPager{}, Path: fmt.Sprintf("%s/ltrBackupOperations", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/migrations/method_listbytargetserver.go b/resource-manager/postgresql/2023-06-01-preview/migrations/method_listbytargetserver.go index 7cd64486857..bb021e533a6 100644 --- a/resource-manager/postgresql/2023-06-01-preview/migrations/method_listbytargetserver.go +++ b/resource-manager/postgresql/2023-06-01-preview/migrations/method_listbytargetserver.go @@ -50,6 +50,18 @@ func (o ListByTargetServerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTargetServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTargetServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTargetServer ... func (c MigrationsClient) ListByTargetServer(ctx context.Context, id FlexibleServerId, options ListByTargetServerOperationOptions) (result ListByTargetServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c MigrationsClient) ListByTargetServer(ctx context.Context, id FlexibleSer http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/migrations", id.ID()), OptionsObject: options, + Pager: &ListByTargetServerCustomPager{}, + Path: fmt.Sprintf("%s/migrations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/postgresql/2023-06-01-preview/privateendpointconnections/method_listbyserver.go b/resource-manager/postgresql/2023-06-01-preview/privateendpointconnections/method_listbyserver.go index f274fbaa36a..ffd9f5b4b56 100644 --- a/resource-manager/postgresql/2023-06-01-preview/privateendpointconnections/method_listbyserver.go +++ b/resource-manager/postgresql/2023-06-01-preview/privateendpointconnections/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []PrivateEndpointConnection } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, id F http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/privatelinkresources/method_listbyserver.go b/resource-manager/postgresql/2023-06-01-preview/privatelinkresources/method_listbyserver.go index 498052144e4..19e7e42633a 100644 --- a/resource-manager/postgresql/2023-06-01-preview/privatelinkresources/method_listbyserver.go +++ b/resource-manager/postgresql/2023-06-01-preview/privatelinkresources/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []PrivateLinkResource } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c PrivateLinkResourcesClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) ListByServer(ctx context.Context, id Flexibl http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/quotausagesforflexibleservers/method_quotausageslist.go b/resource-manager/postgresql/2023-06-01-preview/quotausagesforflexibleservers/method_quotausageslist.go index 349d2025420..11bbf0c8c72 100644 --- a/resource-manager/postgresql/2023-06-01-preview/quotausagesforflexibleservers/method_quotausageslist.go +++ b/resource-manager/postgresql/2023-06-01-preview/quotausagesforflexibleservers/method_quotausageslist.go @@ -23,6 +23,18 @@ type QuotaUsagesListCompleteResult struct { Items []QuotaUsage } +type QuotaUsagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *QuotaUsagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // QuotaUsagesList ... func (c QuotaUsagesForFlexibleServersClient) QuotaUsagesList(ctx context.Context, id LocationId) (result QuotaUsagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c QuotaUsagesForFlexibleServersClient) QuotaUsagesList(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &QuotaUsagesListCustomPager{}, Path: fmt.Sprintf("%s/resourceType/flexibleServers/usages", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/replicas/method_listbyserver.go b/resource-manager/postgresql/2023-06-01-preview/replicas/method_listbyserver.go index 636fa5aea8d..16d7c7771c4 100644 --- a/resource-manager/postgresql/2023-06-01-preview/replicas/method_listbyserver.go +++ b/resource-manager/postgresql/2023-06-01-preview/replicas/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []Server } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ReplicasClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicasClient) ListByServer(ctx context.Context, id FlexibleServerId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/replicas", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/servers/method_list.go b/resource-manager/postgresql/2023-06-01-preview/servers/method_list.go index ff69884c482..e288bb76ead 100644 --- a/resource-manager/postgresql/2023-06-01-preview/servers/method_list.go +++ b/resource-manager/postgresql/2023-06-01-preview/servers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Server } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforPostgreSQL/flexibleServers", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/servers/method_listbyresourcegroup.go b/resource-manager/postgresql/2023-06-01-preview/servers/method_listbyresourcegroup.go index f498cdb4fce..f2e980ef6e1 100644 --- a/resource-manager/postgresql/2023-06-01-preview/servers/method_listbyresourcegroup.go +++ b/resource-manager/postgresql/2023-06-01-preview/servers/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Server } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforPostgreSQL/flexibleServers", id.ID()), } diff --git a/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_listbyserver.go b/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_listbyserver.go index c5eeec7d3d5..fc806518306 100644 --- a/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_listbyserver.go +++ b/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []VirtualEndpointResource } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c VirtualEndpointsClient) ListByServer(ctx context.Context, id FlexibleServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualEndpointsClient) ListByServer(ctx context.Context, id FlexibleSer http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/virtualEndpoints", id.ID()), } diff --git a/resource-manager/postgresqlhsc/2022-11-08/clusters/method_list.go b/resource-manager/postgresqlhsc/2022-11-08/clusters/method_list.go index cd15915e12a..7dec9d260e6 100644 --- a/resource-manager/postgresqlhsc/2022-11-08/clusters/method_list.go +++ b/resource-manager/postgresqlhsc/2022-11-08/clusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforPostgreSQL/serverGroupsv2", id.ID()), } diff --git a/resource-manager/postgresqlhsc/2022-11-08/clusters/method_listbyresourcegroup.go b/resource-manager/postgresqlhsc/2022-11-08/clusters/method_listbyresourcegroup.go index ddccc8f8cc4..2cc338fa5ca 100644 --- a/resource-manager/postgresqlhsc/2022-11-08/clusters/method_listbyresourcegroup.go +++ b/resource-manager/postgresqlhsc/2022-11-08/clusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DBforPostgreSQL/serverGroupsv2", id.ID()), } diff --git a/resource-manager/postgresqlhsc/2022-11-08/configurations/method_listbycluster.go b/resource-manager/postgresqlhsc/2022-11-08/configurations/method_listbycluster.go index cc04c87fc3e..0a004c2937e 100644 --- a/resource-manager/postgresqlhsc/2022-11-08/configurations/method_listbycluster.go +++ b/resource-manager/postgresqlhsc/2022-11-08/configurations/method_listbycluster.go @@ -23,6 +23,18 @@ type ListByClusterCompleteResult struct { Items []Configuration } +type ListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCluster ... func (c ConfigurationsClient) ListByCluster(ctx context.Context, id ServerGroupsv2Id) (result ListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConfigurationsClient) ListByCluster(ctx context.Context, id ServerGroups http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByClusterCustomPager{}, Path: fmt.Sprintf("%s/configurations", id.ID()), } diff --git a/resource-manager/postgresqlhsc/2022-11-08/configurations/method_listbyserver.go b/resource-manager/postgresqlhsc/2022-11-08/configurations/method_listbyserver.go index 9a6bc11d605..2775f3c49a4 100644 --- a/resource-manager/postgresqlhsc/2022-11-08/configurations/method_listbyserver.go +++ b/resource-manager/postgresqlhsc/2022-11-08/configurations/method_listbyserver.go @@ -23,6 +23,18 @@ type ListByServerCompleteResult struct { Items []ServerConfiguration } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ConfigurationsClient) ListByServer(ctx context.Context, id ServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConfigurationsClient) ListByServer(ctx context.Context, id ServerId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/configurations", id.ID()), } diff --git a/resource-manager/privatedns/2020-06-01/privatezones/method_createorupdate.go b/resource-manager/privatedns/2020-06-01/privatezones/method_createorupdate.go index 0db0b1c1d2c..e470f519e8c 100644 --- a/resource-manager/privatedns/2020-06-01/privatezones/method_createorupdate.go +++ b/resource-manager/privatedns/2020-06-01/privatezones/method_createorupdate.go @@ -62,8 +62,8 @@ func (c PrivateZonesClient) CreateOrUpdate(ctx context.Context, id PrivateDnsZon http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/privatedns/2020-06-01/privatezones/method_delete.go b/resource-manager/privatedns/2020-06-01/privatezones/method_delete.go index ba0ca2c77e6..d03a01bfb98 100644 --- a/resource-manager/privatedns/2020-06-01/privatezones/method_delete.go +++ b/resource-manager/privatedns/2020-06-01/privatezones/method_delete.go @@ -57,8 +57,8 @@ func (c PrivateZonesClient) Delete(ctx context.Context, id PrivateDnsZoneId, opt http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/privatedns/2020-06-01/privatezones/method_list.go b/resource-manager/privatedns/2020-06-01/privatezones/method_list.go index 5815e3a1e73..a97a9c885b5 100644 --- a/resource-manager/privatedns/2020-06-01/privatezones/method_list.go +++ b/resource-manager/privatedns/2020-06-01/privatezones/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateZonesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c PrivateZonesClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateDnsZones", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateDnsZones", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/privatedns/2020-06-01/privatezones/method_listbyresourcegroup.go b/resource-manager/privatedns/2020-06-01/privatezones/method_listbyresourcegroup.go index 85a83cf58ce..be1d3300f4e 100644 --- a/resource-manager/privatedns/2020-06-01/privatezones/method_listbyresourcegroup.go +++ b/resource-manager/privatedns/2020-06-01/privatezones/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PrivateZonesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c PrivateZonesClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateDnsZones", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateDnsZones", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/privatedns/2020-06-01/privatezones/method_update.go b/resource-manager/privatedns/2020-06-01/privatezones/method_update.go index 3c53f93f9fe..0f4953dfc0d 100644 --- a/resource-manager/privatedns/2020-06-01/privatezones/method_update.go +++ b/resource-manager/privatedns/2020-06-01/privatezones/method_update.go @@ -57,8 +57,8 @@ func (c PrivateZonesClient) Update(ctx context.Context, id PrivateDnsZoneId, inp http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/privatedns/2020-06-01/recordsets/method_createorupdate.go b/resource-manager/privatedns/2020-06-01/recordsets/method_createorupdate.go index 4ff596d3f6b..da283847699 100644 --- a/resource-manager/privatedns/2020-06-01/recordsets/method_createorupdate.go +++ b/resource-manager/privatedns/2020-06-01/recordsets/method_createorupdate.go @@ -58,8 +58,8 @@ func (c RecordSetsClient) CreateOrUpdate(ctx context.Context, id RecordTypeId, i http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/privatedns/2020-06-01/recordsets/method_delete.go b/resource-manager/privatedns/2020-06-01/recordsets/method_delete.go index c5c4fbff38f..bac259d0f30 100644 --- a/resource-manager/privatedns/2020-06-01/recordsets/method_delete.go +++ b/resource-manager/privatedns/2020-06-01/recordsets/method_delete.go @@ -53,8 +53,8 @@ func (c RecordSetsClient) Delete(ctx context.Context, id RecordTypeId, options D http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/privatedns/2020-06-01/recordsets/method_list.go b/resource-manager/privatedns/2020-06-01/recordsets/method_list.go index 3232fcf731e..9c2a2020943 100644 --- a/resource-manager/privatedns/2020-06-01/recordsets/method_list.go +++ b/resource-manager/privatedns/2020-06-01/recordsets/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RecordSetsClient) List(ctx context.Context, id PrivateDnsZoneId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c RecordSetsClient) List(ctx context.Context, id PrivateDnsZoneId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/aLL", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/aLL", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/privatedns/2020-06-01/recordsets/method_listbytype.go b/resource-manager/privatedns/2020-06-01/recordsets/method_listbytype.go index 8774710d211..3705ca025ec 100644 --- a/resource-manager/privatedns/2020-06-01/recordsets/method_listbytype.go +++ b/resource-manager/privatedns/2020-06-01/recordsets/method_listbytype.go @@ -54,6 +54,18 @@ func (o ListByTypeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTypeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTypeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByType ... func (c RecordSetsClient) ListByType(ctx context.Context, id PrivateZoneId, options ListByTypeOperationOptions) (result ListByTypeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c RecordSetsClient) ListByType(ctx context.Context, id PrivateZoneId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Pager: &ListByTypeCustomPager{}, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/privatedns/2020-06-01/recordsets/method_update.go b/resource-manager/privatedns/2020-06-01/recordsets/method_update.go index 3df9166486c..def3737e664 100644 --- a/resource-manager/privatedns/2020-06-01/recordsets/method_update.go +++ b/resource-manager/privatedns/2020-06-01/recordsets/method_update.go @@ -53,8 +53,8 @@ func (c RecordSetsClient) Update(ctx context.Context, id RecordTypeId, input Rec http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_createorupdate.go b/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_createorupdate.go index 9e184709fce..c6bc6fe5517 100644 --- a/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_createorupdate.go +++ b/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_createorupdate.go @@ -62,8 +62,8 @@ func (c VirtualNetworkLinksClient) CreateOrUpdate(ctx context.Context, id Virtua http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_delete.go b/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_delete.go index 96762dfd39d..d170aa216a1 100644 --- a/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_delete.go +++ b/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_delete.go @@ -57,8 +57,8 @@ func (c VirtualNetworkLinksClient) Delete(ctx context.Context, id VirtualNetwork http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_list.go b/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_list.go index e1249f47df8..096ad73c974 100644 --- a/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_list.go +++ b/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualNetworkLinksClient) List(ctx context.Context, id PrivateDnsZoneId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c VirtualNetworkLinksClient) List(ctx context.Context, id PrivateDnsZoneId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/virtualNetworkLinks", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/virtualNetworkLinks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_update.go b/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_update.go index 49f16ff0519..752ec2d4324 100644 --- a/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_update.go +++ b/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_update.go @@ -57,8 +57,8 @@ func (c VirtualNetworkLinksClient) Update(ctx context.Context, id VirtualNetwork http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/purview/2021-07-01/account/method_listbyresourcegroup.go b/resource-manager/purview/2021-07-01/account/method_listbyresourcegroup.go index 6f2f8a0c9ca..8e6da84c12f 100644 --- a/resource-manager/purview/2021-07-01/account/method_listbyresourcegroup.go +++ b/resource-manager/purview/2021-07-01/account/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Account } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AccountClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccountClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Purview/accounts", id.ID()), } diff --git a/resource-manager/purview/2021-07-01/account/method_listbysubscription.go b/resource-manager/purview/2021-07-01/account/method_listbysubscription.go index e8a6a2e56a7..281af73b331 100644 --- a/resource-manager/purview/2021-07-01/account/method_listbysubscription.go +++ b/resource-manager/purview/2021-07-01/account/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Account } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AccountClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccountClient) ListBySubscription(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Purview/accounts", id.ID()), } diff --git a/resource-manager/purview/2021-07-01/defaultaccount/method_get.go b/resource-manager/purview/2021-07-01/defaultaccount/method_get.go index 0042b64c5d0..e33492e83da 100644 --- a/resource-manager/purview/2021-07-01/defaultaccount/method_get.go +++ b/resource-manager/purview/2021-07-01/defaultaccount/method_get.go @@ -61,8 +61,8 @@ func (c DefaultAccountClient) Get(ctx context.Context, options GetOperationOptio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Purview/getDefaultAccount", OptionsObject: options, + Path: "/providers/Microsoft.Purview/getDefaultAccount", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/purview/2021-07-01/defaultaccount/method_remove.go b/resource-manager/purview/2021-07-01/defaultaccount/method_remove.go index 056f6e6dbaa..d99e43f4955 100644 --- a/resource-manager/purview/2021-07-01/defaultaccount/method_remove.go +++ b/resource-manager/purview/2021-07-01/defaultaccount/method_remove.go @@ -61,8 +61,8 @@ func (c DefaultAccountClient) Remove(ctx context.Context, options RemoveOperatio http.StatusOK, }, HttpMethod: http.MethodPost, - Path: "/providers/Microsoft.Purview/removeDefaultAccount", OptionsObject: options, + Path: "/providers/Microsoft.Purview/removeDefaultAccount", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/purview/2021-07-01/privateendpointconnection/method_listbyaccount.go b/resource-manager/purview/2021-07-01/privateendpointconnection/method_listbyaccount.go index 8ad371daf55..00b7cb25174 100644 --- a/resource-manager/purview/2021-07-01/privateendpointconnection/method_listbyaccount.go +++ b/resource-manager/purview/2021-07-01/privateendpointconnection/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []PrivateEndpointConnection } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c PrivateEndpointConnectionClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionClient) ListByAccount(ctx context.Context, id A http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/purview/2021-07-01/privatelinkresource/method_listbyaccount.go b/resource-manager/purview/2021-07-01/privatelinkresource/method_listbyaccount.go index aad760d5297..4a7c2e3f937 100644 --- a/resource-manager/purview/2021-07-01/privatelinkresource/method_listbyaccount.go +++ b/resource-manager/purview/2021-07-01/privatelinkresource/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []PrivateLinkResource } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c PrivateLinkResourceClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourceClient) ListByAccount(ctx context.Context, id Account http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/purview/2021-12-01/account/method_listbyresourcegroup.go b/resource-manager/purview/2021-12-01/account/method_listbyresourcegroup.go index 6f2f8a0c9ca..8e6da84c12f 100644 --- a/resource-manager/purview/2021-12-01/account/method_listbyresourcegroup.go +++ b/resource-manager/purview/2021-12-01/account/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Account } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AccountClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccountClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Purview/accounts", id.ID()), } diff --git a/resource-manager/purview/2021-12-01/account/method_listbysubscription.go b/resource-manager/purview/2021-12-01/account/method_listbysubscription.go index e8a6a2e56a7..281af73b331 100644 --- a/resource-manager/purview/2021-12-01/account/method_listbysubscription.go +++ b/resource-manager/purview/2021-12-01/account/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Account } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AccountClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AccountClient) ListBySubscription(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Purview/accounts", id.ID()), } diff --git a/resource-manager/purview/2021-12-01/defaultaccount/method_get.go b/resource-manager/purview/2021-12-01/defaultaccount/method_get.go index 0042b64c5d0..e33492e83da 100644 --- a/resource-manager/purview/2021-12-01/defaultaccount/method_get.go +++ b/resource-manager/purview/2021-12-01/defaultaccount/method_get.go @@ -61,8 +61,8 @@ func (c DefaultAccountClient) Get(ctx context.Context, options GetOperationOptio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Purview/getDefaultAccount", OptionsObject: options, + Path: "/providers/Microsoft.Purview/getDefaultAccount", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/purview/2021-12-01/defaultaccount/method_remove.go b/resource-manager/purview/2021-12-01/defaultaccount/method_remove.go index 056f6e6dbaa..d99e43f4955 100644 --- a/resource-manager/purview/2021-12-01/defaultaccount/method_remove.go +++ b/resource-manager/purview/2021-12-01/defaultaccount/method_remove.go @@ -61,8 +61,8 @@ func (c DefaultAccountClient) Remove(ctx context.Context, options RemoveOperatio http.StatusOK, }, HttpMethod: http.MethodPost, - Path: "/providers/Microsoft.Purview/removeDefaultAccount", OptionsObject: options, + Path: "/providers/Microsoft.Purview/removeDefaultAccount", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/purview/2021-12-01/kafkaconfiguration/method_listbyaccount.go b/resource-manager/purview/2021-12-01/kafkaconfiguration/method_listbyaccount.go index 3ea1f1ecf75..8a1ae5a0298 100644 --- a/resource-manager/purview/2021-12-01/kafkaconfiguration/method_listbyaccount.go +++ b/resource-manager/purview/2021-12-01/kafkaconfiguration/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []KafkaConfiguration } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c KafkaConfigurationClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c KafkaConfigurationClient) ListByAccount(ctx context.Context, id AccountI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/kafkaConfigurations", id.ID()), } diff --git a/resource-manager/purview/2021-12-01/privateendpointconnection/method_listbyaccount.go b/resource-manager/purview/2021-12-01/privateendpointconnection/method_listbyaccount.go index 8ad371daf55..00b7cb25174 100644 --- a/resource-manager/purview/2021-12-01/privateendpointconnection/method_listbyaccount.go +++ b/resource-manager/purview/2021-12-01/privateendpointconnection/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []PrivateEndpointConnection } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c PrivateEndpointConnectionClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionClient) ListByAccount(ctx context.Context, id A http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/purview/2021-12-01/privatelinkresource/method_listbyaccount.go b/resource-manager/purview/2021-12-01/privatelinkresource/method_listbyaccount.go index aad760d5297..4a7c2e3f937 100644 --- a/resource-manager/purview/2021-12-01/privatelinkresource/method_listbyaccount.go +++ b/resource-manager/purview/2021-12-01/privatelinkresource/method_listbyaccount.go @@ -23,6 +23,18 @@ type ListByAccountCompleteResult struct { Items []PrivateLinkResource } +type ListByAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAccount ... func (c PrivateLinkResourceClient) ListByAccount(ctx context.Context, id AccountId) (result ListByAccountOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourceClient) ListByAccount(ctx context.Context, id Account http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAccountCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/purview/2021-12-01/usages/method_get.go b/resource-manager/purview/2021-12-01/usages/method_get.go index bf0061bebab..4cd01e68db2 100644 --- a/resource-manager/purview/2021-12-01/usages/method_get.go +++ b/resource-manager/purview/2021-12-01/usages/method_get.go @@ -50,6 +50,18 @@ func (o GetOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Get ... func (c UsagesClient) Get(ctx context.Context, id LocationId, options GetOperationOptions) (result GetOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c UsagesClient) Get(ctx context.Context, id LocationId, options GetOperati http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &GetCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/qumulostorage/2022-10-12/filesystems/method_listbyresourcegroup.go b/resource-manager/qumulostorage/2022-10-12/filesystems/method_listbyresourcegroup.go index 3a1a3e6b1a4..58ca6b06216 100644 --- a/resource-manager/qumulostorage/2022-10-12/filesystems/method_listbyresourcegroup.go +++ b/resource-manager/qumulostorage/2022-10-12/filesystems/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []FileSystemResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c FileSystemsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FileSystemsClient) ListByResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Qumulo.Storage/fileSystems", id.ID()), } diff --git a/resource-manager/qumulostorage/2022-10-12/filesystems/method_listbysubscription.go b/resource-manager/qumulostorage/2022-10-12/filesystems/method_listbysubscription.go index fa0eccd0ebf..3f4981fb23e 100644 --- a/resource-manager/qumulostorage/2022-10-12/filesystems/method_listbysubscription.go +++ b/resource-manager/qumulostorage/2022-10-12/filesystems/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []FileSystemResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c FileSystemsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FileSystemsClient) ListBySubscription(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Qumulo.Storage/fileSystems", id.ID()), } diff --git a/resource-manager/quota/2023-02-01/quotainformation/method_quotalist.go b/resource-manager/quota/2023-02-01/quotainformation/method_quotalist.go index c1f7f1ae997..21be7228e5b 100644 --- a/resource-manager/quota/2023-02-01/quotainformation/method_quotalist.go +++ b/resource-manager/quota/2023-02-01/quotainformation/method_quotalist.go @@ -24,6 +24,18 @@ type QuotaListCompleteResult struct { Items []CurrentQuotaLimitBase } +type QuotaListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *QuotaListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // QuotaList ... func (c QuotaInformationClient) QuotaList(ctx context.Context, id commonids.ScopeId) (result QuotaListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c QuotaInformationClient) QuotaList(ctx context.Context, id commonids.Scop http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &QuotaListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Quota/quotas", id.ID()), } diff --git a/resource-manager/quota/2023-02-01/quotarequests/method_tatuslist.go b/resource-manager/quota/2023-02-01/quotarequests/method_tatuslist.go index 7e041abc155..c998bb42521 100644 --- a/resource-manager/quota/2023-02-01/quotarequests/method_tatuslist.go +++ b/resource-manager/quota/2023-02-01/quotarequests/method_tatuslist.go @@ -55,6 +55,18 @@ func (o TatusListOperationOptions) ToQuery() *client.QueryParams { return &out } +type TatusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TatusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TatusList ... func (c QuotaRequestsClient) TatusList(ctx context.Context, id commonids.ScopeId, options TatusListOperationOptions) (result TatusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c QuotaRequestsClient) TatusList(ctx context.Context, id commonids.ScopeId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Quota/quotaRequests", id.ID()), OptionsObject: options, + Pager: &TatusListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Quota/quotaRequests", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/quota/2023-02-01/usagesinformation/method_usageslist.go b/resource-manager/quota/2023-02-01/usagesinformation/method_usageslist.go index 7ac70973165..380d147012d 100644 --- a/resource-manager/quota/2023-02-01/usagesinformation/method_usageslist.go +++ b/resource-manager/quota/2023-02-01/usagesinformation/method_usageslist.go @@ -24,6 +24,18 @@ type UsagesListCompleteResult struct { Items []CurrentUsagesBase } +type UsagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UsagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UsagesList ... func (c UsagesInformationClient) UsagesList(ctx context.Context, id commonids.ScopeId) (result UsagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c UsagesInformationClient) UsagesList(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UsagesListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Quota/usages", id.ID()), } diff --git a/resource-manager/recoveryservices/2022-10-01/listprivatelinkresources/method_privatelinkresourceslist.go b/resource-manager/recoveryservices/2022-10-01/listprivatelinkresources/method_privatelinkresourceslist.go index 1f233da62cb..9ae98e274df 100644 --- a/resource-manager/recoveryservices/2022-10-01/listprivatelinkresources/method_privatelinkresourceslist.go +++ b/resource-manager/recoveryservices/2022-10-01/listprivatelinkresources/method_privatelinkresourceslist.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesListCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesList ... func (c ListPrivateLinkResourcesClient) PrivateLinkResourcesList(ctx context.Context, id VaultId) (result PrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ListPrivateLinkResourcesClient) PrivateLinkResourcesList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/recoveryservices/2022-10-01/vaults/method_listbyresourcegroup.go b/resource-manager/recoveryservices/2022-10-01/vaults/method_listbyresourcegroup.go index 6f91f954aa1..61ef1d6955e 100644 --- a/resource-manager/recoveryservices/2022-10-01/vaults/method_listbyresourcegroup.go +++ b/resource-manager/recoveryservices/2022-10-01/vaults/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Vault } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VaultsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VaultsClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/vaults", id.ID()), } diff --git a/resource-manager/recoveryservices/2022-10-01/vaults/method_listbysubscriptionid.go b/resource-manager/recoveryservices/2022-10-01/vaults/method_listbysubscriptionid.go index 38ed366fbca..c289dedd82f 100644 --- a/resource-manager/recoveryservices/2022-10-01/vaults/method_listbysubscriptionid.go +++ b/resource-manager/recoveryservices/2022-10-01/vaults/method_listbysubscriptionid.go @@ -24,6 +24,18 @@ type ListBySubscriptionIdCompleteResult struct { Items []Vault } +type ListBySubscriptionIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscriptionId ... func (c VaultsClient) ListBySubscriptionId(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VaultsClient) ListBySubscriptionId(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionIdCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/vaults", id.ID()), } diff --git a/resource-manager/recoveryservices/2024-01-01/listprivatelinkresources/method_privatelinkresourceslist.go b/resource-manager/recoveryservices/2024-01-01/listprivatelinkresources/method_privatelinkresourceslist.go index 1f233da62cb..9ae98e274df 100644 --- a/resource-manager/recoveryservices/2024-01-01/listprivatelinkresources/method_privatelinkresourceslist.go +++ b/resource-manager/recoveryservices/2024-01-01/listprivatelinkresources/method_privatelinkresourceslist.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesListCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesList ... func (c ListPrivateLinkResourcesClient) PrivateLinkResourcesList(ctx context.Context, id VaultId) (result PrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ListPrivateLinkResourcesClient) PrivateLinkResourcesList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/recoveryservices/2024-01-01/vaults/method_listbyresourcegroup.go b/resource-manager/recoveryservices/2024-01-01/vaults/method_listbyresourcegroup.go index 6f91f954aa1..61ef1d6955e 100644 --- a/resource-manager/recoveryservices/2024-01-01/vaults/method_listbyresourcegroup.go +++ b/resource-manager/recoveryservices/2024-01-01/vaults/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Vault } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VaultsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VaultsClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/vaults", id.ID()), } diff --git a/resource-manager/recoveryservices/2024-01-01/vaults/method_listbysubscriptionid.go b/resource-manager/recoveryservices/2024-01-01/vaults/method_listbysubscriptionid.go index 38ed366fbca..c289dedd82f 100644 --- a/resource-manager/recoveryservices/2024-01-01/vaults/method_listbysubscriptionid.go +++ b/resource-manager/recoveryservices/2024-01-01/vaults/method_listbysubscriptionid.go @@ -24,6 +24,18 @@ type ListBySubscriptionIdCompleteResult struct { Items []Vault } +type ListBySubscriptionIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscriptionId ... func (c VaultsClient) ListBySubscriptionId(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VaultsClient) ListBySubscriptionId(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionIdCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/vaults", id.ID()), } diff --git a/resource-manager/recoveryservices/2024-02-01/listprivatelinkresources/method_privatelinkresourceslist.go b/resource-manager/recoveryservices/2024-02-01/listprivatelinkresources/method_privatelinkresourceslist.go index 1f233da62cb..9ae98e274df 100644 --- a/resource-manager/recoveryservices/2024-02-01/listprivatelinkresources/method_privatelinkresourceslist.go +++ b/resource-manager/recoveryservices/2024-02-01/listprivatelinkresources/method_privatelinkresourceslist.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesListCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesList ... func (c ListPrivateLinkResourcesClient) PrivateLinkResourcesList(ctx context.Context, id VaultId) (result PrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ListPrivateLinkResourcesClient) PrivateLinkResourcesList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/recoveryservices/2024-02-01/vaults/method_listbyresourcegroup.go b/resource-manager/recoveryservices/2024-02-01/vaults/method_listbyresourcegroup.go index 6f91f954aa1..61ef1d6955e 100644 --- a/resource-manager/recoveryservices/2024-02-01/vaults/method_listbyresourcegroup.go +++ b/resource-manager/recoveryservices/2024-02-01/vaults/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Vault } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VaultsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VaultsClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/vaults", id.ID()), } diff --git a/resource-manager/recoveryservices/2024-02-01/vaults/method_listbysubscriptionid.go b/resource-manager/recoveryservices/2024-02-01/vaults/method_listbysubscriptionid.go index 38ed366fbca..c289dedd82f 100644 --- a/resource-manager/recoveryservices/2024-02-01/vaults/method_listbysubscriptionid.go +++ b/resource-manager/recoveryservices/2024-02-01/vaults/method_listbysubscriptionid.go @@ -24,6 +24,18 @@ type ListBySubscriptionIdCompleteResult struct { Items []Vault } +type ListBySubscriptionIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscriptionId ... func (c VaultsClient) ListBySubscriptionId(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VaultsClient) ListBySubscriptionId(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionIdCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/vaults", id.ID()), } diff --git a/resource-manager/recoveryservices/2024-04-01/listprivatelinkresources/method_privatelinkresourceslist.go b/resource-manager/recoveryservices/2024-04-01/listprivatelinkresources/method_privatelinkresourceslist.go index 1f233da62cb..9ae98e274df 100644 --- a/resource-manager/recoveryservices/2024-04-01/listprivatelinkresources/method_privatelinkresourceslist.go +++ b/resource-manager/recoveryservices/2024-04-01/listprivatelinkresources/method_privatelinkresourceslist.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesListCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesList ... func (c ListPrivateLinkResourcesClient) PrivateLinkResourcesList(ctx context.Context, id VaultId) (result PrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ListPrivateLinkResourcesClient) PrivateLinkResourcesList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/recoveryservices/2024-04-01/vaults/method_createorupdate.go b/resource-manager/recoveryservices/2024-04-01/vaults/method_createorupdate.go index 8e33ddb554d..aaf7d25d75f 100644 --- a/resource-manager/recoveryservices/2024-04-01/vaults/method_createorupdate.go +++ b/resource-manager/recoveryservices/2024-04-01/vaults/method_createorupdate.go @@ -57,8 +57,8 @@ func (c VaultsClient) CreateOrUpdate(ctx context.Context, id VaultId, input Vaul http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservices/2024-04-01/vaults/method_listbyresourcegroup.go b/resource-manager/recoveryservices/2024-04-01/vaults/method_listbyresourcegroup.go index 6f91f954aa1..61ef1d6955e 100644 --- a/resource-manager/recoveryservices/2024-04-01/vaults/method_listbyresourcegroup.go +++ b/resource-manager/recoveryservices/2024-04-01/vaults/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Vault } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VaultsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VaultsClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/vaults", id.ID()), } diff --git a/resource-manager/recoveryservices/2024-04-01/vaults/method_listbysubscriptionid.go b/resource-manager/recoveryservices/2024-04-01/vaults/method_listbysubscriptionid.go index 38ed366fbca..c289dedd82f 100644 --- a/resource-manager/recoveryservices/2024-04-01/vaults/method_listbysubscriptionid.go +++ b/resource-manager/recoveryservices/2024-04-01/vaults/method_listbysubscriptionid.go @@ -24,6 +24,18 @@ type ListBySubscriptionIdCompleteResult struct { Items []Vault } +type ListBySubscriptionIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscriptionId ... func (c VaultsClient) ListBySubscriptionId(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionIdOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VaultsClient) ListBySubscriptionId(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionIdCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/vaults", id.ID()), } diff --git a/resource-manager/recoveryservices/2024-04-01/vaults/method_update.go b/resource-manager/recoveryservices/2024-04-01/vaults/method_update.go index c14ddaa07fb..e406c593489 100644 --- a/resource-manager/recoveryservices/2024-04-01/vaults/method_update.go +++ b/resource-manager/recoveryservices/2024-04-01/vaults/method_update.go @@ -57,8 +57,8 @@ func (c VaultsClient) Update(ctx context.Context, id VaultId, input PatchVault, http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go index 58b8549c6ef..a850052471e 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go @@ -23,6 +23,18 @@ type ListByReplicationMigrationItemsCompleteResult struct { Items []MigrationRecoveryPoint } +type ListByReplicationMigrationItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationMigrationItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationMigrationItems ... func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx context.Context, id ReplicationMigrationItemId) (result ListByReplicationMigrationItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationMigrationItemsCustomPager{}, Path: fmt.Sprintf("%s/migrationRecoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/operations/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/operations/method_list.go index e33e0a47ef8..b83b36e2e63 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/operations/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/operations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []OperationsDiscovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/operations", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/recoverypoints/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/recoverypoints/method_listbyreplicationprotecteditems.go index de9469afe33..dd0de009d18 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/recoverypoints/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/recoverypoints/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []RecoveryPoint } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationalertsettings/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationalertsettings/method_list.go index 758eed61cb6..3d9e40c5690 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationalertsettings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationalertsettings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationAlertSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationappliances/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationappliances/method_list.go index ade7026ef25..7bb33ca2aa9 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationappliances/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationappliances/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationevents/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationevents/method_list.go index 2edbd779ff8..d9b820e0cab 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationevents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationevents/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationEvents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationEvents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationfabrics/method_get.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationfabrics/method_get.go index bd428d5d41b..b7aa7e1fc64 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationfabrics/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationfabrics/method_get.go @@ -53,8 +53,8 @@ func (c ReplicationFabricsClient) Get(ctx context.Context, id ReplicationFabricI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationfabrics/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationfabrics/method_list.go index 096ede5d5b2..9087564b359 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationfabrics/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationfabrics/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Fabric } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationFabrics", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationjobs/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationjobs/method_list.go index 3a94683c105..d95ff537514 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationjobs/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationjobs/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationJobs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go index 7c8a529a46c..e9fef6356f3 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []LogicalNetwork } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationLogicalNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationmigrationitems/method_delete.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationmigrationitems/method_delete.go index ba867def8dd..5a4c9cf0e48 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationmigrationitems/method_delete.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationmigrationitems/method_delete.go @@ -56,8 +56,8 @@ func (c ReplicationMigrationItemsClient) Delete(ctx context.Context, id Replicat http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationmigrationitems/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationmigrationitems/method_list.go index 3f27c3c3ce1..133fc43de9d 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationmigrationitems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationmigrationitems/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go index 9b0076c2483..11d5ad86382 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go @@ -58,6 +58,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworkmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworkmappings/method_list.go index 035e2f18c11..c8dfd95c67d 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworkmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworkmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []NetworkMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworkmappings/method_listbyreplicationnetworks.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworkmappings/method_listbyreplicationnetworks.go index da2d1adc6f8..51e7d93a04b 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworkmappings/method_listbyreplicationnetworks.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworkmappings/method_listbyreplicationnetworks.go @@ -23,6 +23,18 @@ type ListByReplicationNetworksCompleteResult struct { Items []NetworkMapping } +type ListByReplicationNetworksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationNetworksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationNetworks ... func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context.Context, id ReplicationNetworkId) (result ListByReplicationNetworksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationNetworksCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworks/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworks/method_list.go index ab50a0694f1..930b8eccb31 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworks/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Network } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworks/method_listbyreplicationfabrics.go index 83ec14170af..88b6def873c 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []Network } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationpolicies/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationpolicies/method_list.go index c3f293ef36a..28ba613b34b 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationpolicies/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationpolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Policy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationPolicies", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go index 7b032615ade..3e871c362b1 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go @@ -54,6 +54,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotecteditems/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotecteditems/method_list.go index 7987783197b..dec0477f6ad 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotecteditems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotecteditems/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go index 7b2e364e0d4..c51a013c266 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ReplicationProtectedItem } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainermappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainermappings/method_list.go index 5dc7da9ac19..95cb2a96220 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainermappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainermappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainerMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go index 94b7e66be1f..1e171e16a67 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ProtectionContainerMapping } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainers/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainers/method_list.go index a87dc355045..d678bf5102a 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainers/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) List(ctx context.Context, id Vaul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go index 6a17536ab60..d870a7c81fd 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []ProtectionContainer } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectionintents/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectionintents/method_list.go index 7d665ac5f67..bbb7082780e 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectionintents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationprotectionintents/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryplans/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryplans/method_list.go index eaecefd6815..d8446f2ae10 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryplans/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryplans/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryPlans", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryservicesproviders/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryservicesproviders/method_list.go index 8a222e57f39..9f87fd102aa 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryservicesproviders/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryservicesproviders/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryServicesProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go index b31369a32f8..2acfd3b73c2 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []RecoveryServicesProvider } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassificationmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassificationmappings/method_list.go index db03f44ad87..33b89316ca5 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassificationmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassificationmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassificationMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go index 898e603250c..17f056a2737 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go @@ -23,6 +23,18 @@ type ListByReplicationStorageClassificationsCompleteResult struct { Items []StorageClassificationMapping } +type ListByReplicationStorageClassificationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationStorageClassificationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationStorageClassifications ... func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassifications(ctx context.Context, id ReplicationStorageClassificationId) (result ListByReplicationStorageClassificationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorage http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationStorageClassificationsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassifications/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassifications/method_list.go index 1f5e42e124b..a2739887ea5 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassifications/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassifications/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassification } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id Va http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassifications/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassifications/method_listbyreplicationfabrics.go index 7308b18cf61..8d47b1ec523 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassifications/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationstorageclassifications/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []StorageClassification } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationvaultsetting/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationvaultsetting/method_list.go index 74a07ad1ed6..8887bc084fc 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationvaultsetting/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationvaultsetting/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VaultSetting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationVaultSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationvcenters/method_list.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationvcenters/method_list.go index 455859e7f14..f92559a8f20 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationvcenters/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationvcenters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VCenter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationvcenters/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationvcenters/method_listbyreplicationfabrics.go index df3308ad379..2c99a1a6fea 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationvcenters/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/replicationvcenters/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []VCenter } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/supportedoperatingsystems/method_get.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/supportedoperatingsystems/method_get.go index 63751a59a55..07d549f188e 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/supportedoperatingsystems/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/supportedoperatingsystems/method_get.go @@ -53,8 +53,8 @@ func (c SupportedOperatingSystemsClient) Get(ctx context.Context, id VaultId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2022-10-01/targetcomputesizes/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2022-10-01/targetcomputesizes/method_listbyreplicationprotecteditems.go index 8634311e28a..2bff64e44bb 100644 --- a/resource-manager/recoveryservicessiterecovery/2022-10-01/targetcomputesizes/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2022-10-01/targetcomputesizes/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []TargetComputeSize } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/targetComputeSizes", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go index 58b8549c6ef..a850052471e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go @@ -23,6 +23,18 @@ type ListByReplicationMigrationItemsCompleteResult struct { Items []MigrationRecoveryPoint } +type ListByReplicationMigrationItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationMigrationItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationMigrationItems ... func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx context.Context, id ReplicationMigrationItemId) (result ListByReplicationMigrationItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationMigrationItemsCustomPager{}, Path: fmt.Sprintf("%s/migrationRecoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/operations/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/operations/method_list.go index e33e0a47ef8..b83b36e2e63 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/operations/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/operations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []OperationsDiscovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/operations", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/recoverypoints/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/recoverypoints/method_listbyreplicationprotecteditems.go index de9469afe33..dd0de009d18 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/recoverypoints/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/recoverypoints/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []RecoveryPoint } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationalertsettings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationalertsettings/method_list.go index 758eed61cb6..3d9e40c5690 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationalertsettings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationalertsettings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationAlertSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationappliances/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationappliances/method_list.go index ade7026ef25..7bb33ca2aa9 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationappliances/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationappliances/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationevents/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationevents/method_list.go index 2edbd779ff8..d9b820e0cab 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationevents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationevents/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationEvents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationEvents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationfabrics/method_get.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationfabrics/method_get.go index bd428d5d41b..b7aa7e1fc64 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationfabrics/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationfabrics/method_get.go @@ -53,8 +53,8 @@ func (c ReplicationFabricsClient) Get(ctx context.Context, id ReplicationFabricI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationfabrics/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationfabrics/method_list.go index 096ede5d5b2..9087564b359 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationfabrics/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationfabrics/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Fabric } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationFabrics", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationjobs/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationjobs/method_list.go index 3a94683c105..d95ff537514 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationjobs/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationjobs/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationJobs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go index 7c8a529a46c..e9fef6356f3 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []LogicalNetwork } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationLogicalNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationmigrationitems/method_delete.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationmigrationitems/method_delete.go index ba867def8dd..5a4c9cf0e48 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationmigrationitems/method_delete.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationmigrationitems/method_delete.go @@ -56,8 +56,8 @@ func (c ReplicationMigrationItemsClient) Delete(ctx context.Context, id Replicat http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationmigrationitems/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationmigrationitems/method_list.go index 3f27c3c3ce1..133fc43de9d 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationmigrationitems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationmigrationitems/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go index 9b0076c2483..11d5ad86382 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go @@ -58,6 +58,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworkmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworkmappings/method_list.go index 035e2f18c11..c8dfd95c67d 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworkmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworkmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []NetworkMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworkmappings/method_listbyreplicationnetworks.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworkmappings/method_listbyreplicationnetworks.go index da2d1adc6f8..51e7d93a04b 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworkmappings/method_listbyreplicationnetworks.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworkmappings/method_listbyreplicationnetworks.go @@ -23,6 +23,18 @@ type ListByReplicationNetworksCompleteResult struct { Items []NetworkMapping } +type ListByReplicationNetworksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationNetworksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationNetworks ... func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context.Context, id ReplicationNetworkId) (result ListByReplicationNetworksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationNetworksCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworks/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworks/method_list.go index ab50a0694f1..930b8eccb31 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworks/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Network } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworks/method_listbyreplicationfabrics.go index 83ec14170af..88b6def873c 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []Network } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationpolicies/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationpolicies/method_list.go index c3f293ef36a..28ba613b34b 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationpolicies/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationpolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Policy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationPolicies", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go index 7b032615ade..3e871c362b1 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go @@ -54,6 +54,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotecteditems/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotecteditems/method_list.go index 7987783197b..dec0477f6ad 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotecteditems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotecteditems/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go index 7b2e364e0d4..c51a013c266 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ReplicationProtectedItem } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainermappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainermappings/method_list.go index 5dc7da9ac19..95cb2a96220 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainermappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainermappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainerMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go index 94b7e66be1f..1e171e16a67 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ProtectionContainerMapping } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainers/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainers/method_list.go index a87dc355045..d678bf5102a 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainers/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) List(ctx context.Context, id Vaul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go index 6a17536ab60..d870a7c81fd 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []ProtectionContainer } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectionintents/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectionintents/method_list.go index 7d665ac5f67..bbb7082780e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectionintents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationprotectionintents/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationrecoveryplans/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationrecoveryplans/method_list.go index eaecefd6815..d8446f2ae10 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationrecoveryplans/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationrecoveryplans/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryPlans", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationrecoveryservicesproviders/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationrecoveryservicesproviders/method_list.go index 8a222e57f39..9f87fd102aa 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationrecoveryservicesproviders/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationrecoveryservicesproviders/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryServicesProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go index b31369a32f8..2acfd3b73c2 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []RecoveryServicesProvider } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassificationmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassificationmappings/method_list.go index db03f44ad87..33b89316ca5 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassificationmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassificationmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassificationMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go index 898e603250c..17f056a2737 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go @@ -23,6 +23,18 @@ type ListByReplicationStorageClassificationsCompleteResult struct { Items []StorageClassificationMapping } +type ListByReplicationStorageClassificationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationStorageClassificationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationStorageClassifications ... func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassifications(ctx context.Context, id ReplicationStorageClassificationId) (result ListByReplicationStorageClassificationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorage http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationStorageClassificationsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassifications/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassifications/method_list.go index 1f5e42e124b..a2739887ea5 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassifications/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassifications/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassification } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id Va http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassifications/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassifications/method_listbyreplicationfabrics.go index 7308b18cf61..8d47b1ec523 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassifications/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationstorageclassifications/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []StorageClassification } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationvaultsetting/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationvaultsetting/method_list.go index 74a07ad1ed6..8887bc084fc 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationvaultsetting/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationvaultsetting/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VaultSetting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationVaultSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationvcenters/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationvcenters/method_list.go index 455859e7f14..f92559a8f20 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationvcenters/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationvcenters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VCenter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationvcenters/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationvcenters/method_listbyreplicationfabrics.go index df3308ad379..2c99a1a6fea 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationvcenters/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/replicationvcenters/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []VCenter } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/supportedoperatingsystems/method_get.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/supportedoperatingsystems/method_get.go index 63751a59a55..07d549f188e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/supportedoperatingsystems/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/supportedoperatingsystems/method_get.go @@ -53,8 +53,8 @@ func (c SupportedOperatingSystemsClient) Get(ctx context.Context, id VaultId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-01-01/targetcomputesizes/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2023-01-01/targetcomputesizes/method_listbyreplicationprotecteditems.go index 8634311e28a..2bff64e44bb 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-01-01/targetcomputesizes/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-01-01/targetcomputesizes/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []TargetComputeSize } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/targetComputeSizes", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go index 58b8549c6ef..a850052471e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go @@ -23,6 +23,18 @@ type ListByReplicationMigrationItemsCompleteResult struct { Items []MigrationRecoveryPoint } +type ListByReplicationMigrationItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationMigrationItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationMigrationItems ... func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx context.Context, id ReplicationMigrationItemId) (result ListByReplicationMigrationItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationMigrationItemsCustomPager{}, Path: fmt.Sprintf("%s/migrationRecoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/operations/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/operations/method_list.go index e33e0a47ef8..b83b36e2e63 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/operations/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/operations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []OperationsDiscovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/operations", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/recoverypoints/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/recoverypoints/method_listbyreplicationprotecteditems.go index de9469afe33..dd0de009d18 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/recoverypoints/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/recoverypoints/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []RecoveryPoint } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationalertsettings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationalertsettings/method_list.go index 758eed61cb6..3d9e40c5690 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationalertsettings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationalertsettings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationAlertSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationappliances/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationappliances/method_list.go index ade7026ef25..7bb33ca2aa9 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationappliances/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationappliances/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationevents/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationevents/method_list.go index 2edbd779ff8..d9b820e0cab 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationevents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationevents/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationEvents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationEvents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationfabrics/method_get.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationfabrics/method_get.go index bd428d5d41b..b7aa7e1fc64 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationfabrics/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationfabrics/method_get.go @@ -53,8 +53,8 @@ func (c ReplicationFabricsClient) Get(ctx context.Context, id ReplicationFabricI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationfabrics/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationfabrics/method_list.go index 096ede5d5b2..9087564b359 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationfabrics/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationfabrics/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Fabric } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationFabrics", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationjobs/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationjobs/method_list.go index 3a94683c105..d95ff537514 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationjobs/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationjobs/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationJobs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go index 7c8a529a46c..e9fef6356f3 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []LogicalNetwork } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationLogicalNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationmigrationitems/method_delete.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationmigrationitems/method_delete.go index ba867def8dd..5a4c9cf0e48 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationmigrationitems/method_delete.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationmigrationitems/method_delete.go @@ -56,8 +56,8 @@ func (c ReplicationMigrationItemsClient) Delete(ctx context.Context, id Replicat http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationmigrationitems/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationmigrationitems/method_list.go index 3f27c3c3ce1..133fc43de9d 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationmigrationitems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationmigrationitems/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go index 9b0076c2483..11d5ad86382 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go @@ -58,6 +58,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworkmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworkmappings/method_list.go index 035e2f18c11..c8dfd95c67d 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworkmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworkmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []NetworkMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworkmappings/method_listbyreplicationnetworks.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworkmappings/method_listbyreplicationnetworks.go index da2d1adc6f8..51e7d93a04b 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworkmappings/method_listbyreplicationnetworks.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworkmappings/method_listbyreplicationnetworks.go @@ -23,6 +23,18 @@ type ListByReplicationNetworksCompleteResult struct { Items []NetworkMapping } +type ListByReplicationNetworksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationNetworksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationNetworks ... func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context.Context, id ReplicationNetworkId) (result ListByReplicationNetworksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationNetworksCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworks/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworks/method_list.go index ab50a0694f1..930b8eccb31 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworks/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Network } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworks/method_listbyreplicationfabrics.go index 83ec14170af..88b6def873c 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []Network } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationpolicies/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationpolicies/method_list.go index c3f293ef36a..28ba613b34b 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationpolicies/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationpolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Policy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationPolicies", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go index 7b032615ade..3e871c362b1 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go @@ -54,6 +54,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotecteditems/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotecteditems/method_list.go index 7987783197b..dec0477f6ad 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotecteditems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotecteditems/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go index 7b2e364e0d4..c51a013c266 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ReplicationProtectedItem } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainermappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainermappings/method_list.go index 5dc7da9ac19..95cb2a96220 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainermappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainermappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainerMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go index 94b7e66be1f..1e171e16a67 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ProtectionContainerMapping } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainers/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainers/method_list.go index a87dc355045..d678bf5102a 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainers/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) List(ctx context.Context, id Vaul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go index 6a17536ab60..d870a7c81fd 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []ProtectionContainer } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectionintents/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectionintents/method_list.go index 7d665ac5f67..bbb7082780e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectionintents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationprotectionintents/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationrecoveryplans/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationrecoveryplans/method_list.go index eaecefd6815..d8446f2ae10 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationrecoveryplans/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationrecoveryplans/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryPlans", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationrecoveryservicesproviders/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationrecoveryservicesproviders/method_list.go index 8a222e57f39..9f87fd102aa 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationrecoveryservicesproviders/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationrecoveryservicesproviders/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryServicesProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go index b31369a32f8..2acfd3b73c2 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []RecoveryServicesProvider } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassificationmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassificationmappings/method_list.go index db03f44ad87..33b89316ca5 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassificationmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassificationmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassificationMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go index 898e603250c..17f056a2737 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go @@ -23,6 +23,18 @@ type ListByReplicationStorageClassificationsCompleteResult struct { Items []StorageClassificationMapping } +type ListByReplicationStorageClassificationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationStorageClassificationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationStorageClassifications ... func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassifications(ctx context.Context, id ReplicationStorageClassificationId) (result ListByReplicationStorageClassificationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorage http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationStorageClassificationsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassifications/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassifications/method_list.go index 1f5e42e124b..a2739887ea5 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassifications/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassifications/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassification } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id Va http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassifications/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassifications/method_listbyreplicationfabrics.go index 7308b18cf61..8d47b1ec523 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassifications/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationstorageclassifications/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []StorageClassification } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationvaultsetting/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationvaultsetting/method_list.go index 74a07ad1ed6..8887bc084fc 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationvaultsetting/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationvaultsetting/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VaultSetting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationVaultSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationvcenters/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationvcenters/method_list.go index 455859e7f14..f92559a8f20 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationvcenters/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationvcenters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VCenter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationvcenters/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationvcenters/method_listbyreplicationfabrics.go index df3308ad379..2c99a1a6fea 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationvcenters/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/replicationvcenters/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []VCenter } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/supportedoperatingsystems/method_get.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/supportedoperatingsystems/method_get.go index 63751a59a55..07d549f188e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/supportedoperatingsystems/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/supportedoperatingsystems/method_get.go @@ -53,8 +53,8 @@ func (c SupportedOperatingSystemsClient) Get(ctx context.Context, id VaultId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-02-01/targetcomputesizes/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2023-02-01/targetcomputesizes/method_listbyreplicationprotecteditems.go index 8634311e28a..2bff64e44bb 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-02-01/targetcomputesizes/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-02-01/targetcomputesizes/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []TargetComputeSize } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/targetComputeSizes", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go index 58b8549c6ef..a850052471e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go @@ -23,6 +23,18 @@ type ListByReplicationMigrationItemsCompleteResult struct { Items []MigrationRecoveryPoint } +type ListByReplicationMigrationItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationMigrationItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationMigrationItems ... func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx context.Context, id ReplicationMigrationItemId) (result ListByReplicationMigrationItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationMigrationItemsCustomPager{}, Path: fmt.Sprintf("%s/migrationRecoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/operations/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/operations/method_list.go index e33e0a47ef8..b83b36e2e63 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/operations/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/operations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []OperationsDiscovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/operations", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/recoverypoints/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/recoverypoints/method_listbyreplicationprotecteditems.go index de9469afe33..dd0de009d18 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/recoverypoints/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/recoverypoints/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []RecoveryPoint } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationalertsettings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationalertsettings/method_list.go index 758eed61cb6..3d9e40c5690 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationalertsettings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationalertsettings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationAlertSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationappliances/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationappliances/method_list.go index ade7026ef25..7bb33ca2aa9 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationappliances/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationappliances/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationevents/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationevents/method_list.go index 2edbd779ff8..d9b820e0cab 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationevents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationevents/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationEvents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationEvents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationfabrics/method_get.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationfabrics/method_get.go index bd428d5d41b..b7aa7e1fc64 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationfabrics/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationfabrics/method_get.go @@ -53,8 +53,8 @@ func (c ReplicationFabricsClient) Get(ctx context.Context, id ReplicationFabricI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationfabrics/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationfabrics/method_list.go index 096ede5d5b2..9087564b359 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationfabrics/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationfabrics/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Fabric } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationFabrics", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationjobs/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationjobs/method_list.go index 3a94683c105..d95ff537514 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationjobs/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationjobs/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationJobs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go index 7c8a529a46c..e9fef6356f3 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []LogicalNetwork } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationLogicalNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationmigrationitems/method_delete.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationmigrationitems/method_delete.go index ba867def8dd..5a4c9cf0e48 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationmigrationitems/method_delete.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationmigrationitems/method_delete.go @@ -56,8 +56,8 @@ func (c ReplicationMigrationItemsClient) Delete(ctx context.Context, id Replicat http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationmigrationitems/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationmigrationitems/method_list.go index 3f27c3c3ce1..133fc43de9d 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationmigrationitems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationmigrationitems/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go index 9b0076c2483..11d5ad86382 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go @@ -58,6 +58,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworkmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworkmappings/method_list.go index 035e2f18c11..c8dfd95c67d 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworkmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworkmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []NetworkMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworkmappings/method_listbyreplicationnetworks.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworkmappings/method_listbyreplicationnetworks.go index da2d1adc6f8..51e7d93a04b 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworkmappings/method_listbyreplicationnetworks.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworkmappings/method_listbyreplicationnetworks.go @@ -23,6 +23,18 @@ type ListByReplicationNetworksCompleteResult struct { Items []NetworkMapping } +type ListByReplicationNetworksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationNetworksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationNetworks ... func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context.Context, id ReplicationNetworkId) (result ListByReplicationNetworksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationNetworksCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworks/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworks/method_list.go index ab50a0694f1..930b8eccb31 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworks/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Network } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworks/method_listbyreplicationfabrics.go index 83ec14170af..88b6def873c 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []Network } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationpolicies/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationpolicies/method_list.go index c3f293ef36a..28ba613b34b 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationpolicies/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationpolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Policy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationPolicies", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go index 7b032615ade..3e871c362b1 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go @@ -54,6 +54,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotecteditems/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotecteditems/method_list.go index 7987783197b..dec0477f6ad 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotecteditems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotecteditems/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go index 7b2e364e0d4..c51a013c266 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ReplicationProtectedItem } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainermappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainermappings/method_list.go index 5dc7da9ac19..95cb2a96220 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainermappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainermappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainerMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go index 94b7e66be1f..1e171e16a67 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ProtectionContainerMapping } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainers/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainers/method_list.go index a87dc355045..d678bf5102a 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainers/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) List(ctx context.Context, id Vaul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go index 6a17536ab60..d870a7c81fd 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []ProtectionContainer } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectionintents/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectionintents/method_list.go index 7d665ac5f67..bbb7082780e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectionintents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationprotectionintents/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationrecoveryplans/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationrecoveryplans/method_list.go index eaecefd6815..d8446f2ae10 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationrecoveryplans/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationrecoveryplans/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryPlans", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationrecoveryservicesproviders/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationrecoveryservicesproviders/method_list.go index 8a222e57f39..9f87fd102aa 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationrecoveryservicesproviders/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationrecoveryservicesproviders/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryServicesProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go index b31369a32f8..2acfd3b73c2 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []RecoveryServicesProvider } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassificationmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassificationmappings/method_list.go index db03f44ad87..33b89316ca5 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassificationmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassificationmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassificationMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go index 898e603250c..17f056a2737 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go @@ -23,6 +23,18 @@ type ListByReplicationStorageClassificationsCompleteResult struct { Items []StorageClassificationMapping } +type ListByReplicationStorageClassificationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationStorageClassificationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationStorageClassifications ... func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassifications(ctx context.Context, id ReplicationStorageClassificationId) (result ListByReplicationStorageClassificationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorage http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationStorageClassificationsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassifications/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassifications/method_list.go index 1f5e42e124b..a2739887ea5 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassifications/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassifications/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassification } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id Va http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassifications/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassifications/method_listbyreplicationfabrics.go index 7308b18cf61..8d47b1ec523 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassifications/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationstorageclassifications/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []StorageClassification } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationvaultsetting/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationvaultsetting/method_list.go index 74a07ad1ed6..8887bc084fc 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationvaultsetting/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationvaultsetting/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VaultSetting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationVaultSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationvcenters/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationvcenters/method_list.go index 455859e7f14..f92559a8f20 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationvcenters/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationvcenters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VCenter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationvcenters/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationvcenters/method_listbyreplicationfabrics.go index df3308ad379..2c99a1a6fea 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationvcenters/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/replicationvcenters/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []VCenter } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/supportedoperatingsystems/method_get.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/supportedoperatingsystems/method_get.go index 63751a59a55..07d549f188e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/supportedoperatingsystems/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/supportedoperatingsystems/method_get.go @@ -53,8 +53,8 @@ func (c SupportedOperatingSystemsClient) Get(ctx context.Context, id VaultId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-04-01/targetcomputesizes/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2023-04-01/targetcomputesizes/method_listbyreplicationprotecteditems.go index 8634311e28a..2bff64e44bb 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-04-01/targetcomputesizes/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-04-01/targetcomputesizes/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []TargetComputeSize } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/targetComputeSizes", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go index 58b8549c6ef..a850052471e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go @@ -23,6 +23,18 @@ type ListByReplicationMigrationItemsCompleteResult struct { Items []MigrationRecoveryPoint } +type ListByReplicationMigrationItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationMigrationItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationMigrationItems ... func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx context.Context, id ReplicationMigrationItemId) (result ListByReplicationMigrationItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationMigrationItemsCustomPager{}, Path: fmt.Sprintf("%s/migrationRecoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/operations/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/operations/method_list.go index e33e0a47ef8..b83b36e2e63 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/operations/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/operations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []OperationsDiscovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/operations", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/recoverypoints/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/recoverypoints/method_listbyreplicationprotecteditems.go index de9469afe33..dd0de009d18 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/recoverypoints/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/recoverypoints/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []RecoveryPoint } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationalertsettings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationalertsettings/method_list.go index 758eed61cb6..3d9e40c5690 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationalertsettings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationalertsettings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationAlertSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationappliances/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationappliances/method_list.go index ade7026ef25..7bb33ca2aa9 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationappliances/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationappliances/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationevents/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationevents/method_list.go index 2edbd779ff8..d9b820e0cab 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationevents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationevents/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationEvents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationEvents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationfabrics/method_get.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationfabrics/method_get.go index bd428d5d41b..b7aa7e1fc64 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationfabrics/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationfabrics/method_get.go @@ -53,8 +53,8 @@ func (c ReplicationFabricsClient) Get(ctx context.Context, id ReplicationFabricI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationfabrics/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationfabrics/method_list.go index 096ede5d5b2..9087564b359 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationfabrics/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationfabrics/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Fabric } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationFabrics", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationjobs/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationjobs/method_list.go index 3a94683c105..d95ff537514 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationjobs/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationjobs/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationJobs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go index 7c8a529a46c..e9fef6356f3 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []LogicalNetwork } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationLogicalNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationmigrationitems/method_delete.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationmigrationitems/method_delete.go index ba867def8dd..5a4c9cf0e48 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationmigrationitems/method_delete.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationmigrationitems/method_delete.go @@ -56,8 +56,8 @@ func (c ReplicationMigrationItemsClient) Delete(ctx context.Context, id Replicat http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationmigrationitems/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationmigrationitems/method_list.go index 3f27c3c3ce1..133fc43de9d 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationmigrationitems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationmigrationitems/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go index 9b0076c2483..11d5ad86382 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go @@ -58,6 +58,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworkmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworkmappings/method_list.go index 035e2f18c11..c8dfd95c67d 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworkmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworkmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []NetworkMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworkmappings/method_listbyreplicationnetworks.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworkmappings/method_listbyreplicationnetworks.go index da2d1adc6f8..51e7d93a04b 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworkmappings/method_listbyreplicationnetworks.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworkmappings/method_listbyreplicationnetworks.go @@ -23,6 +23,18 @@ type ListByReplicationNetworksCompleteResult struct { Items []NetworkMapping } +type ListByReplicationNetworksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationNetworksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationNetworks ... func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context.Context, id ReplicationNetworkId) (result ListByReplicationNetworksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationNetworksCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworks/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworks/method_list.go index ab50a0694f1..930b8eccb31 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworks/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Network } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworks/method_listbyreplicationfabrics.go index 83ec14170af..88b6def873c 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []Network } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationpolicies/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationpolicies/method_list.go index c3f293ef36a..28ba613b34b 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationpolicies/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationpolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Policy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationPolicies", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go index 7b032615ade..3e871c362b1 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go @@ -54,6 +54,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotecteditems/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotecteditems/method_list.go index 7987783197b..dec0477f6ad 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotecteditems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotecteditems/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go index 7b2e364e0d4..c51a013c266 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ReplicationProtectedItem } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainermappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainermappings/method_list.go index 5dc7da9ac19..95cb2a96220 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainermappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainermappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainerMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go index 94b7e66be1f..1e171e16a67 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ProtectionContainerMapping } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainers/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainers/method_list.go index a87dc355045..d678bf5102a 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainers/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) List(ctx context.Context, id Vaul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go index 6a17536ab60..d870a7c81fd 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []ProtectionContainer } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectionintents/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectionintents/method_list.go index 7d665ac5f67..bbb7082780e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectionintents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationprotectionintents/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationrecoveryplans/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationrecoveryplans/method_list.go index eaecefd6815..d8446f2ae10 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationrecoveryplans/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationrecoveryplans/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryPlans", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationrecoveryservicesproviders/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationrecoveryservicesproviders/method_list.go index 8a222e57f39..9f87fd102aa 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationrecoveryservicesproviders/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationrecoveryservicesproviders/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryServicesProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go index b31369a32f8..2acfd3b73c2 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []RecoveryServicesProvider } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassificationmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassificationmappings/method_list.go index db03f44ad87..33b89316ca5 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassificationmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassificationmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassificationMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go index 898e603250c..17f056a2737 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go @@ -23,6 +23,18 @@ type ListByReplicationStorageClassificationsCompleteResult struct { Items []StorageClassificationMapping } +type ListByReplicationStorageClassificationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationStorageClassificationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationStorageClassifications ... func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassifications(ctx context.Context, id ReplicationStorageClassificationId) (result ListByReplicationStorageClassificationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorage http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationStorageClassificationsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassifications/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassifications/method_list.go index 1f5e42e124b..a2739887ea5 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassifications/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassifications/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassification } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id Va http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassifications/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassifications/method_listbyreplicationfabrics.go index 7308b18cf61..8d47b1ec523 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassifications/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationstorageclassifications/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []StorageClassification } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationvaultsetting/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationvaultsetting/method_list.go index 74a07ad1ed6..8887bc084fc 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationvaultsetting/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationvaultsetting/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VaultSetting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationVaultSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationvcenters/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationvcenters/method_list.go index 455859e7f14..f92559a8f20 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationvcenters/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationvcenters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VCenter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationvcenters/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationvcenters/method_listbyreplicationfabrics.go index df3308ad379..2c99a1a6fea 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationvcenters/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/replicationvcenters/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []VCenter } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/supportedoperatingsystems/method_get.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/supportedoperatingsystems/method_get.go index 63751a59a55..07d549f188e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/supportedoperatingsystems/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/supportedoperatingsystems/method_get.go @@ -53,8 +53,8 @@ func (c SupportedOperatingSystemsClient) Get(ctx context.Context, id VaultId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-06-01/targetcomputesizes/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2023-06-01/targetcomputesizes/method_listbyreplicationprotecteditems.go index 8634311e28a..2bff64e44bb 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-06-01/targetcomputesizes/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-06-01/targetcomputesizes/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []TargetComputeSize } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/targetComputeSizes", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go index 58b8549c6ef..a850052471e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go @@ -23,6 +23,18 @@ type ListByReplicationMigrationItemsCompleteResult struct { Items []MigrationRecoveryPoint } +type ListByReplicationMigrationItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationMigrationItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationMigrationItems ... func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx context.Context, id ReplicationMigrationItemId) (result ListByReplicationMigrationItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationMigrationItemsCustomPager{}, Path: fmt.Sprintf("%s/migrationRecoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/operations/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/operations/method_list.go index e33e0a47ef8..b83b36e2e63 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/operations/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/operations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []OperationsDiscovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/operations", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/recoverypoints/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/recoverypoints/method_listbyreplicationprotecteditems.go index de9469afe33..dd0de009d18 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/recoverypoints/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/recoverypoints/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []RecoveryPoint } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationalertsettings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationalertsettings/method_list.go index 758eed61cb6..3d9e40c5690 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationalertsettings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationalertsettings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationAlertSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationappliances/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationappliances/method_list.go index ade7026ef25..7bb33ca2aa9 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationappliances/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationappliances/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationevents/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationevents/method_list.go index 2edbd779ff8..d9b820e0cab 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationevents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationevents/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationEvents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationEvents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationfabrics/method_get.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationfabrics/method_get.go index bd428d5d41b..b7aa7e1fc64 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationfabrics/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationfabrics/method_get.go @@ -53,8 +53,8 @@ func (c ReplicationFabricsClient) Get(ctx context.Context, id ReplicationFabricI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationfabrics/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationfabrics/method_list.go index 096ede5d5b2..9087564b359 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationfabrics/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationfabrics/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Fabric } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationFabrics", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationjobs/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationjobs/method_list.go index 3a94683c105..d95ff537514 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationjobs/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationjobs/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationJobs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go index 7c8a529a46c..e9fef6356f3 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []LogicalNetwork } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationLogicalNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationmigrationitems/method_delete.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationmigrationitems/method_delete.go index ba867def8dd..5a4c9cf0e48 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationmigrationitems/method_delete.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationmigrationitems/method_delete.go @@ -56,8 +56,8 @@ func (c ReplicationMigrationItemsClient) Delete(ctx context.Context, id Replicat http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationmigrationitems/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationmigrationitems/method_list.go index 3f27c3c3ce1..133fc43de9d 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationmigrationitems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationmigrationitems/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go index 9b0076c2483..11d5ad86382 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go @@ -58,6 +58,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworkmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworkmappings/method_list.go index 035e2f18c11..c8dfd95c67d 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworkmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworkmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []NetworkMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworkmappings/method_listbyreplicationnetworks.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworkmappings/method_listbyreplicationnetworks.go index da2d1adc6f8..51e7d93a04b 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworkmappings/method_listbyreplicationnetworks.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworkmappings/method_listbyreplicationnetworks.go @@ -23,6 +23,18 @@ type ListByReplicationNetworksCompleteResult struct { Items []NetworkMapping } +type ListByReplicationNetworksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationNetworksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationNetworks ... func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context.Context, id ReplicationNetworkId) (result ListByReplicationNetworksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationNetworksCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworks/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworks/method_list.go index ab50a0694f1..930b8eccb31 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworks/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Network } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworks/method_listbyreplicationfabrics.go index 83ec14170af..88b6def873c 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []Network } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationpolicies/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationpolicies/method_list.go index c3f293ef36a..28ba613b34b 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationpolicies/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationpolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Policy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationPolicies", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go index 7b032615ade..3e871c362b1 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go @@ -54,6 +54,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotecteditems/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotecteditems/method_list.go index 7987783197b..dec0477f6ad 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotecteditems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotecteditems/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go index 7b2e364e0d4..c51a013c266 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ReplicationProtectedItem } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainermappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainermappings/method_list.go index 5dc7da9ac19..95cb2a96220 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainermappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainermappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainerMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go index 94b7e66be1f..1e171e16a67 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ProtectionContainerMapping } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainers/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainers/method_list.go index a87dc355045..d678bf5102a 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainers/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) List(ctx context.Context, id Vaul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go index 6a17536ab60..d870a7c81fd 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []ProtectionContainer } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectionintents/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectionintents/method_list.go index 7d665ac5f67..bbb7082780e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectionintents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationprotectionintents/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationrecoveryplans/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationrecoveryplans/method_list.go index eaecefd6815..d8446f2ae10 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationrecoveryplans/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationrecoveryplans/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryPlans", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationrecoveryservicesproviders/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationrecoveryservicesproviders/method_list.go index 8a222e57f39..9f87fd102aa 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationrecoveryservicesproviders/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationrecoveryservicesproviders/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryServicesProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go index b31369a32f8..2acfd3b73c2 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []RecoveryServicesProvider } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassificationmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassificationmappings/method_list.go index db03f44ad87..33b89316ca5 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassificationmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassificationmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassificationMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go index 898e603250c..17f056a2737 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go @@ -23,6 +23,18 @@ type ListByReplicationStorageClassificationsCompleteResult struct { Items []StorageClassificationMapping } +type ListByReplicationStorageClassificationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationStorageClassificationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationStorageClassifications ... func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassifications(ctx context.Context, id ReplicationStorageClassificationId) (result ListByReplicationStorageClassificationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorage http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationStorageClassificationsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassifications/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassifications/method_list.go index 1f5e42e124b..a2739887ea5 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassifications/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassifications/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassification } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id Va http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassifications/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassifications/method_listbyreplicationfabrics.go index 7308b18cf61..8d47b1ec523 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassifications/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationstorageclassifications/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []StorageClassification } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationvaultsetting/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationvaultsetting/method_list.go index 74a07ad1ed6..8887bc084fc 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationvaultsetting/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationvaultsetting/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VaultSetting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationVaultSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationvcenters/method_list.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationvcenters/method_list.go index 455859e7f14..f92559a8f20 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationvcenters/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationvcenters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VCenter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationvcenters/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationvcenters/method_listbyreplicationfabrics.go index df3308ad379..2c99a1a6fea 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationvcenters/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/replicationvcenters/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []VCenter } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/supportedoperatingsystems/method_get.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/supportedoperatingsystems/method_get.go index 63751a59a55..07d549f188e 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/supportedoperatingsystems/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/supportedoperatingsystems/method_get.go @@ -53,8 +53,8 @@ func (c SupportedOperatingSystemsClient) Get(ctx context.Context, id VaultId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2023-08-01/targetcomputesizes/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2023-08-01/targetcomputesizes/method_listbyreplicationprotecteditems.go index 8634311e28a..2bff64e44bb 100644 --- a/resource-manager/recoveryservicessiterecovery/2023-08-01/targetcomputesizes/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2023-08-01/targetcomputesizes/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []TargetComputeSize } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/targetComputeSizes", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go index 58b8549c6ef..a850052471e 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go @@ -23,6 +23,18 @@ type ListByReplicationMigrationItemsCompleteResult struct { Items []MigrationRecoveryPoint } +type ListByReplicationMigrationItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationMigrationItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationMigrationItems ... func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx context.Context, id ReplicationMigrationItemId) (result ListByReplicationMigrationItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationMigrationItemsCustomPager{}, Path: fmt.Sprintf("%s/migrationRecoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/operations/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/operations/method_list.go index e33e0a47ef8..b83b36e2e63 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/operations/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/operations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []OperationsDiscovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/operations", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/recoverypoints/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/recoverypoints/method_listbyreplicationprotecteditems.go index de9469afe33..dd0de009d18 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/recoverypoints/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/recoverypoints/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []RecoveryPoint } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationalertsettings/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationalertsettings/method_list.go index 758eed61cb6..3d9e40c5690 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationalertsettings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationalertsettings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationAlertSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationappliances/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationappliances/method_list.go index ade7026ef25..7bb33ca2aa9 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationappliances/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationappliances/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationevents/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationevents/method_list.go index 2edbd779ff8..d9b820e0cab 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationevents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationevents/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationEvents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationEvents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationfabrics/method_get.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationfabrics/method_get.go index bd428d5d41b..b7aa7e1fc64 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationfabrics/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationfabrics/method_get.go @@ -53,8 +53,8 @@ func (c ReplicationFabricsClient) Get(ctx context.Context, id ReplicationFabricI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationfabrics/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationfabrics/method_list.go index 096ede5d5b2..9087564b359 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationfabrics/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationfabrics/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Fabric } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationFabrics", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationjobs/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationjobs/method_list.go index 3a94683c105..d95ff537514 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationjobs/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationjobs/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationJobs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go index 7c8a529a46c..e9fef6356f3 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []LogicalNetwork } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationLogicalNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationmigrationitems/method_delete.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationmigrationitems/method_delete.go index ba867def8dd..5a4c9cf0e48 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationmigrationitems/method_delete.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationmigrationitems/method_delete.go @@ -56,8 +56,8 @@ func (c ReplicationMigrationItemsClient) Delete(ctx context.Context, id Replicat http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationmigrationitems/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationmigrationitems/method_list.go index 3f27c3c3ce1..133fc43de9d 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationmigrationitems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationmigrationitems/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go index 9b0076c2483..11d5ad86382 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go @@ -58,6 +58,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworkmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworkmappings/method_list.go index 035e2f18c11..c8dfd95c67d 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworkmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworkmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []NetworkMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworkmappings/method_listbyreplicationnetworks.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworkmappings/method_listbyreplicationnetworks.go index da2d1adc6f8..51e7d93a04b 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworkmappings/method_listbyreplicationnetworks.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworkmappings/method_listbyreplicationnetworks.go @@ -23,6 +23,18 @@ type ListByReplicationNetworksCompleteResult struct { Items []NetworkMapping } +type ListByReplicationNetworksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationNetworksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationNetworks ... func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context.Context, id ReplicationNetworkId) (result ListByReplicationNetworksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationNetworksCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworks/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworks/method_list.go index ab50a0694f1..930b8eccb31 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworks/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Network } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworks/method_listbyreplicationfabrics.go index 83ec14170af..88b6def873c 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []Network } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationpolicies/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationpolicies/method_list.go index c3f293ef36a..28ba613b34b 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationpolicies/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationpolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Policy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationPolicies", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go index 7b032615ade..3e871c362b1 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go @@ -54,6 +54,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotecteditems/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotecteditems/method_list.go index 7987783197b..dec0477f6ad 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotecteditems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotecteditems/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go index 7b2e364e0d4..c51a013c266 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ReplicationProtectedItem } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainermappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainermappings/method_list.go index 5dc7da9ac19..95cb2a96220 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainermappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainermappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainerMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go index 94b7e66be1f..1e171e16a67 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ProtectionContainerMapping } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainers/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainers/method_list.go index a87dc355045..d678bf5102a 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainers/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) List(ctx context.Context, id Vaul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go index 6a17536ab60..d870a7c81fd 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []ProtectionContainer } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectionintents/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectionintents/method_list.go index 7d665ac5f67..bbb7082780e 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectionintents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationprotectionintents/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationrecoveryplans/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationrecoveryplans/method_list.go index eaecefd6815..d8446f2ae10 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationrecoveryplans/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationrecoveryplans/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryPlans", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationrecoveryservicesproviders/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationrecoveryservicesproviders/method_list.go index 8a222e57f39..9f87fd102aa 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationrecoveryservicesproviders/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationrecoveryservicesproviders/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryServicesProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go index b31369a32f8..2acfd3b73c2 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []RecoveryServicesProvider } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassificationmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassificationmappings/method_list.go index db03f44ad87..33b89316ca5 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassificationmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassificationmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassificationMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go index 898e603250c..17f056a2737 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go @@ -23,6 +23,18 @@ type ListByReplicationStorageClassificationsCompleteResult struct { Items []StorageClassificationMapping } +type ListByReplicationStorageClassificationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationStorageClassificationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationStorageClassifications ... func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassifications(ctx context.Context, id ReplicationStorageClassificationId) (result ListByReplicationStorageClassificationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorage http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationStorageClassificationsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassifications/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassifications/method_list.go index 1f5e42e124b..a2739887ea5 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassifications/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassifications/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassification } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id Va http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassifications/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassifications/method_listbyreplicationfabrics.go index 7308b18cf61..8d47b1ec523 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassifications/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationstorageclassifications/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []StorageClassification } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationvaultsetting/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationvaultsetting/method_list.go index 74a07ad1ed6..8887bc084fc 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationvaultsetting/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationvaultsetting/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VaultSetting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationVaultSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationvcenters/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationvcenters/method_list.go index 455859e7f14..f92559a8f20 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationvcenters/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationvcenters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VCenter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationvcenters/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationvcenters/method_listbyreplicationfabrics.go index df3308ad379..2c99a1a6fea 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationvcenters/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/replicationvcenters/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []VCenter } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/supportedoperatingsystems/method_get.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/supportedoperatingsystems/method_get.go index 63751a59a55..07d549f188e 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/supportedoperatingsystems/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/supportedoperatingsystems/method_get.go @@ -53,8 +53,8 @@ func (c SupportedOperatingSystemsClient) Get(ctx context.Context, id VaultId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-01-01/targetcomputesizes/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2024-01-01/targetcomputesizes/method_listbyreplicationprotecteditems.go index 8634311e28a..2bff64e44bb 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-01-01/targetcomputesizes/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2024-01-01/targetcomputesizes/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []TargetComputeSize } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/targetComputeSizes", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/clusterrecoverypoints/method_listbyreplicationprotectioncluster.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/clusterrecoverypoints/method_listbyreplicationprotectioncluster.go index 8a032b12f00..57582dc9c9d 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/clusterrecoverypoints/method_listbyreplicationprotectioncluster.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/clusterrecoverypoints/method_listbyreplicationprotectioncluster.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionClusterCompleteResult struct { Items []ClusterRecoveryPoint } +type ListByReplicationProtectionClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionCluster ... func (c ClusterRecoveryPointsClient) ListByReplicationProtectionCluster(ctx context.Context, id ReplicationProtectionClusterId) (result ListByReplicationProtectionClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ClusterRecoveryPointsClient) ListByReplicationProtectionCluster(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionClusterCustomPager{}, Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go index 58b8549c6ef..a850052471e 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go @@ -23,6 +23,18 @@ type ListByReplicationMigrationItemsCompleteResult struct { Items []MigrationRecoveryPoint } +type ListByReplicationMigrationItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationMigrationItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationMigrationItems ... func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx context.Context, id ReplicationMigrationItemId) (result ListByReplicationMigrationItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationMigrationItemsCustomPager{}, Path: fmt.Sprintf("%s/migrationRecoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/operations/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/operations/method_list.go index e33e0a47ef8..b83b36e2e63 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/operations/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/operations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []OperationsDiscovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/operations", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/recoverypoints/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/recoverypoints/method_listbyreplicationprotecteditems.go index de9469afe33..dd0de009d18 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/recoverypoints/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/recoverypoints/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []RecoveryPoint } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationalertsettings/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationalertsettings/method_list.go index 758eed61cb6..3d9e40c5690 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationalertsettings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationalertsettings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationAlertSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationappliances/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationappliances/method_list.go index ade7026ef25..7bb33ca2aa9 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationappliances/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationappliances/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationevents/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationevents/method_list.go index 2edbd779ff8..d9b820e0cab 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationevents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationevents/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationEvents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationEvents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationfabrics/method_get.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationfabrics/method_get.go index bd428d5d41b..b7aa7e1fc64 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationfabrics/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationfabrics/method_get.go @@ -53,8 +53,8 @@ func (c ReplicationFabricsClient) Get(ctx context.Context, id ReplicationFabricI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationfabrics/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationfabrics/method_list.go index 096ede5d5b2..9087564b359 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationfabrics/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationfabrics/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Fabric } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationFabrics", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationjobs/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationjobs/method_list.go index 3a94683c105..d95ff537514 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationjobs/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationjobs/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationJobs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go index 7c8a529a46c..e9fef6356f3 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []LogicalNetwork } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationLogicalNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationmigrationitems/method_delete.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationmigrationitems/method_delete.go index ba867def8dd..5a4c9cf0e48 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationmigrationitems/method_delete.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationmigrationitems/method_delete.go @@ -56,8 +56,8 @@ func (c ReplicationMigrationItemsClient) Delete(ctx context.Context, id Replicat http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationmigrationitems/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationmigrationitems/method_list.go index 3f27c3c3ce1..133fc43de9d 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationmigrationitems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationmigrationitems/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go index 9b0076c2483..11d5ad86382 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go @@ -58,6 +58,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworkmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworkmappings/method_list.go index 035e2f18c11..c8dfd95c67d 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworkmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworkmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []NetworkMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworkmappings/method_listbyreplicationnetworks.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworkmappings/method_listbyreplicationnetworks.go index da2d1adc6f8..51e7d93a04b 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworkmappings/method_listbyreplicationnetworks.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworkmappings/method_listbyreplicationnetworks.go @@ -23,6 +23,18 @@ type ListByReplicationNetworksCompleteResult struct { Items []NetworkMapping } +type ListByReplicationNetworksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationNetworksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationNetworks ... func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context.Context, id ReplicationNetworkId) (result ListByReplicationNetworksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationNetworksCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworks/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworks/method_list.go index ab50a0694f1..930b8eccb31 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworks/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Network } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworks/method_listbyreplicationfabrics.go index 83ec14170af..88b6def873c 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []Network } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationpolicies/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationpolicies/method_list.go index c3f293ef36a..28ba613b34b 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationpolicies/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationpolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Policy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationPolicies", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go index 7b032615ade..3e871c362b1 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go @@ -54,6 +54,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotecteditems/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotecteditems/method_list.go index 7987783197b..dec0477f6ad 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotecteditems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotecteditems/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go index 7b2e364e0d4..c51a013c266 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ReplicationProtectedItem } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectionclusters/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectionclusters/method_list.go index 302717f67bd..b974d3c842d 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectionclusters/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectionclusters/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionClustersClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectionClustersClient) List(ctx context.Context, id VaultI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectionClusters", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectionClusters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectionclusters/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectionclusters/method_listbyreplicationprotectioncontainers.go index 6ce4d28cd1f..ec679c4b218 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectionclusters/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectionclusters/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ReplicationProtectionCluster } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectionClustersClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionClustersClient) ListByReplicationProtectionContaine http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionClusters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainermappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainermappings/method_list.go index 5dc7da9ac19..95cb2a96220 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainermappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainermappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainerMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go index 94b7e66be1f..1e171e16a67 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ProtectionContainerMapping } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainers/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainers/method_list.go index a87dc355045..d678bf5102a 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainers/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) List(ctx context.Context, id Vaul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go index 6a17536ab60..d870a7c81fd 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []ProtectionContainer } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectionintents/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectionintents/method_list.go index 7d665ac5f67..bbb7082780e 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectionintents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationprotectionintents/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationrecoveryplans/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationrecoveryplans/method_list.go index eaecefd6815..d8446f2ae10 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationrecoveryplans/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationrecoveryplans/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryPlans", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationrecoveryservicesproviders/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationrecoveryservicesproviders/method_list.go index 8a222e57f39..9f87fd102aa 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationrecoveryservicesproviders/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationrecoveryservicesproviders/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryServicesProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go index b31369a32f8..2acfd3b73c2 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []RecoveryServicesProvider } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassificationmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassificationmappings/method_list.go index db03f44ad87..33b89316ca5 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassificationmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassificationmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassificationMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go index 898e603250c..17f056a2737 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go @@ -23,6 +23,18 @@ type ListByReplicationStorageClassificationsCompleteResult struct { Items []StorageClassificationMapping } +type ListByReplicationStorageClassificationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationStorageClassificationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationStorageClassifications ... func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassifications(ctx context.Context, id ReplicationStorageClassificationId) (result ListByReplicationStorageClassificationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorage http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationStorageClassificationsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassifications/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassifications/method_list.go index 1f5e42e124b..a2739887ea5 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassifications/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassifications/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassification } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id Va http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassifications/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassifications/method_listbyreplicationfabrics.go index 7308b18cf61..8d47b1ec523 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassifications/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationstorageclassifications/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []StorageClassification } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationvaultsetting/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationvaultsetting/method_list.go index 74a07ad1ed6..8887bc084fc 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationvaultsetting/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationvaultsetting/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VaultSetting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationVaultSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationvcenters/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationvcenters/method_list.go index 455859e7f14..f92559a8f20 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationvcenters/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationvcenters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VCenter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationvcenters/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationvcenters/method_listbyreplicationfabrics.go index df3308ad379..2c99a1a6fea 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationvcenters/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/replicationvcenters/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []VCenter } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/supportedoperatingsystems/method_get.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/supportedoperatingsystems/method_get.go index 63751a59a55..07d549f188e 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/supportedoperatingsystems/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/supportedoperatingsystems/method_get.go @@ -53,8 +53,8 @@ func (c SupportedOperatingSystemsClient) Get(ctx context.Context, id VaultId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-02-01/targetcomputesizes/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2024-02-01/targetcomputesizes/method_listbyreplicationprotecteditems.go index 8634311e28a..2bff64e44bb 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-02-01/targetcomputesizes/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2024-02-01/targetcomputesizes/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []TargetComputeSize } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/targetComputeSizes", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/clusterrecoverypoints/method_listbyreplicationprotectioncluster.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/clusterrecoverypoints/method_listbyreplicationprotectioncluster.go index 8a032b12f00..57582dc9c9d 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/clusterrecoverypoints/method_listbyreplicationprotectioncluster.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/clusterrecoverypoints/method_listbyreplicationprotectioncluster.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionClusterCompleteResult struct { Items []ClusterRecoveryPoint } +type ListByReplicationProtectionClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionCluster ... func (c ClusterRecoveryPointsClient) ListByReplicationProtectionCluster(ctx context.Context, id ReplicationProtectionClusterId) (result ListByReplicationProtectionClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ClusterRecoveryPointsClient) ListByReplicationProtectionCluster(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionClusterCustomPager{}, Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go index 58b8549c6ef..a850052471e 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/migrationrecoverypoints/method_listbyreplicationmigrationitems.go @@ -23,6 +23,18 @@ type ListByReplicationMigrationItemsCompleteResult struct { Items []MigrationRecoveryPoint } +type ListByReplicationMigrationItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationMigrationItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationMigrationItems ... func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx context.Context, id ReplicationMigrationItemId) (result ListByReplicationMigrationItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MigrationRecoveryPointsClient) ListByReplicationMigrationItems(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationMigrationItemsCustomPager{}, Path: fmt.Sprintf("%s/migrationRecoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/operations/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/operations/method_list.go index e33e0a47ef8..b83b36e2e63 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/operations/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/operations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []OperationsDiscovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OperationsClient) List(ctx context.Context, id commonids.ResourceGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RecoveryServices/operations", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/recoverypoints/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/recoverypoints/method_listbyreplicationprotecteditems.go index de9469afe33..dd0de009d18 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/recoverypoints/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/recoverypoints/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []RecoveryPoint } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RecoveryPointsClient) ListByReplicationProtectedItems(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/recoveryPoints", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationalertsettings/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationalertsettings/method_list.go index 758eed61cb6..3d9e40c5690 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationalertsettings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationalertsettings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationAlertSettingsClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationAlertSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationappliances/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationappliances/method_list.go index ade7026ef25..7bb33ca2aa9 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationappliances/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationappliances/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationAppliancesClient) List(ctx context.Context, id VaultId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationAppliances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationevents/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationevents/method_list.go index 2edbd779ff8..d9b820e0cab 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationevents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationevents/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationEventsClient) List(ctx context.Context, id VaultId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationEvents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationEvents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/method_get.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/method_get.go index bd428d5d41b..b7aa7e1fc64 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/method_get.go @@ -53,8 +53,8 @@ func (c ReplicationFabricsClient) Get(ctx context.Context, id ReplicationFabricI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/method_list.go index 096ede5d5b2..9087564b359 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Fabric } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationFabricsClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationFabrics", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationjobs/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationjobs/method_list.go index 3a94683c105..d95ff537514 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationjobs/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationjobs/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ReplicationJobsClient) List(ctx context.Context, id VaultId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationJobs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go index 7c8a529a46c..e9fef6356f3 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationlogicalnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []LogicalNetwork } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationLogicalNetworksClient) ListByReplicationFabrics(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationLogicalNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationmigrationitems/method_delete.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationmigrationitems/method_delete.go index ba867def8dd..5a4c9cf0e48 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationmigrationitems/method_delete.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationmigrationitems/method_delete.go @@ -56,8 +56,8 @@ func (c ReplicationMigrationItemsClient) Delete(ctx context.Context, id Replicat http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationmigrationitems/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationmigrationitems/method_list.go index 3f27c3c3ce1..133fc43de9d 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationmigrationitems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationmigrationitems/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go index 9b0076c2483..11d5ad86382 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationmigrationitems/method_listbyreplicationprotectioncontainers.go @@ -58,6 +58,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ReplicationMigrationItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationMigrationItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/method_list.go index 035e2f18c11..c8dfd95c67d 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []NetworkMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) List(ctx context.Context, id VaultId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/method_listbyreplicationnetworks.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/method_listbyreplicationnetworks.go index da2d1adc6f8..51e7d93a04b 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/method_listbyreplicationnetworks.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/method_listbyreplicationnetworks.go @@ -23,6 +23,18 @@ type ListByReplicationNetworksCompleteResult struct { Items []NetworkMapping } +type ListByReplicationNetworksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationNetworksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationNetworks ... func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context.Context, id ReplicationNetworkId) (result ListByReplicationNetworksOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworkMappingsClient) ListByReplicationNetworks(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationNetworksCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworkMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/method_list.go index ab50a0694f1..930b8eccb31 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Network } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/method_listbyreplicationfabrics.go index 83ec14170af..88b6def873c 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []Network } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationNetworksClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationNetworks", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/method_list.go index c3f293ef36a..28ba613b34b 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Policy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationPoliciesClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationPolicies", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go index 7b032615ade..3e871c362b1 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectableitems/method_listbyreplicationprotectioncontainers.go @@ -54,6 +54,18 @@ func (o ListByReplicationProtectionContainersOperationOptions) ToQuery() *client return &out } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId, options ListByReplicationProtectionContainersOperationOptions) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectableItemsClient) ListByReplicationProtectionContainers http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), OptionsObject: options, + Pager: &ListByReplicationProtectionContainersCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectableItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_list.go index 7987783197b..dec0477f6ad 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectedItemsClient) List(ctx context.Context, id VaultId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go index 7b2e364e0d4..c51a013c266 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ReplicationProtectedItem } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectedItemsClient) ListByReplicationProtectionContainers(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectedItems", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectionclusters/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectionclusters/method_list.go index 302717f67bd..b974d3c842d 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectionclusters/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectionclusters/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionClustersClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectionClustersClient) List(ctx context.Context, id VaultI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectionClusters", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectionClusters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectionclusters/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectionclusters/method_listbyreplicationprotectioncontainers.go index 6ce4d28cd1f..ec679c4b218 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectionclusters/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectionclusters/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ReplicationProtectionCluster } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectionClustersClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionClustersClient) ListByReplicationProtectionContaine http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionClusters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/method_list.go index 5dc7da9ac19..95cb2a96220 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainerMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) List(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go index 94b7e66be1f..1e171e16a67 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/method_listbyreplicationprotectioncontainers.go @@ -23,6 +23,18 @@ type ListByReplicationProtectionContainersCompleteResult struct { Items []ProtectionContainerMapping } +type ListByReplicationProtectionContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectionContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectionContainers ... func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectionContainers(ctx context.Context, id ReplicationProtectionContainerId) (result ListByReplicationProtectionContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainerMappingsClient) ListByReplicationProtectio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectionContainersCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainerMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/method_list.go index a87dc355045..d678bf5102a 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProtectionContainer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionContainersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) List(ctx context.Context, id Vaul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go index 6a17536ab60..d870a7c81fd 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []ProtectionContainer } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationProtectionContainersClient) ListByReplicationFabrics(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationProtectionContainers", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectionintents/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectionintents/method_list.go index 7d665ac5f67..bbb7082780e 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectionintents/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectionintents/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ReplicationProtectionIntentsClient) List(ctx context.Context, id VaultId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/replicationProtectionIntents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/method_list.go index eaecefd6815..d8446f2ae10 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryPlan } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryPlansClient) List(ctx context.Context, id VaultId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryPlans", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/method_list.go index 8a222e57f39..9f87fd102aa 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RecoveryServicesProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) List(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go index b31369a32f8..2acfd3b73c2 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []RecoveryServicesProvider } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationRecoveryServicesProvidersClient) ListByReplicationFabrics(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationRecoveryServicesProviders", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassificationmappings/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassificationmappings/method_list.go index db03f44ad87..33b89316ca5 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassificationmappings/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassificationmappings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassificationMapping } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) List(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go index 898e603250c..17f056a2737 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassificationmappings/method_listbyreplicationstorageclassifications.go @@ -23,6 +23,18 @@ type ListByReplicationStorageClassificationsCompleteResult struct { Items []StorageClassificationMapping } +type ListByReplicationStorageClassificationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationStorageClassificationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationStorageClassifications ... func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorageClassifications(ctx context.Context, id ReplicationStorageClassificationId) (result ListByReplicationStorageClassificationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationMappingsClient) ListByReplicationStorage http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationStorageClassificationsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassificationMappings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassifications/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassifications/method_list.go index 1f5e42e124b..a2739887ea5 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassifications/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassifications/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []StorageClassification } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) List(ctx context.Context, id Va http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassifications/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassifications/method_listbyreplicationfabrics.go index 7308b18cf61..8d47b1ec523 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassifications/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationstorageclassifications/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []StorageClassification } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationStorageClassificationsClient) ListByReplicationFabrics(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationStorageClassifications", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/method_list.go index 74a07ad1ed6..8887bc084fc 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VaultSetting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationVaultSettingClient) List(ctx context.Context, id VaultId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationVaultSettings", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvcenters/method_list.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvcenters/method_list.go index 455859e7f14..f92559a8f20 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvcenters/method_list.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvcenters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VCenter } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) List(ctx context.Context, id VaultId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvcenters/method_listbyreplicationfabrics.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvcenters/method_listbyreplicationfabrics.go index df3308ad379..2c99a1a6fea 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvcenters/method_listbyreplicationfabrics.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvcenters/method_listbyreplicationfabrics.go @@ -23,6 +23,18 @@ type ListByReplicationFabricsCompleteResult struct { Items []VCenter } +type ListByReplicationFabricsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationFabricsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationFabrics ... func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, id ReplicationFabricId) (result ListByReplicationFabricsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ReplicationvCentersClient) ListByReplicationFabrics(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationFabricsCustomPager{}, Path: fmt.Sprintf("%s/replicationvCenters", id.ID()), } diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/supportedoperatingsystems/method_get.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/supportedoperatingsystems/method_get.go index 63751a59a55..07d549f188e 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/supportedoperatingsystems/method_get.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/supportedoperatingsystems/method_get.go @@ -53,8 +53,8 @@ func (c SupportedOperatingSystemsClient) Get(ctx context.Context, id VaultId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/replicationSupportedOperatingSystems", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/recoveryservicessiterecovery/2024-04-01/targetcomputesizes/method_listbyreplicationprotecteditems.go b/resource-manager/recoveryservicessiterecovery/2024-04-01/targetcomputesizes/method_listbyreplicationprotecteditems.go index 8634311e28a..2bff64e44bb 100644 --- a/resource-manager/recoveryservicessiterecovery/2024-04-01/targetcomputesizes/method_listbyreplicationprotecteditems.go +++ b/resource-manager/recoveryservicessiterecovery/2024-04-01/targetcomputesizes/method_listbyreplicationprotecteditems.go @@ -23,6 +23,18 @@ type ListByReplicationProtectedItemsCompleteResult struct { Items []TargetComputeSize } +type ListByReplicationProtectedItemsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByReplicationProtectedItemsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByReplicationProtectedItems ... func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Context, id ReplicationProtectedItemId) (result ListByReplicationProtectedItemsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TargetComputeSizesClient) ListByReplicationProtectedItems(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByReplicationProtectedItemsCustomPager{}, Path: fmt.Sprintf("%s/targetComputeSizes", id.ID()), } diff --git a/resource-manager/redhatopenshift/2023-09-04/machinepools/method_list.go b/resource-manager/redhatopenshift/2023-09-04/machinepools/method_list.go index 6ae8fb1cad7..ea549bff133 100644 --- a/resource-manager/redhatopenshift/2023-09-04/machinepools/method_list.go +++ b/resource-manager/redhatopenshift/2023-09-04/machinepools/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MachinePool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MachinePoolsClient) List(ctx context.Context, id OpenShiftClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MachinePoolsClient) List(ctx context.Context, id OpenShiftClusterId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/machinePools", id.ID()), } diff --git a/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_list.go b/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_list.go index 19490de865e..6611e7bdffc 100644 --- a/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_list.go +++ b/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []OpenShiftCluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OpenShiftClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OpenShiftClustersClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RedHatOpenShift/openShiftClusters", id.ID()), } diff --git a/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_listbyresourcegroup.go b/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_listbyresourcegroup.go index aea064b1291..d35359ced43 100644 --- a/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_listbyresourcegroup.go +++ b/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []OpenShiftCluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c OpenShiftClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OpenShiftClustersClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RedHatOpenShift/openShiftClusters", id.ID()), } diff --git a/resource-manager/redhatopenshift/2023-09-04/openshiftversions/method_list.go b/resource-manager/redhatopenshift/2023-09-04/openshiftversions/method_list.go index b738d432c5c..94da6d4820c 100644 --- a/resource-manager/redhatopenshift/2023-09-04/openshiftversions/method_list.go +++ b/resource-manager/redhatopenshift/2023-09-04/openshiftversions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []OpenShiftVersion } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OpenShiftVersionsClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c OpenShiftVersionsClient) List(ctx context.Context, id LocationId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/openshiftversions", id.ID()), } diff --git a/resource-manager/redhatopenshift/2023-09-04/secrets/method_list.go b/resource-manager/redhatopenshift/2023-09-04/secrets/method_list.go index e9ec80609fa..4931706302f 100644 --- a/resource-manager/redhatopenshift/2023-09-04/secrets/method_list.go +++ b/resource-manager/redhatopenshift/2023-09-04/secrets/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Secret } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecretsClient) List(ctx context.Context, id OpenShiftClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SecretsClient) List(ctx context.Context, id OpenShiftClusterId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/secrets", id.ID()), } diff --git a/resource-manager/redhatopenshift/2023-09-04/syncidentityproviders/method_list.go b/resource-manager/redhatopenshift/2023-09-04/syncidentityproviders/method_list.go index 79d982ef276..b80b6891edc 100644 --- a/resource-manager/redhatopenshift/2023-09-04/syncidentityproviders/method_list.go +++ b/resource-manager/redhatopenshift/2023-09-04/syncidentityproviders/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SyncIdentityProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SyncIdentityProvidersClient) List(ctx context.Context, id OpenShiftClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SyncIdentityProvidersClient) List(ctx context.Context, id OpenShiftClust http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/syncIdentityProviders", id.ID()), } diff --git a/resource-manager/redhatopenshift/2023-09-04/syncsets/method_list.go b/resource-manager/redhatopenshift/2023-09-04/syncsets/method_list.go index 08edb6d9e25..255004c2e2f 100644 --- a/resource-manager/redhatopenshift/2023-09-04/syncsets/method_list.go +++ b/resource-manager/redhatopenshift/2023-09-04/syncsets/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SyncSet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SyncSetsClient) List(ctx context.Context, id OpenShiftClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SyncSetsClient) List(ctx context.Context, id OpenShiftClusterId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/syncSets", id.ID()), } diff --git a/resource-manager/redhatopenshift/2023-11-22/machinepools/method_list.go b/resource-manager/redhatopenshift/2023-11-22/machinepools/method_list.go index 6ae8fb1cad7..ea549bff133 100644 --- a/resource-manager/redhatopenshift/2023-11-22/machinepools/method_list.go +++ b/resource-manager/redhatopenshift/2023-11-22/machinepools/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MachinePool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MachinePoolsClient) List(ctx context.Context, id OpenShiftClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MachinePoolsClient) List(ctx context.Context, id OpenShiftClusterId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/machinePools", id.ID()), } diff --git a/resource-manager/redhatopenshift/2023-11-22/openshiftclusters/method_list.go b/resource-manager/redhatopenshift/2023-11-22/openshiftclusters/method_list.go index 19490de865e..6611e7bdffc 100644 --- a/resource-manager/redhatopenshift/2023-11-22/openshiftclusters/method_list.go +++ b/resource-manager/redhatopenshift/2023-11-22/openshiftclusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []OpenShiftCluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OpenShiftClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OpenShiftClustersClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RedHatOpenShift/openShiftClusters", id.ID()), } diff --git a/resource-manager/redhatopenshift/2023-11-22/openshiftclusters/method_listbyresourcegroup.go b/resource-manager/redhatopenshift/2023-11-22/openshiftclusters/method_listbyresourcegroup.go index aea064b1291..d35359ced43 100644 --- a/resource-manager/redhatopenshift/2023-11-22/openshiftclusters/method_listbyresourcegroup.go +++ b/resource-manager/redhatopenshift/2023-11-22/openshiftclusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []OpenShiftCluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c OpenShiftClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OpenShiftClustersClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.RedHatOpenShift/openShiftClusters", id.ID()), } diff --git a/resource-manager/redhatopenshift/2023-11-22/openshiftversions/method_list.go b/resource-manager/redhatopenshift/2023-11-22/openshiftversions/method_list.go index b738d432c5c..94da6d4820c 100644 --- a/resource-manager/redhatopenshift/2023-11-22/openshiftversions/method_list.go +++ b/resource-manager/redhatopenshift/2023-11-22/openshiftversions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []OpenShiftVersion } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OpenShiftVersionsClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c OpenShiftVersionsClient) List(ctx context.Context, id LocationId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/openshiftversions", id.ID()), } diff --git a/resource-manager/redhatopenshift/2023-11-22/secrets/method_list.go b/resource-manager/redhatopenshift/2023-11-22/secrets/method_list.go index e9ec80609fa..4931706302f 100644 --- a/resource-manager/redhatopenshift/2023-11-22/secrets/method_list.go +++ b/resource-manager/redhatopenshift/2023-11-22/secrets/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Secret } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecretsClient) List(ctx context.Context, id OpenShiftClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SecretsClient) List(ctx context.Context, id OpenShiftClusterId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/secrets", id.ID()), } diff --git a/resource-manager/redhatopenshift/2023-11-22/syncidentityproviders/method_list.go b/resource-manager/redhatopenshift/2023-11-22/syncidentityproviders/method_list.go index 79d982ef276..b80b6891edc 100644 --- a/resource-manager/redhatopenshift/2023-11-22/syncidentityproviders/method_list.go +++ b/resource-manager/redhatopenshift/2023-11-22/syncidentityproviders/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SyncIdentityProvider } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SyncIdentityProvidersClient) List(ctx context.Context, id OpenShiftClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SyncIdentityProvidersClient) List(ctx context.Context, id OpenShiftClust http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/syncIdentityProviders", id.ID()), } diff --git a/resource-manager/redhatopenshift/2023-11-22/syncsets/method_list.go b/resource-manager/redhatopenshift/2023-11-22/syncsets/method_list.go index 08edb6d9e25..255004c2e2f 100644 --- a/resource-manager/redhatopenshift/2023-11-22/syncsets/method_list.go +++ b/resource-manager/redhatopenshift/2023-11-22/syncsets/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SyncSet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SyncSetsClient) List(ctx context.Context, id OpenShiftClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SyncSetsClient) List(ctx context.Context, id OpenShiftClusterId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/syncSets", id.ID()), } diff --git a/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentlist.go b/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentlist.go index ca32603f2b7..1d9f2bdd70a 100644 --- a/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentlist.go +++ b/resource-manager/redis/2023-08-01/aad/method_accesspolicyassignmentlist.go @@ -23,6 +23,18 @@ type AccessPolicyAssignmentListCompleteResult struct { Items []RedisCacheAccessPolicyAssignment } +type AccessPolicyAssignmentListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccessPolicyAssignmentListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccessPolicyAssignmentList ... func (c AADClient) AccessPolicyAssignmentList(ctx context.Context, id RediId) (result AccessPolicyAssignmentListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AADClient) AccessPolicyAssignmentList(ctx context.Context, id RediId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccessPolicyAssignmentListCustomPager{}, Path: fmt.Sprintf("%s/accessPolicyAssignments", id.ID()), } diff --git a/resource-manager/redis/2023-08-01/aad/method_accesspolicylist.go b/resource-manager/redis/2023-08-01/aad/method_accesspolicylist.go index afb2a586f53..a73c9e3052b 100644 --- a/resource-manager/redis/2023-08-01/aad/method_accesspolicylist.go +++ b/resource-manager/redis/2023-08-01/aad/method_accesspolicylist.go @@ -23,6 +23,18 @@ type AccessPolicyListCompleteResult struct { Items []RedisCacheAccessPolicy } +type AccessPolicyListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccessPolicyListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccessPolicyList ... func (c AADClient) AccessPolicyList(ctx context.Context, id RediId) (result AccessPolicyListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AADClient) AccessPolicyList(ctx context.Context, id RediId) (result Acce http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccessPolicyListCustomPager{}, Path: fmt.Sprintf("%s/accessPolicies", id.ID()), } diff --git a/resource-manager/redis/2023-08-01/firewallrules/method_list.go b/resource-manager/redis/2023-08-01/firewallrules/method_list.go index 4528bcb0246..4707eafd9d4 100644 --- a/resource-manager/redis/2023-08-01/firewallrules/method_list.go +++ b/resource-manager/redis/2023-08-01/firewallrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RedisFirewallRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FirewallRulesClient) List(ctx context.Context, id RediId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallRulesClient) List(ctx context.Context, id RediId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/redis/2023-08-01/patchschedules/method_listbyredisresource.go b/resource-manager/redis/2023-08-01/patchschedules/method_listbyredisresource.go index 7c48a22f3ee..762d90541fa 100644 --- a/resource-manager/redis/2023-08-01/patchschedules/method_listbyredisresource.go +++ b/resource-manager/redis/2023-08-01/patchschedules/method_listbyredisresource.go @@ -23,6 +23,18 @@ type ListByRedisResourceCompleteResult struct { Items []RedisPatchSchedule } +type ListByRedisResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByRedisResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByRedisResource ... func (c PatchSchedulesClient) ListByRedisResource(ctx context.Context, id RediId) (result ListByRedisResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PatchSchedulesClient) ListByRedisResource(ctx context.Context, id RediId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByRedisResourceCustomPager{}, Path: fmt.Sprintf("%s/patchSchedules", id.ID()), } diff --git a/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentlist.go b/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentlist.go index 8f4b73565c1..5a8ec06b559 100644 --- a/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentlist.go +++ b/resource-manager/redis/2023-08-01/redis/method_accesspolicyassignmentlist.go @@ -23,6 +23,18 @@ type AccessPolicyAssignmentListCompleteResult struct { Items []RedisCacheAccessPolicyAssignment } +type AccessPolicyAssignmentListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccessPolicyAssignmentListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccessPolicyAssignmentList ... func (c RedisClient) AccessPolicyAssignmentList(ctx context.Context, id RediId) (result AccessPolicyAssignmentListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RedisClient) AccessPolicyAssignmentList(ctx context.Context, id RediId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccessPolicyAssignmentListCustomPager{}, Path: fmt.Sprintf("%s/accessPolicyAssignments", id.ID()), } diff --git a/resource-manager/redis/2023-08-01/redis/method_accesspolicylist.go b/resource-manager/redis/2023-08-01/redis/method_accesspolicylist.go index 1df9e6b04eb..901c2934015 100644 --- a/resource-manager/redis/2023-08-01/redis/method_accesspolicylist.go +++ b/resource-manager/redis/2023-08-01/redis/method_accesspolicylist.go @@ -23,6 +23,18 @@ type AccessPolicyListCompleteResult struct { Items []RedisCacheAccessPolicy } +type AccessPolicyListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccessPolicyListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccessPolicyList ... func (c RedisClient) AccessPolicyList(ctx context.Context, id RediId) (result AccessPolicyListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RedisClient) AccessPolicyList(ctx context.Context, id RediId) (result Ac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccessPolicyListCustomPager{}, Path: fmt.Sprintf("%s/accessPolicies", id.ID()), } diff --git a/resource-manager/redis/2023-08-01/redis/method_firewallruleslist.go b/resource-manager/redis/2023-08-01/redis/method_firewallruleslist.go index c82bca5ee45..fda0f04e527 100644 --- a/resource-manager/redis/2023-08-01/redis/method_firewallruleslist.go +++ b/resource-manager/redis/2023-08-01/redis/method_firewallruleslist.go @@ -23,6 +23,18 @@ type FirewallRulesListCompleteResult struct { Items []RedisFirewallRule } +type FirewallRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FirewallRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FirewallRulesList ... func (c RedisClient) FirewallRulesList(ctx context.Context, id RediId) (result FirewallRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RedisClient) FirewallRulesList(ctx context.Context, id RediId) (result F http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &FirewallRulesListCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/redis/2023-08-01/redis/method_linkedserverlist.go b/resource-manager/redis/2023-08-01/redis/method_linkedserverlist.go index 15586c4273a..bb0293d9a32 100644 --- a/resource-manager/redis/2023-08-01/redis/method_linkedserverlist.go +++ b/resource-manager/redis/2023-08-01/redis/method_linkedserverlist.go @@ -23,6 +23,18 @@ type LinkedServerListCompleteResult struct { Items []RedisLinkedServerWithProperties } +type LinkedServerListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LinkedServerListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LinkedServerList ... func (c RedisClient) LinkedServerList(ctx context.Context, id RediId) (result LinkedServerListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RedisClient) LinkedServerList(ctx context.Context, id RediId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LinkedServerListCustomPager{}, Path: fmt.Sprintf("%s/linkedServers", id.ID()), } diff --git a/resource-manager/redis/2023-08-01/redis/method_listbyresourcegroup.go b/resource-manager/redis/2023-08-01/redis/method_listbyresourcegroup.go index d82dfc5962a..51ae5342e87 100644 --- a/resource-manager/redis/2023-08-01/redis/method_listbyresourcegroup.go +++ b/resource-manager/redis/2023-08-01/redis/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []RedisResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c RedisClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RedisClient) ListByResourceGroup(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Cache/redis", id.ID()), } diff --git a/resource-manager/redis/2023-08-01/redis/method_listbysubscription.go b/resource-manager/redis/2023-08-01/redis/method_listbysubscription.go index 2d5af10c873..5c1ce91db61 100644 --- a/resource-manager/redis/2023-08-01/redis/method_listbysubscription.go +++ b/resource-manager/redis/2023-08-01/redis/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []RedisResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c RedisClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RedisClient) ListBySubscription(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Cache/redis", id.ID()), } diff --git a/resource-manager/redis/2023-08-01/redis/method_listupgradenotifications.go b/resource-manager/redis/2023-08-01/redis/method_listupgradenotifications.go index 30158718db2..6f01790fccb 100644 --- a/resource-manager/redis/2023-08-01/redis/method_listupgradenotifications.go +++ b/resource-manager/redis/2023-08-01/redis/method_listupgradenotifications.go @@ -50,6 +50,18 @@ func (o ListUpgradeNotificationsOperationOptions) ToQuery() *client.QueryParams return &out } +type ListUpgradeNotificationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUpgradeNotificationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUpgradeNotifications ... func (c RedisClient) ListUpgradeNotifications(ctx context.Context, id RediId, options ListUpgradeNotificationsOperationOptions) (result ListUpgradeNotificationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c RedisClient) ListUpgradeNotifications(ctx context.Context, id RediId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/listUpgradeNotifications", id.ID()), OptionsObject: options, + Pager: &ListUpgradeNotificationsCustomPager{}, + Path: fmt.Sprintf("%s/listUpgradeNotifications", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/redis/2023-08-01/redis/method_patchscheduleslistbyredisresource.go b/resource-manager/redis/2023-08-01/redis/method_patchscheduleslistbyredisresource.go index eda68f348a2..9861478d34a 100644 --- a/resource-manager/redis/2023-08-01/redis/method_patchscheduleslistbyredisresource.go +++ b/resource-manager/redis/2023-08-01/redis/method_patchscheduleslistbyredisresource.go @@ -23,6 +23,18 @@ type PatchSchedulesListByRedisResourceCompleteResult struct { Items []RedisPatchSchedule } +type PatchSchedulesListByRedisResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PatchSchedulesListByRedisResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PatchSchedulesListByRedisResource ... func (c RedisClient) PatchSchedulesListByRedisResource(ctx context.Context, id RediId) (result PatchSchedulesListByRedisResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RedisClient) PatchSchedulesListByRedisResource(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PatchSchedulesListByRedisResourceCustomPager{}, Path: fmt.Sprintf("%s/patchSchedules", id.ID()), } diff --git a/resource-manager/redis/2024-03-01/aad/method_accesspolicyassignmentlist.go b/resource-manager/redis/2024-03-01/aad/method_accesspolicyassignmentlist.go index ca32603f2b7..1d9f2bdd70a 100644 --- a/resource-manager/redis/2024-03-01/aad/method_accesspolicyassignmentlist.go +++ b/resource-manager/redis/2024-03-01/aad/method_accesspolicyassignmentlist.go @@ -23,6 +23,18 @@ type AccessPolicyAssignmentListCompleteResult struct { Items []RedisCacheAccessPolicyAssignment } +type AccessPolicyAssignmentListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccessPolicyAssignmentListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccessPolicyAssignmentList ... func (c AADClient) AccessPolicyAssignmentList(ctx context.Context, id RediId) (result AccessPolicyAssignmentListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AADClient) AccessPolicyAssignmentList(ctx context.Context, id RediId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccessPolicyAssignmentListCustomPager{}, Path: fmt.Sprintf("%s/accessPolicyAssignments", id.ID()), } diff --git a/resource-manager/redis/2024-03-01/aad/method_accesspolicylist.go b/resource-manager/redis/2024-03-01/aad/method_accesspolicylist.go index afb2a586f53..a73c9e3052b 100644 --- a/resource-manager/redis/2024-03-01/aad/method_accesspolicylist.go +++ b/resource-manager/redis/2024-03-01/aad/method_accesspolicylist.go @@ -23,6 +23,18 @@ type AccessPolicyListCompleteResult struct { Items []RedisCacheAccessPolicy } +type AccessPolicyListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccessPolicyListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccessPolicyList ... func (c AADClient) AccessPolicyList(ctx context.Context, id RediId) (result AccessPolicyListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AADClient) AccessPolicyList(ctx context.Context, id RediId) (result Acce http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccessPolicyListCustomPager{}, Path: fmt.Sprintf("%s/accessPolicies", id.ID()), } diff --git a/resource-manager/redis/2024-03-01/firewallrules/method_list.go b/resource-manager/redis/2024-03-01/firewallrules/method_list.go index 4528bcb0246..4707eafd9d4 100644 --- a/resource-manager/redis/2024-03-01/firewallrules/method_list.go +++ b/resource-manager/redis/2024-03-01/firewallrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []RedisFirewallRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FirewallRulesClient) List(ctx context.Context, id RediId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FirewallRulesClient) List(ctx context.Context, id RediId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/redis/2024-03-01/patchschedules/method_listbyredisresource.go b/resource-manager/redis/2024-03-01/patchschedules/method_listbyredisresource.go index 7c48a22f3ee..762d90541fa 100644 --- a/resource-manager/redis/2024-03-01/patchschedules/method_listbyredisresource.go +++ b/resource-manager/redis/2024-03-01/patchschedules/method_listbyredisresource.go @@ -23,6 +23,18 @@ type ListByRedisResourceCompleteResult struct { Items []RedisPatchSchedule } +type ListByRedisResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByRedisResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByRedisResource ... func (c PatchSchedulesClient) ListByRedisResource(ctx context.Context, id RediId) (result ListByRedisResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PatchSchedulesClient) ListByRedisResource(ctx context.Context, id RediId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByRedisResourceCustomPager{}, Path: fmt.Sprintf("%s/patchSchedules", id.ID()), } diff --git a/resource-manager/redis/2024-03-01/redis/method_accesspolicyassignmentlist.go b/resource-manager/redis/2024-03-01/redis/method_accesspolicyassignmentlist.go index 8f4b73565c1..5a8ec06b559 100644 --- a/resource-manager/redis/2024-03-01/redis/method_accesspolicyassignmentlist.go +++ b/resource-manager/redis/2024-03-01/redis/method_accesspolicyassignmentlist.go @@ -23,6 +23,18 @@ type AccessPolicyAssignmentListCompleteResult struct { Items []RedisCacheAccessPolicyAssignment } +type AccessPolicyAssignmentListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccessPolicyAssignmentListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccessPolicyAssignmentList ... func (c RedisClient) AccessPolicyAssignmentList(ctx context.Context, id RediId) (result AccessPolicyAssignmentListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RedisClient) AccessPolicyAssignmentList(ctx context.Context, id RediId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccessPolicyAssignmentListCustomPager{}, Path: fmt.Sprintf("%s/accessPolicyAssignments", id.ID()), } diff --git a/resource-manager/redis/2024-03-01/redis/method_accesspolicylist.go b/resource-manager/redis/2024-03-01/redis/method_accesspolicylist.go index 1df9e6b04eb..901c2934015 100644 --- a/resource-manager/redis/2024-03-01/redis/method_accesspolicylist.go +++ b/resource-manager/redis/2024-03-01/redis/method_accesspolicylist.go @@ -23,6 +23,18 @@ type AccessPolicyListCompleteResult struct { Items []RedisCacheAccessPolicy } +type AccessPolicyListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AccessPolicyListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccessPolicyList ... func (c RedisClient) AccessPolicyList(ctx context.Context, id RediId) (result AccessPolicyListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RedisClient) AccessPolicyList(ctx context.Context, id RediId) (result Ac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AccessPolicyListCustomPager{}, Path: fmt.Sprintf("%s/accessPolicies", id.ID()), } diff --git a/resource-manager/redis/2024-03-01/redis/method_firewallruleslist.go b/resource-manager/redis/2024-03-01/redis/method_firewallruleslist.go index c82bca5ee45..fda0f04e527 100644 --- a/resource-manager/redis/2024-03-01/redis/method_firewallruleslist.go +++ b/resource-manager/redis/2024-03-01/redis/method_firewallruleslist.go @@ -23,6 +23,18 @@ type FirewallRulesListCompleteResult struct { Items []RedisFirewallRule } +type FirewallRulesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *FirewallRulesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // FirewallRulesList ... func (c RedisClient) FirewallRulesList(ctx context.Context, id RediId) (result FirewallRulesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RedisClient) FirewallRulesList(ctx context.Context, id RediId) (result F http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &FirewallRulesListCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/redis/2024-03-01/redis/method_linkedserverlist.go b/resource-manager/redis/2024-03-01/redis/method_linkedserverlist.go index 15586c4273a..bb0293d9a32 100644 --- a/resource-manager/redis/2024-03-01/redis/method_linkedserverlist.go +++ b/resource-manager/redis/2024-03-01/redis/method_linkedserverlist.go @@ -23,6 +23,18 @@ type LinkedServerListCompleteResult struct { Items []RedisLinkedServerWithProperties } +type LinkedServerListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LinkedServerListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LinkedServerList ... func (c RedisClient) LinkedServerList(ctx context.Context, id RediId) (result LinkedServerListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RedisClient) LinkedServerList(ctx context.Context, id RediId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LinkedServerListCustomPager{}, Path: fmt.Sprintf("%s/linkedServers", id.ID()), } diff --git a/resource-manager/redis/2024-03-01/redis/method_listbyresourcegroup.go b/resource-manager/redis/2024-03-01/redis/method_listbyresourcegroup.go index d82dfc5962a..51ae5342e87 100644 --- a/resource-manager/redis/2024-03-01/redis/method_listbyresourcegroup.go +++ b/resource-manager/redis/2024-03-01/redis/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []RedisResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c RedisClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RedisClient) ListByResourceGroup(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Cache/redis", id.ID()), } diff --git a/resource-manager/redis/2024-03-01/redis/method_listbysubscription.go b/resource-manager/redis/2024-03-01/redis/method_listbysubscription.go index 2d5af10c873..5c1ce91db61 100644 --- a/resource-manager/redis/2024-03-01/redis/method_listbysubscription.go +++ b/resource-manager/redis/2024-03-01/redis/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []RedisResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c RedisClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RedisClient) ListBySubscription(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Cache/redis", id.ID()), } diff --git a/resource-manager/redis/2024-03-01/redis/method_listupgradenotifications.go b/resource-manager/redis/2024-03-01/redis/method_listupgradenotifications.go index 30158718db2..6f01790fccb 100644 --- a/resource-manager/redis/2024-03-01/redis/method_listupgradenotifications.go +++ b/resource-manager/redis/2024-03-01/redis/method_listupgradenotifications.go @@ -50,6 +50,18 @@ func (o ListUpgradeNotificationsOperationOptions) ToQuery() *client.QueryParams return &out } +type ListUpgradeNotificationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUpgradeNotificationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUpgradeNotifications ... func (c RedisClient) ListUpgradeNotifications(ctx context.Context, id RediId, options ListUpgradeNotificationsOperationOptions) (result ListUpgradeNotificationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c RedisClient) ListUpgradeNotifications(ctx context.Context, id RediId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/listUpgradeNotifications", id.ID()), OptionsObject: options, + Pager: &ListUpgradeNotificationsCustomPager{}, + Path: fmt.Sprintf("%s/listUpgradeNotifications", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/redis/2024-03-01/redis/method_patchscheduleslistbyredisresource.go b/resource-manager/redis/2024-03-01/redis/method_patchscheduleslistbyredisresource.go index eda68f348a2..9861478d34a 100644 --- a/resource-manager/redis/2024-03-01/redis/method_patchscheduleslistbyredisresource.go +++ b/resource-manager/redis/2024-03-01/redis/method_patchscheduleslistbyredisresource.go @@ -23,6 +23,18 @@ type PatchSchedulesListByRedisResourceCompleteResult struct { Items []RedisPatchSchedule } +type PatchSchedulesListByRedisResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PatchSchedulesListByRedisResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PatchSchedulesListByRedisResource ... func (c RedisClient) PatchSchedulesListByRedisResource(ctx context.Context, id RediId) (result PatchSchedulesListByRedisResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RedisClient) PatchSchedulesListByRedisResource(ctx context.Context, id R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PatchSchedulesListByRedisResourceCustomPager{}, Path: fmt.Sprintf("%s/patchSchedules", id.ID()), } diff --git a/resource-manager/redisenterprise/2023-07-01/databases/method_listbycluster.go b/resource-manager/redisenterprise/2023-07-01/databases/method_listbycluster.go index 993bb27a30e..c98456fed45 100644 --- a/resource-manager/redisenterprise/2023-07-01/databases/method_listbycluster.go +++ b/resource-manager/redisenterprise/2023-07-01/databases/method_listbycluster.go @@ -23,6 +23,18 @@ type ListByClusterCompleteResult struct { Items []Database } +type ListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCluster ... func (c DatabasesClient) ListByCluster(ctx context.Context, id RedisEnterpriseId) (result ListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DatabasesClient) ListByCluster(ctx context.Context, id RedisEnterpriseId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByClusterCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/redisenterprise/2023-07-01/redisenterprise/method_databaseslistbycluster.go b/resource-manager/redisenterprise/2023-07-01/redisenterprise/method_databaseslistbycluster.go index f8b8bf51f53..b8af4ecf22a 100644 --- a/resource-manager/redisenterprise/2023-07-01/redisenterprise/method_databaseslistbycluster.go +++ b/resource-manager/redisenterprise/2023-07-01/redisenterprise/method_databaseslistbycluster.go @@ -23,6 +23,18 @@ type DatabasesListByClusterCompleteResult struct { Items []Database } +type DatabasesListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DatabasesListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DatabasesListByCluster ... func (c RedisEnterpriseClient) DatabasesListByCluster(ctx context.Context, id RedisEnterpriseId) (result DatabasesListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RedisEnterpriseClient) DatabasesListByCluster(ctx context.Context, id Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DatabasesListByClusterCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/redisenterprise/2023-07-01/redisenterprise/method_list.go b/resource-manager/redisenterprise/2023-07-01/redisenterprise/method_list.go index e4df2864ff1..b3062bf1802 100644 --- a/resource-manager/redisenterprise/2023-07-01/redisenterprise/method_list.go +++ b/resource-manager/redisenterprise/2023-07-01/redisenterprise/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RedisEnterpriseClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RedisEnterpriseClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Cache/redisEnterprise", id.ID()), } diff --git a/resource-manager/redisenterprise/2023-07-01/redisenterprise/method_listbyresourcegroup.go b/resource-manager/redisenterprise/2023-07-01/redisenterprise/method_listbyresourcegroup.go index ecd364f5d32..181676b5089 100644 --- a/resource-manager/redisenterprise/2023-07-01/redisenterprise/method_listbyresourcegroup.go +++ b/resource-manager/redisenterprise/2023-07-01/redisenterprise/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c RedisEnterpriseClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RedisEnterpriseClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Cache/redisEnterprise", id.ID()), } diff --git a/resource-manager/redisenterprise/2023-10-01-preview/databases/method_listbycluster.go b/resource-manager/redisenterprise/2023-10-01-preview/databases/method_listbycluster.go index 993bb27a30e..c98456fed45 100644 --- a/resource-manager/redisenterprise/2023-10-01-preview/databases/method_listbycluster.go +++ b/resource-manager/redisenterprise/2023-10-01-preview/databases/method_listbycluster.go @@ -23,6 +23,18 @@ type ListByClusterCompleteResult struct { Items []Database } +type ListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCluster ... func (c DatabasesClient) ListByCluster(ctx context.Context, id RedisEnterpriseId) (result ListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DatabasesClient) ListByCluster(ctx context.Context, id RedisEnterpriseId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByClusterCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_databaseslistbycluster.go b/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_databaseslistbycluster.go index f8b8bf51f53..b8af4ecf22a 100644 --- a/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_databaseslistbycluster.go +++ b/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_databaseslistbycluster.go @@ -23,6 +23,18 @@ type DatabasesListByClusterCompleteResult struct { Items []Database } +type DatabasesListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DatabasesListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DatabasesListByCluster ... func (c RedisEnterpriseClient) DatabasesListByCluster(ctx context.Context, id RedisEnterpriseId) (result DatabasesListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RedisEnterpriseClient) DatabasesListByCluster(ctx context.Context, id Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DatabasesListByClusterCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_list.go b/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_list.go index e4df2864ff1..b3062bf1802 100644 --- a/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_list.go +++ b/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RedisEnterpriseClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RedisEnterpriseClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Cache/redisEnterprise", id.ID()), } diff --git a/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_listbyresourcegroup.go b/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_listbyresourcegroup.go index ecd364f5d32..181676b5089 100644 --- a/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_listbyresourcegroup.go +++ b/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c RedisEnterpriseClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RedisEnterpriseClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Cache/redisEnterprise", id.ID()), } diff --git a/resource-manager/redisenterprise/2023-11-01/databases/method_listbycluster.go b/resource-manager/redisenterprise/2023-11-01/databases/method_listbycluster.go index 993bb27a30e..c98456fed45 100644 --- a/resource-manager/redisenterprise/2023-11-01/databases/method_listbycluster.go +++ b/resource-manager/redisenterprise/2023-11-01/databases/method_listbycluster.go @@ -23,6 +23,18 @@ type ListByClusterCompleteResult struct { Items []Database } +type ListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCluster ... func (c DatabasesClient) ListByCluster(ctx context.Context, id RedisEnterpriseId) (result ListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DatabasesClient) ListByCluster(ctx context.Context, id RedisEnterpriseId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByClusterCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/redisenterprise/2023-11-01/redisenterprise/method_databaseslistbycluster.go b/resource-manager/redisenterprise/2023-11-01/redisenterprise/method_databaseslistbycluster.go index f8b8bf51f53..b8af4ecf22a 100644 --- a/resource-manager/redisenterprise/2023-11-01/redisenterprise/method_databaseslistbycluster.go +++ b/resource-manager/redisenterprise/2023-11-01/redisenterprise/method_databaseslistbycluster.go @@ -23,6 +23,18 @@ type DatabasesListByClusterCompleteResult struct { Items []Database } +type DatabasesListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DatabasesListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DatabasesListByCluster ... func (c RedisEnterpriseClient) DatabasesListByCluster(ctx context.Context, id RedisEnterpriseId) (result DatabasesListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RedisEnterpriseClient) DatabasesListByCluster(ctx context.Context, id Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DatabasesListByClusterCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/redisenterprise/2023-11-01/redisenterprise/method_list.go b/resource-manager/redisenterprise/2023-11-01/redisenterprise/method_list.go index e4df2864ff1..b3062bf1802 100644 --- a/resource-manager/redisenterprise/2023-11-01/redisenterprise/method_list.go +++ b/resource-manager/redisenterprise/2023-11-01/redisenterprise/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RedisEnterpriseClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RedisEnterpriseClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Cache/redisEnterprise", id.ID()), } diff --git a/resource-manager/redisenterprise/2023-11-01/redisenterprise/method_listbyresourcegroup.go b/resource-manager/redisenterprise/2023-11-01/redisenterprise/method_listbyresourcegroup.go index ecd364f5d32..181676b5089 100644 --- a/resource-manager/redisenterprise/2023-11-01/redisenterprise/method_listbyresourcegroup.go +++ b/resource-manager/redisenterprise/2023-11-01/redisenterprise/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c RedisEnterpriseClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RedisEnterpriseClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Cache/redisEnterprise", id.ID()), } diff --git a/resource-manager/redisenterprise/2024-02-01/databases/method_listbycluster.go b/resource-manager/redisenterprise/2024-02-01/databases/method_listbycluster.go index 993bb27a30e..c98456fed45 100644 --- a/resource-manager/redisenterprise/2024-02-01/databases/method_listbycluster.go +++ b/resource-manager/redisenterprise/2024-02-01/databases/method_listbycluster.go @@ -23,6 +23,18 @@ type ListByClusterCompleteResult struct { Items []Database } +type ListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCluster ... func (c DatabasesClient) ListByCluster(ctx context.Context, id RedisEnterpriseId) (result ListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DatabasesClient) ListByCluster(ctx context.Context, id RedisEnterpriseId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByClusterCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/redisenterprise/2024-02-01/redisenterprise/method_databaseslistbycluster.go b/resource-manager/redisenterprise/2024-02-01/redisenterprise/method_databaseslistbycluster.go index f8b8bf51f53..b8af4ecf22a 100644 --- a/resource-manager/redisenterprise/2024-02-01/redisenterprise/method_databaseslistbycluster.go +++ b/resource-manager/redisenterprise/2024-02-01/redisenterprise/method_databaseslistbycluster.go @@ -23,6 +23,18 @@ type DatabasesListByClusterCompleteResult struct { Items []Database } +type DatabasesListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DatabasesListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DatabasesListByCluster ... func (c RedisEnterpriseClient) DatabasesListByCluster(ctx context.Context, id RedisEnterpriseId) (result DatabasesListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RedisEnterpriseClient) DatabasesListByCluster(ctx context.Context, id Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DatabasesListByClusterCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/redisenterprise/2024-02-01/redisenterprise/method_list.go b/resource-manager/redisenterprise/2024-02-01/redisenterprise/method_list.go index e4df2864ff1..b3062bf1802 100644 --- a/resource-manager/redisenterprise/2024-02-01/redisenterprise/method_list.go +++ b/resource-manager/redisenterprise/2024-02-01/redisenterprise/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RedisEnterpriseClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RedisEnterpriseClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Cache/redisEnterprise", id.ID()), } diff --git a/resource-manager/redisenterprise/2024-02-01/redisenterprise/method_listbyresourcegroup.go b/resource-manager/redisenterprise/2024-02-01/redisenterprise/method_listbyresourcegroup.go index ecd364f5d32..181676b5089 100644 --- a/resource-manager/redisenterprise/2024-02-01/redisenterprise/method_listbyresourcegroup.go +++ b/resource-manager/redisenterprise/2024-02-01/redisenterprise/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c RedisEnterpriseClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RedisEnterpriseClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Cache/redisEnterprise", id.ID()), } diff --git a/resource-manager/relay/2021-11-01/hybridconnections/method_listauthorizationrules.go b/resource-manager/relay/2021-11-01/hybridconnections/method_listauthorizationrules.go index 2ec6fac9c32..0cccdabcf67 100644 --- a/resource-manager/relay/2021-11-01/hybridconnections/method_listauthorizationrules.go +++ b/resource-manager/relay/2021-11-01/hybridconnections/method_listauthorizationrules.go @@ -23,6 +23,18 @@ type ListAuthorizationRulesCompleteResult struct { Items []AuthorizationRule } +type ListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAuthorizationRules ... func (c HybridConnectionsClient) ListAuthorizationRules(ctx context.Context, id HybridConnectionId) (result ListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HybridConnectionsClient) ListAuthorizationRules(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/relay/2021-11-01/hybridconnections/method_listbynamespace.go b/resource-manager/relay/2021-11-01/hybridconnections/method_listbynamespace.go index 0f37ef2e305..07ec92421a6 100644 --- a/resource-manager/relay/2021-11-01/hybridconnections/method_listbynamespace.go +++ b/resource-manager/relay/2021-11-01/hybridconnections/method_listbynamespace.go @@ -23,6 +23,18 @@ type ListByNamespaceCompleteResult struct { Items []HybridConnection } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c HybridConnectionsClient) ListByNamespace(ctx context.Context, id NamespaceId) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HybridConnectionsClient) ListByNamespace(ctx context.Context, id Namespa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByNamespaceCustomPager{}, Path: fmt.Sprintf("%s/hybridConnections", id.ID()), } diff --git a/resource-manager/relay/2021-11-01/namespaces/method_list.go b/resource-manager/relay/2021-11-01/namespaces/method_list.go index 90c7c666085..9e7bf3add6f 100644 --- a/resource-manager/relay/2021-11-01/namespaces/method_list.go +++ b/resource-manager/relay/2021-11-01/namespaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []RelayNamespace } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Relay/namespaces", id.ID()), } diff --git a/resource-manager/relay/2021-11-01/namespaces/method_listauthorizationrules.go b/resource-manager/relay/2021-11-01/namespaces/method_listauthorizationrules.go index 1e57cab7dc6..67582c4cb04 100644 --- a/resource-manager/relay/2021-11-01/namespaces/method_listauthorizationrules.go +++ b/resource-manager/relay/2021-11-01/namespaces/method_listauthorizationrules.go @@ -23,6 +23,18 @@ type ListAuthorizationRulesCompleteResult struct { Items []AuthorizationRule } +type ListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAuthorizationRules ... func (c NamespacesClient) ListAuthorizationRules(ctx context.Context, id NamespaceId) (result ListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesClient) ListAuthorizationRules(ctx context.Context, id Namespa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/relay/2021-11-01/namespaces/method_listbyresourcegroup.go b/resource-manager/relay/2021-11-01/namespaces/method_listbyresourcegroup.go index 14dcd60c04d..90ae560e8e9 100644 --- a/resource-manager/relay/2021-11-01/namespaces/method_listbyresourcegroup.go +++ b/resource-manager/relay/2021-11-01/namespaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []RelayNamespace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Relay/namespaces", id.ID()), } diff --git a/resource-manager/relay/2021-11-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go b/resource-manager/relay/2021-11-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go index 993252c036c..8f81c845b63 100644 --- a/resource-manager/relay/2021-11-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go +++ b/resource-manager/relay/2021-11-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListCompleteResult struct { Items []PrivateEndpointConnection } +type PrivateEndpointConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsList ... func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsList(ctx context.Context, id NamespaceId) (result PrivateEndpointConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsLi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/relay/2021-11-01/namespacesprivatelinkresources/method_privatelinkresourceslist.go b/resource-manager/relay/2021-11-01/namespacesprivatelinkresources/method_privatelinkresourceslist.go index d320558bd03..332f4af0fee 100644 --- a/resource-manager/relay/2021-11-01/namespacesprivatelinkresources/method_privatelinkresourceslist.go +++ b/resource-manager/relay/2021-11-01/namespacesprivatelinkresources/method_privatelinkresourceslist.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesListCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesList ... func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesList(ctx context.Context, id NamespaceId) (result PrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesList(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/relay/2021-11-01/wcfrelays/method_listauthorizationrules.go b/resource-manager/relay/2021-11-01/wcfrelays/method_listauthorizationrules.go index d922ec9050a..22c65631303 100644 --- a/resource-manager/relay/2021-11-01/wcfrelays/method_listauthorizationrules.go +++ b/resource-manager/relay/2021-11-01/wcfrelays/method_listauthorizationrules.go @@ -23,6 +23,18 @@ type ListAuthorizationRulesCompleteResult struct { Items []AuthorizationRule } +type ListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAuthorizationRules ... func (c WCFRelaysClient) ListAuthorizationRules(ctx context.Context, id WcfRelayId) (result ListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WCFRelaysClient) ListAuthorizationRules(ctx context.Context, id WcfRelay http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/relay/2021-11-01/wcfrelays/method_listbynamespace.go b/resource-manager/relay/2021-11-01/wcfrelays/method_listbynamespace.go index 8c1204a2e01..ac14e1899e1 100644 --- a/resource-manager/relay/2021-11-01/wcfrelays/method_listbynamespace.go +++ b/resource-manager/relay/2021-11-01/wcfrelays/method_listbynamespace.go @@ -23,6 +23,18 @@ type ListByNamespaceCompleteResult struct { Items []WcfRelay } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c WCFRelaysClient) ListByNamespace(ctx context.Context, id NamespaceId) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WCFRelaysClient) ListByNamespace(ctx context.Context, id NamespaceId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByNamespaceCustomPager{}, Path: fmt.Sprintf("%s/wcfRelays", id.ID()), } diff --git a/resource-manager/resourceconnector/2022-10-27/appliances/method_listbyresourcegroup.go b/resource-manager/resourceconnector/2022-10-27/appliances/method_listbyresourcegroup.go index b3527226d87..6ea9babd410 100644 --- a/resource-manager/resourceconnector/2022-10-27/appliances/method_listbyresourcegroup.go +++ b/resource-manager/resourceconnector/2022-10-27/appliances/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Appliance } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AppliancesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppliancesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ResourceConnector/appliances", id.ID()), } diff --git a/resource-manager/resourceconnector/2022-10-27/appliances/method_listbysubscription.go b/resource-manager/resourceconnector/2022-10-27/appliances/method_listbysubscription.go index 62246188c59..0108fdfa914 100644 --- a/resource-manager/resourceconnector/2022-10-27/appliances/method_listbysubscription.go +++ b/resource-manager/resourceconnector/2022-10-27/appliances/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Appliance } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AppliancesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppliancesClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ResourceConnector/appliances", id.ID()), } diff --git a/resource-manager/resourceconnector/2022-10-27/appliances/method_listkeys.go b/resource-manager/resourceconnector/2022-10-27/appliances/method_listkeys.go index f23f826ab81..17f89911fc6 100644 --- a/resource-manager/resourceconnector/2022-10-27/appliances/method_listkeys.go +++ b/resource-manager/resourceconnector/2022-10-27/appliances/method_listkeys.go @@ -53,8 +53,8 @@ func (c AppliancesClient) ListKeys(ctx context.Context, id ApplianceId, options http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listKeys", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listKeys", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resourcegraph/2022-10-01/graphquery/method_list.go b/resource-manager/resourcegraph/2022-10-01/graphquery/method_list.go index 7527f839eb8..b1f580b4ba2 100644 --- a/resource-manager/resourcegraph/2022-10-01/graphquery/method_list.go +++ b/resource-manager/resourcegraph/2022-10-01/graphquery/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []GraphQueryResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GraphQueryClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GraphQueryClient) List(ctx context.Context, id commonids.ResourceGroupId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ResourceGraph/queries", id.ID()), } diff --git a/resource-manager/resourcegraph/2022-10-01/graphquery/method_listbysubscription.go b/resource-manager/resourcegraph/2022-10-01/graphquery/method_listbysubscription.go index f2f8ae03c07..6e8965fed34 100644 --- a/resource-manager/resourcegraph/2022-10-01/graphquery/method_listbysubscription.go +++ b/resource-manager/resourcegraph/2022-10-01/graphquery/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []GraphQueryResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c GraphQueryClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GraphQueryClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ResourceGraph/queries", id.ID()), } diff --git a/resource-manager/resources/2015-11-01/deploymentoperations/method_list.go b/resource-manager/resources/2015-11-01/deploymentoperations/method_list.go index 3935de929e4..49f39cb4b96 100644 --- a/resource-manager/resources/2015-11-01/deploymentoperations/method_list.go +++ b/resource-manager/resources/2015-11-01/deploymentoperations/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeploymentOperationsClient) List(ctx context.Context, id DeploymentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) List(ctx context.Context, id DeploymentId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2015-11-01/deployments/method_list.go b/resource-manager/resources/2015-11-01/deployments/method_list.go index e38a674834b..aba8eb8f80d 100644 --- a/resource-manager/resources/2015-11-01/deployments/method_list.go +++ b/resource-manager/resources/2015-11-01/deployments/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeploymentsClient) List(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) List(ctx context.Context, id commonids.ResourceGroupI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2015-11-01/policyassignments/method_list.go b/resource-manager/resources/2015-11-01/policyassignments/method_list.go index b699608b4ba..0e8b97a636f 100644 --- a/resource-manager/resources/2015-11-01/policyassignments/method_list.go +++ b/resource-manager/resources/2015-11-01/policyassignments/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PolicyAssignmentsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c PolicyAssignmentsClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2015-11-01/policyassignments/method_listforresource.go b/resource-manager/resources/2015-11-01/policyassignments/method_listforresource.go index 3502faec730..faccb99d726 100644 --- a/resource-manager/resources/2015-11-01/policyassignments/method_listforresource.go +++ b/resource-manager/resources/2015-11-01/policyassignments/method_listforresource.go @@ -51,6 +51,18 @@ func (o ListForResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResource ... func (c PolicyAssignmentsClient) ListForResource(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (result ListForResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c PolicyAssignmentsClient) ListForResource(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resourceNameproviders/Microsoft.Authorization/policyAssignments", id.ID()), OptionsObject: options, + Pager: &ListForResourceCustomPager{}, + Path: fmt.Sprintf("%s/resourceNameproviders/Microsoft.Authorization/policyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2015-11-01/policyassignments/method_listforresourcegroup.go b/resource-manager/resources/2015-11-01/policyassignments/method_listforresourcegroup.go index 45018715516..449a24c12ab 100644 --- a/resource-manager/resources/2015-11-01/policyassignments/method_listforresourcegroup.go +++ b/resource-manager/resources/2015-11-01/policyassignments/method_listforresourcegroup.go @@ -51,6 +51,18 @@ func (o ListForResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResourceGroup ... func (c PolicyAssignmentsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (result ListForResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c PolicyAssignmentsClient) ListForResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), OptionsObject: options, + Pager: &ListForResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2015-11-01/policyassignments/method_listforscope.go b/resource-manager/resources/2015-11-01/policyassignments/method_listforscope.go index 0a9d690a860..eb6588f4320 100644 --- a/resource-manager/resources/2015-11-01/policyassignments/method_listforscope.go +++ b/resource-manager/resources/2015-11-01/policyassignments/method_listforscope.go @@ -51,6 +51,18 @@ func (o ListForScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForScope ... func (c PolicyAssignmentsClient) ListForScope(ctx context.Context, id commonids.ScopeId, options ListForScopeOperationOptions) (result ListForScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c PolicyAssignmentsClient) ListForScope(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), OptionsObject: options, + Pager: &ListForScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2015-11-01/providers/method_list.go b/resource-manager/resources/2015-11-01/providers/method_list.go index 1a80047e406..07511068757 100644 --- a/resource-manager/resources/2015-11-01/providers/method_list.go +++ b/resource-manager/resources/2015-11-01/providers/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProvidersClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ProvidersClient) List(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2015-11-01/resourcegroups/method_list.go b/resource-manager/resources/2015-11-01/resourcegroups/method_list.go index 6f348d4ead3..43e82e042ce 100644 --- a/resource-manager/resources/2015-11-01/resourcegroups/method_list.go +++ b/resource-manager/resources/2015-11-01/resourcegroups/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourceGroupsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ResourceGroupsClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resourceGroups", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/resourceGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2015-11-01/resourcegroups/method_listresources.go b/resource-manager/resources/2015-11-01/resourcegroups/method_listresources.go index 779db903618..3cfa7173112 100644 --- a/resource-manager/resources/2015-11-01/resourcegroups/method_listresources.go +++ b/resource-manager/resources/2015-11-01/resourcegroups/method_listresources.go @@ -59,6 +59,18 @@ func (o ListResourcesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListResources ... func (c ResourceGroupsClient) ListResources(ctx context.Context, id commonids.ResourceGroupId, options ListResourcesOperationOptions) (result ListResourcesOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ResourceGroupsClient) ListResources(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resources", id.ID()), OptionsObject: options, + Pager: &ListResourcesCustomPager{}, + Path: fmt.Sprintf("%s/resources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2015-11-01/resources/method_list.go b/resource-manager/resources/2015-11-01/resources/method_list.go index 2ea656bf23a..3a348699f1a 100644 --- a/resource-manager/resources/2015-11-01/resources/method_list.go +++ b/resource-manager/resources/2015-11-01/resources/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourcesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ResourcesClient) List(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resources", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/resources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2015-11-01/subscriptions/method_list.go b/resource-manager/resources/2015-11-01/subscriptions/method_list.go index dd5e501b9a4..baa1d64ca19 100644 --- a/resource-manager/resources/2015-11-01/subscriptions/method_list.go +++ b/resource-manager/resources/2015-11-01/subscriptions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Subscription } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SubscriptionsClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SubscriptionsClient) List(ctx context.Context) (result ListOperationResp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/subscriptions", } diff --git a/resource-manager/resources/2015-11-01/tags/method_list.go b/resource-manager/resources/2015-11-01/tags/method_list.go index 04902c2bc50..d0f304b1f43 100644 --- a/resource-manager/resources/2015-11-01/tags/method_list.go +++ b/resource-manager/resources/2015-11-01/tags/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []TagDetails } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TagsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TagsClient) List(ctx context.Context, id commonids.SubscriptionId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/tagNames", id.ID()), } diff --git a/resource-manager/resources/2015-11-01/tenants/method_list.go b/resource-manager/resources/2015-11-01/tenants/method_list.go index 0b3d80baeb1..b8ceca278cb 100644 --- a/resource-manager/resources/2015-11-01/tenants/method_list.go +++ b/resource-manager/resources/2015-11-01/tenants/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []TenantIdDescription } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TenantsClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TenantsClient) List(ctx context.Context) (result ListOperationResponse, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/tenants", } diff --git a/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcegrouplevel.go b/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcegrouplevel.go index e63001358e2..50335bffd04 100644 --- a/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcegrouplevel.go +++ b/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcegrouplevel.go @@ -51,6 +51,18 @@ func (o ListAtResourceGroupLevelOperationOptions) ToQuery() *client.QueryParams return &out } +type ListAtResourceGroupLevelCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtResourceGroupLevelCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtResourceGroupLevel ... func (c ManagementLocksClient) ListAtResourceGroupLevel(ctx context.Context, id commonids.ResourceGroupId, options ListAtResourceGroupLevelOperationOptions) (result ListAtResourceGroupLevelOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagementLocksClient) ListAtResourceGroupLevel(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/locks", id.ID()), OptionsObject: options, + Pager: &ListAtResourceGroupLevelCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/locks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcelevel.go b/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcelevel.go index bc66edd0ef0..a84b21caad3 100644 --- a/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcelevel.go +++ b/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcelevel.go @@ -51,6 +51,18 @@ func (o ListAtResourceLevelOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtResourceLevelCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtResourceLevelCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtResourceLevel ... func (c ManagementLocksClient) ListAtResourceLevel(ctx context.Context, id commonids.ScopeId, options ListAtResourceLevelOperationOptions) (result ListAtResourceLevelOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagementLocksClient) ListAtResourceLevel(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/locks", id.ID()), OptionsObject: options, + Pager: &ListAtResourceLevelCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/locks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-05-01/managementlocks/method_listatsubscriptionlevel.go b/resource-manager/resources/2020-05-01/managementlocks/method_listatsubscriptionlevel.go index 3d10b309b91..265e94565ae 100644 --- a/resource-manager/resources/2020-05-01/managementlocks/method_listatsubscriptionlevel.go +++ b/resource-manager/resources/2020-05-01/managementlocks/method_listatsubscriptionlevel.go @@ -51,6 +51,18 @@ func (o ListAtSubscriptionLevelOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtSubscriptionLevelCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtSubscriptionLevelCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtSubscriptionLevel ... func (c ManagementLocksClient) ListAtSubscriptionLevel(ctx context.Context, id commonids.SubscriptionId, options ListAtSubscriptionLevelOperationOptions) (result ListAtSubscriptionLevelOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagementLocksClient) ListAtSubscriptionLevel(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/locks", id.ID()), OptionsObject: options, + Pager: &ListAtSubscriptionLevelCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/locks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-05-01/managementlocks/method_listbyscope.go b/resource-manager/resources/2020-05-01/managementlocks/method_listbyscope.go index 82613c2e8eb..aeea3f07788 100644 --- a/resource-manager/resources/2020-05-01/managementlocks/method_listbyscope.go +++ b/resource-manager/resources/2020-05-01/managementlocks/method_listbyscope.go @@ -51,6 +51,18 @@ func (o ListByScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScope ... func (c ManagementLocksClient) ListByScope(ctx context.Context, id commonids.ScopeId, options ListByScopeOperationOptions) (result ListByScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagementLocksClient) ListByScope(ctx context.Context, id commonids.Sco http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/locks", id.ID()), OptionsObject: options, + Pager: &ListByScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/locks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/deploymentoperations/method_list.go b/resource-manager/resources/2020-10-01/deploymentoperations/method_list.go index 017bd445dd6..31da83cbd35 100644 --- a/resource-manager/resources/2020-10-01/deploymentoperations/method_list.go +++ b/resource-manager/resources/2020-10-01/deploymentoperations/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeploymentOperationsClient) List(ctx context.Context, id ResourceGroupDeploymentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) List(ctx context.Context, id ResourceGroupDe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/deploymentoperations/method_listatmanagementgroupscope.go b/resource-manager/resources/2020-10-01/deploymentoperations/method_listatmanagementgroupscope.go index a0dada8fafa..8534ab53db5 100644 --- a/resource-manager/resources/2020-10-01/deploymentoperations/method_listatmanagementgroupscope.go +++ b/resource-manager/resources/2020-10-01/deploymentoperations/method_listatmanagementgroupscope.go @@ -50,6 +50,18 @@ func (o ListAtManagementGroupScopeOperationOptions) ToQuery() *client.QueryParam return &out } +type ListAtManagementGroupScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtManagementGroupScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtManagementGroupScope ... func (c DeploymentOperationsClient) ListAtManagementGroupScope(ctx context.Context, id Providers2DeploymentId, options ListAtManagementGroupScopeOperationOptions) (result ListAtManagementGroupScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtManagementGroupScope(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtManagementGroupScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/deploymentoperations/method_listatscope.go b/resource-manager/resources/2020-10-01/deploymentoperations/method_listatscope.go index 496f46d8fd3..8840500cb91 100644 --- a/resource-manager/resources/2020-10-01/deploymentoperations/method_listatscope.go +++ b/resource-manager/resources/2020-10-01/deploymentoperations/method_listatscope.go @@ -50,6 +50,18 @@ func (o ListAtScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtScope ... func (c DeploymentOperationsClient) ListAtScope(ctx context.Context, id ScopedDeploymentId, options ListAtScopeOperationOptions) (result ListAtScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtScope(ctx context.Context, id ScopedDe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/deploymentoperations/method_listatsubscriptionscope.go b/resource-manager/resources/2020-10-01/deploymentoperations/method_listatsubscriptionscope.go index b5ac07fbd95..e5af43d5147 100644 --- a/resource-manager/resources/2020-10-01/deploymentoperations/method_listatsubscriptionscope.go +++ b/resource-manager/resources/2020-10-01/deploymentoperations/method_listatsubscriptionscope.go @@ -50,6 +50,18 @@ func (o ListAtSubscriptionScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtSubscriptionScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtSubscriptionScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtSubscriptionScope ... func (c DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Context, id ProviderDeploymentId, options ListAtSubscriptionScopeOperationOptions) (result ListAtSubscriptionScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtSubscriptionScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/deploymentoperations/method_listattenantscope.go b/resource-manager/resources/2020-10-01/deploymentoperations/method_listattenantscope.go index bcb319b08bb..364b6e78860 100644 --- a/resource-manager/resources/2020-10-01/deploymentoperations/method_listattenantscope.go +++ b/resource-manager/resources/2020-10-01/deploymentoperations/method_listattenantscope.go @@ -50,6 +50,18 @@ func (o ListAtTenantScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtTenantScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtTenantScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtTenantScope ... func (c DeploymentOperationsClient) ListAtTenantScope(ctx context.Context, id DeploymentId, options ListAtTenantScopeOperationOptions) (result ListAtTenantScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtTenantScope(ctx context.Context, id De http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtTenantScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/deployments/method_listatmanagementgroupscope.go b/resource-manager/resources/2020-10-01/deployments/method_listatmanagementgroupscope.go index 1aaf03da9f4..d806bd04a35 100644 --- a/resource-manager/resources/2020-10-01/deployments/method_listatmanagementgroupscope.go +++ b/resource-manager/resources/2020-10-01/deployments/method_listatmanagementgroupscope.go @@ -55,6 +55,18 @@ func (o ListAtManagementGroupScopeOperationOptions) ToQuery() *client.QueryParam return &out } +type ListAtManagementGroupScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtManagementGroupScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtManagementGroupScope ... func (c DeploymentsClient) ListAtManagementGroupScope(ctx context.Context, id commonids.ManagementGroupId, options ListAtManagementGroupScopeOperationOptions) (result ListAtManagementGroupScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListAtManagementGroupScope(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListAtManagementGroupScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/deployments/method_listatscope.go b/resource-manager/resources/2020-10-01/deployments/method_listatscope.go index a5a4348b0ef..1f28434f5ad 100644 --- a/resource-manager/resources/2020-10-01/deployments/method_listatscope.go +++ b/resource-manager/resources/2020-10-01/deployments/method_listatscope.go @@ -55,6 +55,18 @@ func (o ListAtScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtScope ... func (c DeploymentsClient) ListAtScope(ctx context.Context, id commonids.ScopeId, options ListAtScopeOperationOptions) (result ListAtScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListAtScope(ctx context.Context, id commonids.ScopeId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListAtScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/deployments/method_listatsubscriptionscope.go b/resource-manager/resources/2020-10-01/deployments/method_listatsubscriptionscope.go index bc573717707..045ecbcecdd 100644 --- a/resource-manager/resources/2020-10-01/deployments/method_listatsubscriptionscope.go +++ b/resource-manager/resources/2020-10-01/deployments/method_listatsubscriptionscope.go @@ -55,6 +55,18 @@ func (o ListAtSubscriptionScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtSubscriptionScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtSubscriptionScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtSubscriptionScope ... func (c DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, id commonids.SubscriptionId, options ListAtSubscriptionScopeOperationOptions) (result ListAtSubscriptionScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListAtSubscriptionScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/deployments/method_listattenantscope.go b/resource-manager/resources/2020-10-01/deployments/method_listattenantscope.go index f5e329e5093..8527c4383f3 100644 --- a/resource-manager/resources/2020-10-01/deployments/method_listattenantscope.go +++ b/resource-manager/resources/2020-10-01/deployments/method_listattenantscope.go @@ -54,6 +54,18 @@ func (o ListAtTenantScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtTenantScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtTenantScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtTenantScope ... func (c DeploymentsClient) ListAtTenantScope(ctx context.Context, options ListAtTenantScopeOperationOptions) (result ListAtTenantScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c DeploymentsClient) ListAtTenantScope(ctx context.Context, options ListAt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Resources/deployments", OptionsObject: options, + Pager: &ListAtTenantScopeCustomPager{}, + Path: "/providers/Microsoft.Resources/deployments", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/deployments/method_listbyresourcegroup.go b/resource-manager/resources/2020-10-01/deployments/method_listbyresourcegroup.go index 9019b83aed7..6389283885e 100644 --- a/resource-manager/resources/2020-10-01/deployments/method_listbyresourcegroup.go +++ b/resource-manager/resources/2020-10-01/deployments/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DeploymentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListByResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/deploymentscripts/method_getlogsdefault.go b/resource-manager/resources/2020-10-01/deploymentscripts/method_getlogsdefault.go index b9be5c4ce6a..2876a3ebc28 100644 --- a/resource-manager/resources/2020-10-01/deploymentscripts/method_getlogsdefault.go +++ b/resource-manager/resources/2020-10-01/deploymentscripts/method_getlogsdefault.go @@ -53,8 +53,8 @@ func (c DeploymentScriptsClient) GetLogsDefault(ctx context.Context, id Deployme http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/logs/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/logs/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/deploymentscripts/method_listbyresourcegroup.go b/resource-manager/resources/2020-10-01/deploymentscripts/method_listbyresourcegroup.go index 524979a7b31..85bb5985bd8 100644 --- a/resource-manager/resources/2020-10-01/deploymentscripts/method_listbyresourcegroup.go +++ b/resource-manager/resources/2020-10-01/deploymentscripts/method_listbyresourcegroup.go @@ -25,6 +25,18 @@ type ListByResourceGroupCompleteResult struct { Items []DeploymentScript } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DeploymentScriptsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -33,6 +45,7 @@ func (c DeploymentScriptsClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deploymentScripts", id.ID()), } diff --git a/resource-manager/resources/2020-10-01/deploymentscripts/method_listbysubscription.go b/resource-manager/resources/2020-10-01/deploymentscripts/method_listbysubscription.go index 8238e4b1223..854e3b342b9 100644 --- a/resource-manager/resources/2020-10-01/deploymentscripts/method_listbysubscription.go +++ b/resource-manager/resources/2020-10-01/deploymentscripts/method_listbysubscription.go @@ -25,6 +25,18 @@ type ListBySubscriptionCompleteResult struct { Items []DeploymentScript } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DeploymentScriptsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -33,6 +45,7 @@ func (c DeploymentScriptsClient) ListBySubscription(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deploymentScripts", id.ID()), } diff --git a/resource-manager/resources/2020-10-01/providers/method_get.go b/resource-manager/resources/2020-10-01/providers/method_get.go index 1f43c187f0e..d9ebc641bc3 100644 --- a/resource-manager/resources/2020-10-01/providers/method_get.go +++ b/resource-manager/resources/2020-10-01/providers/method_get.go @@ -53,8 +53,8 @@ func (c ProvidersClient) Get(ctx context.Context, id SubscriptionProviderId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/providers/method_getattenantscope.go b/resource-manager/resources/2020-10-01/providers/method_getattenantscope.go index 642229a496b..179d43b8f06 100644 --- a/resource-manager/resources/2020-10-01/providers/method_getattenantscope.go +++ b/resource-manager/resources/2020-10-01/providers/method_getattenantscope.go @@ -53,8 +53,8 @@ func (c ProvidersClient) GetAtTenantScope(ctx context.Context, id ProviderId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/providers/method_list.go b/resource-manager/resources/2020-10-01/providers/method_list.go index a63ad2b74d2..e680c5cc23d 100644 --- a/resource-manager/resources/2020-10-01/providers/method_list.go +++ b/resource-manager/resources/2020-10-01/providers/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProvidersClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ProvidersClient) List(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/providers/method_listattenantscope.go b/resource-manager/resources/2020-10-01/providers/method_listattenantscope.go index 50cf9a20c5c..0868cbb09a3 100644 --- a/resource-manager/resources/2020-10-01/providers/method_listattenantscope.go +++ b/resource-manager/resources/2020-10-01/providers/method_listattenantscope.go @@ -54,6 +54,18 @@ func (o ListAtTenantScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtTenantScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtTenantScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtTenantScope ... func (c ProvidersClient) ListAtTenantScope(ctx context.Context, options ListAtTenantScopeOperationOptions) (result ListAtTenantScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ProvidersClient) ListAtTenantScope(ctx context.Context, options ListAtTe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers", OptionsObject: options, + Pager: &ListAtTenantScopeCustomPager{}, + Path: "/providers", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/providers/method_providerresourcetypeslist.go b/resource-manager/resources/2020-10-01/providers/method_providerresourcetypeslist.go index bea2c82cde6..b19a58feb1a 100644 --- a/resource-manager/resources/2020-10-01/providers/method_providerresourcetypeslist.go +++ b/resource-manager/resources/2020-10-01/providers/method_providerresourcetypeslist.go @@ -50,6 +50,18 @@ func (o ProviderResourceTypesListOperationOptions) ToQuery() *client.QueryParams return &out } +type ProviderResourceTypesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProviderResourceTypesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProviderResourceTypesList ... func (c ProvidersClient) ProviderResourceTypesList(ctx context.Context, id SubscriptionProviderId, options ProviderResourceTypesListOperationOptions) (result ProviderResourceTypesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProvidersClient) ProviderResourceTypesList(ctx context.Context, id Subsc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resourceTypes", id.ID()), OptionsObject: options, + Pager: &ProviderResourceTypesListCustomPager{}, + Path: fmt.Sprintf("%s/resourceTypes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/resourcegroups/method_list.go b/resource-manager/resources/2020-10-01/resourcegroups/method_list.go index 6f348d4ead3..43e82e042ce 100644 --- a/resource-manager/resources/2020-10-01/resourcegroups/method_list.go +++ b/resource-manager/resources/2020-10-01/resourcegroups/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourceGroupsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ResourceGroupsClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resourceGroups", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/resourceGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/resourcegroups/method_resourceslistbyresourcegroup.go b/resource-manager/resources/2020-10-01/resourcegroups/method_resourceslistbyresourcegroup.go index 8940edebd02..e739ddc1a69 100644 --- a/resource-manager/resources/2020-10-01/resourcegroups/method_resourceslistbyresourcegroup.go +++ b/resource-manager/resources/2020-10-01/resourcegroups/method_resourceslistbyresourcegroup.go @@ -59,6 +59,18 @@ func (o ResourcesListByResourceGroupOperationOptions) ToQuery() *client.QueryPar return &out } +type ResourcesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourcesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourcesListByResourceGroup ... func (c ResourceGroupsClient) ResourcesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ResourcesListByResourceGroupOperationOptions) (result ResourcesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ResourceGroupsClient) ResourcesListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resources", id.ID()), OptionsObject: options, + Pager: &ResourcesListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/resources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/resources/method_list.go b/resource-manager/resources/2020-10-01/resources/method_list.go index 2ea656bf23a..3a348699f1a 100644 --- a/resource-manager/resources/2020-10-01/resources/method_list.go +++ b/resource-manager/resources/2020-10-01/resources/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourcesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ResourcesClient) List(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resources", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/resources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2020-10-01/tags/method_list.go b/resource-manager/resources/2020-10-01/tags/method_list.go index 04902c2bc50..d0f304b1f43 100644 --- a/resource-manager/resources/2020-10-01/tags/method_list.go +++ b/resource-manager/resources/2020-10-01/tags/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []TagDetails } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TagsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TagsClient) List(ctx context.Context, id commonids.SubscriptionId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/tagNames", id.ID()), } diff --git a/resource-manager/resources/2021-07-01/features/method_list.go b/resource-manager/resources/2021-07-01/features/method_list.go index 34bb9bfc5be..2d40fea130e 100644 --- a/resource-manager/resources/2021-07-01/features/method_list.go +++ b/resource-manager/resources/2021-07-01/features/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []FeatureResult } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FeaturesClient) List(ctx context.Context, id Providers2Id) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FeaturesClient) List(ctx context.Context, id Providers2Id) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/features", id.ID()), } diff --git a/resource-manager/resources/2021-07-01/features/method_listall.go b/resource-manager/resources/2021-07-01/features/method_listall.go index 1fef38a116a..65febf21579 100644 --- a/resource-manager/resources/2021-07-01/features/method_listall.go +++ b/resource-manager/resources/2021-07-01/features/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []FeatureResult } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c FeaturesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FeaturesClient) ListAll(ctx context.Context, id commonids.SubscriptionId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Features/features", id.ID()), } diff --git a/resource-manager/resources/2021-07-01/subscriptionfeatureregistrations/method_listallbysubscription.go b/resource-manager/resources/2021-07-01/subscriptionfeatureregistrations/method_listallbysubscription.go index 321e4bcf728..8b6dddbef00 100644 --- a/resource-manager/resources/2021-07-01/subscriptionfeatureregistrations/method_listallbysubscription.go +++ b/resource-manager/resources/2021-07-01/subscriptionfeatureregistrations/method_listallbysubscription.go @@ -24,6 +24,18 @@ type ListAllBySubscriptionCompleteResult struct { Items []SubscriptionFeatureRegistration } +type ListAllBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAllBySubscription ... func (c SubscriptionFeatureRegistrationsClient) ListAllBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListAllBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SubscriptionFeatureRegistrationsClient) ListAllBySubscription(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Features/subscriptionFeatureRegistrations", id.ID()), } diff --git a/resource-manager/resources/2021-07-01/subscriptionfeatureregistrations/method_listbysubscription.go b/resource-manager/resources/2021-07-01/subscriptionfeatureregistrations/method_listbysubscription.go index ff650b06998..a1a2eaff073 100644 --- a/resource-manager/resources/2021-07-01/subscriptionfeatureregistrations/method_listbysubscription.go +++ b/resource-manager/resources/2021-07-01/subscriptionfeatureregistrations/method_listbysubscription.go @@ -23,6 +23,18 @@ type ListBySubscriptionCompleteResult struct { Items []SubscriptionFeatureRegistration } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SubscriptionFeatureRegistrationsClient) ListBySubscription(ctx context.Context, id FeatureProviderId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SubscriptionFeatureRegistrationsClient) ListBySubscription(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/subscriptionFeatureRegistrations", id.ID()), } diff --git a/resource-manager/resources/2022-02-01/templatespecs/method_get.go b/resource-manager/resources/2022-02-01/templatespecs/method_get.go index feacec6eba9..d0a4c546006 100644 --- a/resource-manager/resources/2022-02-01/templatespecs/method_get.go +++ b/resource-manager/resources/2022-02-01/templatespecs/method_get.go @@ -53,8 +53,8 @@ func (c TemplateSpecsClient) Get(ctx context.Context, id TemplateSpecId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-02-01/templatespecs/method_getbuiltin.go b/resource-manager/resources/2022-02-01/templatespecs/method_getbuiltin.go index fe37b4ba482..9b4982f8375 100644 --- a/resource-manager/resources/2022-02-01/templatespecs/method_getbuiltin.go +++ b/resource-manager/resources/2022-02-01/templatespecs/method_getbuiltin.go @@ -53,8 +53,8 @@ func (c TemplateSpecsClient) GetBuiltIn(ctx context.Context, id BuiltInTemplateS http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-02-01/templatespecs/method_listbuiltins.go b/resource-manager/resources/2022-02-01/templatespecs/method_listbuiltins.go index bc93c515b36..37e9061198d 100644 --- a/resource-manager/resources/2022-02-01/templatespecs/method_listbuiltins.go +++ b/resource-manager/resources/2022-02-01/templatespecs/method_listbuiltins.go @@ -50,6 +50,18 @@ func (o ListBuiltInsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBuiltInsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBuiltInsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBuiltIns ... func (c TemplateSpecsClient) ListBuiltIns(ctx context.Context, options ListBuiltInsOperationOptions) (result ListBuiltInsOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c TemplateSpecsClient) ListBuiltIns(ctx context.Context, options ListBuilt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Resources/builtInTemplateSpecs", OptionsObject: options, + Pager: &ListBuiltInsCustomPager{}, + Path: "/providers/Microsoft.Resources/builtInTemplateSpecs", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-02-01/templatespecs/method_listbyresourcegroup.go b/resource-manager/resources/2022-02-01/templatespecs/method_listbyresourcegroup.go index 2f554b52ba2..cff36f754e1 100644 --- a/resource-manager/resources/2022-02-01/templatespecs/method_listbyresourcegroup.go +++ b/resource-manager/resources/2022-02-01/templatespecs/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c TemplateSpecsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c TemplateSpecsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/templateSpecs", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/templateSpecs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-02-01/templatespecs/method_listbysubscription.go b/resource-manager/resources/2022-02-01/templatespecs/method_listbysubscription.go index 161e4aa8692..68416652d4a 100644 --- a/resource-manager/resources/2022-02-01/templatespecs/method_listbysubscription.go +++ b/resource-manager/resources/2022-02-01/templatespecs/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c TemplateSpecsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c TemplateSpecsClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/templateSpecs", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/templateSpecs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-02-01/templatespecversions/method_list.go b/resource-manager/resources/2022-02-01/templatespecversions/method_list.go index 6116617f3ab..6e9e3bffd67 100644 --- a/resource-manager/resources/2022-02-01/templatespecversions/method_list.go +++ b/resource-manager/resources/2022-02-01/templatespecversions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []TemplateSpecVersion } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TemplateSpecVersionsClient) List(ctx context.Context, id TemplateSpecId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TemplateSpecVersionsClient) List(ctx context.Context, id TemplateSpecId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/resources/2022-02-01/templatespecversions/method_listbuiltins.go b/resource-manager/resources/2022-02-01/templatespecversions/method_listbuiltins.go index 10094ef3639..ec1a1ab0698 100644 --- a/resource-manager/resources/2022-02-01/templatespecversions/method_listbuiltins.go +++ b/resource-manager/resources/2022-02-01/templatespecversions/method_listbuiltins.go @@ -23,6 +23,18 @@ type ListBuiltInsCompleteResult struct { Items []TemplateSpecVersion } +type ListBuiltInsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBuiltInsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBuiltIns ... func (c TemplateSpecVersionsClient) ListBuiltIns(ctx context.Context, id BuiltInTemplateSpecId) (result ListBuiltInsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TemplateSpecVersionsClient) ListBuiltIns(ctx context.Context, id BuiltIn http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBuiltInsCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/resources/2022-06-01/policyassignments/method_list.go b/resource-manager/resources/2022-06-01/policyassignments/method_list.go index 753ded28eef..78a0fc2e344 100644 --- a/resource-manager/resources/2022-06-01/policyassignments/method_list.go +++ b/resource-manager/resources/2022-06-01/policyassignments/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PolicyAssignmentsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PolicyAssignmentsClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-06-01/policyassignments/method_listformanagementgroup.go b/resource-manager/resources/2022-06-01/policyassignments/method_listformanagementgroup.go index ca282514c5b..b32ecc0edc4 100644 --- a/resource-manager/resources/2022-06-01/policyassignments/method_listformanagementgroup.go +++ b/resource-manager/resources/2022-06-01/policyassignments/method_listformanagementgroup.go @@ -55,6 +55,18 @@ func (o ListForManagementGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForManagementGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForManagementGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForManagementGroup ... func (c PolicyAssignmentsClient) ListForManagementGroup(ctx context.Context, id commonids.ManagementGroupId, options ListForManagementGroupOperationOptions) (result ListForManagementGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PolicyAssignmentsClient) ListForManagementGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), OptionsObject: options, + Pager: &ListForManagementGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-06-01/policyassignments/method_listforresource.go b/resource-manager/resources/2022-06-01/policyassignments/method_listforresource.go index eaf1d3e7f41..39c781d143a 100644 --- a/resource-manager/resources/2022-06-01/policyassignments/method_listforresource.go +++ b/resource-manager/resources/2022-06-01/policyassignments/method_listforresource.go @@ -55,6 +55,18 @@ func (o ListForResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResource ... func (c PolicyAssignmentsClient) ListForResource(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (result ListForResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PolicyAssignmentsClient) ListForResource(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), OptionsObject: options, + Pager: &ListForResourceCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-06-01/policyassignments/method_listforresourcegroup.go b/resource-manager/resources/2022-06-01/policyassignments/method_listforresourcegroup.go index e23d45c0d1b..963b981c132 100644 --- a/resource-manager/resources/2022-06-01/policyassignments/method_listforresourcegroup.go +++ b/resource-manager/resources/2022-06-01/policyassignments/method_listforresourcegroup.go @@ -55,6 +55,18 @@ func (o ListForResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResourceGroup ... func (c PolicyAssignmentsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (result ListForResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PolicyAssignmentsClient) ListForResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), OptionsObject: options, + Pager: &ListForResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/deploymentoperations/method_list.go b/resource-manager/resources/2022-09-01/deploymentoperations/method_list.go index 017bd445dd6..31da83cbd35 100644 --- a/resource-manager/resources/2022-09-01/deploymentoperations/method_list.go +++ b/resource-manager/resources/2022-09-01/deploymentoperations/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeploymentOperationsClient) List(ctx context.Context, id ResourceGroupDeploymentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) List(ctx context.Context, id ResourceGroupDe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/deploymentoperations/method_listatmanagementgroupscope.go b/resource-manager/resources/2022-09-01/deploymentoperations/method_listatmanagementgroupscope.go index a0dada8fafa..8534ab53db5 100644 --- a/resource-manager/resources/2022-09-01/deploymentoperations/method_listatmanagementgroupscope.go +++ b/resource-manager/resources/2022-09-01/deploymentoperations/method_listatmanagementgroupscope.go @@ -50,6 +50,18 @@ func (o ListAtManagementGroupScopeOperationOptions) ToQuery() *client.QueryParam return &out } +type ListAtManagementGroupScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtManagementGroupScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtManagementGroupScope ... func (c DeploymentOperationsClient) ListAtManagementGroupScope(ctx context.Context, id Providers2DeploymentId, options ListAtManagementGroupScopeOperationOptions) (result ListAtManagementGroupScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtManagementGroupScope(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtManagementGroupScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/deploymentoperations/method_listatscope.go b/resource-manager/resources/2022-09-01/deploymentoperations/method_listatscope.go index 496f46d8fd3..8840500cb91 100644 --- a/resource-manager/resources/2022-09-01/deploymentoperations/method_listatscope.go +++ b/resource-manager/resources/2022-09-01/deploymentoperations/method_listatscope.go @@ -50,6 +50,18 @@ func (o ListAtScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtScope ... func (c DeploymentOperationsClient) ListAtScope(ctx context.Context, id ScopedDeploymentId, options ListAtScopeOperationOptions) (result ListAtScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtScope(ctx context.Context, id ScopedDe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/deploymentoperations/method_listatsubscriptionscope.go b/resource-manager/resources/2022-09-01/deploymentoperations/method_listatsubscriptionscope.go index b5ac07fbd95..e5af43d5147 100644 --- a/resource-manager/resources/2022-09-01/deploymentoperations/method_listatsubscriptionscope.go +++ b/resource-manager/resources/2022-09-01/deploymentoperations/method_listatsubscriptionscope.go @@ -50,6 +50,18 @@ func (o ListAtSubscriptionScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtSubscriptionScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtSubscriptionScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtSubscriptionScope ... func (c DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Context, id ProviderDeploymentId, options ListAtSubscriptionScopeOperationOptions) (result ListAtSubscriptionScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtSubscriptionScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/deploymentoperations/method_listattenantscope.go b/resource-manager/resources/2022-09-01/deploymentoperations/method_listattenantscope.go index bcb319b08bb..364b6e78860 100644 --- a/resource-manager/resources/2022-09-01/deploymentoperations/method_listattenantscope.go +++ b/resource-manager/resources/2022-09-01/deploymentoperations/method_listattenantscope.go @@ -50,6 +50,18 @@ func (o ListAtTenantScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtTenantScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtTenantScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtTenantScope ... func (c DeploymentOperationsClient) ListAtTenantScope(ctx context.Context, id DeploymentId, options ListAtTenantScopeOperationOptions) (result ListAtTenantScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtTenantScope(ctx context.Context, id De http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtTenantScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/deployments/method_listatmanagementgroupscope.go b/resource-manager/resources/2022-09-01/deployments/method_listatmanagementgroupscope.go index 1aaf03da9f4..d806bd04a35 100644 --- a/resource-manager/resources/2022-09-01/deployments/method_listatmanagementgroupscope.go +++ b/resource-manager/resources/2022-09-01/deployments/method_listatmanagementgroupscope.go @@ -55,6 +55,18 @@ func (o ListAtManagementGroupScopeOperationOptions) ToQuery() *client.QueryParam return &out } +type ListAtManagementGroupScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtManagementGroupScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtManagementGroupScope ... func (c DeploymentsClient) ListAtManagementGroupScope(ctx context.Context, id commonids.ManagementGroupId, options ListAtManagementGroupScopeOperationOptions) (result ListAtManagementGroupScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListAtManagementGroupScope(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListAtManagementGroupScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/deployments/method_listatscope.go b/resource-manager/resources/2022-09-01/deployments/method_listatscope.go index a5a4348b0ef..1f28434f5ad 100644 --- a/resource-manager/resources/2022-09-01/deployments/method_listatscope.go +++ b/resource-manager/resources/2022-09-01/deployments/method_listatscope.go @@ -55,6 +55,18 @@ func (o ListAtScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtScope ... func (c DeploymentsClient) ListAtScope(ctx context.Context, id commonids.ScopeId, options ListAtScopeOperationOptions) (result ListAtScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListAtScope(ctx context.Context, id commonids.ScopeId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListAtScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/deployments/method_listatsubscriptionscope.go b/resource-manager/resources/2022-09-01/deployments/method_listatsubscriptionscope.go index bc573717707..045ecbcecdd 100644 --- a/resource-manager/resources/2022-09-01/deployments/method_listatsubscriptionscope.go +++ b/resource-manager/resources/2022-09-01/deployments/method_listatsubscriptionscope.go @@ -55,6 +55,18 @@ func (o ListAtSubscriptionScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtSubscriptionScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtSubscriptionScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtSubscriptionScope ... func (c DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, id commonids.SubscriptionId, options ListAtSubscriptionScopeOperationOptions) (result ListAtSubscriptionScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListAtSubscriptionScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/deployments/method_listattenantscope.go b/resource-manager/resources/2022-09-01/deployments/method_listattenantscope.go index f5e329e5093..8527c4383f3 100644 --- a/resource-manager/resources/2022-09-01/deployments/method_listattenantscope.go +++ b/resource-manager/resources/2022-09-01/deployments/method_listattenantscope.go @@ -54,6 +54,18 @@ func (o ListAtTenantScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtTenantScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtTenantScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtTenantScope ... func (c DeploymentsClient) ListAtTenantScope(ctx context.Context, options ListAtTenantScopeOperationOptions) (result ListAtTenantScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c DeploymentsClient) ListAtTenantScope(ctx context.Context, options ListAt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Resources/deployments", OptionsObject: options, + Pager: &ListAtTenantScopeCustomPager{}, + Path: "/providers/Microsoft.Resources/deployments", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/deployments/method_listbyresourcegroup.go b/resource-manager/resources/2022-09-01/deployments/method_listbyresourcegroup.go index 9019b83aed7..6389283885e 100644 --- a/resource-manager/resources/2022-09-01/deployments/method_listbyresourcegroup.go +++ b/resource-manager/resources/2022-09-01/deployments/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DeploymentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListByResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/providers/method_get.go b/resource-manager/resources/2022-09-01/providers/method_get.go index 1f43c187f0e..d9ebc641bc3 100644 --- a/resource-manager/resources/2022-09-01/providers/method_get.go +++ b/resource-manager/resources/2022-09-01/providers/method_get.go @@ -53,8 +53,8 @@ func (c ProvidersClient) Get(ctx context.Context, id SubscriptionProviderId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/providers/method_getattenantscope.go b/resource-manager/resources/2022-09-01/providers/method_getattenantscope.go index 642229a496b..179d43b8f06 100644 --- a/resource-manager/resources/2022-09-01/providers/method_getattenantscope.go +++ b/resource-manager/resources/2022-09-01/providers/method_getattenantscope.go @@ -53,8 +53,8 @@ func (c ProvidersClient) GetAtTenantScope(ctx context.Context, id ProviderId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/providers/method_list.go b/resource-manager/resources/2022-09-01/providers/method_list.go index 24531cba00f..efff36573fc 100644 --- a/resource-manager/resources/2022-09-01/providers/method_list.go +++ b/resource-manager/resources/2022-09-01/providers/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProvidersClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ProvidersClient) List(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/providers/method_listattenantscope.go b/resource-manager/resources/2022-09-01/providers/method_listattenantscope.go index 856ba6ef266..a89644b87b7 100644 --- a/resource-manager/resources/2022-09-01/providers/method_listattenantscope.go +++ b/resource-manager/resources/2022-09-01/providers/method_listattenantscope.go @@ -50,6 +50,18 @@ func (o ListAtTenantScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtTenantScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtTenantScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtTenantScope ... func (c ProvidersClient) ListAtTenantScope(ctx context.Context, options ListAtTenantScopeOperationOptions) (result ListAtTenantScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProvidersClient) ListAtTenantScope(ctx context.Context, options ListAtTe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers", OptionsObject: options, + Pager: &ListAtTenantScopeCustomPager{}, + Path: "/providers", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/providers/method_providerpermissions.go b/resource-manager/resources/2022-09-01/providers/method_providerpermissions.go index a02fbdb7875..febf3c1a058 100644 --- a/resource-manager/resources/2022-09-01/providers/method_providerpermissions.go +++ b/resource-manager/resources/2022-09-01/providers/method_providerpermissions.go @@ -23,6 +23,18 @@ type ProviderPermissionsCompleteResult struct { Items []ProviderPermission } +type ProviderPermissionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProviderPermissionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProviderPermissions ... func (c ProvidersClient) ProviderPermissions(ctx context.Context, id SubscriptionProviderId) (result ProviderPermissionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProvidersClient) ProviderPermissions(ctx context.Context, id Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ProviderPermissionsCustomPager{}, Path: fmt.Sprintf("%s/providerPermissions", id.ID()), } diff --git a/resource-manager/resources/2022-09-01/providers/method_providerresourcetypeslist.go b/resource-manager/resources/2022-09-01/providers/method_providerresourcetypeslist.go index bea2c82cde6..b19a58feb1a 100644 --- a/resource-manager/resources/2022-09-01/providers/method_providerresourcetypeslist.go +++ b/resource-manager/resources/2022-09-01/providers/method_providerresourcetypeslist.go @@ -50,6 +50,18 @@ func (o ProviderResourceTypesListOperationOptions) ToQuery() *client.QueryParams return &out } +type ProviderResourceTypesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProviderResourceTypesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProviderResourceTypesList ... func (c ProvidersClient) ProviderResourceTypesList(ctx context.Context, id SubscriptionProviderId, options ProviderResourceTypesListOperationOptions) (result ProviderResourceTypesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProvidersClient) ProviderResourceTypesList(ctx context.Context, id Subsc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resourceTypes", id.ID()), OptionsObject: options, + Pager: &ProviderResourceTypesListCustomPager{}, + Path: fmt.Sprintf("%s/resourceTypes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/resourcegroups/method_delete.go b/resource-manager/resources/2022-09-01/resourcegroups/method_delete.go index c754aed65aa..e3e6402be67 100644 --- a/resource-manager/resources/2022-09-01/resourcegroups/method_delete.go +++ b/resource-manager/resources/2022-09-01/resourcegroups/method_delete.go @@ -57,8 +57,8 @@ func (c ResourceGroupsClient) Delete(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/resourcegroups/method_list.go b/resource-manager/resources/2022-09-01/resourcegroups/method_list.go index 6f348d4ead3..43e82e042ce 100644 --- a/resource-manager/resources/2022-09-01/resourcegroups/method_list.go +++ b/resource-manager/resources/2022-09-01/resourcegroups/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourceGroupsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ResourceGroupsClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resourceGroups", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/resourceGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/resourcegroups/method_resourceslistbyresourcegroup.go b/resource-manager/resources/2022-09-01/resourcegroups/method_resourceslistbyresourcegroup.go index 8940edebd02..e739ddc1a69 100644 --- a/resource-manager/resources/2022-09-01/resourcegroups/method_resourceslistbyresourcegroup.go +++ b/resource-manager/resources/2022-09-01/resourcegroups/method_resourceslistbyresourcegroup.go @@ -59,6 +59,18 @@ func (o ResourcesListByResourceGroupOperationOptions) ToQuery() *client.QueryPar return &out } +type ResourcesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourcesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourcesListByResourceGroup ... func (c ResourceGroupsClient) ResourcesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ResourcesListByResourceGroupOperationOptions) (result ResourcesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ResourceGroupsClient) ResourcesListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resources", id.ID()), OptionsObject: options, + Pager: &ResourcesListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/resources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/resources/method_list.go b/resource-manager/resources/2022-09-01/resources/method_list.go index 2ea656bf23a..3a348699f1a 100644 --- a/resource-manager/resources/2022-09-01/resources/method_list.go +++ b/resource-manager/resources/2022-09-01/resources/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourcesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ResourcesClient) List(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resources", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/resources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-09-01/tags/method_list.go b/resource-manager/resources/2022-09-01/tags/method_list.go index 04902c2bc50..d0f304b1f43 100644 --- a/resource-manager/resources/2022-09-01/tags/method_list.go +++ b/resource-manager/resources/2022-09-01/tags/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []TagDetails } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TagsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TagsClient) List(ctx context.Context, id commonids.SubscriptionId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/tagNames", id.ID()), } diff --git a/resource-manager/resources/2022-12-01/subscriptions/method_list.go b/resource-manager/resources/2022-12-01/subscriptions/method_list.go index dd5e501b9a4..baa1d64ca19 100644 --- a/resource-manager/resources/2022-12-01/subscriptions/method_list.go +++ b/resource-manager/resources/2022-12-01/subscriptions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Subscription } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SubscriptionsClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SubscriptionsClient) List(ctx context.Context) (result ListOperationResp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/subscriptions", } diff --git a/resource-manager/resources/2022-12-01/subscriptions/method_listlocations.go b/resource-manager/resources/2022-12-01/subscriptions/method_listlocations.go index a0ad8f44e0a..cb1dc551775 100644 --- a/resource-manager/resources/2022-12-01/subscriptions/method_listlocations.go +++ b/resource-manager/resources/2022-12-01/subscriptions/method_listlocations.go @@ -54,8 +54,8 @@ func (c SubscriptionsClient) ListLocations(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/locations", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/locations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2022-12-01/tenants/method_list.go b/resource-manager/resources/2022-12-01/tenants/method_list.go index 0b3d80baeb1..b8ceca278cb 100644 --- a/resource-manager/resources/2022-12-01/tenants/method_list.go +++ b/resource-manager/resources/2022-12-01/tenants/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []TenantIdDescription } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TenantsClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TenantsClient) List(ctx context.Context) (result ListOperationResponse, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/tenants", } diff --git a/resource-manager/resources/2023-07-01/deploymentoperations/method_list.go b/resource-manager/resources/2023-07-01/deploymentoperations/method_list.go index 017bd445dd6..31da83cbd35 100644 --- a/resource-manager/resources/2023-07-01/deploymentoperations/method_list.go +++ b/resource-manager/resources/2023-07-01/deploymentoperations/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeploymentOperationsClient) List(ctx context.Context, id ResourceGroupDeploymentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) List(ctx context.Context, id ResourceGroupDe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/deploymentoperations/method_listatmanagementgroupscope.go b/resource-manager/resources/2023-07-01/deploymentoperations/method_listatmanagementgroupscope.go index a0dada8fafa..8534ab53db5 100644 --- a/resource-manager/resources/2023-07-01/deploymentoperations/method_listatmanagementgroupscope.go +++ b/resource-manager/resources/2023-07-01/deploymentoperations/method_listatmanagementgroupscope.go @@ -50,6 +50,18 @@ func (o ListAtManagementGroupScopeOperationOptions) ToQuery() *client.QueryParam return &out } +type ListAtManagementGroupScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtManagementGroupScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtManagementGroupScope ... func (c DeploymentOperationsClient) ListAtManagementGroupScope(ctx context.Context, id Providers2DeploymentId, options ListAtManagementGroupScopeOperationOptions) (result ListAtManagementGroupScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtManagementGroupScope(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtManagementGroupScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/deploymentoperations/method_listatscope.go b/resource-manager/resources/2023-07-01/deploymentoperations/method_listatscope.go index 496f46d8fd3..8840500cb91 100644 --- a/resource-manager/resources/2023-07-01/deploymentoperations/method_listatscope.go +++ b/resource-manager/resources/2023-07-01/deploymentoperations/method_listatscope.go @@ -50,6 +50,18 @@ func (o ListAtScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtScope ... func (c DeploymentOperationsClient) ListAtScope(ctx context.Context, id ScopedDeploymentId, options ListAtScopeOperationOptions) (result ListAtScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtScope(ctx context.Context, id ScopedDe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/deploymentoperations/method_listatsubscriptionscope.go b/resource-manager/resources/2023-07-01/deploymentoperations/method_listatsubscriptionscope.go index b5ac07fbd95..e5af43d5147 100644 --- a/resource-manager/resources/2023-07-01/deploymentoperations/method_listatsubscriptionscope.go +++ b/resource-manager/resources/2023-07-01/deploymentoperations/method_listatsubscriptionscope.go @@ -50,6 +50,18 @@ func (o ListAtSubscriptionScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtSubscriptionScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtSubscriptionScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtSubscriptionScope ... func (c DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Context, id ProviderDeploymentId, options ListAtSubscriptionScopeOperationOptions) (result ListAtSubscriptionScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtSubscriptionScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/deploymentoperations/method_listattenantscope.go b/resource-manager/resources/2023-07-01/deploymentoperations/method_listattenantscope.go index bcb319b08bb..364b6e78860 100644 --- a/resource-manager/resources/2023-07-01/deploymentoperations/method_listattenantscope.go +++ b/resource-manager/resources/2023-07-01/deploymentoperations/method_listattenantscope.go @@ -50,6 +50,18 @@ func (o ListAtTenantScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtTenantScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtTenantScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtTenantScope ... func (c DeploymentOperationsClient) ListAtTenantScope(ctx context.Context, id DeploymentId, options ListAtTenantScopeOperationOptions) (result ListAtTenantScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtTenantScope(ctx context.Context, id De http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtTenantScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/deployments/method_listatmanagementgroupscope.go b/resource-manager/resources/2023-07-01/deployments/method_listatmanagementgroupscope.go index 1aaf03da9f4..d806bd04a35 100644 --- a/resource-manager/resources/2023-07-01/deployments/method_listatmanagementgroupscope.go +++ b/resource-manager/resources/2023-07-01/deployments/method_listatmanagementgroupscope.go @@ -55,6 +55,18 @@ func (o ListAtManagementGroupScopeOperationOptions) ToQuery() *client.QueryParam return &out } +type ListAtManagementGroupScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtManagementGroupScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtManagementGroupScope ... func (c DeploymentsClient) ListAtManagementGroupScope(ctx context.Context, id commonids.ManagementGroupId, options ListAtManagementGroupScopeOperationOptions) (result ListAtManagementGroupScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListAtManagementGroupScope(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListAtManagementGroupScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/deployments/method_listatscope.go b/resource-manager/resources/2023-07-01/deployments/method_listatscope.go index a5a4348b0ef..1f28434f5ad 100644 --- a/resource-manager/resources/2023-07-01/deployments/method_listatscope.go +++ b/resource-manager/resources/2023-07-01/deployments/method_listatscope.go @@ -55,6 +55,18 @@ func (o ListAtScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtScope ... func (c DeploymentsClient) ListAtScope(ctx context.Context, id commonids.ScopeId, options ListAtScopeOperationOptions) (result ListAtScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListAtScope(ctx context.Context, id commonids.ScopeId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListAtScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/deployments/method_listatsubscriptionscope.go b/resource-manager/resources/2023-07-01/deployments/method_listatsubscriptionscope.go index bc573717707..045ecbcecdd 100644 --- a/resource-manager/resources/2023-07-01/deployments/method_listatsubscriptionscope.go +++ b/resource-manager/resources/2023-07-01/deployments/method_listatsubscriptionscope.go @@ -55,6 +55,18 @@ func (o ListAtSubscriptionScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtSubscriptionScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtSubscriptionScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtSubscriptionScope ... func (c DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, id commonids.SubscriptionId, options ListAtSubscriptionScopeOperationOptions) (result ListAtSubscriptionScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListAtSubscriptionScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/deployments/method_listattenantscope.go b/resource-manager/resources/2023-07-01/deployments/method_listattenantscope.go index f5e329e5093..8527c4383f3 100644 --- a/resource-manager/resources/2023-07-01/deployments/method_listattenantscope.go +++ b/resource-manager/resources/2023-07-01/deployments/method_listattenantscope.go @@ -54,6 +54,18 @@ func (o ListAtTenantScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtTenantScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtTenantScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtTenantScope ... func (c DeploymentsClient) ListAtTenantScope(ctx context.Context, options ListAtTenantScopeOperationOptions) (result ListAtTenantScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c DeploymentsClient) ListAtTenantScope(ctx context.Context, options ListAt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Resources/deployments", OptionsObject: options, + Pager: &ListAtTenantScopeCustomPager{}, + Path: "/providers/Microsoft.Resources/deployments", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/deployments/method_listbyresourcegroup.go b/resource-manager/resources/2023-07-01/deployments/method_listbyresourcegroup.go index 9019b83aed7..6389283885e 100644 --- a/resource-manager/resources/2023-07-01/deployments/method_listbyresourcegroup.go +++ b/resource-manager/resources/2023-07-01/deployments/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DeploymentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListByResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/providers/method_get.go b/resource-manager/resources/2023-07-01/providers/method_get.go index 1f43c187f0e..d9ebc641bc3 100644 --- a/resource-manager/resources/2023-07-01/providers/method_get.go +++ b/resource-manager/resources/2023-07-01/providers/method_get.go @@ -53,8 +53,8 @@ func (c ProvidersClient) Get(ctx context.Context, id SubscriptionProviderId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/providers/method_getattenantscope.go b/resource-manager/resources/2023-07-01/providers/method_getattenantscope.go index 642229a496b..179d43b8f06 100644 --- a/resource-manager/resources/2023-07-01/providers/method_getattenantscope.go +++ b/resource-manager/resources/2023-07-01/providers/method_getattenantscope.go @@ -53,8 +53,8 @@ func (c ProvidersClient) GetAtTenantScope(ctx context.Context, id ProviderId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/providers/method_list.go b/resource-manager/resources/2023-07-01/providers/method_list.go index 24531cba00f..efff36573fc 100644 --- a/resource-manager/resources/2023-07-01/providers/method_list.go +++ b/resource-manager/resources/2023-07-01/providers/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProvidersClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ProvidersClient) List(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/providers/method_listattenantscope.go b/resource-manager/resources/2023-07-01/providers/method_listattenantscope.go index 856ba6ef266..a89644b87b7 100644 --- a/resource-manager/resources/2023-07-01/providers/method_listattenantscope.go +++ b/resource-manager/resources/2023-07-01/providers/method_listattenantscope.go @@ -50,6 +50,18 @@ func (o ListAtTenantScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtTenantScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtTenantScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtTenantScope ... func (c ProvidersClient) ListAtTenantScope(ctx context.Context, options ListAtTenantScopeOperationOptions) (result ListAtTenantScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProvidersClient) ListAtTenantScope(ctx context.Context, options ListAtTe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers", OptionsObject: options, + Pager: &ListAtTenantScopeCustomPager{}, + Path: "/providers", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/providers/method_providerpermissions.go b/resource-manager/resources/2023-07-01/providers/method_providerpermissions.go index a02fbdb7875..febf3c1a058 100644 --- a/resource-manager/resources/2023-07-01/providers/method_providerpermissions.go +++ b/resource-manager/resources/2023-07-01/providers/method_providerpermissions.go @@ -23,6 +23,18 @@ type ProviderPermissionsCompleteResult struct { Items []ProviderPermission } +type ProviderPermissionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProviderPermissionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProviderPermissions ... func (c ProvidersClient) ProviderPermissions(ctx context.Context, id SubscriptionProviderId) (result ProviderPermissionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProvidersClient) ProviderPermissions(ctx context.Context, id Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ProviderPermissionsCustomPager{}, Path: fmt.Sprintf("%s/providerPermissions", id.ID()), } diff --git a/resource-manager/resources/2023-07-01/providers/method_providerresourcetypeslist.go b/resource-manager/resources/2023-07-01/providers/method_providerresourcetypeslist.go index bea2c82cde6..b19a58feb1a 100644 --- a/resource-manager/resources/2023-07-01/providers/method_providerresourcetypeslist.go +++ b/resource-manager/resources/2023-07-01/providers/method_providerresourcetypeslist.go @@ -50,6 +50,18 @@ func (o ProviderResourceTypesListOperationOptions) ToQuery() *client.QueryParams return &out } +type ProviderResourceTypesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProviderResourceTypesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProviderResourceTypesList ... func (c ProvidersClient) ProviderResourceTypesList(ctx context.Context, id SubscriptionProviderId, options ProviderResourceTypesListOperationOptions) (result ProviderResourceTypesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProvidersClient) ProviderResourceTypesList(ctx context.Context, id Subsc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resourceTypes", id.ID()), OptionsObject: options, + Pager: &ProviderResourceTypesListCustomPager{}, + Path: fmt.Sprintf("%s/resourceTypes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/resourcegroups/method_delete.go b/resource-manager/resources/2023-07-01/resourcegroups/method_delete.go index c754aed65aa..e3e6402be67 100644 --- a/resource-manager/resources/2023-07-01/resourcegroups/method_delete.go +++ b/resource-manager/resources/2023-07-01/resourcegroups/method_delete.go @@ -57,8 +57,8 @@ func (c ResourceGroupsClient) Delete(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/resourcegroups/method_list.go b/resource-manager/resources/2023-07-01/resourcegroups/method_list.go index 6f348d4ead3..43e82e042ce 100644 --- a/resource-manager/resources/2023-07-01/resourcegroups/method_list.go +++ b/resource-manager/resources/2023-07-01/resourcegroups/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourceGroupsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ResourceGroupsClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resourceGroups", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/resourceGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/resourcegroups/method_resourceslistbyresourcegroup.go b/resource-manager/resources/2023-07-01/resourcegroups/method_resourceslistbyresourcegroup.go index 8940edebd02..e739ddc1a69 100644 --- a/resource-manager/resources/2023-07-01/resourcegroups/method_resourceslistbyresourcegroup.go +++ b/resource-manager/resources/2023-07-01/resourcegroups/method_resourceslistbyresourcegroup.go @@ -59,6 +59,18 @@ func (o ResourcesListByResourceGroupOperationOptions) ToQuery() *client.QueryPar return &out } +type ResourcesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourcesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourcesListByResourceGroup ... func (c ResourceGroupsClient) ResourcesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ResourcesListByResourceGroupOperationOptions) (result ResourcesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ResourceGroupsClient) ResourcesListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resources", id.ID()), OptionsObject: options, + Pager: &ResourcesListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/resources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/resources/method_list.go b/resource-manager/resources/2023-07-01/resources/method_list.go index 2ea656bf23a..3a348699f1a 100644 --- a/resource-manager/resources/2023-07-01/resources/method_list.go +++ b/resource-manager/resources/2023-07-01/resources/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourcesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ResourcesClient) List(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resources", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/resources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-07-01/tags/method_list.go b/resource-manager/resources/2023-07-01/tags/method_list.go index 04902c2bc50..d0f304b1f43 100644 --- a/resource-manager/resources/2023-07-01/tags/method_list.go +++ b/resource-manager/resources/2023-07-01/tags/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []TagDetails } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TagsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TagsClient) List(ctx context.Context, id commonids.SubscriptionId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/tagNames", id.ID()), } diff --git a/resource-manager/resources/2023-08-01/deploymentscripts/method_getlogsdefault.go b/resource-manager/resources/2023-08-01/deploymentscripts/method_getlogsdefault.go index b9be5c4ce6a..2876a3ebc28 100644 --- a/resource-manager/resources/2023-08-01/deploymentscripts/method_getlogsdefault.go +++ b/resource-manager/resources/2023-08-01/deploymentscripts/method_getlogsdefault.go @@ -53,8 +53,8 @@ func (c DeploymentScriptsClient) GetLogsDefault(ctx context.Context, id Deployme http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/logs/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/logs/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2023-08-01/deploymentscripts/method_listbyresourcegroup.go b/resource-manager/resources/2023-08-01/deploymentscripts/method_listbyresourcegroup.go index 524979a7b31..85bb5985bd8 100644 --- a/resource-manager/resources/2023-08-01/deploymentscripts/method_listbyresourcegroup.go +++ b/resource-manager/resources/2023-08-01/deploymentscripts/method_listbyresourcegroup.go @@ -25,6 +25,18 @@ type ListByResourceGroupCompleteResult struct { Items []DeploymentScript } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DeploymentScriptsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -33,6 +45,7 @@ func (c DeploymentScriptsClient) ListByResourceGroup(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deploymentScripts", id.ID()), } diff --git a/resource-manager/resources/2023-08-01/deploymentscripts/method_listbysubscription.go b/resource-manager/resources/2023-08-01/deploymentscripts/method_listbysubscription.go index 8238e4b1223..854e3b342b9 100644 --- a/resource-manager/resources/2023-08-01/deploymentscripts/method_listbysubscription.go +++ b/resource-manager/resources/2023-08-01/deploymentscripts/method_listbysubscription.go @@ -25,6 +25,18 @@ type ListBySubscriptionCompleteResult struct { Items []DeploymentScript } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DeploymentScriptsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -33,6 +45,7 @@ func (c DeploymentScriptsClient) ListBySubscription(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deploymentScripts", id.ID()), } diff --git a/resource-manager/resources/2024-03-01/deploymentoperations/method_list.go b/resource-manager/resources/2024-03-01/deploymentoperations/method_list.go index 017bd445dd6..31da83cbd35 100644 --- a/resource-manager/resources/2024-03-01/deploymentoperations/method_list.go +++ b/resource-manager/resources/2024-03-01/deploymentoperations/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeploymentOperationsClient) List(ctx context.Context, id ResourceGroupDeploymentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) List(ctx context.Context, id ResourceGroupDe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/deploymentoperations/method_listatmanagementgroupscope.go b/resource-manager/resources/2024-03-01/deploymentoperations/method_listatmanagementgroupscope.go index a0dada8fafa..8534ab53db5 100644 --- a/resource-manager/resources/2024-03-01/deploymentoperations/method_listatmanagementgroupscope.go +++ b/resource-manager/resources/2024-03-01/deploymentoperations/method_listatmanagementgroupscope.go @@ -50,6 +50,18 @@ func (o ListAtManagementGroupScopeOperationOptions) ToQuery() *client.QueryParam return &out } +type ListAtManagementGroupScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtManagementGroupScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtManagementGroupScope ... func (c DeploymentOperationsClient) ListAtManagementGroupScope(ctx context.Context, id Providers2DeploymentId, options ListAtManagementGroupScopeOperationOptions) (result ListAtManagementGroupScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtManagementGroupScope(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtManagementGroupScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/deploymentoperations/method_listatscope.go b/resource-manager/resources/2024-03-01/deploymentoperations/method_listatscope.go index 496f46d8fd3..8840500cb91 100644 --- a/resource-manager/resources/2024-03-01/deploymentoperations/method_listatscope.go +++ b/resource-manager/resources/2024-03-01/deploymentoperations/method_listatscope.go @@ -50,6 +50,18 @@ func (o ListAtScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtScope ... func (c DeploymentOperationsClient) ListAtScope(ctx context.Context, id ScopedDeploymentId, options ListAtScopeOperationOptions) (result ListAtScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtScope(ctx context.Context, id ScopedDe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/deploymentoperations/method_listatsubscriptionscope.go b/resource-manager/resources/2024-03-01/deploymentoperations/method_listatsubscriptionscope.go index b5ac07fbd95..e5af43d5147 100644 --- a/resource-manager/resources/2024-03-01/deploymentoperations/method_listatsubscriptionscope.go +++ b/resource-manager/resources/2024-03-01/deploymentoperations/method_listatsubscriptionscope.go @@ -50,6 +50,18 @@ func (o ListAtSubscriptionScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtSubscriptionScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtSubscriptionScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtSubscriptionScope ... func (c DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Context, id ProviderDeploymentId, options ListAtSubscriptionScopeOperationOptions) (result ListAtSubscriptionScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtSubscriptionScope(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtSubscriptionScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/deploymentoperations/method_listattenantscope.go b/resource-manager/resources/2024-03-01/deploymentoperations/method_listattenantscope.go index bcb319b08bb..364b6e78860 100644 --- a/resource-manager/resources/2024-03-01/deploymentoperations/method_listattenantscope.go +++ b/resource-manager/resources/2024-03-01/deploymentoperations/method_listattenantscope.go @@ -50,6 +50,18 @@ func (o ListAtTenantScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtTenantScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtTenantScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtTenantScope ... func (c DeploymentOperationsClient) ListAtTenantScope(ctx context.Context, id DeploymentId, options ListAtTenantScopeOperationOptions) (result ListAtTenantScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DeploymentOperationsClient) ListAtTenantScope(ctx context.Context, id De http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/operations", id.ID()), OptionsObject: options, + Pager: &ListAtTenantScopeCustomPager{}, + Path: fmt.Sprintf("%s/operations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/deployments/method_listatmanagementgroupscope.go b/resource-manager/resources/2024-03-01/deployments/method_listatmanagementgroupscope.go index 1aaf03da9f4..d806bd04a35 100644 --- a/resource-manager/resources/2024-03-01/deployments/method_listatmanagementgroupscope.go +++ b/resource-manager/resources/2024-03-01/deployments/method_listatmanagementgroupscope.go @@ -55,6 +55,18 @@ func (o ListAtManagementGroupScopeOperationOptions) ToQuery() *client.QueryParam return &out } +type ListAtManagementGroupScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtManagementGroupScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtManagementGroupScope ... func (c DeploymentsClient) ListAtManagementGroupScope(ctx context.Context, id commonids.ManagementGroupId, options ListAtManagementGroupScopeOperationOptions) (result ListAtManagementGroupScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListAtManagementGroupScope(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListAtManagementGroupScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/deployments/method_listatscope.go b/resource-manager/resources/2024-03-01/deployments/method_listatscope.go index a5a4348b0ef..1f28434f5ad 100644 --- a/resource-manager/resources/2024-03-01/deployments/method_listatscope.go +++ b/resource-manager/resources/2024-03-01/deployments/method_listatscope.go @@ -55,6 +55,18 @@ func (o ListAtScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtScope ... func (c DeploymentsClient) ListAtScope(ctx context.Context, id commonids.ScopeId, options ListAtScopeOperationOptions) (result ListAtScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListAtScope(ctx context.Context, id commonids.ScopeId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListAtScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/deployments/method_listatsubscriptionscope.go b/resource-manager/resources/2024-03-01/deployments/method_listatsubscriptionscope.go index bc573717707..045ecbcecdd 100644 --- a/resource-manager/resources/2024-03-01/deployments/method_listatsubscriptionscope.go +++ b/resource-manager/resources/2024-03-01/deployments/method_listatsubscriptionscope.go @@ -55,6 +55,18 @@ func (o ListAtSubscriptionScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtSubscriptionScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtSubscriptionScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtSubscriptionScope ... func (c DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, id commonids.SubscriptionId, options ListAtSubscriptionScopeOperationOptions) (result ListAtSubscriptionScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListAtSubscriptionScope(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListAtSubscriptionScopeCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/deployments/method_listattenantscope.go b/resource-manager/resources/2024-03-01/deployments/method_listattenantscope.go index f5e329e5093..8527c4383f3 100644 --- a/resource-manager/resources/2024-03-01/deployments/method_listattenantscope.go +++ b/resource-manager/resources/2024-03-01/deployments/method_listattenantscope.go @@ -54,6 +54,18 @@ func (o ListAtTenantScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtTenantScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtTenantScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtTenantScope ... func (c DeploymentsClient) ListAtTenantScope(ctx context.Context, options ListAtTenantScopeOperationOptions) (result ListAtTenantScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c DeploymentsClient) ListAtTenantScope(ctx context.Context, options ListAt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Resources/deployments", OptionsObject: options, + Pager: &ListAtTenantScopeCustomPager{}, + Path: "/providers/Microsoft.Resources/deployments", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/deployments/method_listbyresourcegroup.go b/resource-manager/resources/2024-03-01/deployments/method_listbyresourcegroup.go index 9019b83aed7..6389283885e 100644 --- a/resource-manager/resources/2024-03-01/deployments/method_listbyresourcegroup.go +++ b/resource-manager/resources/2024-03-01/deployments/method_listbyresourcegroup.go @@ -55,6 +55,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DeploymentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c DeploymentsClient) ListByResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deployments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/deploymentstacks/method_deleteatmanagementgroup.go b/resource-manager/resources/2024-03-01/deploymentstacks/method_deleteatmanagementgroup.go index 3fe0bd51ab7..bd37c42e631 100644 --- a/resource-manager/resources/2024-03-01/deploymentstacks/method_deleteatmanagementgroup.go +++ b/resource-manager/resources/2024-03-01/deploymentstacks/method_deleteatmanagementgroup.go @@ -69,8 +69,8 @@ func (c DeploymentStacksClient) DeleteAtManagementGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/deploymentstacks/method_deleteatresourcegroup.go b/resource-manager/resources/2024-03-01/deploymentstacks/method_deleteatresourcegroup.go index 1969ed04ff9..3c10f3a4c80 100644 --- a/resource-manager/resources/2024-03-01/deploymentstacks/method_deleteatresourcegroup.go +++ b/resource-manager/resources/2024-03-01/deploymentstacks/method_deleteatresourcegroup.go @@ -69,8 +69,8 @@ func (c DeploymentStacksClient) DeleteAtResourceGroup(ctx context.Context, id Pr http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/deploymentstacks/method_deleteatsubscription.go b/resource-manager/resources/2024-03-01/deploymentstacks/method_deleteatsubscription.go index 1aa8a913a3b..3b6e9f89af9 100644 --- a/resource-manager/resources/2024-03-01/deploymentstacks/method_deleteatsubscription.go +++ b/resource-manager/resources/2024-03-01/deploymentstacks/method_deleteatsubscription.go @@ -69,8 +69,8 @@ func (c DeploymentStacksClient) DeleteAtSubscription(ctx context.Context, id Dep http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/deploymentstacks/method_listatmanagementgroup.go b/resource-manager/resources/2024-03-01/deploymentstacks/method_listatmanagementgroup.go index e97971afc37..a883c1e45b9 100644 --- a/resource-manager/resources/2024-03-01/deploymentstacks/method_listatmanagementgroup.go +++ b/resource-manager/resources/2024-03-01/deploymentstacks/method_listatmanagementgroup.go @@ -24,6 +24,18 @@ type ListAtManagementGroupCompleteResult struct { Items []DeploymentStack } +type ListAtManagementGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtManagementGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtManagementGroup ... func (c DeploymentStacksClient) ListAtManagementGroup(ctx context.Context, id commonids.ManagementGroupId) (result ListAtManagementGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeploymentStacksClient) ListAtManagementGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAtManagementGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deploymentStacks", id.ID()), } diff --git a/resource-manager/resources/2024-03-01/deploymentstacks/method_listatresourcegroup.go b/resource-manager/resources/2024-03-01/deploymentstacks/method_listatresourcegroup.go index 5f0d05e57b4..62d06e49a37 100644 --- a/resource-manager/resources/2024-03-01/deploymentstacks/method_listatresourcegroup.go +++ b/resource-manager/resources/2024-03-01/deploymentstacks/method_listatresourcegroup.go @@ -24,6 +24,18 @@ type ListAtResourceGroupCompleteResult struct { Items []DeploymentStack } +type ListAtResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtResourceGroup ... func (c DeploymentStacksClient) ListAtResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListAtResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeploymentStacksClient) ListAtResourceGroup(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAtResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deploymentStacks", id.ID()), } diff --git a/resource-manager/resources/2024-03-01/deploymentstacks/method_listatsubscription.go b/resource-manager/resources/2024-03-01/deploymentstacks/method_listatsubscription.go index 33122f92fcc..a00f99399ac 100644 --- a/resource-manager/resources/2024-03-01/deploymentstacks/method_listatsubscription.go +++ b/resource-manager/resources/2024-03-01/deploymentstacks/method_listatsubscription.go @@ -24,6 +24,18 @@ type ListAtSubscriptionCompleteResult struct { Items []DeploymentStack } +type ListAtSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtSubscription ... func (c DeploymentStacksClient) ListAtSubscription(ctx context.Context, id commonids.SubscriptionId) (result ListAtSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeploymentStacksClient) ListAtSubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAtSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Resources/deploymentStacks", id.ID()), } diff --git a/resource-manager/resources/2024-03-01/providers/method_get.go b/resource-manager/resources/2024-03-01/providers/method_get.go index 1f43c187f0e..d9ebc641bc3 100644 --- a/resource-manager/resources/2024-03-01/providers/method_get.go +++ b/resource-manager/resources/2024-03-01/providers/method_get.go @@ -53,8 +53,8 @@ func (c ProvidersClient) Get(ctx context.Context, id SubscriptionProviderId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/providers/method_getattenantscope.go b/resource-manager/resources/2024-03-01/providers/method_getattenantscope.go index 642229a496b..179d43b8f06 100644 --- a/resource-manager/resources/2024-03-01/providers/method_getattenantscope.go +++ b/resource-manager/resources/2024-03-01/providers/method_getattenantscope.go @@ -53,8 +53,8 @@ func (c ProvidersClient) GetAtTenantScope(ctx context.Context, id ProviderId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/providers/method_list.go b/resource-manager/resources/2024-03-01/providers/method_list.go index 24531cba00f..efff36573fc 100644 --- a/resource-manager/resources/2024-03-01/providers/method_list.go +++ b/resource-manager/resources/2024-03-01/providers/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProvidersClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ProvidersClient) List(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/providers/method_listattenantscope.go b/resource-manager/resources/2024-03-01/providers/method_listattenantscope.go index 856ba6ef266..a89644b87b7 100644 --- a/resource-manager/resources/2024-03-01/providers/method_listattenantscope.go +++ b/resource-manager/resources/2024-03-01/providers/method_listattenantscope.go @@ -50,6 +50,18 @@ func (o ListAtTenantScopeOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListAtTenantScopeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAtTenantScopeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAtTenantScope ... func (c ProvidersClient) ListAtTenantScope(ctx context.Context, options ListAtTenantScopeOperationOptions) (result ListAtTenantScopeOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProvidersClient) ListAtTenantScope(ctx context.Context, options ListAtTe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers", OptionsObject: options, + Pager: &ListAtTenantScopeCustomPager{}, + Path: "/providers", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/providers/method_providerpermissions.go b/resource-manager/resources/2024-03-01/providers/method_providerpermissions.go index a02fbdb7875..febf3c1a058 100644 --- a/resource-manager/resources/2024-03-01/providers/method_providerpermissions.go +++ b/resource-manager/resources/2024-03-01/providers/method_providerpermissions.go @@ -23,6 +23,18 @@ type ProviderPermissionsCompleteResult struct { Items []ProviderPermission } +type ProviderPermissionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProviderPermissionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProviderPermissions ... func (c ProvidersClient) ProviderPermissions(ctx context.Context, id SubscriptionProviderId) (result ProviderPermissionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProvidersClient) ProviderPermissions(ctx context.Context, id Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ProviderPermissionsCustomPager{}, Path: fmt.Sprintf("%s/providerPermissions", id.ID()), } diff --git a/resource-manager/resources/2024-03-01/providers/method_providerresourcetypeslist.go b/resource-manager/resources/2024-03-01/providers/method_providerresourcetypeslist.go index bea2c82cde6..b19a58feb1a 100644 --- a/resource-manager/resources/2024-03-01/providers/method_providerresourcetypeslist.go +++ b/resource-manager/resources/2024-03-01/providers/method_providerresourcetypeslist.go @@ -50,6 +50,18 @@ func (o ProviderResourceTypesListOperationOptions) ToQuery() *client.QueryParams return &out } +type ProviderResourceTypesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProviderResourceTypesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProviderResourceTypesList ... func (c ProvidersClient) ProviderResourceTypesList(ctx context.Context, id SubscriptionProviderId, options ProviderResourceTypesListOperationOptions) (result ProviderResourceTypesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProvidersClient) ProviderResourceTypesList(ctx context.Context, id Subsc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resourceTypes", id.ID()), OptionsObject: options, + Pager: &ProviderResourceTypesListCustomPager{}, + Path: fmt.Sprintf("%s/resourceTypes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/resourcegroups/method_delete.go b/resource-manager/resources/2024-03-01/resourcegroups/method_delete.go index c754aed65aa..e3e6402be67 100644 --- a/resource-manager/resources/2024-03-01/resourcegroups/method_delete.go +++ b/resource-manager/resources/2024-03-01/resourcegroups/method_delete.go @@ -57,8 +57,8 @@ func (c ResourceGroupsClient) Delete(ctx context.Context, id commonids.ResourceG http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/resourcegroups/method_list.go b/resource-manager/resources/2024-03-01/resourcegroups/method_list.go index 6f348d4ead3..43e82e042ce 100644 --- a/resource-manager/resources/2024-03-01/resourcegroups/method_list.go +++ b/resource-manager/resources/2024-03-01/resourcegroups/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourceGroupsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ResourceGroupsClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resourceGroups", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/resourceGroups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/resourcegroups/method_resourceslistbyresourcegroup.go b/resource-manager/resources/2024-03-01/resourcegroups/method_resourceslistbyresourcegroup.go index 8940edebd02..e739ddc1a69 100644 --- a/resource-manager/resources/2024-03-01/resourcegroups/method_resourceslistbyresourcegroup.go +++ b/resource-manager/resources/2024-03-01/resourcegroups/method_resourceslistbyresourcegroup.go @@ -59,6 +59,18 @@ func (o ResourcesListByResourceGroupOperationOptions) ToQuery() *client.QueryPar return &out } +type ResourcesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResourcesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ResourcesListByResourceGroup ... func (c ResourceGroupsClient) ResourcesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ResourcesListByResourceGroupOperationOptions) (result ResourcesListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ResourceGroupsClient) ResourcesListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resources", id.ID()), OptionsObject: options, + Pager: &ResourcesListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/resources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/resources/method_list.go b/resource-manager/resources/2024-03-01/resources/method_list.go index 2ea656bf23a..3a348699f1a 100644 --- a/resource-manager/resources/2024-03-01/resources/method_list.go +++ b/resource-manager/resources/2024-03-01/resources/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourcesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ResourcesClient) List(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/resources", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/resources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-03-01/tags/method_list.go b/resource-manager/resources/2024-03-01/tags/method_list.go index 04902c2bc50..d0f304b1f43 100644 --- a/resource-manager/resources/2024-03-01/tags/method_list.go +++ b/resource-manager/resources/2024-03-01/tags/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []TagDetails } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TagsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TagsClient) List(ctx context.Context, id commonids.SubscriptionId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/tagNames", id.ID()), } diff --git a/resource-manager/resources/2024-04-01/policyassignments/method_list.go b/resource-manager/resources/2024-04-01/policyassignments/method_list.go index 753ded28eef..78a0fc2e344 100644 --- a/resource-manager/resources/2024-04-01/policyassignments/method_list.go +++ b/resource-manager/resources/2024-04-01/policyassignments/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PolicyAssignmentsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PolicyAssignmentsClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-04-01/policyassignments/method_listformanagementgroup.go b/resource-manager/resources/2024-04-01/policyassignments/method_listformanagementgroup.go index ca282514c5b..b32ecc0edc4 100644 --- a/resource-manager/resources/2024-04-01/policyassignments/method_listformanagementgroup.go +++ b/resource-manager/resources/2024-04-01/policyassignments/method_listformanagementgroup.go @@ -55,6 +55,18 @@ func (o ListForManagementGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForManagementGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForManagementGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForManagementGroup ... func (c PolicyAssignmentsClient) ListForManagementGroup(ctx context.Context, id commonids.ManagementGroupId, options ListForManagementGroupOperationOptions) (result ListForManagementGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PolicyAssignmentsClient) ListForManagementGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), OptionsObject: options, + Pager: &ListForManagementGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-04-01/policyassignments/method_listforresource.go b/resource-manager/resources/2024-04-01/policyassignments/method_listforresource.go index eaf1d3e7f41..39c781d143a 100644 --- a/resource-manager/resources/2024-04-01/policyassignments/method_listforresource.go +++ b/resource-manager/resources/2024-04-01/policyassignments/method_listforresource.go @@ -55,6 +55,18 @@ func (o ListForResourceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResource ... func (c PolicyAssignmentsClient) ListForResource(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (result ListForResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PolicyAssignmentsClient) ListForResource(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), OptionsObject: options, + Pager: &ListForResourceCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/resources/2024-04-01/policyassignments/method_listforresourcegroup.go b/resource-manager/resources/2024-04-01/policyassignments/method_listforresourcegroup.go index e23d45c0d1b..963b981c132 100644 --- a/resource-manager/resources/2024-04-01/policyassignments/method_listforresourcegroup.go +++ b/resource-manager/resources/2024-04-01/policyassignments/method_listforresourcegroup.go @@ -55,6 +55,18 @@ func (o ListForResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListForResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListForResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListForResourceGroup ... func (c PolicyAssignmentsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (result ListForResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c PolicyAssignmentsClient) ListForResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), OptionsObject: options, + Pager: &ListForResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Authorization/policyAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/adminkeys/method_get.go b/resource-manager/search/2022-09-01/adminkeys/method_get.go index a0efda633e5..9ba02fb5b04 100644 --- a/resource-manager/search/2022-09-01/adminkeys/method_get.go +++ b/resource-manager/search/2022-09-01/adminkeys/method_get.go @@ -53,8 +53,8 @@ func (c AdminKeysClient) Get(ctx context.Context, id SearchServiceId, options Ge http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listAdminKeys", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listAdminKeys", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/adminkeys/method_regenerate.go b/resource-manager/search/2022-09-01/adminkeys/method_regenerate.go index 1c10f44f902..43b7d2531dc 100644 --- a/resource-manager/search/2022-09-01/adminkeys/method_regenerate.go +++ b/resource-manager/search/2022-09-01/adminkeys/method_regenerate.go @@ -53,8 +53,8 @@ func (c AdminKeysClient) Regenerate(ctx context.Context, id KeyKindId, options R http.StatusOK, }, HttpMethod: http.MethodPost, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/privateendpointconnections/method_delete.go b/resource-manager/search/2022-09-01/privateendpointconnections/method_delete.go index aeac5c21933..dd64b703720 100644 --- a/resource-manager/search/2022-09-01/privateendpointconnections/method_delete.go +++ b/resource-manager/search/2022-09-01/privateendpointconnections/method_delete.go @@ -53,8 +53,8 @@ func (c PrivateEndpointConnectionsClient) Delete(ctx context.Context, id Private http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/privateendpointconnections/method_get.go b/resource-manager/search/2022-09-01/privateendpointconnections/method_get.go index bcd19ee0d78..d181fe1e1ba 100644 --- a/resource-manager/search/2022-09-01/privateendpointconnections/method_get.go +++ b/resource-manager/search/2022-09-01/privateendpointconnections/method_get.go @@ -53,8 +53,8 @@ func (c PrivateEndpointConnectionsClient) Get(ctx context.Context, id PrivateEnd http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/privateendpointconnections/method_listbyservice.go b/resource-manager/search/2022-09-01/privateendpointconnections/method_listbyservice.go index c1ecaba09dd..c3ce1bd81b7 100644 --- a/resource-manager/search/2022-09-01/privateendpointconnections/method_listbyservice.go +++ b/resource-manager/search/2022-09-01/privateendpointconnections/method_listbyservice.go @@ -50,6 +50,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c PrivateEndpointConnectionsClient) ListByService(ctx context.Context, id SearchServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c PrivateEndpointConnectionsClient) ListByService(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/privateendpointconnections/method_update.go b/resource-manager/search/2022-09-01/privateendpointconnections/method_update.go index f7baec51e9f..fb1de1d7b86 100644 --- a/resource-manager/search/2022-09-01/privateendpointconnections/method_update.go +++ b/resource-manager/search/2022-09-01/privateendpointconnections/method_update.go @@ -53,8 +53,8 @@ func (c PrivateEndpointConnectionsClient) Update(ctx context.Context, id Private http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/privatelinkresources/method_listsupported.go b/resource-manager/search/2022-09-01/privatelinkresources/method_listsupported.go index 938196ab8b4..7d1c79c4aa8 100644 --- a/resource-manager/search/2022-09-01/privatelinkresources/method_listsupported.go +++ b/resource-manager/search/2022-09-01/privatelinkresources/method_listsupported.go @@ -53,8 +53,8 @@ func (c PrivateLinkResourcesClient) ListSupported(ctx context.Context, id Search http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/querykeys/method_create.go b/resource-manager/search/2022-09-01/querykeys/method_create.go index 574758115b3..ce1d4d37167 100644 --- a/resource-manager/search/2022-09-01/querykeys/method_create.go +++ b/resource-manager/search/2022-09-01/querykeys/method_create.go @@ -53,8 +53,8 @@ func (c QueryKeysClient) Create(ctx context.Context, id CreateQueryKeyId, option http.StatusOK, }, HttpMethod: http.MethodPost, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/querykeys/method_delete.go b/resource-manager/search/2022-09-01/querykeys/method_delete.go index e77c152db6d..99139d86e22 100644 --- a/resource-manager/search/2022-09-01/querykeys/method_delete.go +++ b/resource-manager/search/2022-09-01/querykeys/method_delete.go @@ -53,8 +53,8 @@ func (c QueryKeysClient) Delete(ctx context.Context, id DeleteQueryKeyId, option http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/querykeys/method_listbysearchservice.go b/resource-manager/search/2022-09-01/querykeys/method_listbysearchservice.go index d4692c9a444..190b78f9fd8 100644 --- a/resource-manager/search/2022-09-01/querykeys/method_listbysearchservice.go +++ b/resource-manager/search/2022-09-01/querykeys/method_listbysearchservice.go @@ -50,6 +50,18 @@ func (o ListBySearchServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySearchServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySearchServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySearchService ... func (c QueryKeysClient) ListBySearchService(ctx context.Context, id SearchServiceId, options ListBySearchServiceOperationOptions) (result ListBySearchServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c QueryKeysClient) ListBySearchService(ctx context.Context, id SearchServi http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listQueryKeys", id.ID()), OptionsObject: options, + Pager: &ListBySearchServiceCustomPager{}, + Path: fmt.Sprintf("%s/listQueryKeys", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/services/method_checknameavailability.go b/resource-manager/search/2022-09-01/services/method_checknameavailability.go index b338134653a..4c5fb7d1b14 100644 --- a/resource-manager/search/2022-09-01/services/method_checknameavailability.go +++ b/resource-manager/search/2022-09-01/services/method_checknameavailability.go @@ -54,8 +54,8 @@ func (c ServicesClient) CheckNameAvailability(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.Search/checkNameAvailability", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Search/checkNameAvailability", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/services/method_createorupdate.go b/resource-manager/search/2022-09-01/services/method_createorupdate.go index 6727bcf3733..f9dd8790aee 100644 --- a/resource-manager/search/2022-09-01/services/method_createorupdate.go +++ b/resource-manager/search/2022-09-01/services/method_createorupdate.go @@ -57,8 +57,8 @@ func (c ServicesClient) CreateOrUpdate(ctx context.Context, id SearchServiceId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/services/method_delete.go b/resource-manager/search/2022-09-01/services/method_delete.go index c3a8c10c76e..eb63a71a350 100644 --- a/resource-manager/search/2022-09-01/services/method_delete.go +++ b/resource-manager/search/2022-09-01/services/method_delete.go @@ -53,8 +53,8 @@ func (c ServicesClient) Delete(ctx context.Context, id SearchServiceId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/services/method_get.go b/resource-manager/search/2022-09-01/services/method_get.go index c5c82b2e587..2c4d1b4d214 100644 --- a/resource-manager/search/2022-09-01/services/method_get.go +++ b/resource-manager/search/2022-09-01/services/method_get.go @@ -53,8 +53,8 @@ func (c ServicesClient) Get(ctx context.Context, id SearchServiceId, options Get http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/services/method_listbyresourcegroup.go b/resource-manager/search/2022-09-01/services/method_listbyresourcegroup.go index e098a3a3d03..97b07d6c5af 100644 --- a/resource-manager/search/2022-09-01/services/method_listbyresourcegroup.go +++ b/resource-manager/search/2022-09-01/services/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServicesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ServicesClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Search/searchServices", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Search/searchServices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/services/method_listbysubscription.go b/resource-manager/search/2022-09-01/services/method_listbysubscription.go index 2ba6229294b..2285f7c8236 100644 --- a/resource-manager/search/2022-09-01/services/method_listbysubscription.go +++ b/resource-manager/search/2022-09-01/services/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ServicesClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Search/searchServices", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Search/searchServices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/services/method_update.go b/resource-manager/search/2022-09-01/services/method_update.go index 38c3fc8f98e..89dca2cf67b 100644 --- a/resource-manager/search/2022-09-01/services/method_update.go +++ b/resource-manager/search/2022-09-01/services/method_update.go @@ -53,8 +53,8 @@ func (c ServicesClient) Update(ctx context.Context, id SearchServiceId, input Se http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_createorupdate.go b/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_createorupdate.go index c8e88cb7c28..becf8dbf0f8 100644 --- a/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_createorupdate.go +++ b/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_createorupdate.go @@ -57,8 +57,8 @@ func (c SharedPrivateLinkResourcesClient) CreateOrUpdate(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_delete.go b/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_delete.go index 652d401b57b..2300c5dbc1d 100644 --- a/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_delete.go +++ b/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_delete.go @@ -56,8 +56,8 @@ func (c SharedPrivateLinkResourcesClient) Delete(ctx context.Context, id SharedP http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_get.go b/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_get.go index d844414f45e..e025dc81e80 100644 --- a/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_get.go +++ b/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_get.go @@ -53,8 +53,8 @@ func (c SharedPrivateLinkResourcesClient) Get(ctx context.Context, id SharedPriv http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_listbyservice.go b/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_listbyservice.go index e598656c389..61cd17de8d3 100644 --- a/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_listbyservice.go +++ b/resource-manager/search/2022-09-01/sharedprivatelinkresources/method_listbyservice.go @@ -50,6 +50,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c SharedPrivateLinkResourcesClient) ListByService(ctx context.Context, id SearchServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SharedPrivateLinkResourcesClient) ListByService(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sharedPrivateLinkResources", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/sharedPrivateLinkResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/adminkeys/method_get.go b/resource-manager/search/2023-11-01/adminkeys/method_get.go index a0efda633e5..9ba02fb5b04 100644 --- a/resource-manager/search/2023-11-01/adminkeys/method_get.go +++ b/resource-manager/search/2023-11-01/adminkeys/method_get.go @@ -53,8 +53,8 @@ func (c AdminKeysClient) Get(ctx context.Context, id SearchServiceId, options Ge http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listAdminKeys", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listAdminKeys", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/adminkeys/method_regenerate.go b/resource-manager/search/2023-11-01/adminkeys/method_regenerate.go index 1c10f44f902..43b7d2531dc 100644 --- a/resource-manager/search/2023-11-01/adminkeys/method_regenerate.go +++ b/resource-manager/search/2023-11-01/adminkeys/method_regenerate.go @@ -53,8 +53,8 @@ func (c AdminKeysClient) Regenerate(ctx context.Context, id KeyKindId, options R http.StatusOK, }, HttpMethod: http.MethodPost, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/privateendpointconnections/method_delete.go b/resource-manager/search/2023-11-01/privateendpointconnections/method_delete.go index aeac5c21933..dd64b703720 100644 --- a/resource-manager/search/2023-11-01/privateendpointconnections/method_delete.go +++ b/resource-manager/search/2023-11-01/privateendpointconnections/method_delete.go @@ -53,8 +53,8 @@ func (c PrivateEndpointConnectionsClient) Delete(ctx context.Context, id Private http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/privateendpointconnections/method_get.go b/resource-manager/search/2023-11-01/privateendpointconnections/method_get.go index bcd19ee0d78..d181fe1e1ba 100644 --- a/resource-manager/search/2023-11-01/privateendpointconnections/method_get.go +++ b/resource-manager/search/2023-11-01/privateendpointconnections/method_get.go @@ -53,8 +53,8 @@ func (c PrivateEndpointConnectionsClient) Get(ctx context.Context, id PrivateEnd http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/privateendpointconnections/method_listbyservice.go b/resource-manager/search/2023-11-01/privateendpointconnections/method_listbyservice.go index c1ecaba09dd..c3ce1bd81b7 100644 --- a/resource-manager/search/2023-11-01/privateendpointconnections/method_listbyservice.go +++ b/resource-manager/search/2023-11-01/privateendpointconnections/method_listbyservice.go @@ -50,6 +50,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c PrivateEndpointConnectionsClient) ListByService(ctx context.Context, id SearchServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c PrivateEndpointConnectionsClient) ListByService(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/privateendpointconnections/method_update.go b/resource-manager/search/2023-11-01/privateendpointconnections/method_update.go index f7baec51e9f..fb1de1d7b86 100644 --- a/resource-manager/search/2023-11-01/privateendpointconnections/method_update.go +++ b/resource-manager/search/2023-11-01/privateendpointconnections/method_update.go @@ -53,8 +53,8 @@ func (c PrivateEndpointConnectionsClient) Update(ctx context.Context, id Private http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/privatelinkresources/method_listsupported.go b/resource-manager/search/2023-11-01/privatelinkresources/method_listsupported.go index 938196ab8b4..7d1c79c4aa8 100644 --- a/resource-manager/search/2023-11-01/privatelinkresources/method_listsupported.go +++ b/resource-manager/search/2023-11-01/privatelinkresources/method_listsupported.go @@ -53,8 +53,8 @@ func (c PrivateLinkResourcesClient) ListSupported(ctx context.Context, id Search http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/querykeys/method_create.go b/resource-manager/search/2023-11-01/querykeys/method_create.go index 574758115b3..ce1d4d37167 100644 --- a/resource-manager/search/2023-11-01/querykeys/method_create.go +++ b/resource-manager/search/2023-11-01/querykeys/method_create.go @@ -53,8 +53,8 @@ func (c QueryKeysClient) Create(ctx context.Context, id CreateQueryKeyId, option http.StatusOK, }, HttpMethod: http.MethodPost, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/querykeys/method_delete.go b/resource-manager/search/2023-11-01/querykeys/method_delete.go index e77c152db6d..99139d86e22 100644 --- a/resource-manager/search/2023-11-01/querykeys/method_delete.go +++ b/resource-manager/search/2023-11-01/querykeys/method_delete.go @@ -53,8 +53,8 @@ func (c QueryKeysClient) Delete(ctx context.Context, id DeleteQueryKeyId, option http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/querykeys/method_listbysearchservice.go b/resource-manager/search/2023-11-01/querykeys/method_listbysearchservice.go index d4692c9a444..190b78f9fd8 100644 --- a/resource-manager/search/2023-11-01/querykeys/method_listbysearchservice.go +++ b/resource-manager/search/2023-11-01/querykeys/method_listbysearchservice.go @@ -50,6 +50,18 @@ func (o ListBySearchServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySearchServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySearchServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySearchService ... func (c QueryKeysClient) ListBySearchService(ctx context.Context, id SearchServiceId, options ListBySearchServiceOperationOptions) (result ListBySearchServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c QueryKeysClient) ListBySearchService(ctx context.Context, id SearchServi http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listQueryKeys", id.ID()), OptionsObject: options, + Pager: &ListBySearchServiceCustomPager{}, + Path: fmt.Sprintf("%s/listQueryKeys", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/services/method_checknameavailability.go b/resource-manager/search/2023-11-01/services/method_checknameavailability.go index b338134653a..4c5fb7d1b14 100644 --- a/resource-manager/search/2023-11-01/services/method_checknameavailability.go +++ b/resource-manager/search/2023-11-01/services/method_checknameavailability.go @@ -54,8 +54,8 @@ func (c ServicesClient) CheckNameAvailability(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/providers/Microsoft.Search/checkNameAvailability", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Search/checkNameAvailability", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/services/method_createorupdate.go b/resource-manager/search/2023-11-01/services/method_createorupdate.go index 6727bcf3733..f9dd8790aee 100644 --- a/resource-manager/search/2023-11-01/services/method_createorupdate.go +++ b/resource-manager/search/2023-11-01/services/method_createorupdate.go @@ -57,8 +57,8 @@ func (c ServicesClient) CreateOrUpdate(ctx context.Context, id SearchServiceId, http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/services/method_delete.go b/resource-manager/search/2023-11-01/services/method_delete.go index c3a8c10c76e..eb63a71a350 100644 --- a/resource-manager/search/2023-11-01/services/method_delete.go +++ b/resource-manager/search/2023-11-01/services/method_delete.go @@ -53,8 +53,8 @@ func (c ServicesClient) Delete(ctx context.Context, id SearchServiceId, options http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/services/method_get.go b/resource-manager/search/2023-11-01/services/method_get.go index c5c82b2e587..2c4d1b4d214 100644 --- a/resource-manager/search/2023-11-01/services/method_get.go +++ b/resource-manager/search/2023-11-01/services/method_get.go @@ -53,8 +53,8 @@ func (c ServicesClient) Get(ctx context.Context, id SearchServiceId, options Get http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/services/method_listbyresourcegroup.go b/resource-manager/search/2023-11-01/services/method_listbyresourcegroup.go index e098a3a3d03..97b07d6c5af 100644 --- a/resource-manager/search/2023-11-01/services/method_listbyresourcegroup.go +++ b/resource-manager/search/2023-11-01/services/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServicesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ServicesClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Search/searchServices", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Search/searchServices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/services/method_listbysubscription.go b/resource-manager/search/2023-11-01/services/method_listbysubscription.go index 2ba6229294b..2285f7c8236 100644 --- a/resource-manager/search/2023-11-01/services/method_listbysubscription.go +++ b/resource-manager/search/2023-11-01/services/method_listbysubscription.go @@ -51,6 +51,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ServicesClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Search/searchServices", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Search/searchServices", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/services/method_update.go b/resource-manager/search/2023-11-01/services/method_update.go index 38c3fc8f98e..89dca2cf67b 100644 --- a/resource-manager/search/2023-11-01/services/method_update.go +++ b/resource-manager/search/2023-11-01/services/method_update.go @@ -53,8 +53,8 @@ func (c ServicesClient) Update(ctx context.Context, id SearchServiceId, input Se http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_createorupdate.go b/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_createorupdate.go index c8e88cb7c28..becf8dbf0f8 100644 --- a/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_createorupdate.go +++ b/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_createorupdate.go @@ -57,8 +57,8 @@ func (c SharedPrivateLinkResourcesClient) CreateOrUpdate(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_delete.go b/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_delete.go index 652d401b57b..2300c5dbc1d 100644 --- a/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_delete.go +++ b/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_delete.go @@ -56,8 +56,8 @@ func (c SharedPrivateLinkResourcesClient) Delete(ctx context.Context, id SharedP http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_get.go b/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_get.go index d844414f45e..e025dc81e80 100644 --- a/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_get.go +++ b/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_get.go @@ -53,8 +53,8 @@ func (c SharedPrivateLinkResourcesClient) Get(ctx context.Context, id SharedPriv http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_listbyservice.go b/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_listbyservice.go index e598656c389..61cd17de8d3 100644 --- a/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_listbyservice.go +++ b/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_listbyservice.go @@ -50,6 +50,18 @@ func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByService ... func (c SharedPrivateLinkResourcesClient) ListByService(ctx context.Context, id SearchServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SharedPrivateLinkResourcesClient) ListByService(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sharedPrivateLinkResources", id.ID()), OptionsObject: options, + Pager: &ListByServiceCustomPager{}, + Path: fmt.Sprintf("%s/sharedPrivateLinkResources", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/usages/method_listbysubscription.go b/resource-manager/search/2023-11-01/usages/method_listbysubscription.go index d7ffbc7e641..11d993cac8c 100644 --- a/resource-manager/search/2023-11-01/usages/method_listbysubscription.go +++ b/resource-manager/search/2023-11-01/usages/method_listbysubscription.go @@ -50,6 +50,18 @@ func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c UsagesClient) ListBySubscription(ctx context.Context, id LocationId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c UsagesClient) ListBySubscription(ctx context.Context, id LocationId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/search/2023-11-01/usages/method_usagebysubscriptionsku.go b/resource-manager/search/2023-11-01/usages/method_usagebysubscriptionsku.go index 64a2457c737..8c2647a4dff 100644 --- a/resource-manager/search/2023-11-01/usages/method_usagebysubscriptionsku.go +++ b/resource-manager/search/2023-11-01/usages/method_usagebysubscriptionsku.go @@ -53,8 +53,8 @@ func (c UsagesClient) UsageBySubscriptionSku(ctx context.Context, id UsageId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/security/2019-01-01-preview/alertssuppressionrules/method_list.go b/resource-manager/security/2019-01-01-preview/alertssuppressionrules/method_list.go index 894c0c97d9b..9fab431b1a9 100644 --- a/resource-manager/security/2019-01-01-preview/alertssuppressionrules/method_list.go +++ b/resource-manager/security/2019-01-01-preview/alertssuppressionrules/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertsSuppressionRulesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AlertsSuppressionRulesClient) List(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Security/alertsSuppressionRules", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Security/alertsSuppressionRules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/security/2019-01-01-preview/assessments/method_get.go b/resource-manager/security/2019-01-01-preview/assessments/method_get.go index cd7db0da7e4..1c120631bd5 100644 --- a/resource-manager/security/2019-01-01-preview/assessments/method_get.go +++ b/resource-manager/security/2019-01-01-preview/assessments/method_get.go @@ -53,8 +53,8 @@ func (c AssessmentsClient) Get(ctx context.Context, id ScopedAssessmentId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/security/2019-01-01-preview/assessments/method_list.go b/resource-manager/security/2019-01-01-preview/assessments/method_list.go index 4d0b43fdeaf..a590098c3b9 100644 --- a/resource-manager/security/2019-01-01-preview/assessments/method_list.go +++ b/resource-manager/security/2019-01-01-preview/assessments/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecurityAssessment } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AssessmentsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AssessmentsClient) List(ctx context.Context, id commonids.ScopeId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/assessments", id.ID()), } diff --git a/resource-manager/security/2019-01-01-preview/assessmentsmetadata/method_list.go b/resource-manager/security/2019-01-01-preview/assessmentsmetadata/method_list.go index b548e5c39e1..1c2d3fad464 100644 --- a/resource-manager/security/2019-01-01-preview/assessmentsmetadata/method_list.go +++ b/resource-manager/security/2019-01-01-preview/assessmentsmetadata/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SecurityAssessmentMetadata } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AssessmentsMetadataClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AssessmentsMetadataClient) List(ctx context.Context) (result ListOperati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.Security/assessmentMetadata", } diff --git a/resource-manager/security/2019-01-01-preview/assessmentsmetadata/method_subscriptionlist.go b/resource-manager/security/2019-01-01-preview/assessmentsmetadata/method_subscriptionlist.go index 93306ea9d2a..d8283a39f8d 100644 --- a/resource-manager/security/2019-01-01-preview/assessmentsmetadata/method_subscriptionlist.go +++ b/resource-manager/security/2019-01-01-preview/assessmentsmetadata/method_subscriptionlist.go @@ -24,6 +24,18 @@ type SubscriptionListCompleteResult struct { Items []SecurityAssessmentMetadata } +type SubscriptionListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SubscriptionListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SubscriptionList ... func (c AssessmentsMetadataClient) SubscriptionList(ctx context.Context, id commonids.SubscriptionId) (result SubscriptionListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AssessmentsMetadataClient) SubscriptionList(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SubscriptionListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/assessmentMetadata", id.ID()), } diff --git a/resource-manager/security/2019-01-01-preview/automations/method_list.go b/resource-manager/security/2019-01-01-preview/automations/method_list.go index 20e0011b39a..05d9d5217fb 100644 --- a/resource-manager/security/2019-01-01-preview/automations/method_list.go +++ b/resource-manager/security/2019-01-01-preview/automations/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Automation } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AutomationsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutomationsClient) List(ctx context.Context, id commonids.SubscriptionId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/automations", id.ID()), } diff --git a/resource-manager/security/2019-01-01-preview/automations/method_listbyresourcegroup.go b/resource-manager/security/2019-01-01-preview/automations/method_listbyresourcegroup.go index 06c34f730eb..221bb4acb54 100644 --- a/resource-manager/security/2019-01-01-preview/automations/method_listbyresourcegroup.go +++ b/resource-manager/security/2019-01-01-preview/automations/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Automation } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AutomationsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AutomationsClient) ListByResourceGroup(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/automations", id.ID()), } diff --git a/resource-manager/security/2019-01-01-preview/regulatorycompliance/method_assessmentslist.go b/resource-manager/security/2019-01-01-preview/regulatorycompliance/method_assessmentslist.go index 921981a82e5..f12b405de59 100644 --- a/resource-manager/security/2019-01-01-preview/regulatorycompliance/method_assessmentslist.go +++ b/resource-manager/security/2019-01-01-preview/regulatorycompliance/method_assessmentslist.go @@ -50,6 +50,18 @@ func (o AssessmentsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type AssessmentsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AssessmentsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AssessmentsList ... func (c RegulatoryComplianceClient) AssessmentsList(ctx context.Context, id RegulatoryComplianceControlId, options AssessmentsListOperationOptions) (result AssessmentsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c RegulatoryComplianceClient) AssessmentsList(ctx context.Context, id Regu http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/regulatoryComplianceAssessments", id.ID()), OptionsObject: options, + Pager: &AssessmentsListCustomPager{}, + Path: fmt.Sprintf("%s/regulatoryComplianceAssessments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/security/2019-01-01-preview/regulatorycompliance/method_controlslist.go b/resource-manager/security/2019-01-01-preview/regulatorycompliance/method_controlslist.go index cbb2446cd96..49762bd44a2 100644 --- a/resource-manager/security/2019-01-01-preview/regulatorycompliance/method_controlslist.go +++ b/resource-manager/security/2019-01-01-preview/regulatorycompliance/method_controlslist.go @@ -50,6 +50,18 @@ func (o ControlsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ControlsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ControlsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ControlsList ... func (c RegulatoryComplianceClient) ControlsList(ctx context.Context, id RegulatoryComplianceStandardId, options ControlsListOperationOptions) (result ControlsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c RegulatoryComplianceClient) ControlsList(ctx context.Context, id Regulat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/regulatoryComplianceControls", id.ID()), OptionsObject: options, + Pager: &ControlsListCustomPager{}, + Path: fmt.Sprintf("%s/regulatoryComplianceControls", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/security/2019-01-01-preview/regulatorycompliance/method_standardslist.go b/resource-manager/security/2019-01-01-preview/regulatorycompliance/method_standardslist.go index 59bab53e0fe..a9d7128e3f5 100644 --- a/resource-manager/security/2019-01-01-preview/regulatorycompliance/method_standardslist.go +++ b/resource-manager/security/2019-01-01-preview/regulatorycompliance/method_standardslist.go @@ -51,6 +51,18 @@ func (o StandardsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type StandardsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *StandardsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StandardsList ... func (c RegulatoryComplianceClient) StandardsList(ctx context.Context, id commonids.SubscriptionId, options StandardsListOperationOptions) (result StandardsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c RegulatoryComplianceClient) StandardsList(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Security/regulatoryComplianceStandards", id.ID()), OptionsObject: options, + Pager: &StandardsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Security/regulatoryComplianceStandards", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/security/2019-01-01-preview/subassessments/method_list.go b/resource-manager/security/2019-01-01-preview/subassessments/method_list.go index b1235f2539a..706aba7d118 100644 --- a/resource-manager/security/2019-01-01-preview/subassessments/method_list.go +++ b/resource-manager/security/2019-01-01-preview/subassessments/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SecuritySubAssessment } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SubAssessmentsClient) List(ctx context.Context, id ScopedAssessmentId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SubAssessmentsClient) List(ctx context.Context, id ScopedAssessmentId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/subAssessments", id.ID()), } diff --git a/resource-manager/security/2019-01-01-preview/subassessments/method_listall.go b/resource-manager/security/2019-01-01-preview/subassessments/method_listall.go index 199f45942da..66899dc4045 100644 --- a/resource-manager/security/2019-01-01-preview/subassessments/method_listall.go +++ b/resource-manager/security/2019-01-01-preview/subassessments/method_listall.go @@ -24,6 +24,18 @@ type ListAllCompleteResult struct { Items []SecuritySubAssessment } +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAll ... func (c SubAssessmentsClient) ListAll(ctx context.Context, id commonids.ScopeId) (result ListAllOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SubAssessmentsClient) ListAll(ctx context.Context, id commonids.ScopeId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/subAssessments", id.ID()), } diff --git a/resource-manager/security/2020-01-01/adaptivenetworkhardenings/method_listbyextendedresource.go b/resource-manager/security/2020-01-01/adaptivenetworkhardenings/method_listbyextendedresource.go index f25a0e93130..05bbf5d676d 100644 --- a/resource-manager/security/2020-01-01/adaptivenetworkhardenings/method_listbyextendedresource.go +++ b/resource-manager/security/2020-01-01/adaptivenetworkhardenings/method_listbyextendedresource.go @@ -24,6 +24,18 @@ type ListByExtendedResourceCompleteResult struct { Items []AdaptiveNetworkHardening } +type ListByExtendedResourceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByExtendedResourceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByExtendedResource ... func (c AdaptiveNetworkHardeningsClient) ListByExtendedResource(ctx context.Context, id commonids.ScopeId) (result ListByExtendedResourceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AdaptiveNetworkHardeningsClient) ListByExtendedResource(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByExtendedResourceCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/adaptiveNetworkHardenings", id.ID()), } diff --git a/resource-manager/security/2020-01-01/alerts/method_list.go b/resource-manager/security/2020-01-01/alerts/method_list.go index 041e9e20a9c..d07d2f32d20 100644 --- a/resource-manager/security/2020-01-01/alerts/method_list.go +++ b/resource-manager/security/2020-01-01/alerts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Alert } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertsClient) List(ctx context.Context, id commonids.SubscriptionId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/alerts", id.ID()), } diff --git a/resource-manager/security/2020-01-01/alerts/method_listbyresourcegroup.go b/resource-manager/security/2020-01-01/alerts/method_listbyresourcegroup.go index f9e9822da9e..00f28146ed1 100644 --- a/resource-manager/security/2020-01-01/alerts/method_listbyresourcegroup.go +++ b/resource-manager/security/2020-01-01/alerts/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Alert } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AlertsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertsClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/alerts", id.ID()), } diff --git a/resource-manager/security/2020-01-01/alerts/method_listresourcegrouplevelalertsbyregion.go b/resource-manager/security/2020-01-01/alerts/method_listresourcegrouplevelalertsbyregion.go index ab111372713..d0aa646ecb9 100644 --- a/resource-manager/security/2020-01-01/alerts/method_listresourcegrouplevelalertsbyregion.go +++ b/resource-manager/security/2020-01-01/alerts/method_listresourcegrouplevelalertsbyregion.go @@ -23,6 +23,18 @@ type ListResourceGroupLevelAlertsByRegionCompleteResult struct { Items []Alert } +type ListResourceGroupLevelAlertsByRegionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListResourceGroupLevelAlertsByRegionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListResourceGroupLevelAlertsByRegion ... func (c AlertsClient) ListResourceGroupLevelAlertsByRegion(ctx context.Context, id ProviderLocationId) (result ListResourceGroupLevelAlertsByRegionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AlertsClient) ListResourceGroupLevelAlertsByRegion(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListResourceGroupLevelAlertsByRegionCustomPager{}, Path: fmt.Sprintf("%s/alerts", id.ID()), } diff --git a/resource-manager/security/2020-01-01/alerts/method_listsubscriptionlevelalertsbyregion.go b/resource-manager/security/2020-01-01/alerts/method_listsubscriptionlevelalertsbyregion.go index 960d44896e3..c726cf3cca1 100644 --- a/resource-manager/security/2020-01-01/alerts/method_listsubscriptionlevelalertsbyregion.go +++ b/resource-manager/security/2020-01-01/alerts/method_listsubscriptionlevelalertsbyregion.go @@ -23,6 +23,18 @@ type ListSubscriptionLevelAlertsByRegionCompleteResult struct { Items []Alert } +type ListSubscriptionLevelAlertsByRegionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSubscriptionLevelAlertsByRegionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSubscriptionLevelAlertsByRegion ... func (c AlertsClient) ListSubscriptionLevelAlertsByRegion(ctx context.Context, id LocationId) (result ListSubscriptionLevelAlertsByRegionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AlertsClient) ListSubscriptionLevelAlertsByRegion(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSubscriptionLevelAlertsByRegionCustomPager{}, Path: fmt.Sprintf("%s/alerts", id.ID()), } diff --git a/resource-manager/security/2020-01-01/allowedconnections/method_list.go b/resource-manager/security/2020-01-01/allowedconnections/method_list.go index 5aefc690cb0..b6ad0dcd12f 100644 --- a/resource-manager/security/2020-01-01/allowedconnections/method_list.go +++ b/resource-manager/security/2020-01-01/allowedconnections/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AllowedConnectionsResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AllowedConnectionsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AllowedConnectionsClient) List(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/allowedConnections", id.ID()), } diff --git a/resource-manager/security/2020-01-01/allowedconnections/method_listbyhomeregion.go b/resource-manager/security/2020-01-01/allowedconnections/method_listbyhomeregion.go index 52e4d7b035a..1eb1c89dc47 100644 --- a/resource-manager/security/2020-01-01/allowedconnections/method_listbyhomeregion.go +++ b/resource-manager/security/2020-01-01/allowedconnections/method_listbyhomeregion.go @@ -23,6 +23,18 @@ type ListByHomeRegionCompleteResult struct { Items []AllowedConnectionsResource } +type ListByHomeRegionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHomeRegionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHomeRegion ... func (c AllowedConnectionsClient) ListByHomeRegion(ctx context.Context, id LocationId) (result ListByHomeRegionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AllowedConnectionsClient) ListByHomeRegion(ctx context.Context, id Locat http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByHomeRegionCustomPager{}, Path: fmt.Sprintf("%s/allowedConnections", id.ID()), } diff --git a/resource-manager/security/2020-01-01/applicationwhitelistings/method_adaptiveapplicationcontrolslist.go b/resource-manager/security/2020-01-01/applicationwhitelistings/method_adaptiveapplicationcontrolslist.go index d30a4ca58e3..53996e6e73b 100644 --- a/resource-manager/security/2020-01-01/applicationwhitelistings/method_adaptiveapplicationcontrolslist.go +++ b/resource-manager/security/2020-01-01/applicationwhitelistings/method_adaptiveapplicationcontrolslist.go @@ -58,8 +58,8 @@ func (c ApplicationWhitelistingsClient) AdaptiveApplicationControlsList(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Security/applicationWhitelistings", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Security/applicationWhitelistings", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/security/2020-01-01/assessments/method_get.go b/resource-manager/security/2020-01-01/assessments/method_get.go index cd7db0da7e4..1c120631bd5 100644 --- a/resource-manager/security/2020-01-01/assessments/method_get.go +++ b/resource-manager/security/2020-01-01/assessments/method_get.go @@ -53,8 +53,8 @@ func (c AssessmentsClient) Get(ctx context.Context, id ScopedAssessmentId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/security/2020-01-01/assessments/method_list.go b/resource-manager/security/2020-01-01/assessments/method_list.go index 4d0b43fdeaf..a590098c3b9 100644 --- a/resource-manager/security/2020-01-01/assessments/method_list.go +++ b/resource-manager/security/2020-01-01/assessments/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecurityAssessment } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AssessmentsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AssessmentsClient) List(ctx context.Context, id commonids.ScopeId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/assessments", id.ID()), } diff --git a/resource-manager/security/2020-01-01/assessmentsmetadata/method_list.go b/resource-manager/security/2020-01-01/assessmentsmetadata/method_list.go index b548e5c39e1..1c2d3fad464 100644 --- a/resource-manager/security/2020-01-01/assessmentsmetadata/method_list.go +++ b/resource-manager/security/2020-01-01/assessmentsmetadata/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SecurityAssessmentMetadata } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AssessmentsMetadataClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AssessmentsMetadataClient) List(ctx context.Context) (result ListOperati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.Security/assessmentMetadata", } diff --git a/resource-manager/security/2020-01-01/assessmentsmetadata/method_listbysubscription.go b/resource-manager/security/2020-01-01/assessmentsmetadata/method_listbysubscription.go index 9f9b5f7ca75..661f9088d52 100644 --- a/resource-manager/security/2020-01-01/assessmentsmetadata/method_listbysubscription.go +++ b/resource-manager/security/2020-01-01/assessmentsmetadata/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SecurityAssessmentMetadata } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AssessmentsMetadataClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AssessmentsMetadataClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/assessmentMetadata", id.ID()), } diff --git a/resource-manager/security/2020-01-01/discoveredsecuritysolutions/method_list.go b/resource-manager/security/2020-01-01/discoveredsecuritysolutions/method_list.go index f7717054011..bc82ac1909c 100644 --- a/resource-manager/security/2020-01-01/discoveredsecuritysolutions/method_list.go +++ b/resource-manager/security/2020-01-01/discoveredsecuritysolutions/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DiscoveredSecuritySolution } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DiscoveredSecuritySolutionsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiscoveredSecuritySolutionsClient) List(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/discoveredSecuritySolutions", id.ID()), } diff --git a/resource-manager/security/2020-01-01/discoveredsecuritysolutions/method_listbyhomeregion.go b/resource-manager/security/2020-01-01/discoveredsecuritysolutions/method_listbyhomeregion.go index 4fc642bc0d0..47d9a736303 100644 --- a/resource-manager/security/2020-01-01/discoveredsecuritysolutions/method_listbyhomeregion.go +++ b/resource-manager/security/2020-01-01/discoveredsecuritysolutions/method_listbyhomeregion.go @@ -23,6 +23,18 @@ type ListByHomeRegionCompleteResult struct { Items []DiscoveredSecuritySolution } +type ListByHomeRegionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHomeRegionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHomeRegion ... func (c DiscoveredSecuritySolutionsClient) ListByHomeRegion(ctx context.Context, id LocationId) (result ListByHomeRegionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiscoveredSecuritySolutionsClient) ListByHomeRegion(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByHomeRegionCustomPager{}, Path: fmt.Sprintf("%s/discoveredSecuritySolutions", id.ID()), } diff --git a/resource-manager/security/2020-01-01/externalsecuritysolutions/method_list.go b/resource-manager/security/2020-01-01/externalsecuritysolutions/method_list.go index 060fda54746..f412f7b98b6 100644 --- a/resource-manager/security/2020-01-01/externalsecuritysolutions/method_list.go +++ b/resource-manager/security/2020-01-01/externalsecuritysolutions/method_list.go @@ -25,6 +25,18 @@ type ListCompleteResult struct { Items []ExternalSecuritySolution } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ExternalSecuritySolutionsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -33,6 +45,7 @@ func (c ExternalSecuritySolutionsClient) List(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/externalSecuritySolutions", id.ID()), } diff --git a/resource-manager/security/2020-01-01/externalsecuritysolutions/method_listbyhomeregion.go b/resource-manager/security/2020-01-01/externalsecuritysolutions/method_listbyhomeregion.go index 7054bc48ba3..4ea085b50dc 100644 --- a/resource-manager/security/2020-01-01/externalsecuritysolutions/method_listbyhomeregion.go +++ b/resource-manager/security/2020-01-01/externalsecuritysolutions/method_listbyhomeregion.go @@ -24,6 +24,18 @@ type ListByHomeRegionCompleteResult struct { Items []ExternalSecuritySolution } +type ListByHomeRegionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHomeRegionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHomeRegion ... func (c ExternalSecuritySolutionsClient) ListByHomeRegion(ctx context.Context, id LocationId) (result ListByHomeRegionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ExternalSecuritySolutionsClient) ListByHomeRegion(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByHomeRegionCustomPager{}, Path: fmt.Sprintf("%s/externalSecuritySolutions", id.ID()), } diff --git a/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_list.go b/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_list.go index 8d17ff4b0ed..18ed669924a 100644 --- a/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_list.go +++ b/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []JitNetworkAccessPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c JitNetworkAccessPoliciesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c JitNetworkAccessPoliciesClient) List(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/jitNetworkAccessPolicies", id.ID()), } diff --git a/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_listbyregion.go b/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_listbyregion.go index 12d5f617d5a..fb711042c2e 100644 --- a/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_listbyregion.go +++ b/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_listbyregion.go @@ -23,6 +23,18 @@ type ListByRegionCompleteResult struct { Items []JitNetworkAccessPolicy } +type ListByRegionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByRegionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByRegion ... func (c JitNetworkAccessPoliciesClient) ListByRegion(ctx context.Context, id LocationId) (result ListByRegionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JitNetworkAccessPoliciesClient) ListByRegion(ctx context.Context, id Loc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByRegionCustomPager{}, Path: fmt.Sprintf("%s/jitNetworkAccessPolicies", id.ID()), } diff --git a/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_listbyresourcegroup.go b/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_listbyresourcegroup.go index 438bb5c5e1a..1b816d83b95 100644 --- a/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_listbyresourcegroup.go +++ b/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []JitNetworkAccessPolicy } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c JitNetworkAccessPoliciesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c JitNetworkAccessPoliciesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/jitNetworkAccessPolicies", id.ID()), } diff --git a/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_listbyresourcegroupandregion.go b/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_listbyresourcegroupandregion.go index 28eecae6c49..2fc5d6a536c 100644 --- a/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_listbyresourcegroupandregion.go +++ b/resource-manager/security/2020-01-01/jitnetworkaccesspolicies/method_listbyresourcegroupandregion.go @@ -23,6 +23,18 @@ type ListByResourceGroupAndRegionCompleteResult struct { Items []JitNetworkAccessPolicy } +type ListByResourceGroupAndRegionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupAndRegionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroupAndRegion ... func (c JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion(ctx context.Context, id ProviderLocationId) (result ListByResourceGroupAndRegionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JitNetworkAccessPoliciesClient) ListByResourceGroupAndRegion(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupAndRegionCustomPager{}, Path: fmt.Sprintf("%s/jitNetworkAccessPolicies", id.ID()), } diff --git a/resource-manager/security/2020-01-01/securescore/method_controlslistbysecurescore.go b/resource-manager/security/2020-01-01/securescore/method_controlslistbysecurescore.go index e94141a626e..d3e540c73bb 100644 --- a/resource-manager/security/2020-01-01/securescore/method_controlslistbysecurescore.go +++ b/resource-manager/security/2020-01-01/securescore/method_controlslistbysecurescore.go @@ -50,6 +50,18 @@ func (o ControlsListBySecureScoreOperationOptions) ToQuery() *client.QueryParams return &out } +type ControlsListBySecureScoreCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ControlsListBySecureScoreCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ControlsListBySecureScore ... func (c SecureScoreClient) ControlsListBySecureScore(ctx context.Context, id SecureScoreId, options ControlsListBySecureScoreOperationOptions) (result ControlsListBySecureScoreOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SecureScoreClient) ControlsListBySecureScore(ctx context.Context, id Sec http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/secureScoreControls", id.ID()), OptionsObject: options, + Pager: &ControlsListBySecureScoreCustomPager{}, + Path: fmt.Sprintf("%s/secureScoreControls", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/security/2020-01-01/securescore/method_list.go b/resource-manager/security/2020-01-01/securescore/method_list.go index 58be0d477ab..926d8b59dcb 100644 --- a/resource-manager/security/2020-01-01/securescore/method_list.go +++ b/resource-manager/security/2020-01-01/securescore/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecureScoreItem } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecureScoreClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecureScoreClient) List(ctx context.Context, id commonids.SubscriptionId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/secureScores", id.ID()), } diff --git a/resource-manager/security/2020-01-01/securescorecontroldefinitions/method_list.go b/resource-manager/security/2020-01-01/securescorecontroldefinitions/method_list.go index e122954be18..78e27668b99 100644 --- a/resource-manager/security/2020-01-01/securescorecontroldefinitions/method_list.go +++ b/resource-manager/security/2020-01-01/securescorecontroldefinitions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SecureScoreControlDefinitionItem } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecureScoreControlDefinitionsClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SecureScoreControlDefinitionsClient) List(ctx context.Context) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.Security/secureScoreControlDefinitions", } diff --git a/resource-manager/security/2020-01-01/securescorecontroldefinitions/method_listbysubscription.go b/resource-manager/security/2020-01-01/securescorecontroldefinitions/method_listbysubscription.go index 716e54d1c63..9b83ef4a3e0 100644 --- a/resource-manager/security/2020-01-01/securescorecontroldefinitions/method_listbysubscription.go +++ b/resource-manager/security/2020-01-01/securescorecontroldefinitions/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SecureScoreControlDefinitionItem } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SecureScoreControlDefinitionsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecureScoreControlDefinitionsClient) ListBySubscription(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/secureScoreControlDefinitions", id.ID()), } diff --git a/resource-manager/security/2020-01-01/securescorecontrols/method_list.go b/resource-manager/security/2020-01-01/securescorecontrols/method_list.go index 51d55bd22ff..6614912c60c 100644 --- a/resource-manager/security/2020-01-01/securescorecontrols/method_list.go +++ b/resource-manager/security/2020-01-01/securescorecontrols/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecureScoreControlsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SecureScoreControlsClient) List(ctx context.Context, id commonids.Subscr http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Security/secureScoreControls", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Security/secureScoreControls", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/security/2020-01-01/securitysolutions/method_list.go b/resource-manager/security/2020-01-01/securitysolutions/method_list.go index 0dae68c7ebf..b7a971a1499 100644 --- a/resource-manager/security/2020-01-01/securitysolutions/method_list.go +++ b/resource-manager/security/2020-01-01/securitysolutions/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecuritySolution } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecuritySolutionsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecuritySolutionsClient) List(ctx context.Context, id commonids.Subscrip http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/securitySolutions", id.ID()), } diff --git a/resource-manager/security/2020-01-01/topology/method_list.go b/resource-manager/security/2020-01-01/topology/method_list.go index 9e410c85be8..cf2cf421991 100644 --- a/resource-manager/security/2020-01-01/topology/method_list.go +++ b/resource-manager/security/2020-01-01/topology/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []TopologyResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TopologyClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TopologyClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/topologies", id.ID()), } diff --git a/resource-manager/security/2020-01-01/topology/method_listbyhomeregion.go b/resource-manager/security/2020-01-01/topology/method_listbyhomeregion.go index 8f70b1159a1..51ec4e85b0d 100644 --- a/resource-manager/security/2020-01-01/topology/method_listbyhomeregion.go +++ b/resource-manager/security/2020-01-01/topology/method_listbyhomeregion.go @@ -23,6 +23,18 @@ type ListByHomeRegionCompleteResult struct { Items []TopologyResource } +type ListByHomeRegionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByHomeRegionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByHomeRegion ... func (c TopologyClient) ListByHomeRegion(ctx context.Context, id LocationId) (result ListByHomeRegionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TopologyClient) ListByHomeRegion(ctx context.Context, id LocationId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByHomeRegionCustomPager{}, Path: fmt.Sprintf("%s/topologies", id.ID()), } diff --git a/resource-manager/security/2021-06-01/assessments/method_get.go b/resource-manager/security/2021-06-01/assessments/method_get.go index 249c6d92ae2..ffade3030f9 100644 --- a/resource-manager/security/2021-06-01/assessments/method_get.go +++ b/resource-manager/security/2021-06-01/assessments/method_get.go @@ -53,8 +53,8 @@ func (c AssessmentsClient) Get(ctx context.Context, id ScopedAssessmentId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/security/2021-06-01/assessments/method_list.go b/resource-manager/security/2021-06-01/assessments/method_list.go index cfc4ed30974..3d0d2856c6c 100644 --- a/resource-manager/security/2021-06-01/assessments/method_list.go +++ b/resource-manager/security/2021-06-01/assessments/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecurityAssessmentResponse } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AssessmentsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AssessmentsClient) List(ctx context.Context, id commonids.ScopeId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/assessments", id.ID()), } diff --git a/resource-manager/security/2021-06-01/assessmentsmetadata/method_list.go b/resource-manager/security/2021-06-01/assessmentsmetadata/method_list.go index 1bca218f029..458e7a90e64 100644 --- a/resource-manager/security/2021-06-01/assessmentsmetadata/method_list.go +++ b/resource-manager/security/2021-06-01/assessmentsmetadata/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SecurityAssessmentMetadataResponse } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AssessmentsMetadataClient) List(ctx context.Context) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AssessmentsMetadataClient) List(ctx context.Context) (result ListOperati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: "/providers/Microsoft.Security/assessmentMetadata", } diff --git a/resource-manager/security/2021-06-01/assessmentsmetadata/method_listbysubscription.go b/resource-manager/security/2021-06-01/assessmentsmetadata/method_listbysubscription.go index 0f7076b5775..d2b59b2650d 100644 --- a/resource-manager/security/2021-06-01/assessmentsmetadata/method_listbysubscription.go +++ b/resource-manager/security/2021-06-01/assessmentsmetadata/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SecurityAssessmentMetadataResponse } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AssessmentsMetadataClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AssessmentsMetadataClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/assessmentMetadata", id.ID()), } diff --git a/resource-manager/security/2021-06-01/settings/method_list.go b/resource-manager/security/2021-06-01/settings/method_list.go index 15303692136..fd56235e0d6 100644 --- a/resource-manager/security/2021-06-01/settings/method_list.go +++ b/resource-manager/security/2021-06-01/settings/method_list.go @@ -25,6 +25,18 @@ type ListCompleteResult struct { Items []Setting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SettingsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -33,6 +45,7 @@ func (c SettingsClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/settings", id.ID()), } diff --git a/resource-manager/security/2022-05-01/settings/method_list.go b/resource-manager/security/2022-05-01/settings/method_list.go index 15303692136..fd56235e0d6 100644 --- a/resource-manager/security/2022-05-01/settings/method_list.go +++ b/resource-manager/security/2022-05-01/settings/method_list.go @@ -25,6 +25,18 @@ type ListCompleteResult struct { Items []Setting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SettingsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -33,6 +45,7 @@ func (c SettingsClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/settings", id.ID()), } diff --git a/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_listbysubscription.go b/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_listbysubscription.go index 79e27762390..593672e8c31 100644 --- a/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_listbysubscription.go +++ b/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_listbysubscription.go @@ -25,6 +25,18 @@ type ListBySubscriptionCompleteResult struct { Items []ServerVulnerabilityAssessmentsSetting } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ServerVulnerabilityAssessmentsSettingsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -33,6 +45,7 @@ func (c ServerVulnerabilityAssessmentsSettingsClient) ListBySubscription(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings", id.ID()), } diff --git a/resource-manager/security/2023-10-01-preview/securityconnectors/method_list.go b/resource-manager/security/2023-10-01-preview/securityconnectors/method_list.go index fe00d9be8f9..160e6ce881e 100644 --- a/resource-manager/security/2023-10-01-preview/securityconnectors/method_list.go +++ b/resource-manager/security/2023-10-01-preview/securityconnectors/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecurityConnector } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityConnectorsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityConnectorsClient) List(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/securityConnectors", id.ID()), } diff --git a/resource-manager/security/2023-10-01-preview/securityconnectors/method_listbyresourcegroup.go b/resource-manager/security/2023-10-01-preview/securityconnectors/method_listbyresourcegroup.go index 135cf1dd29c..bc9cf2d77b9 100644 --- a/resource-manager/security/2023-10-01-preview/securityconnectors/method_listbyresourcegroup.go +++ b/resource-manager/security/2023-10-01-preview/securityconnectors/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SecurityConnector } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SecurityConnectorsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityConnectorsClient) ListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/securityConnectors", id.ID()), } diff --git a/resource-manager/security/2023-11-15/apimconfig/method_apicollectionslistbyazureapimanagementservice.go b/resource-manager/security/2023-11-15/apimconfig/method_apicollectionslistbyazureapimanagementservice.go index a34fcc3fbae..f77b9d7d311 100644 --- a/resource-manager/security/2023-11-15/apimconfig/method_apicollectionslistbyazureapimanagementservice.go +++ b/resource-manager/security/2023-11-15/apimconfig/method_apicollectionslistbyazureapimanagementservice.go @@ -23,6 +23,18 @@ type APICollectionsListByAzureApiManagementServiceCompleteResult struct { Items []ApiCollection } +type APICollectionsListByAzureApiManagementServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *APICollectionsListByAzureApiManagementServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // APICollectionsListByAzureApiManagementService ... func (c APIMConfigClient) APICollectionsListByAzureApiManagementService(ctx context.Context, id ServiceId) (result APICollectionsListByAzureApiManagementServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c APIMConfigClient) APICollectionsListByAzureApiManagementService(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &APICollectionsListByAzureApiManagementServiceCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/apiCollections", id.ID()), } diff --git a/resource-manager/security/2023-11-15/d4apicollectionlist/method_apicollectionslistbyazureapimanagementservice.go b/resource-manager/security/2023-11-15/d4apicollectionlist/method_apicollectionslistbyazureapimanagementservice.go index 2fd18b3c222..ed7786ac710 100644 --- a/resource-manager/security/2023-11-15/d4apicollectionlist/method_apicollectionslistbyazureapimanagementservice.go +++ b/resource-manager/security/2023-11-15/d4apicollectionlist/method_apicollectionslistbyazureapimanagementservice.go @@ -23,6 +23,18 @@ type APICollectionsListByAzureApiManagementServiceCompleteResult struct { Items []ApiCollection } +type APICollectionsListByAzureApiManagementServiceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *APICollectionsListByAzureApiManagementServiceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // APICollectionsListByAzureApiManagementService ... func (c D4APICollectionListClient) APICollectionsListByAzureApiManagementService(ctx context.Context, id ServiceId) (result APICollectionsListByAzureApiManagementServiceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c D4APICollectionListClient) APICollectionsListByAzureApiManagementService http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &APICollectionsListByAzureApiManagementServiceCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/apiCollections", id.ID()), } diff --git a/resource-manager/security/2023-11-15/d4apicollectionlist/method_apicollectionslistbyresourcegroup.go b/resource-manager/security/2023-11-15/d4apicollectionlist/method_apicollectionslistbyresourcegroup.go index 90e3b8d8028..5352419233c 100644 --- a/resource-manager/security/2023-11-15/d4apicollectionlist/method_apicollectionslistbyresourcegroup.go +++ b/resource-manager/security/2023-11-15/d4apicollectionlist/method_apicollectionslistbyresourcegroup.go @@ -24,6 +24,18 @@ type APICollectionsListByResourceGroupCompleteResult struct { Items []ApiCollection } +type APICollectionsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *APICollectionsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // APICollectionsListByResourceGroup ... func (c D4APICollectionListClient) APICollectionsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result APICollectionsListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c D4APICollectionListClient) APICollectionsListByResourceGroup(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &APICollectionsListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/apiCollections", id.ID()), } diff --git a/resource-manager/security/2023-11-15/d4apicollectionlist/method_apicollectionslistbysubscription.go b/resource-manager/security/2023-11-15/d4apicollectionlist/method_apicollectionslistbysubscription.go index 6ba390c8e33..bae23a2f4d5 100644 --- a/resource-manager/security/2023-11-15/d4apicollectionlist/method_apicollectionslistbysubscription.go +++ b/resource-manager/security/2023-11-15/d4apicollectionlist/method_apicollectionslistbysubscription.go @@ -24,6 +24,18 @@ type APICollectionsListBySubscriptionCompleteResult struct { Items []ApiCollection } +type APICollectionsListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *APICollectionsListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // APICollectionsListBySubscription ... func (c D4APICollectionListClient) APICollectionsListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result APICollectionsListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c D4APICollectionListClient) APICollectionsListBySubscription(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &APICollectionsListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Security/apiCollections", id.ID()), } diff --git a/resource-manager/security/2024-01-01/pricings/method_list.go b/resource-manager/security/2024-01-01/pricings/method_list.go index dbd135eae00..1c481840113 100644 --- a/resource-manager/security/2024-01-01/pricings/method_list.go +++ b/resource-manager/security/2024-01-01/pricings/method_list.go @@ -53,8 +53,8 @@ func (c PricingsClient) List(ctx context.Context, id ScopeIdId, options ListOper http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Security/pricings", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Security/pricings", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/security/2024-04-01/devops/method_azuredevopsorgslist.go b/resource-manager/security/2024-04-01/devops/method_azuredevopsorgslist.go index 551025ce613..5f0eb8361a5 100644 --- a/resource-manager/security/2024-04-01/devops/method_azuredevopsorgslist.go +++ b/resource-manager/security/2024-04-01/devops/method_azuredevopsorgslist.go @@ -23,6 +23,18 @@ type AzureDevOpsOrgsListCompleteResult struct { Items []AzureDevOpsOrg } +type AzureDevOpsOrgsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AzureDevOpsOrgsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AzureDevOpsOrgsList ... func (c DevOpsClient) AzureDevOpsOrgsList(ctx context.Context, id SecurityConnectorId) (result AzureDevOpsOrgsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevOpsClient) AzureDevOpsOrgsList(ctx context.Context, id SecurityConnec http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AzureDevOpsOrgsListCustomPager{}, Path: fmt.Sprintf("%s/devops/default/azureDevOpsOrgs", id.ID()), } diff --git a/resource-manager/security/2024-04-01/devops/method_azuredevopsorgslistavailable.go b/resource-manager/security/2024-04-01/devops/method_azuredevopsorgslistavailable.go index 21e4d0915fd..f639db33949 100644 --- a/resource-manager/security/2024-04-01/devops/method_azuredevopsorgslistavailable.go +++ b/resource-manager/security/2024-04-01/devops/method_azuredevopsorgslistavailable.go @@ -23,6 +23,18 @@ type AzureDevOpsOrgsListAvailableCompleteResult struct { Items []AzureDevOpsOrg } +type AzureDevOpsOrgsListAvailableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AzureDevOpsOrgsListAvailableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AzureDevOpsOrgsListAvailable ... func (c DevOpsClient) AzureDevOpsOrgsListAvailable(ctx context.Context, id SecurityConnectorId) (result AzureDevOpsOrgsListAvailableOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevOpsClient) AzureDevOpsOrgsListAvailable(ctx context.Context, id Secur http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &AzureDevOpsOrgsListAvailableCustomPager{}, Path: fmt.Sprintf("%s/devops/default/listAvailableAzureDevOpsOrgs", id.ID()), } diff --git a/resource-manager/security/2024-04-01/devops/method_azuredevopsprojectslist.go b/resource-manager/security/2024-04-01/devops/method_azuredevopsprojectslist.go index 1e813080433..756f23eff52 100644 --- a/resource-manager/security/2024-04-01/devops/method_azuredevopsprojectslist.go +++ b/resource-manager/security/2024-04-01/devops/method_azuredevopsprojectslist.go @@ -23,6 +23,18 @@ type AzureDevOpsProjectsListCompleteResult struct { Items []AzureDevOpsProject } +type AzureDevOpsProjectsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AzureDevOpsProjectsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AzureDevOpsProjectsList ... func (c DevOpsClient) AzureDevOpsProjectsList(ctx context.Context, id AzureDevOpsOrgId) (result AzureDevOpsProjectsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevOpsClient) AzureDevOpsProjectsList(ctx context.Context, id AzureDevOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AzureDevOpsProjectsListCustomPager{}, Path: fmt.Sprintf("%s/projects", id.ID()), } diff --git a/resource-manager/security/2024-04-01/devops/method_azuredevopsreposlist.go b/resource-manager/security/2024-04-01/devops/method_azuredevopsreposlist.go index 177defbbfe4..eac41c16e2b 100644 --- a/resource-manager/security/2024-04-01/devops/method_azuredevopsreposlist.go +++ b/resource-manager/security/2024-04-01/devops/method_azuredevopsreposlist.go @@ -23,6 +23,18 @@ type AzureDevOpsReposListCompleteResult struct { Items []AzureDevOpsRepository } +type AzureDevOpsReposListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AzureDevOpsReposListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AzureDevOpsReposList ... func (c DevOpsClient) AzureDevOpsReposList(ctx context.Context, id ProjectId) (result AzureDevOpsReposListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevOpsClient) AzureDevOpsReposList(ctx context.Context, id ProjectId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AzureDevOpsReposListCustomPager{}, Path: fmt.Sprintf("%s/repos", id.ID()), } diff --git a/resource-manager/security/2024-04-01/devops/method_configurationslist.go b/resource-manager/security/2024-04-01/devops/method_configurationslist.go index 1671f51436f..50e4324a211 100644 --- a/resource-manager/security/2024-04-01/devops/method_configurationslist.go +++ b/resource-manager/security/2024-04-01/devops/method_configurationslist.go @@ -23,6 +23,18 @@ type ConfigurationsListCompleteResult struct { Items []DevOpsConfiguration } +type ConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConfigurationsList ... func (c DevOpsClient) ConfigurationsList(ctx context.Context, id SecurityConnectorId) (result ConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevOpsClient) ConfigurationsList(ctx context.Context, id SecurityConnect http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/devops", id.ID()), } diff --git a/resource-manager/security/2024-04-01/devops/method_githubownerslist.go b/resource-manager/security/2024-04-01/devops/method_githubownerslist.go index 39a9bbd40e5..33e20277608 100644 --- a/resource-manager/security/2024-04-01/devops/method_githubownerslist.go +++ b/resource-manager/security/2024-04-01/devops/method_githubownerslist.go @@ -23,6 +23,18 @@ type GitHubOwnersListCompleteResult struct { Items []GitHubOwner } +type GitHubOwnersListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GitHubOwnersListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GitHubOwnersList ... func (c DevOpsClient) GitHubOwnersList(ctx context.Context, id SecurityConnectorId) (result GitHubOwnersListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevOpsClient) GitHubOwnersList(ctx context.Context, id SecurityConnector http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GitHubOwnersListCustomPager{}, Path: fmt.Sprintf("%s/devops/default/gitHubOwners", id.ID()), } diff --git a/resource-manager/security/2024-04-01/devops/method_githubownerslistavailable.go b/resource-manager/security/2024-04-01/devops/method_githubownerslistavailable.go index bbf1544d021..9cd48f63176 100644 --- a/resource-manager/security/2024-04-01/devops/method_githubownerslistavailable.go +++ b/resource-manager/security/2024-04-01/devops/method_githubownerslistavailable.go @@ -23,6 +23,18 @@ type GitHubOwnersListAvailableCompleteResult struct { Items []GitHubOwner } +type GitHubOwnersListAvailableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GitHubOwnersListAvailableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GitHubOwnersListAvailable ... func (c DevOpsClient) GitHubOwnersListAvailable(ctx context.Context, id SecurityConnectorId) (result GitHubOwnersListAvailableOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevOpsClient) GitHubOwnersListAvailable(ctx context.Context, id Security http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GitHubOwnersListAvailableCustomPager{}, Path: fmt.Sprintf("%s/devops/default/listAvailableGitHubOwners", id.ID()), } diff --git a/resource-manager/security/2024-04-01/devops/method_githubreposlist.go b/resource-manager/security/2024-04-01/devops/method_githubreposlist.go index 95fb65402d9..e50e56bf5e5 100644 --- a/resource-manager/security/2024-04-01/devops/method_githubreposlist.go +++ b/resource-manager/security/2024-04-01/devops/method_githubreposlist.go @@ -23,6 +23,18 @@ type GitHubReposListCompleteResult struct { Items []GitHubRepository } +type GitHubReposListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GitHubReposListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GitHubReposList ... func (c DevOpsClient) GitHubReposList(ctx context.Context, id GitHubOwnerId) (result GitHubReposListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevOpsClient) GitHubReposList(ctx context.Context, id GitHubOwnerId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GitHubReposListCustomPager{}, Path: fmt.Sprintf("%s/repos", id.ID()), } diff --git a/resource-manager/security/2024-04-01/devops/method_gitlabgroupslist.go b/resource-manager/security/2024-04-01/devops/method_gitlabgroupslist.go index 94ce5f6225c..f380ddf88eb 100644 --- a/resource-manager/security/2024-04-01/devops/method_gitlabgroupslist.go +++ b/resource-manager/security/2024-04-01/devops/method_gitlabgroupslist.go @@ -23,6 +23,18 @@ type GitLabGroupsListCompleteResult struct { Items []GitLabGroup } +type GitLabGroupsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GitLabGroupsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GitLabGroupsList ... func (c DevOpsClient) GitLabGroupsList(ctx context.Context, id SecurityConnectorId) (result GitLabGroupsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevOpsClient) GitLabGroupsList(ctx context.Context, id SecurityConnector http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GitLabGroupsListCustomPager{}, Path: fmt.Sprintf("%s/devops/default/gitLabGroups", id.ID()), } diff --git a/resource-manager/security/2024-04-01/devops/method_gitlabgroupslistavailable.go b/resource-manager/security/2024-04-01/devops/method_gitlabgroupslistavailable.go index 90d60e8f0fb..0b8f72f7cbe 100644 --- a/resource-manager/security/2024-04-01/devops/method_gitlabgroupslistavailable.go +++ b/resource-manager/security/2024-04-01/devops/method_gitlabgroupslistavailable.go @@ -23,6 +23,18 @@ type GitLabGroupsListAvailableCompleteResult struct { Items []GitLabGroup } +type GitLabGroupsListAvailableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GitLabGroupsListAvailableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GitLabGroupsListAvailable ... func (c DevOpsClient) GitLabGroupsListAvailable(ctx context.Context, id SecurityConnectorId) (result GitLabGroupsListAvailableOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevOpsClient) GitLabGroupsListAvailable(ctx context.Context, id Security http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GitLabGroupsListAvailableCustomPager{}, Path: fmt.Sprintf("%s/devops/default/listAvailableGitLabGroups", id.ID()), } diff --git a/resource-manager/security/2024-04-01/devops/method_gitlabprojectslist.go b/resource-manager/security/2024-04-01/devops/method_gitlabprojectslist.go index f5dde852643..eb78cfe38d2 100644 --- a/resource-manager/security/2024-04-01/devops/method_gitlabprojectslist.go +++ b/resource-manager/security/2024-04-01/devops/method_gitlabprojectslist.go @@ -23,6 +23,18 @@ type GitLabProjectsListCompleteResult struct { Items []GitLabProject } +type GitLabProjectsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GitLabProjectsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GitLabProjectsList ... func (c DevOpsClient) GitLabProjectsList(ctx context.Context, id GitLabGroupId) (result GitLabProjectsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevOpsClient) GitLabProjectsList(ctx context.Context, id GitLabGroupId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GitLabProjectsListCustomPager{}, Path: fmt.Sprintf("%s/projects", id.ID()), } diff --git a/resource-manager/security/2024-04-01/devops/method_gitlabsubgroupslist.go b/resource-manager/security/2024-04-01/devops/method_gitlabsubgroupslist.go index 327e696ca46..20c42c80297 100644 --- a/resource-manager/security/2024-04-01/devops/method_gitlabsubgroupslist.go +++ b/resource-manager/security/2024-04-01/devops/method_gitlabsubgroupslist.go @@ -23,6 +23,18 @@ type GitLabSubgroupsListCompleteResult struct { Items []GitLabGroup } +type GitLabSubgroupsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GitLabSubgroupsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GitLabSubgroupsList ... func (c DevOpsClient) GitLabSubgroupsList(ctx context.Context, id GitLabGroupId) (result GitLabSubgroupsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DevOpsClient) GitLabSubgroupsList(ctx context.Context, id GitLabGroupId) http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GitLabSubgroupsListCustomPager{}, Path: fmt.Sprintf("%s/listSubgroups", id.ID()), } diff --git a/resource-manager/securityinsights/2022-10-01-preview/actions/method_listbyalertrule.go b/resource-manager/securityinsights/2022-10-01-preview/actions/method_listbyalertrule.go index 4bc87ee2049..c35745954db 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/actions/method_listbyalertrule.go +++ b/resource-manager/securityinsights/2022-10-01-preview/actions/method_listbyalertrule.go @@ -23,6 +23,18 @@ type ListByAlertRuleCompleteResult struct { Items []ActionResponse } +type ListByAlertRuleCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAlertRuleCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAlertRule ... func (c ActionsClient) ListByAlertRule(ctx context.Context, id AlertRuleId) (result ListByAlertRuleOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ActionsClient) ListByAlertRule(ctx context.Context, id AlertRuleId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAlertRuleCustomPager{}, Path: fmt.Sprintf("%s/actions", id.ID()), } diff --git a/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_list.go index 2e99955ddb0..191ccd545bb 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AlertRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertRulesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertRulesClient) List(ctx context.Context, id WorkspaceId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/alertRules", id.ID()), } diff --git a/resource-manager/securityinsights/2022-10-01-preview/alertruletemplates/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/alertruletemplates/method_list.go index b300203ce3a..7b8fd97d59e 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/alertruletemplates/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/alertruletemplates/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AlertRuleTemplate } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertRuleTemplatesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertRuleTemplatesClient) List(ctx context.Context, id WorkspaceId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/alertRuleTemplates", id.ID()), } diff --git a/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_list.go index 67d3d046b21..860e5e9af5d 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []AutomationRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AutomationRulesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AutomationRulesClient) List(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/automationRules", id.ID()), } diff --git a/resource-manager/securityinsights/2022-10-01-preview/bookmarkrelations/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/bookmarkrelations/method_list.go index f091b298b07..d200b588c80 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/bookmarkrelations/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/bookmarkrelations/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BookmarkRelationsClient) List(ctx context.Context, id BookmarkId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c BookmarkRelationsClient) List(ctx context.Context, id BookmarkId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/relations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/relations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-10-01-preview/bookmarks/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/bookmarks/method_list.go index acb2bc8d713..2465620a37e 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/bookmarks/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/bookmarks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Bookmark } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BookmarksClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BookmarksClient) List(ctx context.Context, id WorkspaceId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/bookmarks", id.ID()), } diff --git a/resource-manager/securityinsights/2022-10-01-preview/dataconnectors/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/dataconnectors/method_list.go index 271cd610272..b000eaba869 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/dataconnectors/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/dataconnectors/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DataConnector } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataConnectorsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataConnectorsClient) List(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/dataConnectors", id.ID()), } diff --git a/resource-manager/securityinsights/2022-10-01-preview/enrichment/method_domainwhoisget.go b/resource-manager/securityinsights/2022-10-01-preview/enrichment/method_domainwhoisget.go index 8cc4521e221..ba62db4ca3a 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/enrichment/method_domainwhoisget.go +++ b/resource-manager/securityinsights/2022-10-01-preview/enrichment/method_domainwhoisget.go @@ -54,8 +54,8 @@ func (c EnrichmentClient) DomainWhoisGet(ctx context.Context, id commonids.Resou http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/enrichment/domain/whois", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/enrichment/domain/whois", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-10-01-preview/enrichment/method_ipgeodataget.go b/resource-manager/securityinsights/2022-10-01-preview/enrichment/method_ipgeodataget.go index 52d80129385..433fafa4049 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/enrichment/method_ipgeodataget.go +++ b/resource-manager/securityinsights/2022-10-01-preview/enrichment/method_ipgeodataget.go @@ -54,8 +54,8 @@ func (c EnrichmentClient) IPGeodataGet(ctx context.Context, id commonids.Resourc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/enrichment/ip/geodata", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/enrichment/ip/geodata", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-10-01-preview/entities/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/entities/method_list.go index 3d97eee23af..a77faeb381c 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/entities/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/entities/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Entity } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EntitiesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c EntitiesClient) List(ctx context.Context, id WorkspaceId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/entities", id.ID()), } diff --git a/resource-manager/securityinsights/2022-10-01-preview/entities/method_queries.go b/resource-manager/securityinsights/2022-10-01-preview/entities/method_queries.go index 05be3ea7aa2..bb1c962fa29 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/entities/method_queries.go +++ b/resource-manager/securityinsights/2022-10-01-preview/entities/method_queries.go @@ -53,8 +53,8 @@ func (c EntitiesClient) Queries(ctx context.Context, id EntityId, options Querie http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/queries", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/queries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-10-01-preview/entityqueries/method_entityquerytemplateslist.go b/resource-manager/securityinsights/2022-10-01-preview/entityqueries/method_entityquerytemplateslist.go index 7d54796023f..d6fa3e5eed0 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/entityqueries/method_entityquerytemplateslist.go +++ b/resource-manager/securityinsights/2022-10-01-preview/entityqueries/method_entityquerytemplateslist.go @@ -51,6 +51,18 @@ func (o EntityQueryTemplatesListOperationOptions) ToQuery() *client.QueryParams return &out } +type EntityQueryTemplatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *EntityQueryTemplatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // EntityQueryTemplatesList ... func (c EntityQueriesClient) EntityQueryTemplatesList(ctx context.Context, id WorkspaceId, options EntityQueryTemplatesListOperationOptions) (result EntityQueryTemplatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c EntityQueriesClient) EntityQueryTemplatesList(ctx context.Context, id Wo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/entityQueryTemplates", id.ID()), OptionsObject: options, + Pager: &EntityQueryTemplatesListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/entityQueryTemplates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-10-01-preview/entityqueries/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/entityqueries/method_list.go index 82953231515..9f672603dbd 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/entityqueries/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/entityqueries/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EntityQueriesClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c EntityQueriesClient) List(ctx context.Context, id WorkspaceId, options L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/entityQueries", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/entityQueries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-10-01-preview/entityrelations/method_entitiesrelationslist.go b/resource-manager/securityinsights/2022-10-01-preview/entityrelations/method_entitiesrelationslist.go index 1f6cdc30908..7b278dd2c33 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/entityrelations/method_entitiesrelationslist.go +++ b/resource-manager/securityinsights/2022-10-01-preview/entityrelations/method_entitiesrelationslist.go @@ -58,6 +58,18 @@ func (o EntitiesRelationsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type EntitiesRelationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *EntitiesRelationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // EntitiesRelationsList ... func (c EntityRelationsClient) EntitiesRelationsList(ctx context.Context, id EntityId, options EntitiesRelationsListOperationOptions) (result EntitiesRelationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c EntityRelationsClient) EntitiesRelationsList(ctx context.Context, id Ent http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/relations", id.ID()), OptionsObject: options, + Pager: &EntitiesRelationsListCustomPager{}, + Path: fmt.Sprintf("%s/relations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-10-01-preview/fileimports/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/fileimports/method_list.go index f24ff598140..cb5128f257c 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/fileimports/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/fileimports/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FileImportsClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c FileImportsClient) List(ctx context.Context, id WorkspaceId, options Lis http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/fileImports", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/fileImports", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-10-01-preview/incidentcomments/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/incidentcomments/method_list.go index e9896aeb1de..d7901e9ffbe 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/incidentcomments/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/incidentcomments/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentCommentsClient) List(ctx context.Context, id IncidentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentCommentsClient) List(ctx context.Context, id IncidentId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/comments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/comments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-10-01-preview/incidentrelations/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/incidentrelations/method_list.go index e748b7499ce..9605942dce1 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/incidentrelations/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/incidentrelations/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentRelationsClient) List(ctx context.Context, id IncidentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentRelationsClient) List(ctx context.Context, id IncidentId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/relations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/relations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-10-01-preview/incidents/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/incidents/method_list.go index 9823c2a7b91..be48080a496 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/incidents/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/incidents/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentsClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentsClient) List(ctx context.Context, id WorkspaceId, options ListO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/incidents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/incidents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-10-01-preview/metadata/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/metadata/method_list.go index cef5644afe0..398be67d7f3 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/metadata/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/metadata/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MetadataClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c MetadataClient) List(ctx context.Context, id WorkspaceId, options ListOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/metadata", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/metadata", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-10-01-preview/officeconsents/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/officeconsents/method_list.go index c0e6d5722a1..080418b3d92 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/officeconsents/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/officeconsents/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []OfficeConsent } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c OfficeConsentsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c OfficeConsentsClient) List(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/officeConsents", id.ID()), } diff --git a/resource-manager/securityinsights/2022-10-01-preview/repositories/method_sourcecontrollistrepositories.go b/resource-manager/securityinsights/2022-10-01-preview/repositories/method_sourcecontrollistrepositories.go index 4059b24de38..e71ba8db8ea 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/repositories/method_sourcecontrollistrepositories.go +++ b/resource-manager/securityinsights/2022-10-01-preview/repositories/method_sourcecontrollistrepositories.go @@ -23,6 +23,18 @@ type SourceControllistRepositoriesCompleteResult struct { Items []Repo } +type SourceControllistRepositoriesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SourceControllistRepositoriesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SourceControllistRepositories ... func (c RepositoriesClient) SourceControllistRepositories(ctx context.Context, id WorkspaceId, input RepoType) (result SourceControllistRepositoriesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RepositoriesClient) SourceControllistRepositories(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &SourceControllistRepositoriesCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/listRepositories", id.ID()), } diff --git a/resource-manager/securityinsights/2022-10-01-preview/securitymlanalyticssettings/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/securitymlanalyticssettings/method_list.go index 534eaad81e7..693e699ced1 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/securitymlanalyticssettings/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/securitymlanalyticssettings/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecurityMLAnalyticsSetting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityMLAnalyticsSettingsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityMLAnalyticsSettingsClient) List(ctx context.Context, id Workspac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings", id.ID()), } diff --git a/resource-manager/securityinsights/2022-10-01-preview/sourcecontrols/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/sourcecontrols/method_list.go index e6b7d8b1f86..e92d7296926 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/sourcecontrols/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/sourcecontrols/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SourceControl } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SourceControlsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SourceControlsClient) List(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/sourceControls", id.ID()), } diff --git a/resource-manager/securityinsights/2022-10-01-preview/threatintelligence/method_indicatorqueryindicators.go b/resource-manager/securityinsights/2022-10-01-preview/threatintelligence/method_indicatorqueryindicators.go index b7d5c3256ec..27c6ce2648f 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/threatintelligence/method_indicatorqueryindicators.go +++ b/resource-manager/securityinsights/2022-10-01-preview/threatintelligence/method_indicatorqueryindicators.go @@ -24,6 +24,18 @@ type IndicatorQueryIndicatorsCompleteResult struct { Items []ThreatIntelligenceInformation } +type IndicatorQueryIndicatorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *IndicatorQueryIndicatorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // IndicatorQueryIndicators ... func (c ThreatIntelligenceClient) IndicatorQueryIndicators(ctx context.Context, id WorkspaceId, input ThreatIntelligenceFilteringCriteria) (result IndicatorQueryIndicatorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ThreatIntelligenceClient) IndicatorQueryIndicators(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &IndicatorQueryIndicatorsCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators", id.ID()), } diff --git a/resource-manager/securityinsights/2022-10-01-preview/threatintelligence/method_indicatorslist.go b/resource-manager/securityinsights/2022-10-01-preview/threatintelligence/method_indicatorslist.go index 1b66f5af735..1757c99fda7 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/threatintelligence/method_indicatorslist.go +++ b/resource-manager/securityinsights/2022-10-01-preview/threatintelligence/method_indicatorslist.go @@ -59,6 +59,18 @@ func (o IndicatorsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type IndicatorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *IndicatorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // IndicatorsList ... func (c ThreatIntelligenceClient) IndicatorsList(ctx context.Context, id WorkspaceId, options IndicatorsListOperationOptions) (result IndicatorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ThreatIntelligenceClient) IndicatorsList(ctx context.Context, id Workspa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators", id.ID()), OptionsObject: options, + Pager: &IndicatorsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-10-01-preview/watchlistitems/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/watchlistitems/method_list.go index 98f8842df64..91596ea3a4e 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/watchlistitems/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/watchlistitems/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []WatchlistItem } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WatchlistItemsClient) List(ctx context.Context, id WatchlistId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WatchlistItemsClient) List(ctx context.Context, id WatchlistId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/watchlistItems", id.ID()), } diff --git a/resource-manager/securityinsights/2022-10-01-preview/watchlists/method_list.go b/resource-manager/securityinsights/2022-10-01-preview/watchlists/method_list.go index 6509b490423..d1a7ae10ee6 100644 --- a/resource-manager/securityinsights/2022-10-01-preview/watchlists/method_list.go +++ b/resource-manager/securityinsights/2022-10-01-preview/watchlists/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Watchlist } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WatchlistsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WatchlistsClient) List(ctx context.Context, id WorkspaceId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/watchlists", id.ID()), } diff --git a/resource-manager/securityinsights/2022-11-01/actions/method_listbyalertrule.go b/resource-manager/securityinsights/2022-11-01/actions/method_listbyalertrule.go index 4bc87ee2049..c35745954db 100644 --- a/resource-manager/securityinsights/2022-11-01/actions/method_listbyalertrule.go +++ b/resource-manager/securityinsights/2022-11-01/actions/method_listbyalertrule.go @@ -23,6 +23,18 @@ type ListByAlertRuleCompleteResult struct { Items []ActionResponse } +type ListByAlertRuleCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAlertRuleCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAlertRule ... func (c ActionsClient) ListByAlertRule(ctx context.Context, id AlertRuleId) (result ListByAlertRuleOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ActionsClient) ListByAlertRule(ctx context.Context, id AlertRuleId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAlertRuleCustomPager{}, Path: fmt.Sprintf("%s/actions", id.ID()), } diff --git a/resource-manager/securityinsights/2022-11-01/alertrules/method_list.go b/resource-manager/securityinsights/2022-11-01/alertrules/method_list.go index 2e99955ddb0..191ccd545bb 100644 --- a/resource-manager/securityinsights/2022-11-01/alertrules/method_list.go +++ b/resource-manager/securityinsights/2022-11-01/alertrules/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AlertRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertRulesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertRulesClient) List(ctx context.Context, id WorkspaceId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/alertRules", id.ID()), } diff --git a/resource-manager/securityinsights/2022-11-01/alertruletemplates/method_list.go b/resource-manager/securityinsights/2022-11-01/alertruletemplates/method_list.go index b300203ce3a..7b8fd97d59e 100644 --- a/resource-manager/securityinsights/2022-11-01/alertruletemplates/method_list.go +++ b/resource-manager/securityinsights/2022-11-01/alertruletemplates/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AlertRuleTemplate } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertRuleTemplatesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertRuleTemplatesClient) List(ctx context.Context, id WorkspaceId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/alertRuleTemplates", id.ID()), } diff --git a/resource-manager/securityinsights/2022-11-01/automationrules/method_list.go b/resource-manager/securityinsights/2022-11-01/automationrules/method_list.go index 67d3d046b21..860e5e9af5d 100644 --- a/resource-manager/securityinsights/2022-11-01/automationrules/method_list.go +++ b/resource-manager/securityinsights/2022-11-01/automationrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []AutomationRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AutomationRulesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AutomationRulesClient) List(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/automationRules", id.ID()), } diff --git a/resource-manager/securityinsights/2022-11-01/bookmarks/method_list.go b/resource-manager/securityinsights/2022-11-01/bookmarks/method_list.go index acb2bc8d713..2465620a37e 100644 --- a/resource-manager/securityinsights/2022-11-01/bookmarks/method_list.go +++ b/resource-manager/securityinsights/2022-11-01/bookmarks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Bookmark } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BookmarksClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BookmarksClient) List(ctx context.Context, id WorkspaceId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/bookmarks", id.ID()), } diff --git a/resource-manager/securityinsights/2022-11-01/dataconnectors/method_list.go b/resource-manager/securityinsights/2022-11-01/dataconnectors/method_list.go index 271cd610272..b000eaba869 100644 --- a/resource-manager/securityinsights/2022-11-01/dataconnectors/method_list.go +++ b/resource-manager/securityinsights/2022-11-01/dataconnectors/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DataConnector } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataConnectorsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataConnectorsClient) List(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/dataConnectors", id.ID()), } diff --git a/resource-manager/securityinsights/2022-11-01/incidentcomments/method_list.go b/resource-manager/securityinsights/2022-11-01/incidentcomments/method_list.go index e9896aeb1de..d7901e9ffbe 100644 --- a/resource-manager/securityinsights/2022-11-01/incidentcomments/method_list.go +++ b/resource-manager/securityinsights/2022-11-01/incidentcomments/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentCommentsClient) List(ctx context.Context, id IncidentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentCommentsClient) List(ctx context.Context, id IncidentId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/comments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/comments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-11-01/incidentrelations/method_list.go b/resource-manager/securityinsights/2022-11-01/incidentrelations/method_list.go index e748b7499ce..9605942dce1 100644 --- a/resource-manager/securityinsights/2022-11-01/incidentrelations/method_list.go +++ b/resource-manager/securityinsights/2022-11-01/incidentrelations/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentRelationsClient) List(ctx context.Context, id IncidentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentRelationsClient) List(ctx context.Context, id IncidentId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/relations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/relations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-11-01/incidents/method_list.go b/resource-manager/securityinsights/2022-11-01/incidents/method_list.go index 9823c2a7b91..be48080a496 100644 --- a/resource-manager/securityinsights/2022-11-01/incidents/method_list.go +++ b/resource-manager/securityinsights/2022-11-01/incidents/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentsClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentsClient) List(ctx context.Context, id WorkspaceId, options ListO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/incidents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/incidents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-11-01/securitymlanalyticssettings/method_list.go b/resource-manager/securityinsights/2022-11-01/securitymlanalyticssettings/method_list.go index 534eaad81e7..693e699ced1 100644 --- a/resource-manager/securityinsights/2022-11-01/securitymlanalyticssettings/method_list.go +++ b/resource-manager/securityinsights/2022-11-01/securitymlanalyticssettings/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecurityMLAnalyticsSetting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityMLAnalyticsSettingsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityMLAnalyticsSettingsClient) List(ctx context.Context, id Workspac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings", id.ID()), } diff --git a/resource-manager/securityinsights/2022-11-01/threatintelligence/method_indicatorqueryindicators.go b/resource-manager/securityinsights/2022-11-01/threatintelligence/method_indicatorqueryindicators.go index b7d5c3256ec..27c6ce2648f 100644 --- a/resource-manager/securityinsights/2022-11-01/threatintelligence/method_indicatorqueryindicators.go +++ b/resource-manager/securityinsights/2022-11-01/threatintelligence/method_indicatorqueryindicators.go @@ -24,6 +24,18 @@ type IndicatorQueryIndicatorsCompleteResult struct { Items []ThreatIntelligenceInformation } +type IndicatorQueryIndicatorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *IndicatorQueryIndicatorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // IndicatorQueryIndicators ... func (c ThreatIntelligenceClient) IndicatorQueryIndicators(ctx context.Context, id WorkspaceId, input ThreatIntelligenceFilteringCriteria) (result IndicatorQueryIndicatorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ThreatIntelligenceClient) IndicatorQueryIndicators(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &IndicatorQueryIndicatorsCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators", id.ID()), } diff --git a/resource-manager/securityinsights/2022-11-01/threatintelligence/method_indicatorslist.go b/resource-manager/securityinsights/2022-11-01/threatintelligence/method_indicatorslist.go index 1b66f5af735..1757c99fda7 100644 --- a/resource-manager/securityinsights/2022-11-01/threatintelligence/method_indicatorslist.go +++ b/resource-manager/securityinsights/2022-11-01/threatintelligence/method_indicatorslist.go @@ -59,6 +59,18 @@ func (o IndicatorsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type IndicatorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *IndicatorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // IndicatorsList ... func (c ThreatIntelligenceClient) IndicatorsList(ctx context.Context, id WorkspaceId, options IndicatorsListOperationOptions) (result IndicatorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ThreatIntelligenceClient) IndicatorsList(ctx context.Context, id Workspa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators", id.ID()), OptionsObject: options, + Pager: &IndicatorsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2022-11-01/watchlistitems/method_list.go b/resource-manager/securityinsights/2022-11-01/watchlistitems/method_list.go index 98f8842df64..91596ea3a4e 100644 --- a/resource-manager/securityinsights/2022-11-01/watchlistitems/method_list.go +++ b/resource-manager/securityinsights/2022-11-01/watchlistitems/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []WatchlistItem } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WatchlistItemsClient) List(ctx context.Context, id WatchlistId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WatchlistItemsClient) List(ctx context.Context, id WatchlistId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/watchlistItems", id.ID()), } diff --git a/resource-manager/securityinsights/2022-11-01/watchlists/method_list.go b/resource-manager/securityinsights/2022-11-01/watchlists/method_list.go index 6509b490423..d1a7ae10ee6 100644 --- a/resource-manager/securityinsights/2022-11-01/watchlists/method_list.go +++ b/resource-manager/securityinsights/2022-11-01/watchlists/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Watchlist } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WatchlistsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WatchlistsClient) List(ctx context.Context, id WorkspaceId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/watchlists", id.ID()), } diff --git a/resource-manager/securityinsights/2023-02-01/actions/method_listbyalertrule.go b/resource-manager/securityinsights/2023-02-01/actions/method_listbyalertrule.go index 4bc87ee2049..c35745954db 100644 --- a/resource-manager/securityinsights/2023-02-01/actions/method_listbyalertrule.go +++ b/resource-manager/securityinsights/2023-02-01/actions/method_listbyalertrule.go @@ -23,6 +23,18 @@ type ListByAlertRuleCompleteResult struct { Items []ActionResponse } +type ListByAlertRuleCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAlertRuleCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAlertRule ... func (c ActionsClient) ListByAlertRule(ctx context.Context, id AlertRuleId) (result ListByAlertRuleOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ActionsClient) ListByAlertRule(ctx context.Context, id AlertRuleId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAlertRuleCustomPager{}, Path: fmt.Sprintf("%s/actions", id.ID()), } diff --git a/resource-manager/securityinsights/2023-02-01/alertrules/method_list.go b/resource-manager/securityinsights/2023-02-01/alertrules/method_list.go index 2e99955ddb0..191ccd545bb 100644 --- a/resource-manager/securityinsights/2023-02-01/alertrules/method_list.go +++ b/resource-manager/securityinsights/2023-02-01/alertrules/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AlertRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertRulesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertRulesClient) List(ctx context.Context, id WorkspaceId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/alertRules", id.ID()), } diff --git a/resource-manager/securityinsights/2023-02-01/alertruletemplates/method_list.go b/resource-manager/securityinsights/2023-02-01/alertruletemplates/method_list.go index b300203ce3a..7b8fd97d59e 100644 --- a/resource-manager/securityinsights/2023-02-01/alertruletemplates/method_list.go +++ b/resource-manager/securityinsights/2023-02-01/alertruletemplates/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AlertRuleTemplate } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertRuleTemplatesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertRuleTemplatesClient) List(ctx context.Context, id WorkspaceId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/alertRuleTemplates", id.ID()), } diff --git a/resource-manager/securityinsights/2023-02-01/automationrules/method_list.go b/resource-manager/securityinsights/2023-02-01/automationrules/method_list.go index 67d3d046b21..860e5e9af5d 100644 --- a/resource-manager/securityinsights/2023-02-01/automationrules/method_list.go +++ b/resource-manager/securityinsights/2023-02-01/automationrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []AutomationRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AutomationRulesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AutomationRulesClient) List(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/automationRules", id.ID()), } diff --git a/resource-manager/securityinsights/2023-02-01/bookmarks/method_list.go b/resource-manager/securityinsights/2023-02-01/bookmarks/method_list.go index acb2bc8d713..2465620a37e 100644 --- a/resource-manager/securityinsights/2023-02-01/bookmarks/method_list.go +++ b/resource-manager/securityinsights/2023-02-01/bookmarks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Bookmark } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BookmarksClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BookmarksClient) List(ctx context.Context, id WorkspaceId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/bookmarks", id.ID()), } diff --git a/resource-manager/securityinsights/2023-02-01/dataconnectors/method_list.go b/resource-manager/securityinsights/2023-02-01/dataconnectors/method_list.go index 271cd610272..b000eaba869 100644 --- a/resource-manager/securityinsights/2023-02-01/dataconnectors/method_list.go +++ b/resource-manager/securityinsights/2023-02-01/dataconnectors/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DataConnector } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataConnectorsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataConnectorsClient) List(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/dataConnectors", id.ID()), } diff --git a/resource-manager/securityinsights/2023-02-01/incidentcomments/method_list.go b/resource-manager/securityinsights/2023-02-01/incidentcomments/method_list.go index e9896aeb1de..d7901e9ffbe 100644 --- a/resource-manager/securityinsights/2023-02-01/incidentcomments/method_list.go +++ b/resource-manager/securityinsights/2023-02-01/incidentcomments/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentCommentsClient) List(ctx context.Context, id IncidentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentCommentsClient) List(ctx context.Context, id IncidentId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/comments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/comments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2023-02-01/incidentrelations/method_list.go b/resource-manager/securityinsights/2023-02-01/incidentrelations/method_list.go index e748b7499ce..9605942dce1 100644 --- a/resource-manager/securityinsights/2023-02-01/incidentrelations/method_list.go +++ b/resource-manager/securityinsights/2023-02-01/incidentrelations/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentRelationsClient) List(ctx context.Context, id IncidentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentRelationsClient) List(ctx context.Context, id IncidentId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/relations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/relations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2023-02-01/incidents/method_list.go b/resource-manager/securityinsights/2023-02-01/incidents/method_list.go index 9823c2a7b91..be48080a496 100644 --- a/resource-manager/securityinsights/2023-02-01/incidents/method_list.go +++ b/resource-manager/securityinsights/2023-02-01/incidents/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentsClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentsClient) List(ctx context.Context, id WorkspaceId, options ListO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/incidents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/incidents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2023-02-01/metadata/method_list.go b/resource-manager/securityinsights/2023-02-01/metadata/method_list.go index cef5644afe0..398be67d7f3 100644 --- a/resource-manager/securityinsights/2023-02-01/metadata/method_list.go +++ b/resource-manager/securityinsights/2023-02-01/metadata/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MetadataClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c MetadataClient) List(ctx context.Context, id WorkspaceId, options ListOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/metadata", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/metadata", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2023-02-01/securitymlanalyticssettings/method_list.go b/resource-manager/securityinsights/2023-02-01/securitymlanalyticssettings/method_list.go index 534eaad81e7..693e699ced1 100644 --- a/resource-manager/securityinsights/2023-02-01/securitymlanalyticssettings/method_list.go +++ b/resource-manager/securityinsights/2023-02-01/securitymlanalyticssettings/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecurityMLAnalyticsSetting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityMLAnalyticsSettingsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityMLAnalyticsSettingsClient) List(ctx context.Context, id Workspac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings", id.ID()), } diff --git a/resource-manager/securityinsights/2023-02-01/threatintelligence/method_indicatorqueryindicators.go b/resource-manager/securityinsights/2023-02-01/threatintelligence/method_indicatorqueryindicators.go index b7d5c3256ec..27c6ce2648f 100644 --- a/resource-manager/securityinsights/2023-02-01/threatintelligence/method_indicatorqueryindicators.go +++ b/resource-manager/securityinsights/2023-02-01/threatintelligence/method_indicatorqueryindicators.go @@ -24,6 +24,18 @@ type IndicatorQueryIndicatorsCompleteResult struct { Items []ThreatIntelligenceInformation } +type IndicatorQueryIndicatorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *IndicatorQueryIndicatorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // IndicatorQueryIndicators ... func (c ThreatIntelligenceClient) IndicatorQueryIndicators(ctx context.Context, id WorkspaceId, input ThreatIntelligenceFilteringCriteria) (result IndicatorQueryIndicatorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ThreatIntelligenceClient) IndicatorQueryIndicators(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &IndicatorQueryIndicatorsCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators", id.ID()), } diff --git a/resource-manager/securityinsights/2023-02-01/threatintelligence/method_indicatorslist.go b/resource-manager/securityinsights/2023-02-01/threatintelligence/method_indicatorslist.go index 1b66f5af735..1757c99fda7 100644 --- a/resource-manager/securityinsights/2023-02-01/threatintelligence/method_indicatorslist.go +++ b/resource-manager/securityinsights/2023-02-01/threatintelligence/method_indicatorslist.go @@ -59,6 +59,18 @@ func (o IndicatorsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type IndicatorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *IndicatorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // IndicatorsList ... func (c ThreatIntelligenceClient) IndicatorsList(ctx context.Context, id WorkspaceId, options IndicatorsListOperationOptions) (result IndicatorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ThreatIntelligenceClient) IndicatorsList(ctx context.Context, id Workspa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators", id.ID()), OptionsObject: options, + Pager: &IndicatorsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2023-02-01/watchlistitems/method_list.go b/resource-manager/securityinsights/2023-02-01/watchlistitems/method_list.go index 98f8842df64..91596ea3a4e 100644 --- a/resource-manager/securityinsights/2023-02-01/watchlistitems/method_list.go +++ b/resource-manager/securityinsights/2023-02-01/watchlistitems/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []WatchlistItem } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WatchlistItemsClient) List(ctx context.Context, id WatchlistId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WatchlistItemsClient) List(ctx context.Context, id WatchlistId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/watchlistItems", id.ID()), } diff --git a/resource-manager/securityinsights/2023-02-01/watchlists/method_list.go b/resource-manager/securityinsights/2023-02-01/watchlists/method_list.go index 6509b490423..d1a7ae10ee6 100644 --- a/resource-manager/securityinsights/2023-02-01/watchlists/method_list.go +++ b/resource-manager/securityinsights/2023-02-01/watchlists/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Watchlist } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WatchlistsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WatchlistsClient) List(ctx context.Context, id WorkspaceId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/watchlists", id.ID()), } diff --git a/resource-manager/securityinsights/2023-11-01/actions/method_listbyalertrule.go b/resource-manager/securityinsights/2023-11-01/actions/method_listbyalertrule.go index 4bc87ee2049..c35745954db 100644 --- a/resource-manager/securityinsights/2023-11-01/actions/method_listbyalertrule.go +++ b/resource-manager/securityinsights/2023-11-01/actions/method_listbyalertrule.go @@ -23,6 +23,18 @@ type ListByAlertRuleCompleteResult struct { Items []ActionResponse } +type ListByAlertRuleCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAlertRuleCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAlertRule ... func (c ActionsClient) ListByAlertRule(ctx context.Context, id AlertRuleId) (result ListByAlertRuleOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ActionsClient) ListByAlertRule(ctx context.Context, id AlertRuleId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAlertRuleCustomPager{}, Path: fmt.Sprintf("%s/actions", id.ID()), } diff --git a/resource-manager/securityinsights/2023-11-01/alertrules/method_list.go b/resource-manager/securityinsights/2023-11-01/alertrules/method_list.go index 2e99955ddb0..191ccd545bb 100644 --- a/resource-manager/securityinsights/2023-11-01/alertrules/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/alertrules/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AlertRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertRulesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertRulesClient) List(ctx context.Context, id WorkspaceId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/alertRules", id.ID()), } diff --git a/resource-manager/securityinsights/2023-11-01/alertruletemplates/method_list.go b/resource-manager/securityinsights/2023-11-01/alertruletemplates/method_list.go index b300203ce3a..7b8fd97d59e 100644 --- a/resource-manager/securityinsights/2023-11-01/alertruletemplates/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/alertruletemplates/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AlertRuleTemplate } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertRuleTemplatesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertRuleTemplatesClient) List(ctx context.Context, id WorkspaceId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/alertRuleTemplates", id.ID()), } diff --git a/resource-manager/securityinsights/2023-11-01/automationrules/method_list.go b/resource-manager/securityinsights/2023-11-01/automationrules/method_list.go index 67d3d046b21..860e5e9af5d 100644 --- a/resource-manager/securityinsights/2023-11-01/automationrules/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/automationrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []AutomationRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AutomationRulesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AutomationRulesClient) List(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/automationRules", id.ID()), } diff --git a/resource-manager/securityinsights/2023-11-01/bookmarks/method_list.go b/resource-manager/securityinsights/2023-11-01/bookmarks/method_list.go index acb2bc8d713..2465620a37e 100644 --- a/resource-manager/securityinsights/2023-11-01/bookmarks/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/bookmarks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Bookmark } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BookmarksClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BookmarksClient) List(ctx context.Context, id WorkspaceId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/bookmarks", id.ID()), } diff --git a/resource-manager/securityinsights/2023-11-01/contentpackages/method_list.go b/resource-manager/securityinsights/2023-11-01/contentpackages/method_list.go index 9956b8417ad..e576e2a8e86 100644 --- a/resource-manager/securityinsights/2023-11-01/contentpackages/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/contentpackages/method_list.go @@ -70,6 +70,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ContentPackagesClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c ContentPackagesClient) List(ctx context.Context, id WorkspaceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentPackages", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentPackages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2023-11-01/contentproductpackages/method_productpackageslist.go b/resource-manager/securityinsights/2023-11-01/contentproductpackages/method_productpackageslist.go index f7622e3b888..12065b3e3f5 100644 --- a/resource-manager/securityinsights/2023-11-01/contentproductpackages/method_productpackageslist.go +++ b/resource-manager/securityinsights/2023-11-01/contentproductpackages/method_productpackageslist.go @@ -58,6 +58,18 @@ func (o ProductPackagesListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ProductPackagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProductPackagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProductPackagesList ... func (c ContentProductPackagesClient) ProductPackagesList(ctx context.Context, id WorkspaceId, options ProductPackagesListOperationOptions) (result ProductPackagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ContentProductPackagesClient) ProductPackagesList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentProductPackages", id.ID()), OptionsObject: options, + Pager: &ProductPackagesListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentProductPackages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2023-11-01/contentproducttemplates/method_producttemplateslist.go b/resource-manager/securityinsights/2023-11-01/contentproducttemplates/method_producttemplateslist.go index aadff572c10..cd0b411dec2 100644 --- a/resource-manager/securityinsights/2023-11-01/contentproducttemplates/method_producttemplateslist.go +++ b/resource-manager/securityinsights/2023-11-01/contentproducttemplates/method_producttemplateslist.go @@ -70,6 +70,18 @@ func (o ProductTemplatesListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ProductTemplatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProductTemplatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProductTemplatesList ... func (c ContentProductTemplatesClient) ProductTemplatesList(ctx context.Context, id WorkspaceId, options ProductTemplatesListOperationOptions) (result ProductTemplatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c ContentProductTemplatesClient) ProductTemplatesList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentProductTemplates", id.ID()), OptionsObject: options, + Pager: &ProductTemplatesListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentProductTemplates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2023-11-01/contenttemplates/method_list.go b/resource-manager/securityinsights/2023-11-01/contenttemplates/method_list.go index dd6cc16dc62..14844429fe6 100644 --- a/resource-manager/securityinsights/2023-11-01/contenttemplates/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/contenttemplates/method_list.go @@ -74,6 +74,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ContentTemplatesClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c ContentTemplatesClient) List(ctx context.Context, id WorkspaceId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentTemplates", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentTemplates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2023-11-01/dataconnectors/method_list.go b/resource-manager/securityinsights/2023-11-01/dataconnectors/method_list.go index 271cd610272..b000eaba869 100644 --- a/resource-manager/securityinsights/2023-11-01/dataconnectors/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/dataconnectors/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DataConnector } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataConnectorsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataConnectorsClient) List(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/dataConnectors", id.ID()), } diff --git a/resource-manager/securityinsights/2023-11-01/incidentcomments/method_list.go b/resource-manager/securityinsights/2023-11-01/incidentcomments/method_list.go index e9896aeb1de..d7901e9ffbe 100644 --- a/resource-manager/securityinsights/2023-11-01/incidentcomments/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/incidentcomments/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentCommentsClient) List(ctx context.Context, id IncidentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentCommentsClient) List(ctx context.Context, id IncidentId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/comments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/comments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2023-11-01/incidentrelations/method_list.go b/resource-manager/securityinsights/2023-11-01/incidentrelations/method_list.go index e748b7499ce..9605942dce1 100644 --- a/resource-manager/securityinsights/2023-11-01/incidentrelations/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/incidentrelations/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentRelationsClient) List(ctx context.Context, id IncidentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentRelationsClient) List(ctx context.Context, id IncidentId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/relations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/relations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2023-11-01/incidents/method_list.go b/resource-manager/securityinsights/2023-11-01/incidents/method_list.go index 9823c2a7b91..be48080a496 100644 --- a/resource-manager/securityinsights/2023-11-01/incidents/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/incidents/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentsClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentsClient) List(ctx context.Context, id WorkspaceId, options ListO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/incidents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/incidents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2023-11-01/metadata/method_list.go b/resource-manager/securityinsights/2023-11-01/metadata/method_list.go index cef5644afe0..398be67d7f3 100644 --- a/resource-manager/securityinsights/2023-11-01/metadata/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/metadata/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MetadataClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c MetadataClient) List(ctx context.Context, id WorkspaceId, options ListOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/metadata", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/metadata", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2023-11-01/repositories/method_sourcecontrollistrepositories.go b/resource-manager/securityinsights/2023-11-01/repositories/method_sourcecontrollistrepositories.go index f02e35b50ad..9e04784e694 100644 --- a/resource-manager/securityinsights/2023-11-01/repositories/method_sourcecontrollistrepositories.go +++ b/resource-manager/securityinsights/2023-11-01/repositories/method_sourcecontrollistrepositories.go @@ -23,6 +23,18 @@ type SourceControllistRepositoriesCompleteResult struct { Items []Repo } +type SourceControllistRepositoriesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SourceControllistRepositoriesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SourceControllistRepositories ... func (c RepositoriesClient) SourceControllistRepositories(ctx context.Context, id WorkspaceId, input RepositoryAccessProperties) (result SourceControllistRepositoriesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RepositoriesClient) SourceControllistRepositories(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &SourceControllistRepositoriesCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/listRepositories", id.ID()), } diff --git a/resource-manager/securityinsights/2023-11-01/securitymlanalyticssettings/method_list.go b/resource-manager/securityinsights/2023-11-01/securitymlanalyticssettings/method_list.go index 534eaad81e7..693e699ced1 100644 --- a/resource-manager/securityinsights/2023-11-01/securitymlanalyticssettings/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/securitymlanalyticssettings/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecurityMLAnalyticsSetting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityMLAnalyticsSettingsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityMLAnalyticsSettingsClient) List(ctx context.Context, id Workspac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings", id.ID()), } diff --git a/resource-manager/securityinsights/2023-11-01/sourcecontrols/method_list.go b/resource-manager/securityinsights/2023-11-01/sourcecontrols/method_list.go index e6b7d8b1f86..e92d7296926 100644 --- a/resource-manager/securityinsights/2023-11-01/sourcecontrols/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/sourcecontrols/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SourceControl } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SourceControlsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SourceControlsClient) List(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/sourceControls", id.ID()), } diff --git a/resource-manager/securityinsights/2023-11-01/threatintelligence/method_indicatorqueryindicators.go b/resource-manager/securityinsights/2023-11-01/threatintelligence/method_indicatorqueryindicators.go index b7d5c3256ec..27c6ce2648f 100644 --- a/resource-manager/securityinsights/2023-11-01/threatintelligence/method_indicatorqueryindicators.go +++ b/resource-manager/securityinsights/2023-11-01/threatintelligence/method_indicatorqueryindicators.go @@ -24,6 +24,18 @@ type IndicatorQueryIndicatorsCompleteResult struct { Items []ThreatIntelligenceInformation } +type IndicatorQueryIndicatorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *IndicatorQueryIndicatorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // IndicatorQueryIndicators ... func (c ThreatIntelligenceClient) IndicatorQueryIndicators(ctx context.Context, id WorkspaceId, input ThreatIntelligenceFilteringCriteria) (result IndicatorQueryIndicatorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ThreatIntelligenceClient) IndicatorQueryIndicators(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &IndicatorQueryIndicatorsCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators", id.ID()), } diff --git a/resource-manager/securityinsights/2023-11-01/threatintelligence/method_indicatorslist.go b/resource-manager/securityinsights/2023-11-01/threatintelligence/method_indicatorslist.go index 1b66f5af735..1757c99fda7 100644 --- a/resource-manager/securityinsights/2023-11-01/threatintelligence/method_indicatorslist.go +++ b/resource-manager/securityinsights/2023-11-01/threatintelligence/method_indicatorslist.go @@ -59,6 +59,18 @@ func (o IndicatorsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type IndicatorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *IndicatorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // IndicatorsList ... func (c ThreatIntelligenceClient) IndicatorsList(ctx context.Context, id WorkspaceId, options IndicatorsListOperationOptions) (result IndicatorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ThreatIntelligenceClient) IndicatorsList(ctx context.Context, id Workspa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators", id.ID()), OptionsObject: options, + Pager: &IndicatorsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2023-11-01/watchlistitems/method_list.go b/resource-manager/securityinsights/2023-11-01/watchlistitems/method_list.go index 98f8842df64..91596ea3a4e 100644 --- a/resource-manager/securityinsights/2023-11-01/watchlistitems/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/watchlistitems/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []WatchlistItem } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WatchlistItemsClient) List(ctx context.Context, id WatchlistId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WatchlistItemsClient) List(ctx context.Context, id WatchlistId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/watchlistItems", id.ID()), } diff --git a/resource-manager/securityinsights/2023-11-01/watchlists/method_list.go b/resource-manager/securityinsights/2023-11-01/watchlists/method_list.go index 6509b490423..d1a7ae10ee6 100644 --- a/resource-manager/securityinsights/2023-11-01/watchlists/method_list.go +++ b/resource-manager/securityinsights/2023-11-01/watchlists/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Watchlist } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WatchlistsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WatchlistsClient) List(ctx context.Context, id WorkspaceId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/watchlists", id.ID()), } diff --git a/resource-manager/securityinsights/2024-03-01/actions/method_listbyalertrule.go b/resource-manager/securityinsights/2024-03-01/actions/method_listbyalertrule.go index 4bc87ee2049..c35745954db 100644 --- a/resource-manager/securityinsights/2024-03-01/actions/method_listbyalertrule.go +++ b/resource-manager/securityinsights/2024-03-01/actions/method_listbyalertrule.go @@ -23,6 +23,18 @@ type ListByAlertRuleCompleteResult struct { Items []ActionResponse } +type ListByAlertRuleCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAlertRuleCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAlertRule ... func (c ActionsClient) ListByAlertRule(ctx context.Context, id AlertRuleId) (result ListByAlertRuleOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ActionsClient) ListByAlertRule(ctx context.Context, id AlertRuleId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAlertRuleCustomPager{}, Path: fmt.Sprintf("%s/actions", id.ID()), } diff --git a/resource-manager/securityinsights/2024-03-01/alertrules/method_list.go b/resource-manager/securityinsights/2024-03-01/alertrules/method_list.go index 2e99955ddb0..191ccd545bb 100644 --- a/resource-manager/securityinsights/2024-03-01/alertrules/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/alertrules/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AlertRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertRulesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertRulesClient) List(ctx context.Context, id WorkspaceId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/alertRules", id.ID()), } diff --git a/resource-manager/securityinsights/2024-03-01/alertruletemplates/method_list.go b/resource-manager/securityinsights/2024-03-01/alertruletemplates/method_list.go index b300203ce3a..7b8fd97d59e 100644 --- a/resource-manager/securityinsights/2024-03-01/alertruletemplates/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/alertruletemplates/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AlertRuleTemplate } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AlertRuleTemplatesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AlertRuleTemplatesClient) List(ctx context.Context, id WorkspaceId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/alertRuleTemplates", id.ID()), } diff --git a/resource-manager/securityinsights/2024-03-01/automationrules/method_list.go b/resource-manager/securityinsights/2024-03-01/automationrules/method_list.go index 67d3d046b21..860e5e9af5d 100644 --- a/resource-manager/securityinsights/2024-03-01/automationrules/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/automationrules/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []AutomationRule } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AutomationRulesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AutomationRulesClient) List(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/automationRules", id.ID()), } diff --git a/resource-manager/securityinsights/2024-03-01/bookmarks/method_list.go b/resource-manager/securityinsights/2024-03-01/bookmarks/method_list.go index acb2bc8d713..2465620a37e 100644 --- a/resource-manager/securityinsights/2024-03-01/bookmarks/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/bookmarks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Bookmark } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BookmarksClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BookmarksClient) List(ctx context.Context, id WorkspaceId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/bookmarks", id.ID()), } diff --git a/resource-manager/securityinsights/2024-03-01/contentpackages/method_list.go b/resource-manager/securityinsights/2024-03-01/contentpackages/method_list.go index 9956b8417ad..e576e2a8e86 100644 --- a/resource-manager/securityinsights/2024-03-01/contentpackages/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/contentpackages/method_list.go @@ -70,6 +70,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ContentPackagesClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c ContentPackagesClient) List(ctx context.Context, id WorkspaceId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentPackages", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentPackages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2024-03-01/contentproductpackages/method_productpackageslist.go b/resource-manager/securityinsights/2024-03-01/contentproductpackages/method_productpackageslist.go index f7622e3b888..12065b3e3f5 100644 --- a/resource-manager/securityinsights/2024-03-01/contentproductpackages/method_productpackageslist.go +++ b/resource-manager/securityinsights/2024-03-01/contentproductpackages/method_productpackageslist.go @@ -58,6 +58,18 @@ func (o ProductPackagesListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ProductPackagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProductPackagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProductPackagesList ... func (c ContentProductPackagesClient) ProductPackagesList(ctx context.Context, id WorkspaceId, options ProductPackagesListOperationOptions) (result ProductPackagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ContentProductPackagesClient) ProductPackagesList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentProductPackages", id.ID()), OptionsObject: options, + Pager: &ProductPackagesListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentProductPackages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2024-03-01/contentproducttemplates/method_producttemplateslist.go b/resource-manager/securityinsights/2024-03-01/contentproducttemplates/method_producttemplateslist.go index aadff572c10..cd0b411dec2 100644 --- a/resource-manager/securityinsights/2024-03-01/contentproducttemplates/method_producttemplateslist.go +++ b/resource-manager/securityinsights/2024-03-01/contentproducttemplates/method_producttemplateslist.go @@ -70,6 +70,18 @@ func (o ProductTemplatesListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ProductTemplatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ProductTemplatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ProductTemplatesList ... func (c ContentProductTemplatesClient) ProductTemplatesList(ctx context.Context, id WorkspaceId, options ProductTemplatesListOperationOptions) (result ProductTemplatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -78,8 +90,9 @@ func (c ContentProductTemplatesClient) ProductTemplatesList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentProductTemplates", id.ID()), OptionsObject: options, + Pager: &ProductTemplatesListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentProductTemplates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2024-03-01/contenttemplates/method_list.go b/resource-manager/securityinsights/2024-03-01/contenttemplates/method_list.go index dd6cc16dc62..14844429fe6 100644 --- a/resource-manager/securityinsights/2024-03-01/contenttemplates/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/contenttemplates/method_list.go @@ -74,6 +74,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ContentTemplatesClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c ContentTemplatesClient) List(ctx context.Context, id WorkspaceId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentTemplates", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/contentTemplates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2024-03-01/dataconnectors/method_list.go b/resource-manager/securityinsights/2024-03-01/dataconnectors/method_list.go index 271cd610272..b000eaba869 100644 --- a/resource-manager/securityinsights/2024-03-01/dataconnectors/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/dataconnectors/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DataConnector } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataConnectorsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataConnectorsClient) List(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/dataConnectors", id.ID()), } diff --git a/resource-manager/securityinsights/2024-03-01/incidentcomments/method_list.go b/resource-manager/securityinsights/2024-03-01/incidentcomments/method_list.go index e9896aeb1de..d7901e9ffbe 100644 --- a/resource-manager/securityinsights/2024-03-01/incidentcomments/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/incidentcomments/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentCommentsClient) List(ctx context.Context, id IncidentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentCommentsClient) List(ctx context.Context, id IncidentId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/comments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/comments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2024-03-01/incidentrelations/method_list.go b/resource-manager/securityinsights/2024-03-01/incidentrelations/method_list.go index e748b7499ce..9605942dce1 100644 --- a/resource-manager/securityinsights/2024-03-01/incidentrelations/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/incidentrelations/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentRelationsClient) List(ctx context.Context, id IncidentId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentRelationsClient) List(ctx context.Context, id IncidentId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/relations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/relations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2024-03-01/incidents/method_list.go b/resource-manager/securityinsights/2024-03-01/incidents/method_list.go index 9823c2a7b91..be48080a496 100644 --- a/resource-manager/securityinsights/2024-03-01/incidents/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/incidents/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentsClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c IncidentsClient) List(ctx context.Context, id WorkspaceId, options ListO http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/incidents", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/incidents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2024-03-01/incidenttasks/method_list.go b/resource-manager/securityinsights/2024-03-01/incidenttasks/method_list.go index 8214cbcb90c..c1a8730f314 100644 --- a/resource-manager/securityinsights/2024-03-01/incidenttasks/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/incidenttasks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []IncidentTask } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c IncidentTasksClient) List(ctx context.Context, id IncidentId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IncidentTasksClient) List(ctx context.Context, id IncidentId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/tasks", id.ID()), } diff --git a/resource-manager/securityinsights/2024-03-01/metadata/method_list.go b/resource-manager/securityinsights/2024-03-01/metadata/method_list.go index cef5644afe0..398be67d7f3 100644 --- a/resource-manager/securityinsights/2024-03-01/metadata/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/metadata/method_list.go @@ -62,6 +62,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MetadataClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c MetadataClient) List(ctx context.Context, id WorkspaceId, options ListOp http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/metadata", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/metadata", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2024-03-01/repositories/method_sourcecontrollistrepositories.go b/resource-manager/securityinsights/2024-03-01/repositories/method_sourcecontrollistrepositories.go index f02e35b50ad..9e04784e694 100644 --- a/resource-manager/securityinsights/2024-03-01/repositories/method_sourcecontrollistrepositories.go +++ b/resource-manager/securityinsights/2024-03-01/repositories/method_sourcecontrollistrepositories.go @@ -23,6 +23,18 @@ type SourceControllistRepositoriesCompleteResult struct { Items []Repo } +type SourceControllistRepositoriesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SourceControllistRepositoriesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SourceControllistRepositories ... func (c RepositoriesClient) SourceControllistRepositories(ctx context.Context, id WorkspaceId, input RepositoryAccessProperties) (result SourceControllistRepositoriesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RepositoriesClient) SourceControllistRepositories(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &SourceControllistRepositoriesCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/listRepositories", id.ID()), } diff --git a/resource-manager/securityinsights/2024-03-01/securitymlanalyticssettings/method_list.go b/resource-manager/securityinsights/2024-03-01/securitymlanalyticssettings/method_list.go index 534eaad81e7..693e699ced1 100644 --- a/resource-manager/securityinsights/2024-03-01/securitymlanalyticssettings/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/securitymlanalyticssettings/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SecurityMLAnalyticsSetting } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SecurityMLAnalyticsSettingsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SecurityMLAnalyticsSettingsClient) List(ctx context.Context, id Workspac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings", id.ID()), } diff --git a/resource-manager/securityinsights/2024-03-01/sourcecontrols/method_list.go b/resource-manager/securityinsights/2024-03-01/sourcecontrols/method_list.go index e6b7d8b1f86..e92d7296926 100644 --- a/resource-manager/securityinsights/2024-03-01/sourcecontrols/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/sourcecontrols/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SourceControl } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SourceControlsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SourceControlsClient) List(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/sourceControls", id.ID()), } diff --git a/resource-manager/securityinsights/2024-03-01/threatintelligence/method_indicatorqueryindicators.go b/resource-manager/securityinsights/2024-03-01/threatintelligence/method_indicatorqueryindicators.go index b7d5c3256ec..27c6ce2648f 100644 --- a/resource-manager/securityinsights/2024-03-01/threatintelligence/method_indicatorqueryindicators.go +++ b/resource-manager/securityinsights/2024-03-01/threatintelligence/method_indicatorqueryindicators.go @@ -24,6 +24,18 @@ type IndicatorQueryIndicatorsCompleteResult struct { Items []ThreatIntelligenceInformation } +type IndicatorQueryIndicatorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *IndicatorQueryIndicatorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // IndicatorQueryIndicators ... func (c ThreatIntelligenceClient) IndicatorQueryIndicators(ctx context.Context, id WorkspaceId, input ThreatIntelligenceFilteringCriteria) (result IndicatorQueryIndicatorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ThreatIntelligenceClient) IndicatorQueryIndicators(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &IndicatorQueryIndicatorsCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/queryIndicators", id.ID()), } diff --git a/resource-manager/securityinsights/2024-03-01/threatintelligence/method_indicatorslist.go b/resource-manager/securityinsights/2024-03-01/threatintelligence/method_indicatorslist.go index 1b66f5af735..1757c99fda7 100644 --- a/resource-manager/securityinsights/2024-03-01/threatintelligence/method_indicatorslist.go +++ b/resource-manager/securityinsights/2024-03-01/threatintelligence/method_indicatorslist.go @@ -59,6 +59,18 @@ func (o IndicatorsListOperationOptions) ToQuery() *client.QueryParams { return &out } +type IndicatorsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *IndicatorsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // IndicatorsList ... func (c ThreatIntelligenceClient) IndicatorsList(ctx context.Context, id WorkspaceId, options IndicatorsListOperationOptions) (result IndicatorsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ThreatIntelligenceClient) IndicatorsList(ctx context.Context, id Workspa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators", id.ID()), OptionsObject: options, + Pager: &IndicatorsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/threatIntelligence/main/indicators", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/securityinsights/2024-03-01/watchlistitems/method_list.go b/resource-manager/securityinsights/2024-03-01/watchlistitems/method_list.go index 98f8842df64..91596ea3a4e 100644 --- a/resource-manager/securityinsights/2024-03-01/watchlistitems/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/watchlistitems/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []WatchlistItem } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WatchlistItemsClient) List(ctx context.Context, id WatchlistId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WatchlistItemsClient) List(ctx context.Context, id WatchlistId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/watchlistItems", id.ID()), } diff --git a/resource-manager/securityinsights/2024-03-01/watchlists/method_list.go b/resource-manager/securityinsights/2024-03-01/watchlists/method_list.go index 6509b490423..d1a7ae10ee6 100644 --- a/resource-manager/securityinsights/2024-03-01/watchlists/method_list.go +++ b/resource-manager/securityinsights/2024-03-01/watchlists/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Watchlist } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WatchlistsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WatchlistsClient) List(ctx context.Context, id WorkspaceId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SecurityInsights/watchlists", id.ID()), } diff --git a/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_list.go b/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_list.go index 5ae1e671440..15ec06bfce6 100644 --- a/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_list.go +++ b/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ArmDisasterRecovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/disasterRecoveryConfigs", id.ID()), } diff --git a/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_listauthorizationrules.go b/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_listauthorizationrules.go index 7eaf2302f9f..dda951669f3 100644 --- a/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_listauthorizationrules.go +++ b/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_listauthorizationrules.go @@ -23,6 +23,18 @@ type ListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type ListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAuthorizationRules ... func (c DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.Context, id DisasterRecoveryConfigId) (result ListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2021-06-01-preview/migrationconfigs/method_list.go b/resource-manager/servicebus/2021-06-01-preview/migrationconfigs/method_list.go index bd356ff2137..4ef24555cd4 100644 --- a/resource-manager/servicebus/2021-06-01-preview/migrationconfigs/method_list.go +++ b/resource-manager/servicebus/2021-06-01-preview/migrationconfigs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MigrationConfigProperties } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MigrationConfigsClient) List(ctx context.Context, id NamespaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MigrationConfigsClient) List(ctx context.Context, id NamespaceId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/migrationConfigurations", id.ID()), } diff --git a/resource-manager/servicebus/2021-06-01-preview/namespaces/method_list.go b/resource-manager/servicebus/2021-06-01-preview/namespaces/method_list.go index 0f73fcf81ce..bab5bc032ac 100644 --- a/resource-manager/servicebus/2021-06-01-preview/namespaces/method_list.go +++ b/resource-manager/servicebus/2021-06-01-preview/namespaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SBNamespace } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceBus/namespaces", id.ID()), } diff --git a/resource-manager/servicebus/2021-06-01-preview/namespaces/method_listbyresourcegroup.go b/resource-manager/servicebus/2021-06-01-preview/namespaces/method_listbyresourcegroup.go index a2742ea6122..7c62b50630a 100644 --- a/resource-manager/servicebus/2021-06-01-preview/namespaces/method_listbyresourcegroup.go +++ b/resource-manager/servicebus/2021-06-01-preview/namespaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SBNamespace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceBus/namespaces", id.ID()), } diff --git a/resource-manager/servicebus/2021-06-01-preview/namespaces/method_listnetworkrulesets.go b/resource-manager/servicebus/2021-06-01-preview/namespaces/method_listnetworkrulesets.go index 7095593d00c..8fdb252aee1 100644 --- a/resource-manager/servicebus/2021-06-01-preview/namespaces/method_listnetworkrulesets.go +++ b/resource-manager/servicebus/2021-06-01-preview/namespaces/method_listnetworkrulesets.go @@ -23,6 +23,18 @@ type ListNetworkRuleSetsCompleteResult struct { Items []NetworkRuleSet } +type ListNetworkRuleSetsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListNetworkRuleSetsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListNetworkRuleSets ... func (c NamespacesClient) ListNetworkRuleSets(ctx context.Context, id NamespaceId) (result ListNetworkRuleSetsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesClient) ListNetworkRuleSets(ctx context.Context, id NamespaceI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListNetworkRuleSetsCustomPager{}, Path: fmt.Sprintf("%s/networkRuleSets", id.ID()), } diff --git a/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go b/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go index 1b85406f3b2..be28936e9a9 100644 --- a/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go +++ b/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go @@ -23,6 +23,18 @@ type NamespacesListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type NamespacesListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NamespacesListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NamespacesListAuthorizationRules ... func (c NamespacesAuthorizationRuleClient) NamespacesListAuthorizationRules(ctx context.Context, id NamespaceId) (result NamespacesListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesAuthorizationRuleClient) NamespacesListAuthorizationRules(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NamespacesListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2021-06-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go b/resource-manager/servicebus/2021-06-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go index 993252c036c..8f81c845b63 100644 --- a/resource-manager/servicebus/2021-06-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go +++ b/resource-manager/servicebus/2021-06-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListCompleteResult struct { Items []PrivateEndpointConnection } +type PrivateEndpointConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsList ... func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsList(ctx context.Context, id NamespaceId) (result PrivateEndpointConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsLi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/servicebus/2021-06-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go b/resource-manager/servicebus/2021-06-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go index 855e0b9db56..88dfb50ec3a 100644 --- a/resource-manager/servicebus/2021-06-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go +++ b/resource-manager/servicebus/2021-06-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesGetCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesGetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesGetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesGet ... func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesGet(ctx context.Context, id NamespaceId) (result PrivateLinkResourcesGetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesGet(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesGetCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/servicebus/2021-06-01-preview/queues/method_listbynamespace.go b/resource-manager/servicebus/2021-06-01-preview/queues/method_listbynamespace.go index eb8d8edd108..8c8839829fc 100644 --- a/resource-manager/servicebus/2021-06-01-preview/queues/method_listbynamespace.go +++ b/resource-manager/servicebus/2021-06-01-preview/queues/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c QueuesClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c QueuesClient) ListByNamespace(ctx context.Context, id NamespaceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/queues", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/queues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queueslistauthorizationrules.go b/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queueslistauthorizationrules.go index 67b21d21491..01b839b5118 100644 --- a/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queueslistauthorizationrules.go +++ b/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queueslistauthorizationrules.go @@ -23,6 +23,18 @@ type QueuesListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type QueuesListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *QueuesListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // QueuesListAuthorizationRules ... func (c QueuesAuthorizationRuleClient) QueuesListAuthorizationRules(ctx context.Context, id QueueId) (result QueuesListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c QueuesAuthorizationRuleClient) QueuesListAuthorizationRules(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &QueuesListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2021-06-01-preview/rules/method_listbysubscriptions.go b/resource-manager/servicebus/2021-06-01-preview/rules/method_listbysubscriptions.go index cdc2f11e036..8c82af50502 100644 --- a/resource-manager/servicebus/2021-06-01-preview/rules/method_listbysubscriptions.go +++ b/resource-manager/servicebus/2021-06-01-preview/rules/method_listbysubscriptions.go @@ -54,6 +54,18 @@ func (o ListBySubscriptionsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscriptions ... func (c RulesClient) ListBySubscriptions(ctx context.Context, id Subscriptions2Id, options ListBySubscriptionsOperationOptions) (result ListBySubscriptionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c RulesClient) ListBySubscriptions(ctx context.Context, id Subscriptions2I http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/rules", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionsCustomPager{}, + Path: fmt.Sprintf("%s/rules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_listbytopic.go b/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_listbytopic.go index ab69b71aa51..c4544d08fa8 100644 --- a/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_listbytopic.go +++ b/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_listbytopic.go @@ -54,6 +54,18 @@ func (o ListByTopicOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTopicCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTopicCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTopic ... func (c SubscriptionsClient) ListByTopic(ctx context.Context, id TopicId, options ListByTopicOperationOptions) (result ListByTopicOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c SubscriptionsClient) ListByTopic(ctx context.Context, id TopicId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &ListByTopicCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2021-06-01-preview/topics/method_listbynamespace.go b/resource-manager/servicebus/2021-06-01-preview/topics/method_listbynamespace.go index 90f797296e4..2c16062a76f 100644 --- a/resource-manager/servicebus/2021-06-01-preview/topics/method_listbynamespace.go +++ b/resource-manager/servicebus/2021-06-01-preview/topics/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c TopicsClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c TopicsClient) ListByNamespace(ctx context.Context, id NamespaceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/topics", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/topics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicslistauthorizationrules.go b/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicslistauthorizationrules.go index c20f96decc8..6c1183a8f65 100644 --- a/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicslistauthorizationrules.go +++ b/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicslistauthorizationrules.go @@ -23,6 +23,18 @@ type TopicsListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type TopicsListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TopicsListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TopicsListAuthorizationRules ... func (c TopicsAuthorizationRuleClient) TopicsListAuthorizationRules(ctx context.Context, id TopicId) (result TopicsListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TopicsAuthorizationRuleClient) TopicsListAuthorizationRules(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &TopicsListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2021-11-01/disasterrecoveryconfigs/method_list.go b/resource-manager/servicebus/2021-11-01/disasterrecoveryconfigs/method_list.go index 5ae1e671440..15ec06bfce6 100644 --- a/resource-manager/servicebus/2021-11-01/disasterrecoveryconfigs/method_list.go +++ b/resource-manager/servicebus/2021-11-01/disasterrecoveryconfigs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ArmDisasterRecovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/disasterRecoveryConfigs", id.ID()), } diff --git a/resource-manager/servicebus/2021-11-01/disasterrecoveryconfigs/method_listauthorizationrules.go b/resource-manager/servicebus/2021-11-01/disasterrecoveryconfigs/method_listauthorizationrules.go index 7eaf2302f9f..dda951669f3 100644 --- a/resource-manager/servicebus/2021-11-01/disasterrecoveryconfigs/method_listauthorizationrules.go +++ b/resource-manager/servicebus/2021-11-01/disasterrecoveryconfigs/method_listauthorizationrules.go @@ -23,6 +23,18 @@ type ListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type ListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAuthorizationRules ... func (c DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.Context, id DisasterRecoveryConfigId) (result ListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2021-11-01/migrationconfigs/method_list.go b/resource-manager/servicebus/2021-11-01/migrationconfigs/method_list.go index bd356ff2137..4ef24555cd4 100644 --- a/resource-manager/servicebus/2021-11-01/migrationconfigs/method_list.go +++ b/resource-manager/servicebus/2021-11-01/migrationconfigs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MigrationConfigProperties } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MigrationConfigsClient) List(ctx context.Context, id NamespaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MigrationConfigsClient) List(ctx context.Context, id NamespaceId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/migrationConfigurations", id.ID()), } diff --git a/resource-manager/servicebus/2021-11-01/namespaces/method_list.go b/resource-manager/servicebus/2021-11-01/namespaces/method_list.go index 0f73fcf81ce..bab5bc032ac 100644 --- a/resource-manager/servicebus/2021-11-01/namespaces/method_list.go +++ b/resource-manager/servicebus/2021-11-01/namespaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SBNamespace } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceBus/namespaces", id.ID()), } diff --git a/resource-manager/servicebus/2021-11-01/namespaces/method_listbyresourcegroup.go b/resource-manager/servicebus/2021-11-01/namespaces/method_listbyresourcegroup.go index a2742ea6122..7c62b50630a 100644 --- a/resource-manager/servicebus/2021-11-01/namespaces/method_listbyresourcegroup.go +++ b/resource-manager/servicebus/2021-11-01/namespaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SBNamespace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceBus/namespaces", id.ID()), } diff --git a/resource-manager/servicebus/2021-11-01/namespaces/method_listnetworkrulesets.go b/resource-manager/servicebus/2021-11-01/namespaces/method_listnetworkrulesets.go index 7095593d00c..8fdb252aee1 100644 --- a/resource-manager/servicebus/2021-11-01/namespaces/method_listnetworkrulesets.go +++ b/resource-manager/servicebus/2021-11-01/namespaces/method_listnetworkrulesets.go @@ -23,6 +23,18 @@ type ListNetworkRuleSetsCompleteResult struct { Items []NetworkRuleSet } +type ListNetworkRuleSetsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListNetworkRuleSetsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListNetworkRuleSets ... func (c NamespacesClient) ListNetworkRuleSets(ctx context.Context, id NamespaceId) (result ListNetworkRuleSetsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesClient) ListNetworkRuleSets(ctx context.Context, id NamespaceI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListNetworkRuleSetsCustomPager{}, Path: fmt.Sprintf("%s/networkRuleSets", id.ID()), } diff --git a/resource-manager/servicebus/2021-11-01/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go b/resource-manager/servicebus/2021-11-01/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go index 1b85406f3b2..be28936e9a9 100644 --- a/resource-manager/servicebus/2021-11-01/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go +++ b/resource-manager/servicebus/2021-11-01/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go @@ -23,6 +23,18 @@ type NamespacesListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type NamespacesListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NamespacesListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NamespacesListAuthorizationRules ... func (c NamespacesAuthorizationRuleClient) NamespacesListAuthorizationRules(ctx context.Context, id NamespaceId) (result NamespacesListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesAuthorizationRuleClient) NamespacesListAuthorizationRules(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NamespacesListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2021-11-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go b/resource-manager/servicebus/2021-11-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go index 993252c036c..8f81c845b63 100644 --- a/resource-manager/servicebus/2021-11-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go +++ b/resource-manager/servicebus/2021-11-01/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListCompleteResult struct { Items []PrivateEndpointConnection } +type PrivateEndpointConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsList ... func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsList(ctx context.Context, id NamespaceId) (result PrivateEndpointConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsLi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/servicebus/2021-11-01/namespacesprivatelinkresources/method_privatelinkresourcesget.go b/resource-manager/servicebus/2021-11-01/namespacesprivatelinkresources/method_privatelinkresourcesget.go index 855e0b9db56..88dfb50ec3a 100644 --- a/resource-manager/servicebus/2021-11-01/namespacesprivatelinkresources/method_privatelinkresourcesget.go +++ b/resource-manager/servicebus/2021-11-01/namespacesprivatelinkresources/method_privatelinkresourcesget.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesGetCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesGetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesGetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesGet ... func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesGet(ctx context.Context, id NamespaceId) (result PrivateLinkResourcesGetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesGet(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesGetCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/servicebus/2021-11-01/queues/method_listbynamespace.go b/resource-manager/servicebus/2021-11-01/queues/method_listbynamespace.go index eb8d8edd108..8c8839829fc 100644 --- a/resource-manager/servicebus/2021-11-01/queues/method_listbynamespace.go +++ b/resource-manager/servicebus/2021-11-01/queues/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c QueuesClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c QueuesClient) ListByNamespace(ctx context.Context, id NamespaceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/queues", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/queues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2021-11-01/queuesauthorizationrule/method_queueslistauthorizationrules.go b/resource-manager/servicebus/2021-11-01/queuesauthorizationrule/method_queueslistauthorizationrules.go index 67b21d21491..01b839b5118 100644 --- a/resource-manager/servicebus/2021-11-01/queuesauthorizationrule/method_queueslistauthorizationrules.go +++ b/resource-manager/servicebus/2021-11-01/queuesauthorizationrule/method_queueslistauthorizationrules.go @@ -23,6 +23,18 @@ type QueuesListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type QueuesListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *QueuesListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // QueuesListAuthorizationRules ... func (c QueuesAuthorizationRuleClient) QueuesListAuthorizationRules(ctx context.Context, id QueueId) (result QueuesListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c QueuesAuthorizationRuleClient) QueuesListAuthorizationRules(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &QueuesListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2021-11-01/rules/method_listbysubscriptions.go b/resource-manager/servicebus/2021-11-01/rules/method_listbysubscriptions.go index cdc2f11e036..8c82af50502 100644 --- a/resource-manager/servicebus/2021-11-01/rules/method_listbysubscriptions.go +++ b/resource-manager/servicebus/2021-11-01/rules/method_listbysubscriptions.go @@ -54,6 +54,18 @@ func (o ListBySubscriptionsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscriptions ... func (c RulesClient) ListBySubscriptions(ctx context.Context, id Subscriptions2Id, options ListBySubscriptionsOperationOptions) (result ListBySubscriptionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c RulesClient) ListBySubscriptions(ctx context.Context, id Subscriptions2I http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/rules", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionsCustomPager{}, + Path: fmt.Sprintf("%s/rules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2021-11-01/subscriptions/method_listbytopic.go b/resource-manager/servicebus/2021-11-01/subscriptions/method_listbytopic.go index ab69b71aa51..c4544d08fa8 100644 --- a/resource-manager/servicebus/2021-11-01/subscriptions/method_listbytopic.go +++ b/resource-manager/servicebus/2021-11-01/subscriptions/method_listbytopic.go @@ -54,6 +54,18 @@ func (o ListByTopicOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTopicCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTopicCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTopic ... func (c SubscriptionsClient) ListByTopic(ctx context.Context, id TopicId, options ListByTopicOperationOptions) (result ListByTopicOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c SubscriptionsClient) ListByTopic(ctx context.Context, id TopicId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &ListByTopicCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2021-11-01/topics/method_listbynamespace.go b/resource-manager/servicebus/2021-11-01/topics/method_listbynamespace.go index 90f797296e4..2c16062a76f 100644 --- a/resource-manager/servicebus/2021-11-01/topics/method_listbynamespace.go +++ b/resource-manager/servicebus/2021-11-01/topics/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c TopicsClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c TopicsClient) ListByNamespace(ctx context.Context, id NamespaceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/topics", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/topics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2021-11-01/topicsauthorizationrule/method_topicslistauthorizationrules.go b/resource-manager/servicebus/2021-11-01/topicsauthorizationrule/method_topicslistauthorizationrules.go index c20f96decc8..6c1183a8f65 100644 --- a/resource-manager/servicebus/2021-11-01/topicsauthorizationrule/method_topicslistauthorizationrules.go +++ b/resource-manager/servicebus/2021-11-01/topicsauthorizationrule/method_topicslistauthorizationrules.go @@ -23,6 +23,18 @@ type TopicsListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type TopicsListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TopicsListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TopicsListAuthorizationRules ... func (c TopicsAuthorizationRuleClient) TopicsListAuthorizationRules(ctx context.Context, id TopicId) (result TopicsListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TopicsAuthorizationRuleClient) TopicsListAuthorizationRules(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &TopicsListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2022-01-01-preview/disasterrecoveryconfigs/method_list.go b/resource-manager/servicebus/2022-01-01-preview/disasterrecoveryconfigs/method_list.go index 5ae1e671440..15ec06bfce6 100644 --- a/resource-manager/servicebus/2022-01-01-preview/disasterrecoveryconfigs/method_list.go +++ b/resource-manager/servicebus/2022-01-01-preview/disasterrecoveryconfigs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ArmDisasterRecovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/disasterRecoveryConfigs", id.ID()), } diff --git a/resource-manager/servicebus/2022-01-01-preview/disasterrecoveryconfigs/method_listauthorizationrules.go b/resource-manager/servicebus/2022-01-01-preview/disasterrecoveryconfigs/method_listauthorizationrules.go index 7eaf2302f9f..dda951669f3 100644 --- a/resource-manager/servicebus/2022-01-01-preview/disasterrecoveryconfigs/method_listauthorizationrules.go +++ b/resource-manager/servicebus/2022-01-01-preview/disasterrecoveryconfigs/method_listauthorizationrules.go @@ -23,6 +23,18 @@ type ListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type ListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAuthorizationRules ... func (c DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.Context, id DisasterRecoveryConfigId) (result ListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2022-01-01-preview/migrationconfigs/method_list.go b/resource-manager/servicebus/2022-01-01-preview/migrationconfigs/method_list.go index bd356ff2137..4ef24555cd4 100644 --- a/resource-manager/servicebus/2022-01-01-preview/migrationconfigs/method_list.go +++ b/resource-manager/servicebus/2022-01-01-preview/migrationconfigs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MigrationConfigProperties } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MigrationConfigsClient) List(ctx context.Context, id NamespaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MigrationConfigsClient) List(ctx context.Context, id NamespaceId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/migrationConfigurations", id.ID()), } diff --git a/resource-manager/servicebus/2022-01-01-preview/namespaces/method_list.go b/resource-manager/servicebus/2022-01-01-preview/namespaces/method_list.go index 0f73fcf81ce..bab5bc032ac 100644 --- a/resource-manager/servicebus/2022-01-01-preview/namespaces/method_list.go +++ b/resource-manager/servicebus/2022-01-01-preview/namespaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SBNamespace } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceBus/namespaces", id.ID()), } diff --git a/resource-manager/servicebus/2022-01-01-preview/namespaces/method_listbyresourcegroup.go b/resource-manager/servicebus/2022-01-01-preview/namespaces/method_listbyresourcegroup.go index a2742ea6122..7c62b50630a 100644 --- a/resource-manager/servicebus/2022-01-01-preview/namespaces/method_listbyresourcegroup.go +++ b/resource-manager/servicebus/2022-01-01-preview/namespaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SBNamespace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceBus/namespaces", id.ID()), } diff --git a/resource-manager/servicebus/2022-01-01-preview/namespaces/method_listnetworkrulesets.go b/resource-manager/servicebus/2022-01-01-preview/namespaces/method_listnetworkrulesets.go index 7095593d00c..8fdb252aee1 100644 --- a/resource-manager/servicebus/2022-01-01-preview/namespaces/method_listnetworkrulesets.go +++ b/resource-manager/servicebus/2022-01-01-preview/namespaces/method_listnetworkrulesets.go @@ -23,6 +23,18 @@ type ListNetworkRuleSetsCompleteResult struct { Items []NetworkRuleSet } +type ListNetworkRuleSetsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListNetworkRuleSetsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListNetworkRuleSets ... func (c NamespacesClient) ListNetworkRuleSets(ctx context.Context, id NamespaceId) (result ListNetworkRuleSetsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesClient) ListNetworkRuleSets(ctx context.Context, id NamespaceI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListNetworkRuleSetsCustomPager{}, Path: fmt.Sprintf("%s/networkRuleSets", id.ID()), } diff --git a/resource-manager/servicebus/2022-01-01-preview/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go b/resource-manager/servicebus/2022-01-01-preview/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go index 1b85406f3b2..be28936e9a9 100644 --- a/resource-manager/servicebus/2022-01-01-preview/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go +++ b/resource-manager/servicebus/2022-01-01-preview/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go @@ -23,6 +23,18 @@ type NamespacesListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type NamespacesListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NamespacesListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NamespacesListAuthorizationRules ... func (c NamespacesAuthorizationRuleClient) NamespacesListAuthorizationRules(ctx context.Context, id NamespaceId) (result NamespacesListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesAuthorizationRuleClient) NamespacesListAuthorizationRules(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NamespacesListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2022-01-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go b/resource-manager/servicebus/2022-01-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go index 993252c036c..8f81c845b63 100644 --- a/resource-manager/servicebus/2022-01-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go +++ b/resource-manager/servicebus/2022-01-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListCompleteResult struct { Items []PrivateEndpointConnection } +type PrivateEndpointConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsList ... func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsList(ctx context.Context, id NamespaceId) (result PrivateEndpointConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsLi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/servicebus/2022-01-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go b/resource-manager/servicebus/2022-01-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go index 855e0b9db56..88dfb50ec3a 100644 --- a/resource-manager/servicebus/2022-01-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go +++ b/resource-manager/servicebus/2022-01-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesGetCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesGetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesGetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesGet ... func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesGet(ctx context.Context, id NamespaceId) (result PrivateLinkResourcesGetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesGet(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesGetCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/servicebus/2022-01-01-preview/queues/method_listbynamespace.go b/resource-manager/servicebus/2022-01-01-preview/queues/method_listbynamespace.go index eb8d8edd108..8c8839829fc 100644 --- a/resource-manager/servicebus/2022-01-01-preview/queues/method_listbynamespace.go +++ b/resource-manager/servicebus/2022-01-01-preview/queues/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c QueuesClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c QueuesClient) ListByNamespace(ctx context.Context, id NamespaceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/queues", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/queues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2022-01-01-preview/queuesauthorizationrule/method_queueslistauthorizationrules.go b/resource-manager/servicebus/2022-01-01-preview/queuesauthorizationrule/method_queueslistauthorizationrules.go index 67b21d21491..01b839b5118 100644 --- a/resource-manager/servicebus/2022-01-01-preview/queuesauthorizationrule/method_queueslistauthorizationrules.go +++ b/resource-manager/servicebus/2022-01-01-preview/queuesauthorizationrule/method_queueslistauthorizationrules.go @@ -23,6 +23,18 @@ type QueuesListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type QueuesListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *QueuesListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // QueuesListAuthorizationRules ... func (c QueuesAuthorizationRuleClient) QueuesListAuthorizationRules(ctx context.Context, id QueueId) (result QueuesListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c QueuesAuthorizationRuleClient) QueuesListAuthorizationRules(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &QueuesListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2022-01-01-preview/rules/method_listbysubscriptions.go b/resource-manager/servicebus/2022-01-01-preview/rules/method_listbysubscriptions.go index cdc2f11e036..8c82af50502 100644 --- a/resource-manager/servicebus/2022-01-01-preview/rules/method_listbysubscriptions.go +++ b/resource-manager/servicebus/2022-01-01-preview/rules/method_listbysubscriptions.go @@ -54,6 +54,18 @@ func (o ListBySubscriptionsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscriptions ... func (c RulesClient) ListBySubscriptions(ctx context.Context, id Subscriptions2Id, options ListBySubscriptionsOperationOptions) (result ListBySubscriptionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c RulesClient) ListBySubscriptions(ctx context.Context, id Subscriptions2I http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/rules", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionsCustomPager{}, + Path: fmt.Sprintf("%s/rules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2022-01-01-preview/subscriptions/method_listbytopic.go b/resource-manager/servicebus/2022-01-01-preview/subscriptions/method_listbytopic.go index ab69b71aa51..c4544d08fa8 100644 --- a/resource-manager/servicebus/2022-01-01-preview/subscriptions/method_listbytopic.go +++ b/resource-manager/servicebus/2022-01-01-preview/subscriptions/method_listbytopic.go @@ -54,6 +54,18 @@ func (o ListByTopicOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTopicCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTopicCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTopic ... func (c SubscriptionsClient) ListByTopic(ctx context.Context, id TopicId, options ListByTopicOperationOptions) (result ListByTopicOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c SubscriptionsClient) ListByTopic(ctx context.Context, id TopicId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &ListByTopicCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2022-01-01-preview/topics/method_listbynamespace.go b/resource-manager/servicebus/2022-01-01-preview/topics/method_listbynamespace.go index 90f797296e4..2c16062a76f 100644 --- a/resource-manager/servicebus/2022-01-01-preview/topics/method_listbynamespace.go +++ b/resource-manager/servicebus/2022-01-01-preview/topics/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c TopicsClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c TopicsClient) ListByNamespace(ctx context.Context, id NamespaceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/topics", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/topics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2022-01-01-preview/topicsauthorizationrule/method_topicslistauthorizationrules.go b/resource-manager/servicebus/2022-01-01-preview/topicsauthorizationrule/method_topicslistauthorizationrules.go index c20f96decc8..6c1183a8f65 100644 --- a/resource-manager/servicebus/2022-01-01-preview/topicsauthorizationrule/method_topicslistauthorizationrules.go +++ b/resource-manager/servicebus/2022-01-01-preview/topicsauthorizationrule/method_topicslistauthorizationrules.go @@ -23,6 +23,18 @@ type TopicsListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type TopicsListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TopicsListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TopicsListAuthorizationRules ... func (c TopicsAuthorizationRuleClient) TopicsListAuthorizationRules(ctx context.Context, id TopicId) (result TopicsListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TopicsAuthorizationRuleClient) TopicsListAuthorizationRules(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &TopicsListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2022-10-01-preview/disasterrecoveryconfigs/method_list.go b/resource-manager/servicebus/2022-10-01-preview/disasterrecoveryconfigs/method_list.go index 5ae1e671440..15ec06bfce6 100644 --- a/resource-manager/servicebus/2022-10-01-preview/disasterrecoveryconfigs/method_list.go +++ b/resource-manager/servicebus/2022-10-01-preview/disasterrecoveryconfigs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ArmDisasterRecovery } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DisasterRecoveryConfigsClient) List(ctx context.Context, id NamespaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/disasterRecoveryConfigs", id.ID()), } diff --git a/resource-manager/servicebus/2022-10-01-preview/disasterrecoveryconfigs/method_listauthorizationrules.go b/resource-manager/servicebus/2022-10-01-preview/disasterrecoveryconfigs/method_listauthorizationrules.go index 7eaf2302f9f..dda951669f3 100644 --- a/resource-manager/servicebus/2022-10-01-preview/disasterrecoveryconfigs/method_listauthorizationrules.go +++ b/resource-manager/servicebus/2022-10-01-preview/disasterrecoveryconfigs/method_listauthorizationrules.go @@ -23,6 +23,18 @@ type ListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type ListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAuthorizationRules ... func (c DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.Context, id DisasterRecoveryConfigId) (result ListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2022-10-01-preview/migrationconfigs/method_list.go b/resource-manager/servicebus/2022-10-01-preview/migrationconfigs/method_list.go index bd356ff2137..4ef24555cd4 100644 --- a/resource-manager/servicebus/2022-10-01-preview/migrationconfigs/method_list.go +++ b/resource-manager/servicebus/2022-10-01-preview/migrationconfigs/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []MigrationConfigProperties } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MigrationConfigsClient) List(ctx context.Context, id NamespaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c MigrationConfigsClient) List(ctx context.Context, id NamespaceId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/migrationConfigurations", id.ID()), } diff --git a/resource-manager/servicebus/2022-10-01-preview/namespaces/method_list.go b/resource-manager/servicebus/2022-10-01-preview/namespaces/method_list.go index 0f73fcf81ce..bab5bc032ac 100644 --- a/resource-manager/servicebus/2022-10-01-preview/namespaces/method_list.go +++ b/resource-manager/servicebus/2022-10-01-preview/namespaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SBNamespace } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceBus/namespaces", id.ID()), } diff --git a/resource-manager/servicebus/2022-10-01-preview/namespaces/method_listbyresourcegroup.go b/resource-manager/servicebus/2022-10-01-preview/namespaces/method_listbyresourcegroup.go index a2742ea6122..7c62b50630a 100644 --- a/resource-manager/servicebus/2022-10-01-preview/namespaces/method_listbyresourcegroup.go +++ b/resource-manager/servicebus/2022-10-01-preview/namespaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SBNamespace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceBus/namespaces", id.ID()), } diff --git a/resource-manager/servicebus/2022-10-01-preview/namespaces/method_listnetworkrulesets.go b/resource-manager/servicebus/2022-10-01-preview/namespaces/method_listnetworkrulesets.go index 7095593d00c..8fdb252aee1 100644 --- a/resource-manager/servicebus/2022-10-01-preview/namespaces/method_listnetworkrulesets.go +++ b/resource-manager/servicebus/2022-10-01-preview/namespaces/method_listnetworkrulesets.go @@ -23,6 +23,18 @@ type ListNetworkRuleSetsCompleteResult struct { Items []NetworkRuleSet } +type ListNetworkRuleSetsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListNetworkRuleSetsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListNetworkRuleSets ... func (c NamespacesClient) ListNetworkRuleSets(ctx context.Context, id NamespaceId) (result ListNetworkRuleSetsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesClient) ListNetworkRuleSets(ctx context.Context, id NamespaceI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListNetworkRuleSetsCustomPager{}, Path: fmt.Sprintf("%s/networkRuleSets", id.ID()), } diff --git a/resource-manager/servicebus/2022-10-01-preview/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go b/resource-manager/servicebus/2022-10-01-preview/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go index 1b85406f3b2..be28936e9a9 100644 --- a/resource-manager/servicebus/2022-10-01-preview/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go +++ b/resource-manager/servicebus/2022-10-01-preview/namespacesauthorizationrule/method_namespaceslistauthorizationrules.go @@ -23,6 +23,18 @@ type NamespacesListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type NamespacesListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NamespacesListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NamespacesListAuthorizationRules ... func (c NamespacesAuthorizationRuleClient) NamespacesListAuthorizationRules(ctx context.Context, id NamespaceId) (result NamespacesListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesAuthorizationRuleClient) NamespacesListAuthorizationRules(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NamespacesListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2022-10-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go b/resource-manager/servicebus/2022-10-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go index 993252c036c..8f81c845b63 100644 --- a/resource-manager/servicebus/2022-10-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go +++ b/resource-manager/servicebus/2022-10-01-preview/namespacesprivateendpointconnections/method_privateendpointconnectionslist.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListCompleteResult struct { Items []PrivateEndpointConnection } +type PrivateEndpointConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsList ... func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsList(ctx context.Context, id NamespaceId) (result PrivateEndpointConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateEndpointConnectionsClient) PrivateEndpointConnectionsLi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/servicebus/2022-10-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go b/resource-manager/servicebus/2022-10-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go index 855e0b9db56..88dfb50ec3a 100644 --- a/resource-manager/servicebus/2022-10-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go +++ b/resource-manager/servicebus/2022-10-01-preview/namespacesprivatelinkresources/method_privatelinkresourcesget.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesGetCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesGetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesGetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesGet ... func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesGet(ctx context.Context, id NamespaceId) (result PrivateLinkResourcesGetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NamespacesPrivateLinkResourcesClient) PrivateLinkResourcesGet(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesGetCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/servicebus/2022-10-01-preview/queues/method_listbynamespace.go b/resource-manager/servicebus/2022-10-01-preview/queues/method_listbynamespace.go index eb8d8edd108..8c8839829fc 100644 --- a/resource-manager/servicebus/2022-10-01-preview/queues/method_listbynamespace.go +++ b/resource-manager/servicebus/2022-10-01-preview/queues/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c QueuesClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c QueuesClient) ListByNamespace(ctx context.Context, id NamespaceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/queues", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/queues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2022-10-01-preview/queuesauthorizationrule/method_queueslistauthorizationrules.go b/resource-manager/servicebus/2022-10-01-preview/queuesauthorizationrule/method_queueslistauthorizationrules.go index 67b21d21491..01b839b5118 100644 --- a/resource-manager/servicebus/2022-10-01-preview/queuesauthorizationrule/method_queueslistauthorizationrules.go +++ b/resource-manager/servicebus/2022-10-01-preview/queuesauthorizationrule/method_queueslistauthorizationrules.go @@ -23,6 +23,18 @@ type QueuesListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type QueuesListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *QueuesListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // QueuesListAuthorizationRules ... func (c QueuesAuthorizationRuleClient) QueuesListAuthorizationRules(ctx context.Context, id QueueId) (result QueuesListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c QueuesAuthorizationRuleClient) QueuesListAuthorizationRules(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &QueuesListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicebus/2022-10-01-preview/rules/method_listbysubscriptions.go b/resource-manager/servicebus/2022-10-01-preview/rules/method_listbysubscriptions.go index cdc2f11e036..8c82af50502 100644 --- a/resource-manager/servicebus/2022-10-01-preview/rules/method_listbysubscriptions.go +++ b/resource-manager/servicebus/2022-10-01-preview/rules/method_listbysubscriptions.go @@ -54,6 +54,18 @@ func (o ListBySubscriptionsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySubscriptionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscriptions ... func (c RulesClient) ListBySubscriptions(ctx context.Context, id Subscriptions2Id, options ListBySubscriptionsOperationOptions) (result ListBySubscriptionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c RulesClient) ListBySubscriptions(ctx context.Context, id Subscriptions2I http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/rules", id.ID()), OptionsObject: options, + Pager: &ListBySubscriptionsCustomPager{}, + Path: fmt.Sprintf("%s/rules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2022-10-01-preview/subscriptions/method_listbytopic.go b/resource-manager/servicebus/2022-10-01-preview/subscriptions/method_listbytopic.go index ab69b71aa51..c4544d08fa8 100644 --- a/resource-manager/servicebus/2022-10-01-preview/subscriptions/method_listbytopic.go +++ b/resource-manager/servicebus/2022-10-01-preview/subscriptions/method_listbytopic.go @@ -54,6 +54,18 @@ func (o ListByTopicOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTopicCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTopicCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTopic ... func (c SubscriptionsClient) ListByTopic(ctx context.Context, id TopicId, options ListByTopicOperationOptions) (result ListByTopicOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c SubscriptionsClient) ListByTopic(ctx context.Context, id TopicId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/subscriptions", id.ID()), OptionsObject: options, + Pager: &ListByTopicCustomPager{}, + Path: fmt.Sprintf("%s/subscriptions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2022-10-01-preview/topics/method_listbynamespace.go b/resource-manager/servicebus/2022-10-01-preview/topics/method_listbynamespace.go index 90f797296e4..2c16062a76f 100644 --- a/resource-manager/servicebus/2022-10-01-preview/topics/method_listbynamespace.go +++ b/resource-manager/servicebus/2022-10-01-preview/topics/method_listbynamespace.go @@ -54,6 +54,18 @@ func (o ListByNamespaceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByNamespaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNamespaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByNamespace ... func (c TopicsClient) ListByNamespace(ctx context.Context, id NamespaceId, options ListByNamespaceOperationOptions) (result ListByNamespaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c TopicsClient) ListByNamespace(ctx context.Context, id NamespaceId, optio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/topics", id.ID()), OptionsObject: options, + Pager: &ListByNamespaceCustomPager{}, + Path: fmt.Sprintf("%s/topics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicebus/2022-10-01-preview/topicsauthorizationrule/method_topicslistauthorizationrules.go b/resource-manager/servicebus/2022-10-01-preview/topicsauthorizationrule/method_topicslistauthorizationrules.go index c20f96decc8..6c1183a8f65 100644 --- a/resource-manager/servicebus/2022-10-01-preview/topicsauthorizationrule/method_topicslistauthorizationrules.go +++ b/resource-manager/servicebus/2022-10-01-preview/topicsauthorizationrule/method_topicslistauthorizationrules.go @@ -23,6 +23,18 @@ type TopicsListAuthorizationRulesCompleteResult struct { Items []SBAuthorizationRule } +type TopicsListAuthorizationRulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TopicsListAuthorizationRulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TopicsListAuthorizationRules ... func (c TopicsAuthorizationRuleClient) TopicsListAuthorizationRules(ctx context.Context, id TopicId) (result TopicsListAuthorizationRulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TopicsAuthorizationRuleClient) TopicsListAuthorizationRules(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &TopicsListAuthorizationRulesCustomPager{}, Path: fmt.Sprintf("%s/authorizationRules", id.ID()), } diff --git a/resource-manager/servicefabric/2021-06-01/application/method_list.go b/resource-manager/servicefabric/2021-06-01/application/method_list.go index 83a7ae86fb9..99351e8543c 100644 --- a/resource-manager/servicefabric/2021-06-01/application/method_list.go +++ b/resource-manager/servicefabric/2021-06-01/application/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationClient) List(ctx context.Context, id ClusterId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/applications", id.ID()), } diff --git a/resource-manager/servicefabric/2021-06-01/applicationtype/method_list.go b/resource-manager/servicefabric/2021-06-01/applicationtype/method_list.go index 0b1825d0594..8e19971aa77 100644 --- a/resource-manager/servicefabric/2021-06-01/applicationtype/method_list.go +++ b/resource-manager/servicefabric/2021-06-01/applicationtype/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationTypeResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationTypeClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationTypeClient) List(ctx context.Context, id ClusterId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/applicationTypes", id.ID()), } diff --git a/resource-manager/servicefabric/2021-06-01/applicationtypeversion/method_list.go b/resource-manager/servicefabric/2021-06-01/applicationtypeversion/method_list.go index c0d557f15b8..118f5cc7187 100644 --- a/resource-manager/servicefabric/2021-06-01/applicationtypeversion/method_list.go +++ b/resource-manager/servicefabric/2021-06-01/applicationtypeversion/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationTypeVersionResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationTypeVersionClient) List(ctx context.Context, id ApplicationTypeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationTypeVersionClient) List(ctx context.Context, id ApplicationTy http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/servicefabric/2021-06-01/cluster/method_list.go b/resource-manager/servicefabric/2021-06-01/cluster/method_list.go index 293f13af548..9c04c20ea21 100644 --- a/resource-manager/servicefabric/2021-06-01/cluster/method_list.go +++ b/resource-manager/servicefabric/2021-06-01/cluster/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ClusterClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClusterClient) List(ctx context.Context, id commonids.SubscriptionId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceFabric/clusters", id.ID()), } diff --git a/resource-manager/servicefabric/2021-06-01/cluster/method_listbyresourcegroup.go b/resource-manager/servicefabric/2021-06-01/cluster/method_listbyresourcegroup.go index 6831364353e..95ff9944dd0 100644 --- a/resource-manager/servicefabric/2021-06-01/cluster/method_listbyresourcegroup.go +++ b/resource-manager/servicefabric/2021-06-01/cluster/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ClusterClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClusterClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceFabric/clusters", id.ID()), } diff --git a/resource-manager/servicefabric/2021-06-01/clusterversion/method_get.go b/resource-manager/servicefabric/2021-06-01/clusterversion/method_get.go index 46adc15ac29..ca5729f6b8d 100644 --- a/resource-manager/servicefabric/2021-06-01/clusterversion/method_get.go +++ b/resource-manager/servicefabric/2021-06-01/clusterversion/method_get.go @@ -23,6 +23,18 @@ type GetCompleteResult struct { Items []ClusterCodeVersionsResult } +type GetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Get ... func (c ClusterVersionClient) Get(ctx context.Context, id ClusterVersionId) (result GetOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ClusterVersionClient) Get(ctx context.Context, id ClusterVersionId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/servicefabric/2021-06-01/clusterversion/method_getbyenvironment.go b/resource-manager/servicefabric/2021-06-01/clusterversion/method_getbyenvironment.go index 751ccc4479f..13bf4088fd2 100644 --- a/resource-manager/servicefabric/2021-06-01/clusterversion/method_getbyenvironment.go +++ b/resource-manager/servicefabric/2021-06-01/clusterversion/method_getbyenvironment.go @@ -23,6 +23,18 @@ type GetByEnvironmentCompleteResult struct { Items []ClusterCodeVersionsResult } +type GetByEnvironmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetByEnvironmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetByEnvironment ... func (c ClusterVersionClient) GetByEnvironment(ctx context.Context, id EnvironmentClusterVersionId) (result GetByEnvironmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ClusterVersionClient) GetByEnvironment(ctx context.Context, id Environme http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetByEnvironmentCustomPager{}, Path: id.ID(), } diff --git a/resource-manager/servicefabric/2021-06-01/clusterversion/method_list.go b/resource-manager/servicefabric/2021-06-01/clusterversion/method_list.go index 5d9d903c0ab..b5a47f0e63d 100644 --- a/resource-manager/servicefabric/2021-06-01/clusterversion/method_list.go +++ b/resource-manager/servicefabric/2021-06-01/clusterversion/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ClusterCodeVersionsResult } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ClusterVersionClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ClusterVersionClient) List(ctx context.Context, id LocationId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/clusterVersions", id.ID()), } diff --git a/resource-manager/servicefabric/2021-06-01/clusterversion/method_listbyenvironment.go b/resource-manager/servicefabric/2021-06-01/clusterversion/method_listbyenvironment.go index ca008a73370..2d454c9c09d 100644 --- a/resource-manager/servicefabric/2021-06-01/clusterversion/method_listbyenvironment.go +++ b/resource-manager/servicefabric/2021-06-01/clusterversion/method_listbyenvironment.go @@ -23,6 +23,18 @@ type ListByEnvironmentCompleteResult struct { Items []ClusterCodeVersionsResult } +type ListByEnvironmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByEnvironmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByEnvironment ... func (c ClusterVersionClient) ListByEnvironment(ctx context.Context, id EnvironmentId) (result ListByEnvironmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ClusterVersionClient) ListByEnvironment(ctx context.Context, id Environm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByEnvironmentCustomPager{}, Path: fmt.Sprintf("%s/clusterVersions", id.ID()), } diff --git a/resource-manager/servicefabric/2021-06-01/service/method_list.go b/resource-manager/servicefabric/2021-06-01/service/method_list.go index 69c820e374a..c6209d51cd3 100644 --- a/resource-manager/servicefabric/2021-06-01/service/method_list.go +++ b/resource-manager/servicefabric/2021-06-01/service/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ServiceResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServiceClient) List(ctx context.Context, id ApplicationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServiceClient) List(ctx context.Context, id ApplicationId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/services", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2021-05-01/application/method_list.go b/resource-manager/servicefabricmanagedcluster/2021-05-01/application/method_list.go index 45ec8baa3a5..7229a1f48e8 100644 --- a/resource-manager/servicefabricmanagedcluster/2021-05-01/application/method_list.go +++ b/resource-manager/servicefabricmanagedcluster/2021-05-01/application/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationClient) List(ctx context.Context, id ManagedClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationClient) List(ctx context.Context, id ManagedClusterId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/applications", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2021-05-01/applicationtype/method_list.go b/resource-manager/servicefabricmanagedcluster/2021-05-01/applicationtype/method_list.go index d13096ea56b..c4205d8d82f 100644 --- a/resource-manager/servicefabricmanagedcluster/2021-05-01/applicationtype/method_list.go +++ b/resource-manager/servicefabricmanagedcluster/2021-05-01/applicationtype/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationTypeResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationTypeClient) List(ctx context.Context, id ManagedClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationTypeClient) List(ctx context.Context, id ManagedClusterId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/applicationTypes", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2021-05-01/applicationtypeversion/method_listbyapplicationtypes.go b/resource-manager/servicefabricmanagedcluster/2021-05-01/applicationtypeversion/method_listbyapplicationtypes.go index 0e0f75f983f..20e8b02585f 100644 --- a/resource-manager/servicefabricmanagedcluster/2021-05-01/applicationtypeversion/method_listbyapplicationtypes.go +++ b/resource-manager/servicefabricmanagedcluster/2021-05-01/applicationtypeversion/method_listbyapplicationtypes.go @@ -23,6 +23,18 @@ type ListByApplicationTypesCompleteResult struct { Items []ApplicationTypeVersionResource } +type ListByApplicationTypesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApplicationTypesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApplicationTypes ... func (c ApplicationTypeVersionClient) ListByApplicationTypes(ctx context.Context, id ApplicationTypeId) (result ListByApplicationTypesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationTypeVersionClient) ListByApplicationTypes(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByApplicationTypesCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_listbyresourcegroup.go b/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_listbyresourcegroup.go index ce995a286fe..34c645ebf4f 100644 --- a/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_listbyresourcegroup.go +++ b/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedCluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedClusterClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClusterClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceFabric/managedClusters", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_listbysubscription.go b/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_listbysubscription.go index a8a33b33a7f..a27cdeef09e 100644 --- a/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_listbysubscription.go +++ b/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ManagedCluster } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ManagedClusterClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClusterClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceFabric/managedClusters", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/method_listbymanagedclusters.go b/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/method_listbymanagedclusters.go index 6434ef21e50..7bb56784916 100644 --- a/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/method_listbymanagedclusters.go +++ b/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/method_listbymanagedclusters.go @@ -23,6 +23,18 @@ type ListByManagedClustersCompleteResult struct { Items []NodeType } +type ListByManagedClustersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedClustersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedClusters ... func (c NodeTypeClient) ListByManagedClusters(ctx context.Context, id ManagedClusterId) (result ListByManagedClustersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NodeTypeClient) ListByManagedClusters(ctx context.Context, id ManagedClu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedClustersCustomPager{}, Path: fmt.Sprintf("%s/nodeTypes", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2021-05-01/service/method_listbyapplications.go b/resource-manager/servicefabricmanagedcluster/2021-05-01/service/method_listbyapplications.go index b21095505af..13923c20bbb 100644 --- a/resource-manager/servicefabricmanagedcluster/2021-05-01/service/method_listbyapplications.go +++ b/resource-manager/servicefabricmanagedcluster/2021-05-01/service/method_listbyapplications.go @@ -23,6 +23,18 @@ type ListByApplicationsCompleteResult struct { Items []ServiceResource } +type ListByApplicationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApplicationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApplications ... func (c ServiceClient) ListByApplications(ctx context.Context, id ApplicationId) (result ListByApplicationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServiceClient) ListByApplications(ctx context.Context, id ApplicationId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByApplicationsCustomPager{}, Path: fmt.Sprintf("%s/services", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2022-01-01/application/method_list.go b/resource-manager/servicefabricmanagedcluster/2022-01-01/application/method_list.go index 45ec8baa3a5..7229a1f48e8 100644 --- a/resource-manager/servicefabricmanagedcluster/2022-01-01/application/method_list.go +++ b/resource-manager/servicefabricmanagedcluster/2022-01-01/application/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationClient) List(ctx context.Context, id ManagedClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationClient) List(ctx context.Context, id ManagedClusterId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/applications", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2022-01-01/applicationtype/method_list.go b/resource-manager/servicefabricmanagedcluster/2022-01-01/applicationtype/method_list.go index d13096ea56b..c4205d8d82f 100644 --- a/resource-manager/servicefabricmanagedcluster/2022-01-01/applicationtype/method_list.go +++ b/resource-manager/servicefabricmanagedcluster/2022-01-01/applicationtype/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationTypeResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationTypeClient) List(ctx context.Context, id ManagedClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationTypeClient) List(ctx context.Context, id ManagedClusterId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/applicationTypes", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2022-01-01/applicationtypeversion/method_listbyapplicationtypes.go b/resource-manager/servicefabricmanagedcluster/2022-01-01/applicationtypeversion/method_listbyapplicationtypes.go index 0e0f75f983f..20e8b02585f 100644 --- a/resource-manager/servicefabricmanagedcluster/2022-01-01/applicationtypeversion/method_listbyapplicationtypes.go +++ b/resource-manager/servicefabricmanagedcluster/2022-01-01/applicationtypeversion/method_listbyapplicationtypes.go @@ -23,6 +23,18 @@ type ListByApplicationTypesCompleteResult struct { Items []ApplicationTypeVersionResource } +type ListByApplicationTypesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApplicationTypesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApplicationTypes ... func (c ApplicationTypeVersionClient) ListByApplicationTypes(ctx context.Context, id ApplicationTypeId) (result ListByApplicationTypesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationTypeVersionClient) ListByApplicationTypes(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByApplicationTypesCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2022-01-01/managedcluster/method_listbyresourcegroup.go b/resource-manager/servicefabricmanagedcluster/2022-01-01/managedcluster/method_listbyresourcegroup.go index ce995a286fe..34c645ebf4f 100644 --- a/resource-manager/servicefabricmanagedcluster/2022-01-01/managedcluster/method_listbyresourcegroup.go +++ b/resource-manager/servicefabricmanagedcluster/2022-01-01/managedcluster/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedCluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedClusterClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClusterClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceFabric/managedClusters", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2022-01-01/managedcluster/method_listbysubscription.go b/resource-manager/servicefabricmanagedcluster/2022-01-01/managedcluster/method_listbysubscription.go index a8a33b33a7f..a27cdeef09e 100644 --- a/resource-manager/servicefabricmanagedcluster/2022-01-01/managedcluster/method_listbysubscription.go +++ b/resource-manager/servicefabricmanagedcluster/2022-01-01/managedcluster/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ManagedCluster } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ManagedClusterClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClusterClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceFabric/managedClusters", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2022-01-01/managedvmsizes/method_managedunsupportedvmsizeslist.go b/resource-manager/servicefabricmanagedcluster/2022-01-01/managedvmsizes/method_managedunsupportedvmsizeslist.go index 98f2cc768e1..04b8c2770b5 100644 --- a/resource-manager/servicefabricmanagedcluster/2022-01-01/managedvmsizes/method_managedunsupportedvmsizeslist.go +++ b/resource-manager/servicefabricmanagedcluster/2022-01-01/managedvmsizes/method_managedunsupportedvmsizeslist.go @@ -23,6 +23,18 @@ type ManagedUnsupportedVMSizesListCompleteResult struct { Items []ManagedVMSize } +type ManagedUnsupportedVMSizesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ManagedUnsupportedVMSizesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ManagedUnsupportedVMSizesList ... func (c ManagedVMSizesClient) ManagedUnsupportedVMSizesList(ctx context.Context, id LocationId) (result ManagedUnsupportedVMSizesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedVMSizesClient) ManagedUnsupportedVMSizesList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ManagedUnsupportedVMSizesListCustomPager{}, Path: fmt.Sprintf("%s/managedUnsupportedVMSizes", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2022-01-01/nodetype/method_listbymanagedclusters.go b/resource-manager/servicefabricmanagedcluster/2022-01-01/nodetype/method_listbymanagedclusters.go index 6434ef21e50..7bb56784916 100644 --- a/resource-manager/servicefabricmanagedcluster/2022-01-01/nodetype/method_listbymanagedclusters.go +++ b/resource-manager/servicefabricmanagedcluster/2022-01-01/nodetype/method_listbymanagedclusters.go @@ -23,6 +23,18 @@ type ListByManagedClustersCompleteResult struct { Items []NodeType } +type ListByManagedClustersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedClustersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedClusters ... func (c NodeTypeClient) ListByManagedClusters(ctx context.Context, id ManagedClusterId) (result ListByManagedClustersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NodeTypeClient) ListByManagedClusters(ctx context.Context, id ManagedClu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedClustersCustomPager{}, Path: fmt.Sprintf("%s/nodeTypes", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2022-01-01/nodetype/method_skuslist.go b/resource-manager/servicefabricmanagedcluster/2022-01-01/nodetype/method_skuslist.go index d5bf2a6a6b6..b129e3dcd25 100644 --- a/resource-manager/servicefabricmanagedcluster/2022-01-01/nodetype/method_skuslist.go +++ b/resource-manager/servicefabricmanagedcluster/2022-01-01/nodetype/method_skuslist.go @@ -23,6 +23,18 @@ type SkusListCompleteResult struct { Items []NodeTypeAvailableSku } +type SkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SkusList ... func (c NodeTypeClient) SkusList(ctx context.Context, id NodeTypeId) (result SkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NodeTypeClient) SkusList(ctx context.Context, id NodeTypeId) (result Sku http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SkusListCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2022-01-01/service/method_listbyapplications.go b/resource-manager/servicefabricmanagedcluster/2022-01-01/service/method_listbyapplications.go index b21095505af..13923c20bbb 100644 --- a/resource-manager/servicefabricmanagedcluster/2022-01-01/service/method_listbyapplications.go +++ b/resource-manager/servicefabricmanagedcluster/2022-01-01/service/method_listbyapplications.go @@ -23,6 +23,18 @@ type ListByApplicationsCompleteResult struct { Items []ServiceResource } +type ListByApplicationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApplicationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApplications ... func (c ServiceClient) ListByApplications(ctx context.Context, id ApplicationId) (result ListByApplicationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServiceClient) ListByApplications(ctx context.Context, id ApplicationId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByApplicationsCustomPager{}, Path: fmt.Sprintf("%s/services", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2024-04-01/application/method_list.go b/resource-manager/servicefabricmanagedcluster/2024-04-01/application/method_list.go index 45ec8baa3a5..7229a1f48e8 100644 --- a/resource-manager/servicefabricmanagedcluster/2024-04-01/application/method_list.go +++ b/resource-manager/servicefabricmanagedcluster/2024-04-01/application/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationClient) List(ctx context.Context, id ManagedClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationClient) List(ctx context.Context, id ManagedClusterId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/applications", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2024-04-01/applicationtype/method_list.go b/resource-manager/servicefabricmanagedcluster/2024-04-01/applicationtype/method_list.go index d13096ea56b..c4205d8d82f 100644 --- a/resource-manager/servicefabricmanagedcluster/2024-04-01/applicationtype/method_list.go +++ b/resource-manager/servicefabricmanagedcluster/2024-04-01/applicationtype/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ApplicationTypeResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ApplicationTypeClient) List(ctx context.Context, id ManagedClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationTypeClient) List(ctx context.Context, id ManagedClusterId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/applicationTypes", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2024-04-01/applicationtypeversion/method_listbyapplicationtypes.go b/resource-manager/servicefabricmanagedcluster/2024-04-01/applicationtypeversion/method_listbyapplicationtypes.go index 0e0f75f983f..20e8b02585f 100644 --- a/resource-manager/servicefabricmanagedcluster/2024-04-01/applicationtypeversion/method_listbyapplicationtypes.go +++ b/resource-manager/servicefabricmanagedcluster/2024-04-01/applicationtypeversion/method_listbyapplicationtypes.go @@ -23,6 +23,18 @@ type ListByApplicationTypesCompleteResult struct { Items []ApplicationTypeVersionResource } +type ListByApplicationTypesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApplicationTypesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApplicationTypes ... func (c ApplicationTypeVersionClient) ListByApplicationTypes(ctx context.Context, id ApplicationTypeId) (result ListByApplicationTypesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ApplicationTypeVersionClient) ListByApplicationTypes(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByApplicationTypesCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2024-04-01/managedcluster/method_listbyresourcegroup.go b/resource-manager/servicefabricmanagedcluster/2024-04-01/managedcluster/method_listbyresourcegroup.go index ce995a286fe..34c645ebf4f 100644 --- a/resource-manager/servicefabricmanagedcluster/2024-04-01/managedcluster/method_listbyresourcegroup.go +++ b/resource-manager/servicefabricmanagedcluster/2024-04-01/managedcluster/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ManagedCluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedClusterClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClusterClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceFabric/managedClusters", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2024-04-01/managedcluster/method_listbysubscription.go b/resource-manager/servicefabricmanagedcluster/2024-04-01/managedcluster/method_listbysubscription.go index a8a33b33a7f..a27cdeef09e 100644 --- a/resource-manager/servicefabricmanagedcluster/2024-04-01/managedcluster/method_listbysubscription.go +++ b/resource-manager/servicefabricmanagedcluster/2024-04-01/managedcluster/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ManagedCluster } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ManagedClusterClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedClusterClient) ListBySubscription(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceFabric/managedClusters", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2024-04-01/managedvmsizes/method_managedunsupportedvmsizeslist.go b/resource-manager/servicefabricmanagedcluster/2024-04-01/managedvmsizes/method_managedunsupportedvmsizeslist.go index 98f2cc768e1..04b8c2770b5 100644 --- a/resource-manager/servicefabricmanagedcluster/2024-04-01/managedvmsizes/method_managedunsupportedvmsizeslist.go +++ b/resource-manager/servicefabricmanagedcluster/2024-04-01/managedvmsizes/method_managedunsupportedvmsizeslist.go @@ -23,6 +23,18 @@ type ManagedUnsupportedVMSizesListCompleteResult struct { Items []ManagedVMSize } +type ManagedUnsupportedVMSizesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ManagedUnsupportedVMSizesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ManagedUnsupportedVMSizesList ... func (c ManagedVMSizesClient) ManagedUnsupportedVMSizesList(ctx context.Context, id LocationId) (result ManagedUnsupportedVMSizesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedVMSizesClient) ManagedUnsupportedVMSizesList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ManagedUnsupportedVMSizesListCustomPager{}, Path: fmt.Sprintf("%s/managedUnsupportedVMSizes", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2024-04-01/nodetype/method_listbymanagedclusters.go b/resource-manager/servicefabricmanagedcluster/2024-04-01/nodetype/method_listbymanagedclusters.go index 6434ef21e50..7bb56784916 100644 --- a/resource-manager/servicefabricmanagedcluster/2024-04-01/nodetype/method_listbymanagedclusters.go +++ b/resource-manager/servicefabricmanagedcluster/2024-04-01/nodetype/method_listbymanagedclusters.go @@ -23,6 +23,18 @@ type ListByManagedClustersCompleteResult struct { Items []NodeType } +type ListByManagedClustersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedClustersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedClusters ... func (c NodeTypeClient) ListByManagedClusters(ctx context.Context, id ManagedClusterId) (result ListByManagedClustersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NodeTypeClient) ListByManagedClusters(ctx context.Context, id ManagedClu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedClustersCustomPager{}, Path: fmt.Sprintf("%s/nodeTypes", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2024-04-01/nodetype/method_skuslist.go b/resource-manager/servicefabricmanagedcluster/2024-04-01/nodetype/method_skuslist.go index d5bf2a6a6b6..b129e3dcd25 100644 --- a/resource-manager/servicefabricmanagedcluster/2024-04-01/nodetype/method_skuslist.go +++ b/resource-manager/servicefabricmanagedcluster/2024-04-01/nodetype/method_skuslist.go @@ -23,6 +23,18 @@ type SkusListCompleteResult struct { Items []NodeTypeAvailableSku } +type SkusListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SkusListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SkusList ... func (c NodeTypeClient) SkusList(ctx context.Context, id NodeTypeId) (result SkusListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c NodeTypeClient) SkusList(ctx context.Context, id NodeTypeId) (result Sku http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SkusListCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/servicefabricmanagedcluster/2024-04-01/service/method_listbyapplications.go b/resource-manager/servicefabricmanagedcluster/2024-04-01/service/method_listbyapplications.go index b21095505af..13923c20bbb 100644 --- a/resource-manager/servicefabricmanagedcluster/2024-04-01/service/method_listbyapplications.go +++ b/resource-manager/servicefabricmanagedcluster/2024-04-01/service/method_listbyapplications.go @@ -23,6 +23,18 @@ type ListByApplicationsCompleteResult struct { Items []ServiceResource } +type ListByApplicationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByApplicationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByApplications ... func (c ServiceClient) ListByApplications(ctx context.Context, id ApplicationId) (result ListByApplicationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServiceClient) ListByApplications(ctx context.Context, id ApplicationId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByApplicationsCustomPager{}, Path: fmt.Sprintf("%s/services", id.ID()), } diff --git a/resource-manager/servicelinker/2022-05-01/servicelinker/method_linkerlist.go b/resource-manager/servicelinker/2022-05-01/servicelinker/method_linkerlist.go index 44f3edf3048..83c2cfcd374 100644 --- a/resource-manager/servicelinker/2022-05-01/servicelinker/method_linkerlist.go +++ b/resource-manager/servicelinker/2022-05-01/servicelinker/method_linkerlist.go @@ -24,6 +24,18 @@ type LinkerListCompleteResult struct { Items []LinkerResource } +type LinkerListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LinkerListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LinkerList ... func (c ServiceLinkerClient) LinkerList(ctx context.Context, id commonids.ScopeId) (result LinkerListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServiceLinkerClient) LinkerList(ctx context.Context, id commonids.ScopeI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LinkerListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceLinker/linkers", id.ID()), } diff --git a/resource-manager/servicelinker/2024-04-01/configurationnames/method_list.go b/resource-manager/servicelinker/2024-04-01/configurationnames/method_list.go index c06b0505449..29597c2ac2d 100644 --- a/resource-manager/servicelinker/2024-04-01/configurationnames/method_list.go +++ b/resource-manager/servicelinker/2024-04-01/configurationnames/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ConfigurationNamesClient) List(ctx context.Context, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ConfigurationNamesClient) List(ctx context.Context, options ListOperatio http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.ServiceLinker/configurationNames", OptionsObject: options, + Pager: &ListCustomPager{}, + Path: "/providers/Microsoft.ServiceLinker/configurationNames", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/servicelinker/2024-04-01/connector/method_listdryrun.go b/resource-manager/servicelinker/2024-04-01/connector/method_listdryrun.go index c488a9cf9ad..3262ffdf832 100644 --- a/resource-manager/servicelinker/2024-04-01/connector/method_listdryrun.go +++ b/resource-manager/servicelinker/2024-04-01/connector/method_listdryrun.go @@ -23,6 +23,18 @@ type ListDryrunCompleteResult struct { Items []DryrunResource } +type ListDryrunCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDryrunCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDryrun ... func (c ConnectorClient) ListDryrun(ctx context.Context, id LocationId) (result ListDryrunOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ConnectorClient) ListDryrun(ctx context.Context, id LocationId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDryrunCustomPager{}, Path: fmt.Sprintf("%s/dryruns", id.ID()), } diff --git a/resource-manager/servicelinker/2024-04-01/linkers/method_listdaprconfigurations.go b/resource-manager/servicelinker/2024-04-01/linkers/method_listdaprconfigurations.go index 5f51cf32be0..a91c01de38a 100644 --- a/resource-manager/servicelinker/2024-04-01/linkers/method_listdaprconfigurations.go +++ b/resource-manager/servicelinker/2024-04-01/linkers/method_listdaprconfigurations.go @@ -24,6 +24,18 @@ type ListDaprConfigurationsCompleteResult struct { Items []DaprConfigurationResource } +type ListDaprConfigurationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDaprConfigurationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDaprConfigurations ... func (c LinkersClient) ListDaprConfigurations(ctx context.Context, id commonids.ScopeId) (result ListDaprConfigurationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LinkersClient) ListDaprConfigurations(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDaprConfigurationsCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceLinker/daprConfigurations", id.ID()), } diff --git a/resource-manager/servicelinker/2024-04-01/linkers/method_listdryrun.go b/resource-manager/servicelinker/2024-04-01/linkers/method_listdryrun.go index f06dc39fc95..46c238dc075 100644 --- a/resource-manager/servicelinker/2024-04-01/linkers/method_listdryrun.go +++ b/resource-manager/servicelinker/2024-04-01/linkers/method_listdryrun.go @@ -24,6 +24,18 @@ type ListDryrunCompleteResult struct { Items []DryrunResource } +type ListDryrunCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDryrunCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDryrun ... func (c LinkersClient) ListDryrun(ctx context.Context, id commonids.ScopeId) (result ListDryrunOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LinkersClient) ListDryrun(ctx context.Context, id commonids.ScopeId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDryrunCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceLinker/dryruns", id.ID()), } diff --git a/resource-manager/servicelinker/2024-04-01/servicelinker/method_connectorlist.go b/resource-manager/servicelinker/2024-04-01/servicelinker/method_connectorlist.go index 655f4b70021..f725ae52c83 100644 --- a/resource-manager/servicelinker/2024-04-01/servicelinker/method_connectorlist.go +++ b/resource-manager/servicelinker/2024-04-01/servicelinker/method_connectorlist.go @@ -23,6 +23,18 @@ type ConnectorListCompleteResult struct { Items []LinkerResource } +type ConnectorListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConnectorListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ConnectorList ... func (c ServiceLinkerClient) ConnectorList(ctx context.Context, id LocationId) (result ConnectorListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServiceLinkerClient) ConnectorList(ctx context.Context, id LocationId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ConnectorListCustomPager{}, Path: fmt.Sprintf("%s/connectors", id.ID()), } diff --git a/resource-manager/servicelinker/2024-04-01/servicelinker/method_linkerlist.go b/resource-manager/servicelinker/2024-04-01/servicelinker/method_linkerlist.go index 44f3edf3048..83c2cfcd374 100644 --- a/resource-manager/servicelinker/2024-04-01/servicelinker/method_linkerlist.go +++ b/resource-manager/servicelinker/2024-04-01/servicelinker/method_linkerlist.go @@ -24,6 +24,18 @@ type LinkerListCompleteResult struct { Items []LinkerResource } +type LinkerListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LinkerListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // LinkerList ... func (c ServiceLinkerClient) LinkerList(ctx context.Context, id commonids.ScopeId) (result LinkerListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServiceLinkerClient) LinkerList(ctx context.Context, id commonids.ScopeI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &LinkerListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceLinker/linkers", id.ID()), } diff --git a/resource-manager/servicenetworking/2023-05-01-preview/associationsinterface/method_listbytrafficcontroller.go b/resource-manager/servicenetworking/2023-05-01-preview/associationsinterface/method_listbytrafficcontroller.go index 03474291a17..b2f29ec61c7 100644 --- a/resource-manager/servicenetworking/2023-05-01-preview/associationsinterface/method_listbytrafficcontroller.go +++ b/resource-manager/servicenetworking/2023-05-01-preview/associationsinterface/method_listbytrafficcontroller.go @@ -23,6 +23,18 @@ type ListByTrafficControllerCompleteResult struct { Items []Association } +type ListByTrafficControllerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTrafficControllerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTrafficController ... func (c AssociationsInterfaceClient) ListByTrafficController(ctx context.Context, id TrafficControllerId) (result ListByTrafficControllerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AssociationsInterfaceClient) ListByTrafficController(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByTrafficControllerCustomPager{}, Path: fmt.Sprintf("%s/associations", id.ID()), } diff --git a/resource-manager/servicenetworking/2023-05-01-preview/frontendsinterface/method_listbytrafficcontroller.go b/resource-manager/servicenetworking/2023-05-01-preview/frontendsinterface/method_listbytrafficcontroller.go index 72fabb14528..39972b7f9c5 100644 --- a/resource-manager/servicenetworking/2023-05-01-preview/frontendsinterface/method_listbytrafficcontroller.go +++ b/resource-manager/servicenetworking/2023-05-01-preview/frontendsinterface/method_listbytrafficcontroller.go @@ -23,6 +23,18 @@ type ListByTrafficControllerCompleteResult struct { Items []Frontend } +type ListByTrafficControllerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTrafficControllerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTrafficController ... func (c FrontendsInterfaceClient) ListByTrafficController(ctx context.Context, id TrafficControllerId) (result ListByTrafficControllerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FrontendsInterfaceClient) ListByTrafficController(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByTrafficControllerCustomPager{}, Path: fmt.Sprintf("%s/frontends", id.ID()), } diff --git a/resource-manager/servicenetworking/2023-05-01-preview/trafficcontrollerinterface/method_listbyresourcegroup.go b/resource-manager/servicenetworking/2023-05-01-preview/trafficcontrollerinterface/method_listbyresourcegroup.go index 19c15bdf419..adc21a74865 100644 --- a/resource-manager/servicenetworking/2023-05-01-preview/trafficcontrollerinterface/method_listbyresourcegroup.go +++ b/resource-manager/servicenetworking/2023-05-01-preview/trafficcontrollerinterface/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []TrafficController } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c TrafficControllerInterfaceClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TrafficControllerInterfaceClient) ListByResourceGroup(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceNetworking/trafficControllers", id.ID()), } diff --git a/resource-manager/servicenetworking/2023-05-01-preview/trafficcontrollerinterface/method_listbysubscription.go b/resource-manager/servicenetworking/2023-05-01-preview/trafficcontrollerinterface/method_listbysubscription.go index adfa7ac5fe0..c85c83eec57 100644 --- a/resource-manager/servicenetworking/2023-05-01-preview/trafficcontrollerinterface/method_listbysubscription.go +++ b/resource-manager/servicenetworking/2023-05-01-preview/trafficcontrollerinterface/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []TrafficController } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c TrafficControllerInterfaceClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TrafficControllerInterfaceClient) ListBySubscription(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceNetworking/trafficControllers", id.ID()), } diff --git a/resource-manager/servicenetworking/2023-11-01/associationsinterface/method_listbytrafficcontroller.go b/resource-manager/servicenetworking/2023-11-01/associationsinterface/method_listbytrafficcontroller.go index 03474291a17..b2f29ec61c7 100644 --- a/resource-manager/servicenetworking/2023-11-01/associationsinterface/method_listbytrafficcontroller.go +++ b/resource-manager/servicenetworking/2023-11-01/associationsinterface/method_listbytrafficcontroller.go @@ -23,6 +23,18 @@ type ListByTrafficControllerCompleteResult struct { Items []Association } +type ListByTrafficControllerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTrafficControllerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTrafficController ... func (c AssociationsInterfaceClient) ListByTrafficController(ctx context.Context, id TrafficControllerId) (result ListByTrafficControllerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AssociationsInterfaceClient) ListByTrafficController(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByTrafficControllerCustomPager{}, Path: fmt.Sprintf("%s/associations", id.ID()), } diff --git a/resource-manager/servicenetworking/2023-11-01/frontendsinterface/method_listbytrafficcontroller.go b/resource-manager/servicenetworking/2023-11-01/frontendsinterface/method_listbytrafficcontroller.go index 72fabb14528..39972b7f9c5 100644 --- a/resource-manager/servicenetworking/2023-11-01/frontendsinterface/method_listbytrafficcontroller.go +++ b/resource-manager/servicenetworking/2023-11-01/frontendsinterface/method_listbytrafficcontroller.go @@ -23,6 +23,18 @@ type ListByTrafficControllerCompleteResult struct { Items []Frontend } +type ListByTrafficControllerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTrafficControllerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTrafficController ... func (c FrontendsInterfaceClient) ListByTrafficController(ctx context.Context, id TrafficControllerId) (result ListByTrafficControllerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c FrontendsInterfaceClient) ListByTrafficController(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByTrafficControllerCustomPager{}, Path: fmt.Sprintf("%s/frontends", id.ID()), } diff --git a/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_listbyresourcegroup.go b/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_listbyresourcegroup.go index 19c15bdf419..adc21a74865 100644 --- a/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_listbyresourcegroup.go +++ b/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []TrafficController } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c TrafficControllerInterfaceClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TrafficControllerInterfaceClient) ListByResourceGroup(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceNetworking/trafficControllers", id.ID()), } diff --git a/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_listbysubscription.go b/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_listbysubscription.go index adfa7ac5fe0..c85c83eec57 100644 --- a/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_listbysubscription.go +++ b/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []TrafficController } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c TrafficControllerInterfaceClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TrafficControllerInterfaceClient) ListBySubscription(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ServiceNetworking/trafficControllers", id.ID()), } diff --git a/resource-manager/signalr/2023-02-01/signalr/method_customcertificateslist.go b/resource-manager/signalr/2023-02-01/signalr/method_customcertificateslist.go index a862d047bb8..5bbacd8c37b 100644 --- a/resource-manager/signalr/2023-02-01/signalr/method_customcertificateslist.go +++ b/resource-manager/signalr/2023-02-01/signalr/method_customcertificateslist.go @@ -23,6 +23,18 @@ type CustomCertificatesListCompleteResult struct { Items []CustomCertificate } +type CustomCertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomCertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomCertificatesList ... func (c SignalRClient) CustomCertificatesList(ctx context.Context, id SignalRId) (result CustomCertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) CustomCertificatesList(ctx context.Context, id SignalRId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomCertificatesListCustomPager{}, Path: fmt.Sprintf("%s/customCertificates", id.ID()), } diff --git a/resource-manager/signalr/2023-02-01/signalr/method_customdomainslist.go b/resource-manager/signalr/2023-02-01/signalr/method_customdomainslist.go index 95d92e50a6b..81051c69209 100644 --- a/resource-manager/signalr/2023-02-01/signalr/method_customdomainslist.go +++ b/resource-manager/signalr/2023-02-01/signalr/method_customdomainslist.go @@ -23,6 +23,18 @@ type CustomDomainsListCompleteResult struct { Items []CustomDomain } +type CustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomDomainsList ... func (c SignalRClient) CustomDomainsList(ctx context.Context, id SignalRId) (result CustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) CustomDomainsList(ctx context.Context, id SignalRId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/customDomains", id.ID()), } diff --git a/resource-manager/signalr/2023-02-01/signalr/method_listbyresourcegroup.go b/resource-manager/signalr/2023-02-01/signalr/method_listbyresourcegroup.go index 51f60cbee08..b30d448e81d 100644 --- a/resource-manager/signalr/2023-02-01/signalr/method_listbyresourcegroup.go +++ b/resource-manager/signalr/2023-02-01/signalr/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SignalRResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SignalRClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SignalRClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SignalRService/signalR", id.ID()), } diff --git a/resource-manager/signalr/2023-02-01/signalr/method_listbysubscription.go b/resource-manager/signalr/2023-02-01/signalr/method_listbysubscription.go index 10fbe2d99d9..9474eb0b3ef 100644 --- a/resource-manager/signalr/2023-02-01/signalr/method_listbysubscription.go +++ b/resource-manager/signalr/2023-02-01/signalr/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SignalRResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SignalRClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SignalRClient) ListBySubscription(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SignalRService/signalR", id.ID()), } diff --git a/resource-manager/signalr/2023-02-01/signalr/method_listskus.go b/resource-manager/signalr/2023-02-01/signalr/method_listskus.go index 253619c723f..fe740ba2896 100644 --- a/resource-manager/signalr/2023-02-01/signalr/method_listskus.go +++ b/resource-manager/signalr/2023-02-01/signalr/method_listskus.go @@ -23,6 +23,18 @@ type ListSkusCompleteResult struct { Items []Sku } +type ListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSkus ... func (c SignalRClient) ListSkus(ctx context.Context, id SignalRId) (result ListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) ListSkus(ctx context.Context, id SignalRId) (result ListS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/signalr/2023-02-01/signalr/method_privateendpointconnectionslist.go b/resource-manager/signalr/2023-02-01/signalr/method_privateendpointconnectionslist.go index e34ed499046..280ee0427e0 100644 --- a/resource-manager/signalr/2023-02-01/signalr/method_privateendpointconnectionslist.go +++ b/resource-manager/signalr/2023-02-01/signalr/method_privateendpointconnectionslist.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListCompleteResult struct { Items []PrivateEndpointConnection } +type PrivateEndpointConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsList ... func (c SignalRClient) PrivateEndpointConnectionsList(ctx context.Context, id SignalRId) (result PrivateEndpointConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) PrivateEndpointConnectionsList(ctx context.Context, id Si http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/signalr/2023-02-01/signalr/method_privatelinkresourceslist.go b/resource-manager/signalr/2023-02-01/signalr/method_privatelinkresourceslist.go index 1c1c04bcada..d874365bca7 100644 --- a/resource-manager/signalr/2023-02-01/signalr/method_privatelinkresourceslist.go +++ b/resource-manager/signalr/2023-02-01/signalr/method_privatelinkresourceslist.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesListCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesList ... func (c SignalRClient) PrivateLinkResourcesList(ctx context.Context, id SignalRId) (result PrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) PrivateLinkResourcesList(ctx context.Context, id SignalRI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/signalr/2023-02-01/signalr/method_sharedprivatelinkresourceslist.go b/resource-manager/signalr/2023-02-01/signalr/method_sharedprivatelinkresourceslist.go index ea248b11d90..ec3922a2c97 100644 --- a/resource-manager/signalr/2023-02-01/signalr/method_sharedprivatelinkresourceslist.go +++ b/resource-manager/signalr/2023-02-01/signalr/method_sharedprivatelinkresourceslist.go @@ -23,6 +23,18 @@ type SharedPrivateLinkResourcesListCompleteResult struct { Items []SharedPrivateLinkResource } +type SharedPrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SharedPrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SharedPrivateLinkResourcesList ... func (c SignalRClient) SharedPrivateLinkResourcesList(ctx context.Context, id SignalRId) (result SharedPrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) SharedPrivateLinkResourcesList(ctx context.Context, id Si http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SharedPrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/sharedPrivateLinkResources", id.ID()), } diff --git a/resource-manager/signalr/2023-02-01/signalr/method_usageslist.go b/resource-manager/signalr/2023-02-01/signalr/method_usageslist.go index 398b21c0268..4b288905626 100644 --- a/resource-manager/signalr/2023-02-01/signalr/method_usageslist.go +++ b/resource-manager/signalr/2023-02-01/signalr/method_usageslist.go @@ -23,6 +23,18 @@ type UsagesListCompleteResult struct { Items []SignalRUsage } +type UsagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UsagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UsagesList ... func (c SignalRClient) UsagesList(ctx context.Context, id LocationId) (result UsagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) UsagesList(ctx context.Context, id LocationId) (result Us http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UsagesListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/signalr/2024-03-01/signalr/method_customcertificateslist.go b/resource-manager/signalr/2024-03-01/signalr/method_customcertificateslist.go index a862d047bb8..5bbacd8c37b 100644 --- a/resource-manager/signalr/2024-03-01/signalr/method_customcertificateslist.go +++ b/resource-manager/signalr/2024-03-01/signalr/method_customcertificateslist.go @@ -23,6 +23,18 @@ type CustomCertificatesListCompleteResult struct { Items []CustomCertificate } +type CustomCertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomCertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomCertificatesList ... func (c SignalRClient) CustomCertificatesList(ctx context.Context, id SignalRId) (result CustomCertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) CustomCertificatesList(ctx context.Context, id SignalRId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomCertificatesListCustomPager{}, Path: fmt.Sprintf("%s/customCertificates", id.ID()), } diff --git a/resource-manager/signalr/2024-03-01/signalr/method_customdomainslist.go b/resource-manager/signalr/2024-03-01/signalr/method_customdomainslist.go index 95d92e50a6b..81051c69209 100644 --- a/resource-manager/signalr/2024-03-01/signalr/method_customdomainslist.go +++ b/resource-manager/signalr/2024-03-01/signalr/method_customdomainslist.go @@ -23,6 +23,18 @@ type CustomDomainsListCompleteResult struct { Items []CustomDomain } +type CustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomDomainsList ... func (c SignalRClient) CustomDomainsList(ctx context.Context, id SignalRId) (result CustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) CustomDomainsList(ctx context.Context, id SignalRId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/customDomains", id.ID()), } diff --git a/resource-manager/signalr/2024-03-01/signalr/method_listbyresourcegroup.go b/resource-manager/signalr/2024-03-01/signalr/method_listbyresourcegroup.go index 51f60cbee08..b30d448e81d 100644 --- a/resource-manager/signalr/2024-03-01/signalr/method_listbyresourcegroup.go +++ b/resource-manager/signalr/2024-03-01/signalr/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SignalRResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SignalRClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SignalRClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SignalRService/signalR", id.ID()), } diff --git a/resource-manager/signalr/2024-03-01/signalr/method_listbysubscription.go b/resource-manager/signalr/2024-03-01/signalr/method_listbysubscription.go index 10fbe2d99d9..9474eb0b3ef 100644 --- a/resource-manager/signalr/2024-03-01/signalr/method_listbysubscription.go +++ b/resource-manager/signalr/2024-03-01/signalr/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SignalRResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SignalRClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SignalRClient) ListBySubscription(ctx context.Context, id commonids.Subs http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SignalRService/signalR", id.ID()), } diff --git a/resource-manager/signalr/2024-03-01/signalr/method_listreplicaskus.go b/resource-manager/signalr/2024-03-01/signalr/method_listreplicaskus.go index 47be25db25a..52cf10c6559 100644 --- a/resource-manager/signalr/2024-03-01/signalr/method_listreplicaskus.go +++ b/resource-manager/signalr/2024-03-01/signalr/method_listreplicaskus.go @@ -23,6 +23,18 @@ type ListReplicaSkusCompleteResult struct { Items []Sku } +type ListReplicaSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListReplicaSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListReplicaSkus ... func (c SignalRClient) ListReplicaSkus(ctx context.Context, id ReplicaId) (result ListReplicaSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) ListReplicaSkus(ctx context.Context, id ReplicaId) (resul http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListReplicaSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/signalr/2024-03-01/signalr/method_listskus.go b/resource-manager/signalr/2024-03-01/signalr/method_listskus.go index 253619c723f..fe740ba2896 100644 --- a/resource-manager/signalr/2024-03-01/signalr/method_listskus.go +++ b/resource-manager/signalr/2024-03-01/signalr/method_listskus.go @@ -23,6 +23,18 @@ type ListSkusCompleteResult struct { Items []Sku } +type ListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSkus ... func (c SignalRClient) ListSkus(ctx context.Context, id SignalRId) (result ListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) ListSkus(ctx context.Context, id SignalRId) (result ListS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/signalr/2024-03-01/signalr/method_privateendpointconnectionslist.go b/resource-manager/signalr/2024-03-01/signalr/method_privateendpointconnectionslist.go index e34ed499046..280ee0427e0 100644 --- a/resource-manager/signalr/2024-03-01/signalr/method_privateendpointconnectionslist.go +++ b/resource-manager/signalr/2024-03-01/signalr/method_privateendpointconnectionslist.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListCompleteResult struct { Items []PrivateEndpointConnection } +type PrivateEndpointConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsList ... func (c SignalRClient) PrivateEndpointConnectionsList(ctx context.Context, id SignalRId) (result PrivateEndpointConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) PrivateEndpointConnectionsList(ctx context.Context, id Si http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/signalr/2024-03-01/signalr/method_privatelinkresourceslist.go b/resource-manager/signalr/2024-03-01/signalr/method_privatelinkresourceslist.go index 1c1c04bcada..d874365bca7 100644 --- a/resource-manager/signalr/2024-03-01/signalr/method_privatelinkresourceslist.go +++ b/resource-manager/signalr/2024-03-01/signalr/method_privatelinkresourceslist.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesListCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesList ... func (c SignalRClient) PrivateLinkResourcesList(ctx context.Context, id SignalRId) (result PrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) PrivateLinkResourcesList(ctx context.Context, id SignalRI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/signalr/2024-03-01/signalr/method_replicasharedprivatelinkresourceslist.go b/resource-manager/signalr/2024-03-01/signalr/method_replicasharedprivatelinkresourceslist.go index 3d6b1247720..28ab2aa6fd2 100644 --- a/resource-manager/signalr/2024-03-01/signalr/method_replicasharedprivatelinkresourceslist.go +++ b/resource-manager/signalr/2024-03-01/signalr/method_replicasharedprivatelinkresourceslist.go @@ -23,6 +23,18 @@ type ReplicaSharedPrivateLinkResourcesListCompleteResult struct { Items []SharedPrivateLinkResource } +type ReplicaSharedPrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReplicaSharedPrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReplicaSharedPrivateLinkResourcesList ... func (c SignalRClient) ReplicaSharedPrivateLinkResourcesList(ctx context.Context, id ReplicaId) (result ReplicaSharedPrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) ReplicaSharedPrivateLinkResourcesList(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ReplicaSharedPrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/sharedPrivateLinkResources", id.ID()), } diff --git a/resource-manager/signalr/2024-03-01/signalr/method_replicaslist.go b/resource-manager/signalr/2024-03-01/signalr/method_replicaslist.go index f582e1328e9..f25acb29b91 100644 --- a/resource-manager/signalr/2024-03-01/signalr/method_replicaslist.go +++ b/resource-manager/signalr/2024-03-01/signalr/method_replicaslist.go @@ -23,6 +23,18 @@ type ReplicasListCompleteResult struct { Items []Replica } +type ReplicasListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReplicasListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReplicasList ... func (c SignalRClient) ReplicasList(ctx context.Context, id SignalRId) (result ReplicasListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) ReplicasList(ctx context.Context, id SignalRId) (result R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ReplicasListCustomPager{}, Path: fmt.Sprintf("%s/replicas", id.ID()), } diff --git a/resource-manager/signalr/2024-03-01/signalr/method_sharedprivatelinkresourceslist.go b/resource-manager/signalr/2024-03-01/signalr/method_sharedprivatelinkresourceslist.go index ea248b11d90..ec3922a2c97 100644 --- a/resource-manager/signalr/2024-03-01/signalr/method_sharedprivatelinkresourceslist.go +++ b/resource-manager/signalr/2024-03-01/signalr/method_sharedprivatelinkresourceslist.go @@ -23,6 +23,18 @@ type SharedPrivateLinkResourcesListCompleteResult struct { Items []SharedPrivateLinkResource } +type SharedPrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SharedPrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SharedPrivateLinkResourcesList ... func (c SignalRClient) SharedPrivateLinkResourcesList(ctx context.Context, id SignalRId) (result SharedPrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) SharedPrivateLinkResourcesList(ctx context.Context, id Si http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SharedPrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/sharedPrivateLinkResources", id.ID()), } diff --git a/resource-manager/signalr/2024-03-01/signalr/method_usageslist.go b/resource-manager/signalr/2024-03-01/signalr/method_usageslist.go index 398b21c0268..4b288905626 100644 --- a/resource-manager/signalr/2024-03-01/signalr/method_usageslist.go +++ b/resource-manager/signalr/2024-03-01/signalr/method_usageslist.go @@ -23,6 +23,18 @@ type UsagesListCompleteResult struct { Items []SignalRUsage } +type UsagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UsagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UsagesList ... func (c SignalRClient) UsagesList(ctx context.Context, id LocationId) (result UsagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SignalRClient) UsagesList(ctx context.Context, id LocationId) (result Us http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UsagesListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/backupshorttermretentionpolicies/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/backupshorttermretentionpolicies/method_listbydatabase.go index 199b6f38d26..7ba5917833b 100644 --- a/resource-manager/sql/2023-02-01-preview/backupshorttermretentionpolicies/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/backupshorttermretentionpolicies/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []BackupShortTermRetentionPolicy } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c BackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/backupShortTermRetentionPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/blobauditing/method_databaseblobauditingpolicieslistbydatabase.go b/resource-manager/sql/2023-02-01-preview/blobauditing/method_databaseblobauditingpolicieslistbydatabase.go index b2e8f7194fa..db3f09927a3 100644 --- a/resource-manager/sql/2023-02-01-preview/blobauditing/method_databaseblobauditingpolicieslistbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/blobauditing/method_databaseblobauditingpolicieslistbydatabase.go @@ -24,6 +24,18 @@ type DatabaseBlobAuditingPoliciesListByDatabaseCompleteResult struct { Items []DatabaseBlobAuditingPolicy } +type DatabaseBlobAuditingPoliciesListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DatabaseBlobAuditingPoliciesListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DatabaseBlobAuditingPoliciesListByDatabase ... func (c BlobAuditingClient) DatabaseBlobAuditingPoliciesListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result DatabaseBlobAuditingPoliciesListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BlobAuditingClient) DatabaseBlobAuditingPoliciesListByDatabase(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DatabaseBlobAuditingPoliciesListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/auditingSettings", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/blobauditing/method_extendeddatabaseblobauditingpolicieslistbydatabase.go b/resource-manager/sql/2023-02-01-preview/blobauditing/method_extendeddatabaseblobauditingpolicieslistbydatabase.go index 71c688c3e23..6b253b81cee 100644 --- a/resource-manager/sql/2023-02-01-preview/blobauditing/method_extendeddatabaseblobauditingpolicieslistbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/blobauditing/method_extendeddatabaseblobauditingpolicieslistbydatabase.go @@ -24,6 +24,18 @@ type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCompleteResult struct { Items []ExtendedDatabaseBlobAuditingPolicy } +type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExtendedDatabaseBlobAuditingPoliciesListByDatabase ... func (c BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesListByDatabase(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/extendedAuditingSettings", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/blobauditing/method_extendedserverblobauditingpolicieslistbyserver.go b/resource-manager/sql/2023-02-01-preview/blobauditing/method_extendedserverblobauditingpolicieslistbyserver.go index a70041e4e42..a457eacc4b5 100644 --- a/resource-manager/sql/2023-02-01-preview/blobauditing/method_extendedserverblobauditingpolicieslistbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/blobauditing/method_extendedserverblobauditingpolicieslistbyserver.go @@ -24,6 +24,18 @@ type ExtendedServerBlobAuditingPoliciesListByServerCompleteResult struct { Items []ExtendedServerBlobAuditingPolicy } +type ExtendedServerBlobAuditingPoliciesListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExtendedServerBlobAuditingPoliciesListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExtendedServerBlobAuditingPoliciesListByServer ... func (c BlobAuditingClient) ExtendedServerBlobAuditingPoliciesListByServer(ctx context.Context, id commonids.SqlServerId) (result ExtendedServerBlobAuditingPoliciesListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BlobAuditingClient) ExtendedServerBlobAuditingPoliciesListByServer(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ExtendedServerBlobAuditingPoliciesListByServerCustomPager{}, Path: fmt.Sprintf("%s/extendedAuditingSettings", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/blobauditing/method_serverblobauditingpolicieslistbyserver.go b/resource-manager/sql/2023-02-01-preview/blobauditing/method_serverblobauditingpolicieslistbyserver.go index 29f5eefe730..31b78fd7086 100644 --- a/resource-manager/sql/2023-02-01-preview/blobauditing/method_serverblobauditingpolicieslistbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/blobauditing/method_serverblobauditingpolicieslistbyserver.go @@ -24,6 +24,18 @@ type ServerBlobAuditingPoliciesListByServerCompleteResult struct { Items []ServerBlobAuditingPolicy } +type ServerBlobAuditingPoliciesListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServerBlobAuditingPoliciesListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServerBlobAuditingPoliciesListByServer ... func (c BlobAuditingClient) ServerBlobAuditingPoliciesListByServer(ctx context.Context, id commonids.SqlServerId) (result ServerBlobAuditingPoliciesListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BlobAuditingClient) ServerBlobAuditingPoliciesListByServer(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServerBlobAuditingPoliciesListByServerCustomPager{}, Path: fmt.Sprintf("%s/auditingSettings", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databaseadvancedthreatprotectionsettings/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/databaseadvancedthreatprotectionsettings/method_listbydatabase.go index d79249ddd75..23cb159b8fd 100644 --- a/resource-manager/sql/2023-02-01-preview/databaseadvancedthreatprotectionsettings/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/databaseadvancedthreatprotectionsettings/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DatabaseAdvancedThreatProtection } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabase(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/advancedThreatProtectionSettings", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databaseadvisors/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/databaseadvisors/method_listbydatabase.go index a82f5e36d6a..514e3d2f332 100644 --- a/resource-manager/sql/2023-02-01-preview/databaseadvisors/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/databaseadvisors/method_listbydatabase.go @@ -54,8 +54,8 @@ func (c DatabaseAdvisorsClient) ListByDatabase(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/advisors", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/advisors", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/databasecolumns/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/databasecolumns/method_listbydatabase.go index a127b53a128..95a591eec19 100644 --- a/resource-manager/sql/2023-02-01-preview/databasecolumns/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/databasecolumns/method_listbydatabase.go @@ -63,6 +63,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseColumnsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -71,8 +83,9 @@ func (c DatabaseColumnsClient) ListByDatabase(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/columns", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/columns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/databasecolumns/method_listbytable.go b/resource-manager/sql/2023-02-01-preview/databasecolumns/method_listbytable.go index 446d21fefab..e58a820a57b 100644 --- a/resource-manager/sql/2023-02-01-preview/databasecolumns/method_listbytable.go +++ b/resource-manager/sql/2023-02-01-preview/databasecolumns/method_listbytable.go @@ -50,6 +50,18 @@ func (o ListByTableOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTable ... func (c DatabaseColumnsClient) ListByTable(ctx context.Context, id TableId, options ListByTableOperationOptions) (result ListByTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DatabaseColumnsClient) ListByTable(ctx context.Context, id TableId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/columns", id.ID()), OptionsObject: options, + Pager: &ListByTableCustomPager{}, + Path: fmt.Sprintf("%s/columns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/databaseextensions/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/databaseextensions/method_listbydatabase.go index 6c49aff5fa6..799da49b37e 100644 --- a/resource-manager/sql/2023-02-01-preview/databaseextensions/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/databaseextensions/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ImportExportExtensionsOperationResult } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseExtensionsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseExtensionsClient) ListByDatabase(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/extensions", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databaseoperations/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/databaseoperations/method_listbydatabase.go index d19b1fab063..f475d473277 100644 --- a/resource-manager/sql/2023-02-01-preview/databaseoperations/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/databaseoperations/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DatabaseOperation } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseOperationsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseOperationsClient) ListByDatabase(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/operations", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databases/method_failover.go b/resource-manager/sql/2023-02-01-preview/databases/method_failover.go index b12dfc921f4..7afbab02040 100644 --- a/resource-manager/sql/2023-02-01-preview/databases/method_failover.go +++ b/resource-manager/sql/2023-02-01-preview/databases/method_failover.go @@ -57,8 +57,8 @@ func (c DatabasesClient) Failover(ctx context.Context, id commonids.SqlDatabaseI http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/failover", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/failover", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/databases/method_get.go b/resource-manager/sql/2023-02-01-preview/databases/method_get.go index 4bf8eaa18ce..a9f44b0b589 100644 --- a/resource-manager/sql/2023-02-01-preview/databases/method_get.go +++ b/resource-manager/sql/2023-02-01-preview/databases/method_get.go @@ -58,8 +58,8 @@ func (c DatabasesClient) Get(ctx context.Context, id commonids.SqlDatabaseId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/databases/method_listbyelasticpool.go b/resource-manager/sql/2023-02-01-preview/databases/method_listbyelasticpool.go index 30539d3d111..3e93e091c33 100644 --- a/resource-manager/sql/2023-02-01-preview/databases/method_listbyelasticpool.go +++ b/resource-manager/sql/2023-02-01-preview/databases/method_listbyelasticpool.go @@ -24,6 +24,18 @@ type ListByElasticPoolCompleteResult struct { Items []Database } +type ListByElasticPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByElasticPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByElasticPool ... func (c DatabasesClient) ListByElasticPool(ctx context.Context, id commonids.SqlElasticPoolId) (result ListByElasticPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabasesClient) ListByElasticPool(ctx context.Context, id commonids.Sql http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByElasticPoolCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databases/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/databases/method_listbyserver.go index 4eaf6f8dc31..fc07bd1705f 100644 --- a/resource-manager/sql/2023-02-01-preview/databases/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/databases/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []Database } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c DatabasesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabasesClient) ListByServer(ctx context.Context, id commonids.SqlServe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databases/method_listinaccessiblebyserver.go b/resource-manager/sql/2023-02-01-preview/databases/method_listinaccessiblebyserver.go index a0b3cf13345..f0b388a51d8 100644 --- a/resource-manager/sql/2023-02-01-preview/databases/method_listinaccessiblebyserver.go +++ b/resource-manager/sql/2023-02-01-preview/databases/method_listinaccessiblebyserver.go @@ -24,6 +24,18 @@ type ListInaccessibleByServerCompleteResult struct { Items []Database } +type ListInaccessibleByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInaccessibleByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInaccessibleByServer ... func (c DatabasesClient) ListInaccessibleByServer(ctx context.Context, id commonids.SqlServerId) (result ListInaccessibleByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabasesClient) ListInaccessibleByServer(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInaccessibleByServerCustomPager{}, Path: fmt.Sprintf("%s/inaccessibleDatabases", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databaseschemas/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/databaseschemas/method_listbydatabase.go index e6a7fd4a43f..c67b2be2776 100644 --- a/resource-manager/sql/2023-02-01-preview/databaseschemas/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/databaseschemas/method_listbydatabase.go @@ -51,6 +51,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseSchemasClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DatabaseSchemasClient) ListByDatabase(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/databasesecurityalertpolicies/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/databasesecurityalertpolicies/method_listbydatabase.go index c3501efc2ec..8a840d331aa 100644 --- a/resource-manager/sql/2023-02-01-preview/databasesecurityalertpolicies/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/databasesecurityalertpolicies/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DatabaseSecurityAlertPolicy } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseSecurityAlertPoliciesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseSecurityAlertPoliciesClient) ListByDatabase(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/securityAlertPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentbaselines/method_listbysqlvulnerabilityassessment.go b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentbaselines/method_listbysqlvulnerabilityassessment.go index f87f5204eb1..6413a42ca96 100644 --- a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentbaselines/method_listbysqlvulnerabilityassessment.go +++ b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentbaselines/method_listbysqlvulnerabilityassessment.go @@ -24,6 +24,18 @@ type ListBySqlVulnerabilityAssessmentCompleteResult struct { Items []DatabaseSqlVulnerabilityAssessmentBaselineSet } +type ListBySqlVulnerabilityAssessmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySqlVulnerabilityAssessmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySqlVulnerabilityAssessment ... func (c DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilityAssessment(ctx context.Context, id commonids.SqlDatabaseId) (result ListBySqlVulnerabilityAssessmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilit http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySqlVulnerabilityAssessmentCustomPager{}, Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentrulebaselines/method_listbybaseline.go b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentrulebaselines/method_listbybaseline.go index 181c4914afa..d1f64e0e286 100644 --- a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentrulebaselines/method_listbybaseline.go +++ b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentrulebaselines/method_listbybaseline.go @@ -24,6 +24,18 @@ type ListByBaselineCompleteResult struct { Items []DatabaseSqlVulnerabilityAssessmentRuleBaseline } +type ListByBaselineCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBaselineCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBaseline ... func (c DatabaseSqlVulnerabilityAssessmentRuleBaselinesClient) ListByBaseline(ctx context.Context, id commonids.SqlDatabaseId) (result ListByBaselineOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseSqlVulnerabilityAssessmentRuleBaselinesClient) ListByBaseline(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBaselineCustomPager{}, Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines/default/rules", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscanresult/method_listbyscan.go b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscanresult/method_listbyscan.go index 69da28cd534..731625dcfbe 100644 --- a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscanresult/method_listbyscan.go +++ b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscanresult/method_listbyscan.go @@ -23,6 +23,18 @@ type ListByScanCompleteResult struct { Items []SqlVulnerabilityAssessmentScanResults } +type ListByScanCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScanCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScan ... func (c DatabaseSqlVulnerabilityAssessmentScanResultClient) ListByScan(ctx context.Context, id SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId) (result ListByScanOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DatabaseSqlVulnerabilityAssessmentScanResultClient) ListByScan(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByScanCustomPager{}, Path: fmt.Sprintf("%s/scanResults", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go index a780f152264..126311fb464 100644 --- a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go +++ b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go @@ -24,6 +24,18 @@ type ListBySqlVulnerabilityAssessmentsCompleteResult struct { Items []SqlVulnerabilityAssessmentScanRecord } +type ListBySqlVulnerabilityAssessmentsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySqlVulnerabilityAssessmentsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySqlVulnerabilityAssessments ... func (c DatabaseSqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessments(ctx context.Context, id commonids.SqlDatabaseId) (result ListBySqlVulnerabilityAssessmentsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseSqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAss http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySqlVulnerabilityAssessmentsCustomPager{}, Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/scans", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentssettings/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentssettings/method_listbydatabase.go index 1e968b42fb3..3fb4122366d 100644 --- a/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentssettings/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/databasesqlvulnerabilityassessmentssettings/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []SqlVulnerabilityAssessment } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseSqlVulnerabilityAssessmentsSettingsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseSqlVulnerabilityAssessmentsSettingsClient) ListByDatabase(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databasetables/method_listbyschema.go b/resource-manager/sql/2023-02-01-preview/databasetables/method_listbyschema.go index f9a6dde0bdb..f2ce40497ad 100644 --- a/resource-manager/sql/2023-02-01-preview/databasetables/method_listbyschema.go +++ b/resource-manager/sql/2023-02-01-preview/databasetables/method_listbyschema.go @@ -50,6 +50,18 @@ func (o ListBySchemaOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySchemaCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySchemaCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySchema ... func (c DatabaseTablesClient) ListBySchema(ctx context.Context, id SchemaId, options ListBySchemaOperationOptions) (result ListBySchemaOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DatabaseTablesClient) ListBySchema(ctx context.Context, id SchemaId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tables", id.ID()), OptionsObject: options, + Pager: &ListBySchemaCustomPager{}, + Path: fmt.Sprintf("%s/tables", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/databaseusages/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/databaseusages/method_listbydatabase.go index 89d906302bb..4b0299b00f1 100644 --- a/resource-manager/sql/2023-02-01-preview/databaseusages/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/databaseusages/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DatabaseUsage } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseUsagesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseUsagesClient) ListByDatabase(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessments/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessments/method_listbydatabase.go index b9d74a45fd8..c5f109bbde6 100644 --- a/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessments/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessments/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DatabaseVulnerabilityAssessment } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessmentscans/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessmentscans/method_listbydatabase.go index 40a80a13862..1dde13b5722 100644 --- a/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessmentscans/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/databasevulnerabilityassessmentscans/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []VulnerabilityAssessmentScanRecord } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments/default/scans", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/datamaskingrules/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/datamaskingrules/method_listbydatabase.go index 97cff9b24a4..43666bbd0a8 100644 --- a/resource-manager/sql/2023-02-01-preview/datamaskingrules/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/datamaskingrules/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DataMaskingRule } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DataMaskingRulesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataMaskingRulesClient) ListByDatabase(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/dataMaskingPolicies/default/rules", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/datawarehouseuseractivities/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/datawarehouseuseractivities/method_listbydatabase.go index 58b8073e989..0afca238098 100644 --- a/resource-manager/sql/2023-02-01-preview/datawarehouseuseractivities/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/datawarehouseuseractivities/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DataWarehouseUserActivities } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DataWarehouseUserActivitiesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataWarehouseUserActivitiesClient) ListByDatabase(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/dataWarehouseUserActivities", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/deletedservers/method_list.go b/resource-manager/sql/2023-02-01-preview/deletedservers/method_list.go index d2d84c30605..b05a2be5d8a 100644 --- a/resource-manager/sql/2023-02-01-preview/deletedservers/method_list.go +++ b/resource-manager/sql/2023-02-01-preview/deletedservers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DeletedServer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeletedServersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeletedServersClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Sql/deletedServers", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/deletedservers/method_listbylocation.go b/resource-manager/sql/2023-02-01-preview/deletedservers/method_listbylocation.go index 50dfb0df2bf..db104941bc6 100644 --- a/resource-manager/sql/2023-02-01-preview/deletedservers/method_listbylocation.go +++ b/resource-manager/sql/2023-02-01-preview/deletedservers/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []DeletedServer } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c DeletedServersClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeletedServersClient) ListByLocation(ctx context.Context, id LocationId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/deletedServers", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/distributedavailabilitygroups/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/distributedavailabilitygroups/method_listbyinstance.go index e35dd1bfdc2..3d8d4ba9d9a 100644 --- a/resource-manager/sql/2023-02-01-preview/distributedavailabilitygroups/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/distributedavailabilitygroups/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []DistributedAvailabilityGroup } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c DistributedAvailabilityGroupsClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DistributedAvailabilityGroupsClient) ListByInstance(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/distributedAvailabilityGroups", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/elasticpooloperations/method_listbyelasticpool.go b/resource-manager/sql/2023-02-01-preview/elasticpooloperations/method_listbyelasticpool.go index e64c730008f..102edc56a53 100644 --- a/resource-manager/sql/2023-02-01-preview/elasticpooloperations/method_listbyelasticpool.go +++ b/resource-manager/sql/2023-02-01-preview/elasticpooloperations/method_listbyelasticpool.go @@ -24,6 +24,18 @@ type ListByElasticPoolCompleteResult struct { Items []ElasticPoolOperation } +type ListByElasticPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByElasticPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByElasticPool ... func (c ElasticPoolOperationsClient) ListByElasticPool(ctx context.Context, id commonids.SqlElasticPoolId) (result ListByElasticPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ElasticPoolOperationsClient) ListByElasticPool(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByElasticPoolCustomPager{}, Path: fmt.Sprintf("%s/operations", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/elasticpools/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/elasticpools/method_listbyserver.go index 5d9993c1092..6d3b53d468b 100644 --- a/resource-manager/sql/2023-02-01-preview/elasticpools/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/elasticpools/method_listbyserver.go @@ -51,6 +51,18 @@ func (o ListByServerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ElasticPoolsClient) ListByServer(ctx context.Context, id commonids.SqlServerId, options ListByServerOperationOptions) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ElasticPoolsClient) ListByServer(ctx context.Context, id commonids.SqlSe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/elasticPools", id.ID()), OptionsObject: options, + Pager: &ListByServerCustomPager{}, + Path: fmt.Sprintf("%s/elasticPools", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/encryptionprotectors/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/encryptionprotectors/method_listbyserver.go index ac59d621b27..f7ca51c7156 100644 --- a/resource-manager/sql/2023-02-01-preview/encryptionprotectors/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/encryptionprotectors/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []EncryptionProtector } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c EncryptionProtectorsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EncryptionProtectorsClient) ListByServer(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/encryptionProtector", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/endpointcertificates/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/endpointcertificates/method_listbyinstance.go index 1ee89e5df37..d7097ee92a2 100644 --- a/resource-manager/sql/2023-02-01-preview/endpointcertificates/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/endpointcertificates/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []EndpointCertificate } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c EndpointCertificatesClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EndpointCertificatesClient) ListByInstance(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/endpointCertificates", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/failovergroups/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/failovergroups/method_listbyserver.go index 9cada99d778..100e1a498b9 100644 --- a/resource-manager/sql/2023-02-01-preview/failovergroups/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/failovergroups/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []FailoverGroup } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c FailoverGroupsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FailoverGroupsClient) ListByServer(ctx context.Context, id commonids.Sql http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/failoverGroups", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/firewallrules/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/firewallrules/method_listbyserver.go index 7cc1b48fe08..aa03997e638 100644 --- a/resource-manager/sql/2023-02-01-preview/firewallrules/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/firewallrules/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []FirewallRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c FirewallRulesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FirewallRulesClient) ListByServer(ctx context.Context, id commonids.SqlS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/geobackuppolicies/method_list.go b/resource-manager/sql/2023-02-01-preview/geobackuppolicies/method_list.go index 5a4dc3df5db..d44abba7a39 100644 --- a/resource-manager/sql/2023-02-01-preview/geobackuppolicies/method_list.go +++ b/resource-manager/sql/2023-02-01-preview/geobackuppolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []GeoBackupPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GeoBackupPoliciesClient) List(ctx context.Context, id commonids.SqlDatabaseId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GeoBackupPoliciesClient) List(ctx context.Context, id commonids.SqlDatab http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/geoBackupPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/instancefailovergroups/method_listbylocation.go b/resource-manager/sql/2023-02-01-preview/instancefailovergroups/method_listbylocation.go index c4ab0b84e8e..b5ab352fd08 100644 --- a/resource-manager/sql/2023-02-01-preview/instancefailovergroups/method_listbylocation.go +++ b/resource-manager/sql/2023-02-01-preview/instancefailovergroups/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []InstanceFailoverGroup } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c InstanceFailoverGroupsClient) ListByLocation(ctx context.Context, id ProviderLocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c InstanceFailoverGroupsClient) ListByLocation(ctx context.Context, id Pro http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/instanceFailoverGroups", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/instancepools/method_list.go b/resource-manager/sql/2023-02-01-preview/instancepools/method_list.go index 2e2d7d99b93..a5553a16bf6 100644 --- a/resource-manager/sql/2023-02-01-preview/instancepools/method_list.go +++ b/resource-manager/sql/2023-02-01-preview/instancepools/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []InstancePool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c InstancePoolsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c InstancePoolsClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Sql/instancePools", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/instancepools/method_listbyresourcegroup.go b/resource-manager/sql/2023-02-01-preview/instancepools/method_listbyresourcegroup.go index eb352e6d42a..6731b2a93f3 100644 --- a/resource-manager/sql/2023-02-01-preview/instancepools/method_listbyresourcegroup.go +++ b/resource-manager/sql/2023-02-01-preview/instancepools/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []InstancePool } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c InstancePoolsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c InstancePoolsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Sql/instancePools", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/ipv6firewallrules/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/ipv6firewallrules/method_listbyserver.go index 3ce9b68bd41..8c95219db62 100644 --- a/resource-manager/sql/2023-02-01-preview/ipv6firewallrules/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/ipv6firewallrules/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []IPv6FirewallRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c IPv6FirewallRulesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPv6FirewallRulesClient) ListByServer(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/ipv6FirewallRules", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/jobagents/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/jobagents/method_listbyserver.go index 176cf8ee55a..5b82df1dd3d 100644 --- a/resource-manager/sql/2023-02-01-preview/jobagents/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/jobagents/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []JobAgent } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c JobAgentsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c JobAgentsClient) ListByServer(ctx context.Context, id commonids.SqlServe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/jobAgents", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/jobcredentials/method_listbyagent.go b/resource-manager/sql/2023-02-01-preview/jobcredentials/method_listbyagent.go index e7f79bc04b2..ec10fbb7262 100644 --- a/resource-manager/sql/2023-02-01-preview/jobcredentials/method_listbyagent.go +++ b/resource-manager/sql/2023-02-01-preview/jobcredentials/method_listbyagent.go @@ -23,6 +23,18 @@ type ListByAgentCompleteResult struct { Items []JobCredential } +type ListByAgentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAgentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAgent ... func (c JobCredentialsClient) ListByAgent(ctx context.Context, id JobAgentId) (result ListByAgentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobCredentialsClient) ListByAgent(ctx context.Context, id JobAgentId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAgentCustomPager{}, Path: fmt.Sprintf("%s/credentials", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/jobexecutions/method_listbyagent.go b/resource-manager/sql/2023-02-01-preview/jobexecutions/method_listbyagent.go index 6728068282a..102e1c0c866 100644 --- a/resource-manager/sql/2023-02-01-preview/jobexecutions/method_listbyagent.go +++ b/resource-manager/sql/2023-02-01-preview/jobexecutions/method_listbyagent.go @@ -74,6 +74,18 @@ func (o ListByAgentOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAgentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAgentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAgent ... func (c JobExecutionsClient) ListByAgent(ctx context.Context, id JobAgentId, options ListByAgentOperationOptions) (result ListByAgentOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c JobExecutionsClient) ListByAgent(ctx context.Context, id JobAgentId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/executions", id.ID()), OptionsObject: options, + Pager: &ListByAgentCustomPager{}, + Path: fmt.Sprintf("%s/executions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/jobexecutions/method_listbyjob.go b/resource-manager/sql/2023-02-01-preview/jobexecutions/method_listbyjob.go index 9e2f9cb26fb..f20a5ddb75a 100644 --- a/resource-manager/sql/2023-02-01-preview/jobexecutions/method_listbyjob.go +++ b/resource-manager/sql/2023-02-01-preview/jobexecutions/method_listbyjob.go @@ -74,6 +74,18 @@ func (o ListByJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByJob ... func (c JobExecutionsClient) ListByJob(ctx context.Context, id JobId, options ListByJobOperationOptions) (result ListByJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c JobExecutionsClient) ListByJob(ctx context.Context, id JobId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/executions", id.ID()), OptionsObject: options, + Pager: &ListByJobCustomPager{}, + Path: fmt.Sprintf("%s/executions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/jobs/method_listbyagent.go b/resource-manager/sql/2023-02-01-preview/jobs/method_listbyagent.go index 15b5d187b02..ae393a334fa 100644 --- a/resource-manager/sql/2023-02-01-preview/jobs/method_listbyagent.go +++ b/resource-manager/sql/2023-02-01-preview/jobs/method_listbyagent.go @@ -23,6 +23,18 @@ type ListByAgentCompleteResult struct { Items []Job } +type ListByAgentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAgentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAgent ... func (c JobsClient) ListByAgent(ctx context.Context, id JobAgentId) (result ListByAgentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobsClient) ListByAgent(ctx context.Context, id JobAgentId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAgentCustomPager{}, Path: fmt.Sprintf("%s/jobs", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/jobstepexecutions/method_listbyjobexecution.go b/resource-manager/sql/2023-02-01-preview/jobstepexecutions/method_listbyjobexecution.go index 3ed953d27ee..e7c228c0e49 100644 --- a/resource-manager/sql/2023-02-01-preview/jobstepexecutions/method_listbyjobexecution.go +++ b/resource-manager/sql/2023-02-01-preview/jobstepexecutions/method_listbyjobexecution.go @@ -74,6 +74,18 @@ func (o ListByJobExecutionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByJobExecutionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByJobExecutionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByJobExecution ... func (c JobStepExecutionsClient) ListByJobExecution(ctx context.Context, id ExecutionId, options ListByJobExecutionOperationOptions) (result ListByJobExecutionOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c JobStepExecutionsClient) ListByJobExecution(ctx context.Context, id Exec http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/steps", id.ID()), OptionsObject: options, + Pager: &ListByJobExecutionCustomPager{}, + Path: fmt.Sprintf("%s/steps", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/jobsteps/method_listbyjob.go b/resource-manager/sql/2023-02-01-preview/jobsteps/method_listbyjob.go index fa10a7d56da..74a6d7dde41 100644 --- a/resource-manager/sql/2023-02-01-preview/jobsteps/method_listbyjob.go +++ b/resource-manager/sql/2023-02-01-preview/jobsteps/method_listbyjob.go @@ -23,6 +23,18 @@ type ListByJobCompleteResult struct { Items []JobStep } +type ListByJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByJob ... func (c JobStepsClient) ListByJob(ctx context.Context, id JobId) (result ListByJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobStepsClient) ListByJob(ctx context.Context, id JobId) (result ListByJ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByJobCustomPager{}, Path: fmt.Sprintf("%s/steps", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/jobsteps/method_listbyversion.go b/resource-manager/sql/2023-02-01-preview/jobsteps/method_listbyversion.go index 4f26a4898cd..f13eb451fce 100644 --- a/resource-manager/sql/2023-02-01-preview/jobsteps/method_listbyversion.go +++ b/resource-manager/sql/2023-02-01-preview/jobsteps/method_listbyversion.go @@ -23,6 +23,18 @@ type ListByVersionCompleteResult struct { Items []JobStep } +type ListByVersionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVersionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVersion ... func (c JobStepsClient) ListByVersion(ctx context.Context, id VersionId) (result ListByVersionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobStepsClient) ListByVersion(ctx context.Context, id VersionId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVersionCustomPager{}, Path: fmt.Sprintf("%s/steps", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/jobtargetexecutions/method_listbyjobexecution.go b/resource-manager/sql/2023-02-01-preview/jobtargetexecutions/method_listbyjobexecution.go index 25f1c198287..1a171760d34 100644 --- a/resource-manager/sql/2023-02-01-preview/jobtargetexecutions/method_listbyjobexecution.go +++ b/resource-manager/sql/2023-02-01-preview/jobtargetexecutions/method_listbyjobexecution.go @@ -74,6 +74,18 @@ func (o ListByJobExecutionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByJobExecutionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByJobExecutionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByJobExecution ... func (c JobTargetExecutionsClient) ListByJobExecution(ctx context.Context, id ExecutionId, options ListByJobExecutionOperationOptions) (result ListByJobExecutionOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c JobTargetExecutionsClient) ListByJobExecution(ctx context.Context, id Ex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/targets", id.ID()), OptionsObject: options, + Pager: &ListByJobExecutionCustomPager{}, + Path: fmt.Sprintf("%s/targets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/jobtargetexecutions/method_listbystep.go b/resource-manager/sql/2023-02-01-preview/jobtargetexecutions/method_listbystep.go index d3c35598b7f..e3bfb49f5a4 100644 --- a/resource-manager/sql/2023-02-01-preview/jobtargetexecutions/method_listbystep.go +++ b/resource-manager/sql/2023-02-01-preview/jobtargetexecutions/method_listbystep.go @@ -74,6 +74,18 @@ func (o ListByStepOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByStepCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByStepCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByStep ... func (c JobTargetExecutionsClient) ListByStep(ctx context.Context, id ExecutionStepId, options ListByStepOperationOptions) (result ListByStepOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c JobTargetExecutionsClient) ListByStep(ctx context.Context, id ExecutionS http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/targets", id.ID()), OptionsObject: options, + Pager: &ListByStepCustomPager{}, + Path: fmt.Sprintf("%s/targets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/jobtargetgroups/method_listbyagent.go b/resource-manager/sql/2023-02-01-preview/jobtargetgroups/method_listbyagent.go index acf3c174132..7b8417fda2f 100644 --- a/resource-manager/sql/2023-02-01-preview/jobtargetgroups/method_listbyagent.go +++ b/resource-manager/sql/2023-02-01-preview/jobtargetgroups/method_listbyagent.go @@ -23,6 +23,18 @@ type ListByAgentCompleteResult struct { Items []JobTargetGroup } +type ListByAgentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAgentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAgent ... func (c JobTargetGroupsClient) ListByAgent(ctx context.Context, id JobAgentId) (result ListByAgentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobTargetGroupsClient) ListByAgent(ctx context.Context, id JobAgentId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAgentCustomPager{}, Path: fmt.Sprintf("%s/targetGroups", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/jobversions/method_listbyjob.go b/resource-manager/sql/2023-02-01-preview/jobversions/method_listbyjob.go index c5c618a1709..0eb60597289 100644 --- a/resource-manager/sql/2023-02-01-preview/jobversions/method_listbyjob.go +++ b/resource-manager/sql/2023-02-01-preview/jobversions/method_listbyjob.go @@ -23,6 +23,18 @@ type ListByJobCompleteResult struct { Items []Resource } +type ListByJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByJob ... func (c JobVersionsClient) ListByJob(ctx context.Context, id JobId) (result ListByJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobVersionsClient) ListByJob(ctx context.Context, id JobId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByJobCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/ledgerdigestuploads/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/ledgerdigestuploads/method_listbydatabase.go index f9d1efffbca..4bf91908814 100644 --- a/resource-manager/sql/2023-02-01-preview/ledgerdigestuploads/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/ledgerdigestuploads/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []LedgerDigestUploads } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c LedgerDigestUploadsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LedgerDigestUploadsClient) ListByDatabase(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/ledgerDigestUploads", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/locationcapabilities/method_capabilitieslistbylocation.go b/resource-manager/sql/2023-02-01-preview/locationcapabilities/method_capabilitieslistbylocation.go index 66803d3cca7..f5e8ce02a3f 100644 --- a/resource-manager/sql/2023-02-01-preview/locationcapabilities/method_capabilitieslistbylocation.go +++ b/resource-manager/sql/2023-02-01-preview/locationcapabilities/method_capabilitieslistbylocation.go @@ -53,8 +53,8 @@ func (c LocationCapabilitiesClient) CapabilitiesListByLocation(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/capabilities", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/capabilities", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbydatabase.go index 9b06b095a02..ebed5c50c8d 100644 --- a/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbydatabase.go @@ -54,6 +54,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c LongTermRetentionBackupsClient) ListByDatabase(ctx context.Context, id LongTermRetentionServerLongTermRetentionDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionBackupsClient) ListByDatabase(ctx context.Context, id L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbylocation.go b/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbylocation.go index 9eb8cc35f8e..06dc3b458b7 100644 --- a/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbylocation.go +++ b/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbylocation.go @@ -54,6 +54,18 @@ func (o ListByLocationOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c LongTermRetentionBackupsClient) ListByLocation(ctx context.Context, id LocationId, options ListByLocationOperationOptions) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionBackupsClient) ListByLocation(ctx context.Context, id L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), OptionsObject: options, + Pager: &ListByLocationCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyresourcegroupdatabase.go b/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyresourcegroupdatabase.go index 248ddf5099e..d6f15b72a9b 100644 --- a/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyresourcegroupdatabase.go +++ b/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyresourcegroupdatabase.go @@ -54,6 +54,18 @@ func (o ListByResourceGroupDatabaseOperationOptions) ToQuery() *client.QueryPara return &out } +type ListByResourceGroupDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroupDatabase ... func (c LongTermRetentionBackupsClient) ListByResourceGroupDatabase(ctx context.Context, id LocationLongTermRetentionServerLongTermRetentionDatabaseId, options ListByResourceGroupDatabaseOperationOptions) (result ListByResourceGroupDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionBackupsClient) ListByResourceGroupDatabase(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyresourcegrouplocation.go b/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyresourcegrouplocation.go index 80d016f8616..abdb9a9701e 100644 --- a/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyresourcegrouplocation.go +++ b/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyresourcegrouplocation.go @@ -54,6 +54,18 @@ func (o ListByResourceGroupLocationOperationOptions) ToQuery() *client.QueryPara return &out } +type ListByResourceGroupLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroupLocation ... func (c LongTermRetentionBackupsClient) ListByResourceGroupLocation(ctx context.Context, id ProviderLocationId, options ListByResourceGroupLocationOperationOptions) (result ListByResourceGroupLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionBackupsClient) ListByResourceGroupLocation(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupLocationCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyresourcegroupserver.go b/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyresourcegroupserver.go index b4e7b55f2b7..75e7eb7fb92 100644 --- a/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyresourcegroupserver.go +++ b/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyresourcegroupserver.go @@ -54,6 +54,18 @@ func (o ListByResourceGroupServerOperationOptions) ToQuery() *client.QueryParams return &out } +type ListByResourceGroupServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroupServer ... func (c LongTermRetentionBackupsClient) ListByResourceGroupServer(ctx context.Context, id LocationLongTermRetentionServerId, options ListByResourceGroupServerOperationOptions) (result ListByResourceGroupServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionBackupsClient) ListByResourceGroupServer(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupServerCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyserver.go index 53592c3ee5b..62fdc0efc10 100644 --- a/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/longtermretentionbackups/method_listbyserver.go @@ -54,6 +54,18 @@ func (o ListByServerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c LongTermRetentionBackupsClient) ListByServer(ctx context.Context, id LongTermRetentionServerId, options ListByServerOperationOptions) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionBackupsClient) ListByServer(ctx context.Context, id Lon http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), OptionsObject: options, + Pager: &ListByServerCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbydatabase.go index 5721a8456b5..15551674f0e 100644 --- a/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbydatabase.go @@ -54,6 +54,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c LongTermRetentionManagedInstanceBackupsClient) ListByDatabase(ctx context.Context, id LongTermRetentionDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionManagedInstanceBackupsClient) ListByDatabase(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyinstance.go index a5a3b6cb608..846cb7d2c45 100644 --- a/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyinstance.go @@ -54,6 +54,18 @@ func (o ListByInstanceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c LongTermRetentionManagedInstanceBackupsClient) ListByInstance(ctx context.Context, id LongTermRetentionManagedInstanceId, options ListByInstanceOperationOptions) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionManagedInstanceBackupsClient) ListByInstance(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), OptionsObject: options, + Pager: &ListByInstanceCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbylocation.go b/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbylocation.go index ac9778c27d2..0eee092e272 100644 --- a/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbylocation.go +++ b/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbylocation.go @@ -54,6 +54,18 @@ func (o ListByLocationOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c LongTermRetentionManagedInstanceBackupsClient) ListByLocation(ctx context.Context, id LocationId, options ListByLocationOperationOptions) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionManagedInstanceBackupsClient) ListByLocation(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), OptionsObject: options, + Pager: &ListByLocationCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupdatabase.go b/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupdatabase.go index 47a69749635..50e36859a1c 100644 --- a/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupdatabase.go +++ b/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupdatabase.go @@ -54,6 +54,18 @@ func (o ListByResourceGroupDatabaseOperationOptions) ToQuery() *client.QueryPara return &out } +type ListByResourceGroupDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroupDatabase ... func (c LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupDatabase(ctx context.Context, id LongTermRetentionManagedInstanceLongTermRetentionDatabaseId, options ListByResourceGroupDatabaseOperationOptions) (result ListByResourceGroupDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupDataba http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupinstance.go b/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupinstance.go index 2669b88247f..c596e6dc4a1 100644 --- a/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupinstance.go +++ b/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupinstance.go @@ -54,6 +54,18 @@ func (o ListByResourceGroupInstanceOperationOptions) ToQuery() *client.QueryPara return &out } +type ListByResourceGroupInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroupInstance ... func (c LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupInstance(ctx context.Context, id LocationLongTermRetentionManagedInstanceId, options ListByResourceGroupInstanceOperationOptions) (result ListByResourceGroupInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupInstan http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupInstanceCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegrouplocation.go b/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegrouplocation.go index fd631ad5e26..fb6b8093e64 100644 --- a/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegrouplocation.go +++ b/resource-manager/sql/2023-02-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegrouplocation.go @@ -54,6 +54,18 @@ func (o ListByResourceGroupLocationOperationOptions) ToQuery() *client.QueryPara return &out } +type ListByResourceGroupLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroupLocation ... func (c LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupLocation(ctx context.Context, id ProviderLocationId, options ListByResourceGroupLocationOperationOptions) (result ListByResourceGroupLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupLocati http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupLocationCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/longtermretentionpolicies/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/longtermretentionpolicies/method_listbydatabase.go index 3bf8e5435e6..7a18447288b 100644 --- a/resource-manager/sql/2023-02-01-preview/longtermretentionpolicies/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/longtermretentionpolicies/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []LongTermRetentionPolicy } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c LongTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LongTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/backupLongTermRetentionPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/maintenancewindowoptions/method_get.go b/resource-manager/sql/2023-02-01-preview/maintenancewindowoptions/method_get.go index c2cbca74647..8df35ad865e 100644 --- a/resource-manager/sql/2023-02-01-preview/maintenancewindowoptions/method_get.go +++ b/resource-manager/sql/2023-02-01-preview/maintenancewindowoptions/method_get.go @@ -54,8 +54,8 @@ func (c MaintenanceWindowOptionsClient) Get(ctx context.Context, id commonids.Sq http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/maintenanceWindowOptions/current", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/maintenanceWindowOptions/current", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/maintenancewindows/method_createorupdate.go b/resource-manager/sql/2023-02-01-preview/maintenancewindows/method_createorupdate.go index 671fc0b18e5..d5b61f30d78 100644 --- a/resource-manager/sql/2023-02-01-preview/maintenancewindows/method_createorupdate.go +++ b/resource-manager/sql/2023-02-01-preview/maintenancewindows/method_createorupdate.go @@ -53,8 +53,8 @@ func (c MaintenanceWindowsClient) CreateOrUpdate(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/maintenanceWindows/current", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/maintenanceWindows/current", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/maintenancewindows/method_get.go b/resource-manager/sql/2023-02-01-preview/maintenancewindows/method_get.go index 1b1c89e73c4..2358566ed8e 100644 --- a/resource-manager/sql/2023-02-01-preview/maintenancewindows/method_get.go +++ b/resource-manager/sql/2023-02-01-preview/maintenancewindows/method_get.go @@ -54,8 +54,8 @@ func (c MaintenanceWindowsClient) Get(ctx context.Context, id commonids.SqlDatab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/maintenanceWindows/current", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/maintenanceWindows/current", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/managedbackupshorttermretentionpolicies/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/managedbackupshorttermretentionpolicies/method_listbydatabase.go index ed66b3ac93e..abd1880b463 100644 --- a/resource-manager/sql/2023-02-01-preview/managedbackupshorttermretentionpolicies/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/managedbackupshorttermretentionpolicies/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ManagedBackupShortTermRetentionPolicy } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedBackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedBackupShortTermRetentionPoliciesClient) ListByDatabase(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/backupShortTermRetentionPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabaseadvancedthreatprotectionsettings/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/manageddatabaseadvancedthreatprotectionsettings/method_listbydatabase.go index 1eba61f5b22..b26815f2481 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabaseadvancedthreatprotectionsettings/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabaseadvancedthreatprotectionsettings/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ManagedDatabaseAdvancedThreatProtection } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseAdvancedThreatProtectionSettingsClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedDatabaseAdvancedThreatProtectionSettingsClient) ListByDatabase(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/advancedThreatProtectionSettings", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasecolumns/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/manageddatabasecolumns/method_listbydatabase.go index 1a30f2341b6..8f9d739806f 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasecolumns/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasecolumns/method_listbydatabase.go @@ -63,6 +63,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseColumnsClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -71,8 +83,9 @@ func (c ManagedDatabaseColumnsClient) ListByDatabase(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/columns", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/columns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasecolumns/method_listbytable.go b/resource-manager/sql/2023-02-01-preview/manageddatabasecolumns/method_listbytable.go index bdc23aa5b79..1223cbbe5af 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasecolumns/method_listbytable.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasecolumns/method_listbytable.go @@ -50,6 +50,18 @@ func (o ListByTableOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTable ... func (c ManagedDatabaseColumnsClient) ListByTable(ctx context.Context, id SchemaTableId, options ListByTableOperationOptions) (result ListByTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ManagedDatabaseColumnsClient) ListByTable(ctx context.Context, id Schema http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/columns", id.ID()), OptionsObject: options, + Pager: &ListByTableCustomPager{}, + Path: fmt.Sprintf("%s/columns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasemoveoperations/method_listbylocation.go b/resource-manager/sql/2023-02-01-preview/manageddatabasemoveoperations/method_listbylocation.go index b694444ba77..d154d5af320 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasemoveoperations/method_listbylocation.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasemoveoperations/method_listbylocation.go @@ -54,6 +54,18 @@ func (o ListByLocationOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c ManagedDatabaseMoveOperationsClient) ListByLocation(ctx context.Context, id ProviderLocationId, options ListByLocationOperationOptions) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ManagedDatabaseMoveOperationsClient) ListByLocation(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/managedDatabaseMoveOperationResults", id.ID()), OptionsObject: options, + Pager: &ListByLocationCustomPager{}, + Path: fmt.Sprintf("%s/managedDatabaseMoveOperationResults", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasequeries/method_listbyquery.go b/resource-manager/sql/2023-02-01-preview/manageddatabasequeries/method_listbyquery.go index b94e38e72e7..e0e521010a7 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasequeries/method_listbyquery.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasequeries/method_listbyquery.go @@ -58,6 +58,18 @@ func (o ListByQueryOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByQueryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByQueryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByQuery ... func (c ManagedDatabaseQueriesClient) ListByQuery(ctx context.Context, id QueryId, options ListByQueryOperationOptions) (result ListByQueryOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ManagedDatabaseQueriesClient) ListByQuery(ctx context.Context, id QueryI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/statistics", id.ID()), OptionsObject: options, + Pager: &ListByQueryCustomPager{}, + Path: fmt.Sprintf("%s/statistics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabases/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/manageddatabases/method_listbyinstance.go index 553abc569a5..f22159c138d 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabases/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabases/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ManagedDatabase } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedDatabasesClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedDatabasesClient) ListByInstance(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabases/method_listinaccessiblebyinstance.go b/resource-manager/sql/2023-02-01-preview/manageddatabases/method_listinaccessiblebyinstance.go index 2aeffdb8aa8..043eeee41ce 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabases/method_listinaccessiblebyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabases/method_listinaccessiblebyinstance.go @@ -24,6 +24,18 @@ type ListInaccessibleByInstanceCompleteResult struct { Items []ManagedDatabase } +type ListInaccessibleByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInaccessibleByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInaccessibleByInstance ... func (c ManagedDatabasesClient) ListInaccessibleByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListInaccessibleByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedDatabasesClient) ListInaccessibleByInstance(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInaccessibleByInstanceCustomPager{}, Path: fmt.Sprintf("%s/inaccessibleManagedDatabases", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabaseschemas/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/manageddatabaseschemas/method_listbydatabase.go index fda09ac07fd..1e9c1d82bec 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabaseschemas/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabaseschemas/method_listbydatabase.go @@ -51,6 +51,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseSchemasClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagedDatabaseSchemasClient) ListByDatabase(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityalertpolicies/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityalertpolicies/method_listbydatabase.go index 7d6777ff32e..e09d852c08a 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityalertpolicies/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityalertpolicies/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ManagedDatabaseSecurityAlertPolicy } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabase(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/securityAlertPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityevents/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityevents/method_listbydatabase.go index a03fe5a1074..e65ae036286 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityevents/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasesecurityevents/method_listbydatabase.go @@ -59,6 +59,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseSecurityEventsClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ManagedDatabaseSecurityEventsClient) ListByDatabase(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/securityEvents", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/securityEvents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/method_listbydatabase.go index 337b4ba731e..fe2c0337ad5 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/method_listbydatabase.go @@ -51,6 +51,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseSensitivityLabelsClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagedDatabaseSensitivityLabelsClient) ListByDatabase(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sensitivityLabels", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/sensitivityLabels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/method_listcurrentbydatabase.go b/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/method_listcurrentbydatabase.go index 11e0be9552f..103ca96f4ff 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/method_listcurrentbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/method_listcurrentbydatabase.go @@ -55,6 +55,18 @@ func (o ListCurrentByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCurrentByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCurrentByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCurrentByDatabase ... func (c ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId, options ListCurrentByDatabaseOperationOptions) (result ListCurrentByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabase(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/currentSensitivityLabels", id.ID()), OptionsObject: options, + Pager: &ListCurrentByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/currentSensitivityLabels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/method_listrecommendedbydatabase.go b/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/method_listrecommendedbydatabase.go index e1cbfd178cd..912989aa100 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/method_listrecommendedbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasesensitivitylabels/method_listrecommendedbydatabase.go @@ -55,6 +55,18 @@ func (o ListRecommendedByDatabaseOperationOptions) ToQuery() *client.QueryParams return &out } +type ListRecommendedByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRecommendedByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRecommendedByDatabase ... func (c ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId, options ListRecommendedByDatabaseOperationOptions) (result ListRecommendedByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabase(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendedSensitivityLabels", id.ID()), OptionsObject: options, + Pager: &ListRecommendedByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/recommendedSensitivityLabels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasetables/method_listbyschema.go b/resource-manager/sql/2023-02-01-preview/manageddatabasetables/method_listbyschema.go index ca6f78a75a0..acd107e0eb0 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasetables/method_listbyschema.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasetables/method_listbyschema.go @@ -50,6 +50,18 @@ func (o ListBySchemaOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySchemaCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySchemaCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySchema ... func (c ManagedDatabaseTablesClient) ListBySchema(ctx context.Context, id DatabaseSchemaId, options ListBySchemaOperationOptions) (result ListBySchemaOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ManagedDatabaseTablesClient) ListBySchema(ctx context.Context, id Databa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tables", id.ID()), OptionsObject: options, + Pager: &ListBySchemaCustomPager{}, + Path: fmt.Sprintf("%s/tables", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasetransparentdataencryption/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/manageddatabasetransparentdataencryption/method_listbydatabase.go index b0ec1e6c69a..aa31fc6e3a5 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasetransparentdataencryption/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasetransparentdataencryption/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ManagedTransparentDataEncryption } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseTransparentDataEncryptionClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedDatabaseTransparentDataEncryptionClient) ListByDatabase(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/transparentDataEncryption", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessments/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessments/method_listbydatabase.go index 3a29ef66a87..0bb5ed97468 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessments/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessments/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DatabaseVulnerabilityAssessment } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessmentscans/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessmentscans/method_listbydatabase.go index f1f366bf50b..b494431be17 100644 --- a/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessmentscans/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/manageddatabasevulnerabilityassessmentscans/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []VulnerabilityAssessmentScanRecord } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments/default/scans", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedinstanceadministrators/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/managedinstanceadministrators/method_listbyinstance.go index 32a35ea8807..9bef3057cbd 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstanceadministrators/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstanceadministrators/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ManagedInstanceAdministrator } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedInstanceAdministratorsClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceAdministratorsClient) ListByInstance(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/administrators", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedinstanceadvancedthreatprotectionsettings/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/managedinstanceadvancedthreatprotectionsettings/method_listbyinstance.go index f48e04b89c2..25fe1f3b75d 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstanceadvancedthreatprotectionsettings/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstanceadvancedthreatprotectionsettings/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ManagedInstanceAdvancedThreatProtection } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedInstanceAdvancedThreatProtectionSettingsClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceAdvancedThreatProtectionSettingsClient) ListByInstance(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/advancedThreatProtectionSettings", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedinstanceazureadonlyauthentications/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/managedinstanceazureadonlyauthentications/method_listbyinstance.go index d91ab2930ee..4cd27d8d271 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstanceazureadonlyauthentications/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstanceazureadonlyauthentications/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ManagedInstanceAzureADOnlyAuthentication } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedInstanceAzureADOnlyAuthenticationsClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceAzureADOnlyAuthenticationsClient) ListByInstance(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/azureADOnlyAuthentications", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedinstancedtcs/method_listbymanagedinstance.go b/resource-manager/sql/2023-02-01-preview/managedinstancedtcs/method_listbymanagedinstance.go index 3eb495b3d73..a3186adf70c 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstancedtcs/method_listbymanagedinstance.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstancedtcs/method_listbymanagedinstance.go @@ -24,6 +24,18 @@ type ListByManagedInstanceCompleteResult struct { Items []ManagedInstanceDtc } +type ListByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedInstance ... func (c ManagedInstanceDtcsClient) ListByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceDtcsClient) ListByManagedInstance(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedInstanceCustomPager{}, Path: fmt.Sprintf("%s/dtc", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedinstanceencryptionprotectors/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/managedinstanceencryptionprotectors/method_listbyinstance.go index 644ecb5c81f..92441270ccc 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstanceencryptionprotectors/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstanceencryptionprotectors/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ManagedInstanceEncryptionProtector } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedInstanceEncryptionProtectorsClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceEncryptionProtectorsClient) ListByInstance(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/encryptionProtector", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedinstancekeys/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/managedinstancekeys/method_listbyinstance.go index b4f551d6938..140196d0475 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstancekeys/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstancekeys/method_listbyinstance.go @@ -51,6 +51,18 @@ func (o ListByInstanceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedInstanceKeysClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId, options ListByInstanceOperationOptions) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagedInstanceKeysClient) ListByInstance(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/keys", id.ID()), OptionsObject: options, + Pager: &ListByInstanceCustomPager{}, + Path: fmt.Sprintf("%s/keys", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstancelongtermretentionpolicies/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/managedinstancelongtermretentionpolicies/method_listbydatabase.go index 4ef054370cf..cf4ace85962 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstancelongtermretentionpolicies/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstancelongtermretentionpolicies/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ManagedInstanceLongTermRetentionPolicy } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedInstanceLongTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceLongTermRetentionPoliciesClient) ListByDatabase(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/backupLongTermRetentionPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedinstanceoperations/method_listbymanagedinstance.go b/resource-manager/sql/2023-02-01-preview/managedinstanceoperations/method_listbymanagedinstance.go index 3cfccafd866..1cfeccbb360 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstanceoperations/method_listbymanagedinstance.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstanceoperations/method_listbymanagedinstance.go @@ -24,6 +24,18 @@ type ListByManagedInstanceCompleteResult struct { Items []ManagedInstanceOperation } +type ListByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedInstance ... func (c ManagedInstanceOperationsClient) ListByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceOperationsClient) ListByManagedInstance(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedInstanceCustomPager{}, Path: fmt.Sprintf("%s/operations", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedinstanceprivateendpointconnections/method_listbymanagedinstance.go b/resource-manager/sql/2023-02-01-preview/managedinstanceprivateendpointconnections/method_listbymanagedinstance.go index 0b2f5535b60..73ea470009a 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstanceprivateendpointconnections/method_listbymanagedinstance.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstanceprivateendpointconnections/method_listbymanagedinstance.go @@ -24,6 +24,18 @@ type ListByManagedInstanceCompleteResult struct { Items []ManagedInstancePrivateEndpointConnection } +type ListByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedInstance ... func (c ManagedInstancePrivateEndpointConnectionsClient) ListByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstancePrivateEndpointConnectionsClient) ListByManagedInstance(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedInstanceCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedinstanceprivatelinkresources/method_listbymanagedinstance.go b/resource-manager/sql/2023-02-01-preview/managedinstanceprivatelinkresources/method_listbymanagedinstance.go index 28e416b514b..99eb0ef7a33 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstanceprivatelinkresources/method_listbymanagedinstance.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstanceprivatelinkresources/method_listbymanagedinstance.go @@ -24,6 +24,18 @@ type ListByManagedInstanceCompleteResult struct { Items []ManagedInstancePrivateLink } +type ListByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedInstance ... func (c ManagedInstancePrivateLinkResourcesClient) ListByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstancePrivateLinkResourcesClient) ListByManagedInstance(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedInstanceCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedinstances/method_failover.go b/resource-manager/sql/2023-02-01-preview/managedinstances/method_failover.go index 56fb0eec8bb..6a09e24ad41 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstances/method_failover.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstances/method_failover.go @@ -57,8 +57,8 @@ func (c ManagedInstancesClient) Failover(ctx context.Context, id commonids.SqlMa http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/failover", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/failover", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstances/method_get.go b/resource-manager/sql/2023-02-01-preview/managedinstances/method_get.go index dea617eca0c..2c318ce242d 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstances/method_get.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstances/method_get.go @@ -54,8 +54,8 @@ func (c ManagedInstancesClient) Get(ctx context.Context, id commonids.SqlManaged http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstances/method_list.go b/resource-manager/sql/2023-02-01-preview/managedinstances/method_list.go index c91827f8032..55f688b91ac 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstances/method_list.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstances/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedInstancesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagedInstancesClient) List(ctx context.Context, id commonids.Subscript http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Sql/managedInstances", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Sql/managedInstances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstances/method_listbyinstancepool.go b/resource-manager/sql/2023-02-01-preview/managedinstances/method_listbyinstancepool.go index 70ffbf54329..f98c7ba2901 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstances/method_listbyinstancepool.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstances/method_listbyinstancepool.go @@ -50,6 +50,18 @@ func (o ListByInstancePoolOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInstancePoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstancePoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstancePool ... func (c ManagedInstancesClient) ListByInstancePool(ctx context.Context, id InstancePoolId, options ListByInstancePoolOperationOptions) (result ListByInstancePoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ManagedInstancesClient) ListByInstancePool(ctx context.Context, id Insta http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/managedInstances", id.ID()), OptionsObject: options, + Pager: &ListByInstancePoolCustomPager{}, + Path: fmt.Sprintf("%s/managedInstances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstances/method_listbymanagedinstance.go b/resource-manager/sql/2023-02-01-preview/managedinstances/method_listbymanagedinstance.go index d306a4da009..8a7c6f76675 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstances/method_listbymanagedinstance.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstances/method_listbymanagedinstance.go @@ -75,6 +75,18 @@ func (o ListByManagedInstanceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedInstance ... func (c ManagedInstancesClient) ListByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId, options ListByManagedInstanceOperationOptions) (result ListByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -83,8 +95,9 @@ func (c ManagedInstancesClient) ListByManagedInstance(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/topqueries", id.ID()), OptionsObject: options, + Pager: &ListByManagedInstanceCustomPager{}, + Path: fmt.Sprintf("%s/topqueries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstances/method_listbyresourcegroup.go b/resource-manager/sql/2023-02-01-preview/managedinstances/method_listbyresourcegroup.go index df03e9916cb..0a8a15041c2 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstances/method_listbyresourcegroup.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstances/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedInstancesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagedInstancesClient) ListByResourceGroup(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Sql/managedInstances", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Sql/managedInstances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/managedinstances/method_listoutboundnetworkdependenciesbymanagedinstance.go b/resource-manager/sql/2023-02-01-preview/managedinstances/method_listoutboundnetworkdependenciesbymanagedinstance.go index 61e4e080c1f..e2bcb4e0daa 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstances/method_listoutboundnetworkdependenciesbymanagedinstance.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstances/method_listoutboundnetworkdependenciesbymanagedinstance.go @@ -24,6 +24,18 @@ type ListOutboundNetworkDependenciesByManagedInstanceCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesByManagedInstance ... func (c ManagedInstancesClient) ListOutboundNetworkDependenciesByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListOutboundNetworkDependenciesByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstancesClient) ListOutboundNetworkDependenciesByManagedInstance http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesByManagedInstanceCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedinstancevulnerabilityassessments/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/managedinstancevulnerabilityassessments/method_listbyinstance.go index a26bbb2a8a2..fd8eb23fe58 100644 --- a/resource-manager/sql/2023-02-01-preview/managedinstancevulnerabilityassessments/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/managedinstancevulnerabilityassessments/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ManagedInstanceVulnerabilityAssessment } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedInstanceVulnerabilityAssessmentsClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceVulnerabilityAssessmentsClient) ListByInstance(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedledgerdigestuploads/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/managedledgerdigestuploads/method_listbydatabase.go index 6f990d3f348..3c3d455fa28 100644 --- a/resource-manager/sql/2023-02-01-preview/managedledgerdigestuploads/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/managedledgerdigestuploads/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ManagedLedgerDigestUploads } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedLedgerDigestUploadsClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedLedgerDigestUploadsClient) ListByDatabase(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/ledgerDigestUploads", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedrestorabledroppeddatabasebackupshorttermretentionpolicies/method_listbyrestorabledroppeddatabase.go b/resource-manager/sql/2023-02-01-preview/managedrestorabledroppeddatabasebackupshorttermretentionpolicies/method_listbyrestorabledroppeddatabase.go index f057762d6d5..6c10dd7bb9d 100644 --- a/resource-manager/sql/2023-02-01-preview/managedrestorabledroppeddatabasebackupshorttermretentionpolicies/method_listbyrestorabledroppeddatabase.go +++ b/resource-manager/sql/2023-02-01-preview/managedrestorabledroppeddatabasebackupshorttermretentionpolicies/method_listbyrestorabledroppeddatabase.go @@ -23,6 +23,18 @@ type ListByRestorableDroppedDatabaseCompleteResult struct { Items []ManagedBackupShortTermRetentionPolicy } +type ListByRestorableDroppedDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByRestorableDroppedDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByRestorableDroppedDatabase ... func (c ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabase(ctx context.Context, id ManagedInstanceRestorableDroppedDatabaseId) (result ListByRestorableDroppedDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByRestorableDroppedDatabaseCustomPager{}, Path: fmt.Sprintf("%s/backupShortTermRetentionPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedserverdnsaliases/method_listbymanagedinstance.go b/resource-manager/sql/2023-02-01-preview/managedserverdnsaliases/method_listbymanagedinstance.go index af829a73f3c..b78e1583e01 100644 --- a/resource-manager/sql/2023-02-01-preview/managedserverdnsaliases/method_listbymanagedinstance.go +++ b/resource-manager/sql/2023-02-01-preview/managedserverdnsaliases/method_listbymanagedinstance.go @@ -24,6 +24,18 @@ type ListByManagedInstanceCompleteResult struct { Items []ManagedServerDnsAlias } +type ListByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedInstance ... func (c ManagedServerDnsAliasesClient) ListByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedServerDnsAliasesClient) ListByManagedInstance(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedInstanceCustomPager{}, Path: fmt.Sprintf("%s/dnsAliases", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/managedserversecurityalertpolicies/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/managedserversecurityalertpolicies/method_listbyinstance.go index 47f612038e8..d0588ca068f 100644 --- a/resource-manager/sql/2023-02-01-preview/managedserversecurityalertpolicies/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/managedserversecurityalertpolicies/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ManagedServerSecurityAlertPolicy } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedServerSecurityAlertPoliciesClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedServerSecurityAlertPoliciesClient) ListByInstance(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/securityAlertPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/networksecurityperimeterconfigurations/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/networksecurityperimeterconfigurations/method_listbyserver.go index f7d9ba47cdc..fbf350145f6 100644 --- a/resource-manager/sql/2023-02-01-preview/networksecurityperimeterconfigurations/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/networksecurityperimeterconfigurations/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []NetworkSecurityPerimeterConfiguration } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c NetworkSecurityPerimeterConfigurationsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkSecurityPerimeterConfigurationsClient) ListByServer(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/networkSecurityPerimeterConfigurations", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/outboundfirewallrules/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/outboundfirewallrules/method_listbyserver.go index cb4bd289f1c..41445efebec 100644 --- a/resource-manager/sql/2023-02-01-preview/outboundfirewallrules/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/outboundfirewallrules/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []OutboundFirewallRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c OutboundFirewallRulesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OutboundFirewallRulesClient) ListByServer(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/outboundFirewallRules", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/privateendpointconnections/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/privateendpointconnections/method_listbyserver.go index cb4449f52aa..7d901871bf9 100644 --- a/resource-manager/sql/2023-02-01-preview/privateendpointconnections/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/privateendpointconnections/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []PrivateEndpointConnection } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/privatelinkresources/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/privatelinkresources/method_listbyserver.go index dbcd6439811..a30057bb061 100644 --- a/resource-manager/sql/2023-02-01-preview/privatelinkresources/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/privatelinkresources/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []PrivateLinkResource } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c PrivateLinkResourcesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkResourcesClient) ListByServer(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/recoverabledatabases/method_get.go b/resource-manager/sql/2023-02-01-preview/recoverabledatabases/method_get.go index 6b758eade59..f1d18340b68 100644 --- a/resource-manager/sql/2023-02-01-preview/recoverabledatabases/method_get.go +++ b/resource-manager/sql/2023-02-01-preview/recoverabledatabases/method_get.go @@ -57,8 +57,8 @@ func (c RecoverableDatabasesClient) Get(ctx context.Context, id RecoverableDatab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/recoverabledatabases/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/recoverabledatabases/method_listbyserver.go index 5a59d5ef8a7..c57293af9ea 100644 --- a/resource-manager/sql/2023-02-01-preview/recoverabledatabases/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/recoverabledatabases/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []RecoverableDatabase } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c RecoverableDatabasesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RecoverableDatabasesClient) ListByServer(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/recoverableDatabases", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/recoverablemanageddatabases/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/recoverablemanageddatabases/method_listbyinstance.go index 3d8920ebff4..57dd01f6bf9 100644 --- a/resource-manager/sql/2023-02-01-preview/recoverablemanageddatabases/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/recoverablemanageddatabases/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []RecoverableManagedDatabase } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c RecoverableManagedDatabasesClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RecoverableManagedDatabasesClient) ListByInstance(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/recoverableDatabases", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/replicationlinks/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/replicationlinks/method_listbydatabase.go index 33f5a004ddf..d822c28ded5 100644 --- a/resource-manager/sql/2023-02-01-preview/replicationlinks/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/replicationlinks/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ReplicationLink } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ReplicationLinksClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ReplicationLinksClient) ListByDatabase(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/replicationLinks", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/replicationlinks/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/replicationlinks/method_listbyserver.go index c25fe0038e9..4c0dc194d25 100644 --- a/resource-manager/sql/2023-02-01-preview/replicationlinks/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/replicationlinks/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ReplicationLink } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ReplicationLinksClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ReplicationLinksClient) ListByServer(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/replicationLinks", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/restorabledroppeddatabases/method_get.go b/resource-manager/sql/2023-02-01-preview/restorabledroppeddatabases/method_get.go index 3097ea7d352..03d3fe22529 100644 --- a/resource-manager/sql/2023-02-01-preview/restorabledroppeddatabases/method_get.go +++ b/resource-manager/sql/2023-02-01-preview/restorabledroppeddatabases/method_get.go @@ -57,8 +57,8 @@ func (c RestorableDroppedDatabasesClient) Get(ctx context.Context, id Restorable http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/restorabledroppeddatabases/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/restorabledroppeddatabases/method_listbyserver.go index c7b61b7629e..7c4fae2734b 100644 --- a/resource-manager/sql/2023-02-01-preview/restorabledroppeddatabases/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/restorabledroppeddatabases/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []RestorableDroppedDatabase } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c RestorableDroppedDatabasesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RestorableDroppedDatabasesClient) ListByServer(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/restorableDroppedDatabases", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/restorabledroppedmanageddatabases/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/restorabledroppedmanageddatabases/method_listbyinstance.go index 3106075e7f9..ebb6740b164 100644 --- a/resource-manager/sql/2023-02-01-preview/restorabledroppedmanageddatabases/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/restorabledroppedmanageddatabases/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []RestorableDroppedManagedDatabase } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c RestorableDroppedManagedDatabasesClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RestorableDroppedManagedDatabasesClient) ListByInstance(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/restorableDroppedDatabases", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/restorepoints/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/restorepoints/method_listbydatabase.go index 96605fa8b9e..977a780cf89 100644 --- a/resource-manager/sql/2023-02-01-preview/restorepoints/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/restorepoints/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []RestorePoint } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c RestorePointsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RestorePointsClient) ListByDatabase(ctx context.Context, id commonids.Sq http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/restorePoints", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/sensitivitylabels/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/sensitivitylabels/method_listbydatabase.go index 6ae174c4c0c..6f57eee31d4 100644 --- a/resource-manager/sql/2023-02-01-preview/sensitivitylabels/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/sensitivitylabels/method_listbydatabase.go @@ -51,6 +51,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c SensitivityLabelsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SensitivityLabelsClient) ListByDatabase(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sensitivityLabels", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/sensitivityLabels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/sensitivitylabels/method_listcurrentbydatabase.go b/resource-manager/sql/2023-02-01-preview/sensitivitylabels/method_listcurrentbydatabase.go index b431f8f3979..73a615c88fa 100644 --- a/resource-manager/sql/2023-02-01-preview/sensitivitylabels/method_listcurrentbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/sensitivitylabels/method_listcurrentbydatabase.go @@ -55,6 +55,18 @@ func (o ListCurrentByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCurrentByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCurrentByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCurrentByDatabase ... func (c SensitivityLabelsClient) ListCurrentByDatabase(ctx context.Context, id commonids.SqlDatabaseId, options ListCurrentByDatabaseOperationOptions) (result ListCurrentByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c SensitivityLabelsClient) ListCurrentByDatabase(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/currentSensitivityLabels", id.ID()), OptionsObject: options, + Pager: &ListCurrentByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/currentSensitivityLabels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/sensitivitylabels/method_listrecommendedbydatabase.go b/resource-manager/sql/2023-02-01-preview/sensitivitylabels/method_listrecommendedbydatabase.go index dc86be24851..2e9d85df880 100644 --- a/resource-manager/sql/2023-02-01-preview/sensitivitylabels/method_listrecommendedbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/sensitivitylabels/method_listrecommendedbydatabase.go @@ -55,6 +55,18 @@ func (o ListRecommendedByDatabaseOperationOptions) ToQuery() *client.QueryParams return &out } +type ListRecommendedByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRecommendedByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRecommendedByDatabase ... func (c SensitivityLabelsClient) ListRecommendedByDatabase(ctx context.Context, id commonids.SqlDatabaseId, options ListRecommendedByDatabaseOperationOptions) (result ListRecommendedByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c SensitivityLabelsClient) ListRecommendedByDatabase(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendedSensitivityLabels", id.ID()), OptionsObject: options, + Pager: &ListRecommendedByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/recommendedSensitivityLabels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/serveradvancedthreatprotectionsettings/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/serveradvancedthreatprotectionsettings/method_listbyserver.go index 11503629d11..f22ea47813e 100644 --- a/resource-manager/sql/2023-02-01-preview/serveradvancedthreatprotectionsettings/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/serveradvancedthreatprotectionsettings/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerAdvancedThreatProtection } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerAdvancedThreatProtectionSettingsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerAdvancedThreatProtectionSettingsClient) ListByServer(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/advancedThreatProtectionSettings", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/serveradvisors/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/serveradvisors/method_listbyserver.go index 123d67dc5f5..0ab13d2757c 100644 --- a/resource-manager/sql/2023-02-01-preview/serveradvisors/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/serveradvisors/method_listbyserver.go @@ -54,8 +54,8 @@ func (c ServerAdvisorsClient) ListByServer(ctx context.Context, id commonids.Sql http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/advisors", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/advisors", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/serverazureadadministrators/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/serverazureadadministrators/method_listbyserver.go index 6e45eec09a8..e6a4b34dac5 100644 --- a/resource-manager/sql/2023-02-01-preview/serverazureadadministrators/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/serverazureadadministrators/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerAzureADAdministrator } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerAzureADAdministratorsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerAzureADAdministratorsClient) ListByServer(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/administrators", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/serverazureadonlyauthentications/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/serverazureadonlyauthentications/method_listbyserver.go index ab714ce8d69..96d5964f0ee 100644 --- a/resource-manager/sql/2023-02-01-preview/serverazureadonlyauthentications/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/serverazureadonlyauthentications/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerAzureADOnlyAuthentication } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerAzureADOnlyAuthenticationsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerAzureADOnlyAuthenticationsClient) ListByServer(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/azureADOnlyAuthentications", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/serverconfigurationoptions/method_listbymanagedinstance.go b/resource-manager/sql/2023-02-01-preview/serverconfigurationoptions/method_listbymanagedinstance.go index 6e7df98df23..eb3f3fe6a8d 100644 --- a/resource-manager/sql/2023-02-01-preview/serverconfigurationoptions/method_listbymanagedinstance.go +++ b/resource-manager/sql/2023-02-01-preview/serverconfigurationoptions/method_listbymanagedinstance.go @@ -24,6 +24,18 @@ type ListByManagedInstanceCompleteResult struct { Items []ServerConfigurationOption } +type ListByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedInstance ... func (c ServerConfigurationOptionsClient) ListByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerConfigurationOptionsClient) ListByManagedInstance(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedInstanceCustomPager{}, Path: fmt.Sprintf("%s/serverConfigurationOptions", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/serverconnectionpolicies/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/serverconnectionpolicies/method_listbyserver.go index 92a6f38dd68..0eb69736366 100644 --- a/resource-manager/sql/2023-02-01-preview/serverconnectionpolicies/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/serverconnectionpolicies/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerConnectionPolicy } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerConnectionPoliciesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerConnectionPoliciesClient) ListByServer(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/connectionPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/serverdevopsaudit/method_settingslistbyserver.go b/resource-manager/sql/2023-02-01-preview/serverdevopsaudit/method_settingslistbyserver.go index 14823dd7b91..39e50f7940a 100644 --- a/resource-manager/sql/2023-02-01-preview/serverdevopsaudit/method_settingslistbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/serverdevopsaudit/method_settingslistbyserver.go @@ -24,6 +24,18 @@ type SettingsListByServerCompleteResult struct { Items []ServerDevOpsAuditingSettings } +type SettingsListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SettingsListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SettingsListByServer ... func (c ServerDevOpsAuditClient) SettingsListByServer(ctx context.Context, id commonids.SqlServerId) (result SettingsListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerDevOpsAuditClient) SettingsListByServer(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SettingsListByServerCustomPager{}, Path: fmt.Sprintf("%s/devOpsAuditingSettings", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/serverdnsaliases/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/serverdnsaliases/method_listbyserver.go index 30cd7b0d445..b67f67765b7 100644 --- a/resource-manager/sql/2023-02-01-preview/serverdnsaliases/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/serverdnsaliases/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerDnsAlias } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerDnsAliasesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerDnsAliasesClient) ListByServer(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/dnsAliases", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/serverkeys/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/serverkeys/method_listbyserver.go index a737ff6f99b..221552cd13f 100644 --- a/resource-manager/sql/2023-02-01-preview/serverkeys/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/serverkeys/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerKey } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerKeysClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerKeysClient) ListByServer(ctx context.Context, id commonids.SqlServ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/keys", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/serveroperations/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/serveroperations/method_listbyserver.go index 4e9b3370aa6..5eac4638595 100644 --- a/resource-manager/sql/2023-02-01-preview/serveroperations/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/serveroperations/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerOperation } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerOperationsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerOperationsClient) ListByServer(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/operations", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/servers/method_get.go b/resource-manager/sql/2023-02-01-preview/servers/method_get.go index b4125d98723..9fa3523f482 100644 --- a/resource-manager/sql/2023-02-01-preview/servers/method_get.go +++ b/resource-manager/sql/2023-02-01-preview/servers/method_get.go @@ -54,8 +54,8 @@ func (c ServersClient) Get(ctx context.Context, id commonids.SqlServerId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/servers/method_list.go b/resource-manager/sql/2023-02-01-preview/servers/method_list.go index 4c918077804..0ce97ea8572 100644 --- a/resource-manager/sql/2023-02-01-preview/servers/method_list.go +++ b/resource-manager/sql/2023-02-01-preview/servers/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Sql/servers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Sql/servers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/servers/method_listbyresourcegroup.go b/resource-manager/sql/2023-02-01-preview/servers/method_listbyresourcegroup.go index 652f6d26588..eb7122c8a0a 100644 --- a/resource-manager/sql/2023-02-01-preview/servers/method_listbyresourcegroup.go +++ b/resource-manager/sql/2023-02-01-preview/servers/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Sql/servers", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Sql/servers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/serversecurityalertpolicies/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/serversecurityalertpolicies/method_listbyserver.go index 2694825f8a8..50b8635f5a0 100644 --- a/resource-manager/sql/2023-02-01-preview/serversecurityalertpolicies/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/serversecurityalertpolicies/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerSecurityAlertPolicy } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/securityAlertPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/servertrustcertificates/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/servertrustcertificates/method_listbyinstance.go index d471e6d5c27..17f4bf95e19 100644 --- a/resource-manager/sql/2023-02-01-preview/servertrustcertificates/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/servertrustcertificates/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ServerTrustCertificate } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ServerTrustCertificatesClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerTrustCertificatesClient) ListByInstance(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/serverTrustCertificates", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/servertrustgroups/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/servertrustgroups/method_listbyinstance.go index fa48e2924af..eeaeeb3876f 100644 --- a/resource-manager/sql/2023-02-01-preview/servertrustgroups/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/servertrustgroups/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ServerTrustGroup } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ServerTrustGroupsClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerTrustGroupsClient) ListByInstance(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/serverTrustGroups", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/servertrustgroups/method_listbylocation.go b/resource-manager/sql/2023-02-01-preview/servertrustgroups/method_listbylocation.go index 6db42c216a8..8bad6d43f77 100644 --- a/resource-manager/sql/2023-02-01-preview/servertrustgroups/method_listbylocation.go +++ b/resource-manager/sql/2023-02-01-preview/servertrustgroups/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []ServerTrustGroup } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c ServerTrustGroupsClient) ListByLocation(ctx context.Context, id ProviderLocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServerTrustGroupsClient) ListByLocation(ctx context.Context, id Provider http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/serverTrustGroups", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/serverusages/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/serverusages/method_listbyserver.go index 93c9bbdc68c..8c6774ff80d 100644 --- a/resource-manager/sql/2023-02-01-preview/serverusages/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/serverusages/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerUsage } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerUsagesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerUsagesClient) ListByServer(ctx context.Context, id commonids.SqlSe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/servervulnerabilityassessments/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/servervulnerabilityassessments/method_listbyserver.go index 795c25ccd4b..49dc3296c3b 100644 --- a/resource-manager/sql/2023-02-01-preview/servervulnerabilityassessments/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/servervulnerabilityassessments/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerVulnerabilityAssessment } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerVulnerabilityAssessmentsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerVulnerabilityAssessmentsClient) ListByServer(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/method_createorupdate.go b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/method_createorupdate.go index cc8687ca746..f287d50ecef 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/method_createorupdate.go +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/method_createorupdate.go @@ -54,8 +54,8 @@ func (c SqlVulnerabilityAssessmentBaselineClient) CreateOrUpdate(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/method_get.go b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/method_get.go index 24130be8090..1742364c396 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/method_get.go +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/method_get.go @@ -54,8 +54,8 @@ func (c SqlVulnerabilityAssessmentBaselineClient) Get(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/method_listbysqlvulnerabilityassessment.go b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/method_listbysqlvulnerabilityassessment.go index e42759b6be7..caec9ab9821 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/method_listbysqlvulnerabilityassessment.go +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentbaseline/method_listbysqlvulnerabilityassessment.go @@ -51,6 +51,18 @@ func (o ListBySqlVulnerabilityAssessmentOperationOptions) ToQuery() *client.Quer return &out } +type ListBySqlVulnerabilityAssessmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySqlVulnerabilityAssessmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySqlVulnerabilityAssessment ... func (c SqlVulnerabilityAssessmentBaselineClient) ListBySqlVulnerabilityAssessment(ctx context.Context, id commonids.SqlServerId, options ListBySqlVulnerabilityAssessmentOperationOptions) (result ListBySqlVulnerabilityAssessmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SqlVulnerabilityAssessmentBaselineClient) ListBySqlVulnerabilityAssessme http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines", id.ID()), OptionsObject: options, + Pager: &ListBySqlVulnerabilityAssessmentCustomPager{}, + Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentexecutescan/method_execute.go b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentexecutescan/method_execute.go index 50f07786035..201fdbca8ea 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentexecutescan/method_execute.go +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentexecutescan/method_execute.go @@ -57,8 +57,8 @@ func (c SqlVulnerabilityAssessmentExecuteScanClient) Execute(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/initiateScan", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/initiateScan", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_createorupdate.go b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_createorupdate.go index b0504d394ff..fb8a7288f91 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_createorupdate.go +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_createorupdate.go @@ -53,8 +53,8 @@ func (c SqlVulnerabilityAssessmentRuleBaselineClient) CreateOrUpdate(ctx context http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_delete.go b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_delete.go index 3e2d2645e16..df062390726 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_delete.go +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_delete.go @@ -53,8 +53,8 @@ func (c SqlVulnerabilityAssessmentRuleBaselineClient) Delete(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_get.go b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_get.go index ae8a8df7311..b587ac02d42 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_get.go +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_get.go @@ -53,8 +53,8 @@ func (c SqlVulnerabilityAssessmentRuleBaselineClient) Get(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_listbybaseline.go b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_listbybaseline.go index 1cee70982f1..2ba72cbdd7d 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_listbybaseline.go +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentrulebaseline/method_listbybaseline.go @@ -51,6 +51,18 @@ func (o ListByBaselineOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBaselineCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBaselineCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBaseline ... func (c SqlVulnerabilityAssessmentRuleBaselineClient) ListByBaseline(ctx context.Context, id commonids.SqlServerId, options ListByBaselineOperationOptions) (result ListByBaselineOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SqlVulnerabilityAssessmentRuleBaselineClient) ListByBaseline(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines/default/rules", id.ID()), OptionsObject: options, + Pager: &ListByBaselineCustomPager{}, + Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines/default/rules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscanresult/method_get.go b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscanresult/method_get.go index d99588b4b6a..ef0c57e5f1f 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscanresult/method_get.go +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscanresult/method_get.go @@ -53,8 +53,8 @@ func (c SqlVulnerabilityAssessmentScanResultClient) Get(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscanresult/method_listbyscan.go b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscanresult/method_listbyscan.go index 01307934280..24c4bf34932 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscanresult/method_listbyscan.go +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscanresult/method_listbyscan.go @@ -50,6 +50,18 @@ func (o ListByScanOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByScanCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScanCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScan ... func (c SqlVulnerabilityAssessmentScanResultClient) ListByScan(ctx context.Context, id ScanId, options ListByScanOperationOptions) (result ListByScanOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SqlVulnerabilityAssessmentScanResultClient) ListByScan(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/scanResults", id.ID()), OptionsObject: options, + Pager: &ListByScanCustomPager{}, + Path: fmt.Sprintf("%s/scanResults", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscans/method_get.go b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscans/method_get.go index 4fc61f4d6e4..8c977afd356 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscans/method_get.go +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscans/method_get.go @@ -53,8 +53,8 @@ func (c SqlVulnerabilityAssessmentScansClient) Get(ctx context.Context, id ScanI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go index 52e5021a7a2..bc384217394 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go @@ -51,6 +51,18 @@ func (o ListBySqlVulnerabilityAssessmentsOperationOptions) ToQuery() *client.Que return &out } +type ListBySqlVulnerabilityAssessmentsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySqlVulnerabilityAssessmentsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySqlVulnerabilityAssessments ... func (c SqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessments(ctx context.Context, id commonids.SqlServerId, options ListBySqlVulnerabilityAssessmentsOperationOptions) (result ListBySqlVulnerabilityAssessmentsOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessments http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/scans", id.ID()), OptionsObject: options, + Pager: &ListBySqlVulnerabilityAssessmentsCustomPager{}, + Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/scans", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentssettings/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentssettings/method_listbyserver.go index 98a21416183..14bdd4b30ed 100644 --- a/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentssettings/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/sqlvulnerabilityassessmentssettings/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []SqlVulnerabilityAssessment } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c SqlVulnerabilityAssessmentsSettingsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SqlVulnerabilityAssessmentsSettingsClient) ListByServer(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/startstopmanagedinstanceschedules/method_listbyinstance.go b/resource-manager/sql/2023-02-01-preview/startstopmanagedinstanceschedules/method_listbyinstance.go index aa67710ed31..ea88a26dfa8 100644 --- a/resource-manager/sql/2023-02-01-preview/startstopmanagedinstanceschedules/method_listbyinstance.go +++ b/resource-manager/sql/2023-02-01-preview/startstopmanagedinstanceschedules/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []StartStopManagedInstanceSchedule } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c StartStopManagedInstanceSchedulesClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StartStopManagedInstanceSchedulesClient) ListByInstance(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/startStopSchedules", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/subscriptionusages/method_listbylocation.go b/resource-manager/sql/2023-02-01-preview/subscriptionusages/method_listbylocation.go index 5ac37b52783..084767e6180 100644 --- a/resource-manager/sql/2023-02-01-preview/subscriptionusages/method_listbylocation.go +++ b/resource-manager/sql/2023-02-01-preview/subscriptionusages/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []SubscriptionUsage } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c SubscriptionUsagesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SubscriptionUsagesClient) ListByLocation(ctx context.Context, id Locatio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/synapselinkworkspaces/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/synapselinkworkspaces/method_listbydatabase.go index e718a25531f..8444d646633 100644 --- a/resource-manager/sql/2023-02-01-preview/synapselinkworkspaces/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/synapselinkworkspaces/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []SynapseLinkWorkspace } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c SynapseLinkWorkspacesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SynapseLinkWorkspacesClient) ListByDatabase(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/linkWorkspaces", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/syncagents/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/syncagents/method_listbyserver.go index b550c113093..021f3655ff0 100644 --- a/resource-manager/sql/2023-02-01-preview/syncagents/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/syncagents/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []SyncAgent } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c SyncAgentsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SyncAgentsClient) ListByServer(ctx context.Context, id commonids.SqlServ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/syncAgents", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/syncagents/method_listlinkeddatabases.go b/resource-manager/sql/2023-02-01-preview/syncagents/method_listlinkeddatabases.go index 8ef1bb4797c..492851acf54 100644 --- a/resource-manager/sql/2023-02-01-preview/syncagents/method_listlinkeddatabases.go +++ b/resource-manager/sql/2023-02-01-preview/syncagents/method_listlinkeddatabases.go @@ -23,6 +23,18 @@ type ListLinkedDatabasesCompleteResult struct { Items []SyncAgentLinkedDatabase } +type ListLinkedDatabasesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListLinkedDatabasesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListLinkedDatabases ... func (c SyncAgentsClient) ListLinkedDatabases(ctx context.Context, id SyncAgentId) (result ListLinkedDatabasesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SyncAgentsClient) ListLinkedDatabases(ctx context.Context, id SyncAgentI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListLinkedDatabasesCustomPager{}, Path: fmt.Sprintf("%s/linkedDatabases", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/syncgroups/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/syncgroups/method_listbydatabase.go index f4400415cfe..1feba6cec91 100644 --- a/resource-manager/sql/2023-02-01-preview/syncgroups/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/syncgroups/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []SyncGroup } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c SyncGroupsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SyncGroupsClient) ListByDatabase(ctx context.Context, id commonids.SqlDa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/syncGroups", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/syncgroups/method_listhubschemas.go b/resource-manager/sql/2023-02-01-preview/syncgroups/method_listhubschemas.go index e844a605f2e..8fe8c300344 100644 --- a/resource-manager/sql/2023-02-01-preview/syncgroups/method_listhubschemas.go +++ b/resource-manager/sql/2023-02-01-preview/syncgroups/method_listhubschemas.go @@ -23,6 +23,18 @@ type ListHubSchemasCompleteResult struct { Items []SyncFullSchemaProperties } +type ListHubSchemasCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHubSchemasCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHubSchemas ... func (c SyncGroupsClient) ListHubSchemas(ctx context.Context, id SyncGroupId) (result ListHubSchemasOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SyncGroupsClient) ListHubSchemas(ctx context.Context, id SyncGroupId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHubSchemasCustomPager{}, Path: fmt.Sprintf("%s/hubSchemas", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/syncgroups/method_listlogs.go b/resource-manager/sql/2023-02-01-preview/syncgroups/method_listlogs.go index 31ff78908d0..5f0554775a2 100644 --- a/resource-manager/sql/2023-02-01-preview/syncgroups/method_listlogs.go +++ b/resource-manager/sql/2023-02-01-preview/syncgroups/method_listlogs.go @@ -62,6 +62,18 @@ func (o ListLogsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListLogsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListLogsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListLogs ... func (c SyncGroupsClient) ListLogs(ctx context.Context, id SyncGroupId, options ListLogsOperationOptions) (result ListLogsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c SyncGroupsClient) ListLogs(ctx context.Context, id SyncGroupId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/logs", id.ID()), OptionsObject: options, + Pager: &ListLogsCustomPager{}, + Path: fmt.Sprintf("%s/logs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/syncgroups/method_listsyncdatabaseids.go b/resource-manager/sql/2023-02-01-preview/syncgroups/method_listsyncdatabaseids.go index 54ae925b9f6..23a9db0fdcb 100644 --- a/resource-manager/sql/2023-02-01-preview/syncgroups/method_listsyncdatabaseids.go +++ b/resource-manager/sql/2023-02-01-preview/syncgroups/method_listsyncdatabaseids.go @@ -23,6 +23,18 @@ type ListSyncDatabaseIdsCompleteResult struct { Items []SyncDatabaseIdProperties } +type ListSyncDatabaseIdsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSyncDatabaseIdsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSyncDatabaseIds ... func (c SyncGroupsClient) ListSyncDatabaseIds(ctx context.Context, id LocationId) (result ListSyncDatabaseIdsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SyncGroupsClient) ListSyncDatabaseIds(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSyncDatabaseIdsCustomPager{}, Path: fmt.Sprintf("%s/syncDatabaseIds", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/syncmembers/method_listbysyncgroup.go b/resource-manager/sql/2023-02-01-preview/syncmembers/method_listbysyncgroup.go index 1e6646ba716..ddd95153a82 100644 --- a/resource-manager/sql/2023-02-01-preview/syncmembers/method_listbysyncgroup.go +++ b/resource-manager/sql/2023-02-01-preview/syncmembers/method_listbysyncgroup.go @@ -23,6 +23,18 @@ type ListBySyncGroupCompleteResult struct { Items []SyncMember } +type ListBySyncGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySyncGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySyncGroup ... func (c SyncMembersClient) ListBySyncGroup(ctx context.Context, id SyncGroupId) (result ListBySyncGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SyncMembersClient) ListBySyncGroup(ctx context.Context, id SyncGroupId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySyncGroupCustomPager{}, Path: fmt.Sprintf("%s/syncMembers", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/syncmembers/method_listmemberschemas.go b/resource-manager/sql/2023-02-01-preview/syncmembers/method_listmemberschemas.go index 44f7c113d22..859d739124f 100644 --- a/resource-manager/sql/2023-02-01-preview/syncmembers/method_listmemberschemas.go +++ b/resource-manager/sql/2023-02-01-preview/syncmembers/method_listmemberschemas.go @@ -23,6 +23,18 @@ type ListMemberSchemasCompleteResult struct { Items []SyncFullSchemaProperties } +type ListMemberSchemasCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMemberSchemasCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMemberSchemas ... func (c SyncMembersClient) ListMemberSchemas(ctx context.Context, id SyncMemberId) (result ListMemberSchemasOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SyncMembersClient) ListMemberSchemas(ctx context.Context, id SyncMemberI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMemberSchemasCustomPager{}, Path: fmt.Sprintf("%s/schemas", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/timezones/method_listbylocation.go b/resource-manager/sql/2023-02-01-preview/timezones/method_listbylocation.go index 71e10af6cc0..48bdb1d9392 100644 --- a/resource-manager/sql/2023-02-01-preview/timezones/method_listbylocation.go +++ b/resource-manager/sql/2023-02-01-preview/timezones/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []TimeZone } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c TimeZonesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TimeZonesClient) ListByLocation(ctx context.Context, id LocationId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/timeZones", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/transparentdataencryptions/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/transparentdataencryptions/method_listbydatabase.go index 2f86c609046..d260e1ce2a7 100644 --- a/resource-manager/sql/2023-02-01-preview/transparentdataencryptions/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/transparentdataencryptions/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []LogicalDatabaseTransparentDataEncryption } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c TransparentDataEncryptionsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TransparentDataEncryptionsClient) ListByDatabase(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/transparentDataEncryption", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/usages/method_listbyinstancepool.go b/resource-manager/sql/2023-02-01-preview/usages/method_listbyinstancepool.go index 4e52343779a..1c0d9617748 100644 --- a/resource-manager/sql/2023-02-01-preview/usages/method_listbyinstancepool.go +++ b/resource-manager/sql/2023-02-01-preview/usages/method_listbyinstancepool.go @@ -50,6 +50,18 @@ func (o ListByInstancePoolOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInstancePoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstancePoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstancePool ... func (c UsagesClient) ListByInstancePool(ctx context.Context, id InstancePoolId, options ListByInstancePoolOperationOptions) (result ListByInstancePoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c UsagesClient) ListByInstancePool(ctx context.Context, id InstancePoolId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListByInstancePoolCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-02-01-preview/virtualclusters/method_list.go b/resource-manager/sql/2023-02-01-preview/virtualclusters/method_list.go index 4268119dcb7..ae12b48da28 100644 --- a/resource-manager/sql/2023-02-01-preview/virtualclusters/method_list.go +++ b/resource-manager/sql/2023-02-01-preview/virtualclusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualCluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualClustersClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Sql/virtualClusters", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/virtualclusters/method_listbyresourcegroup.go b/resource-manager/sql/2023-02-01-preview/virtualclusters/method_listbyresourcegroup.go index 8feea7d5019..198ebcdf662 100644 --- a/resource-manager/sql/2023-02-01-preview/virtualclusters/method_listbyresourcegroup.go +++ b/resource-manager/sql/2023-02-01-preview/virtualclusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualCluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualClustersClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Sql/virtualClusters", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/virtualnetworkrules/method_listbyserver.go b/resource-manager/sql/2023-02-01-preview/virtualnetworkrules/method_listbyserver.go index fb33dae5f98..fd0e442a021 100644 --- a/resource-manager/sql/2023-02-01-preview/virtualnetworkrules/method_listbyserver.go +++ b/resource-manager/sql/2023-02-01-preview/virtualnetworkrules/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []VirtualNetworkRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c VirtualNetworkRulesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkRulesClient) ListByServer(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkRules", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/workloadclassifiers/method_listbyworkloadgroup.go b/resource-manager/sql/2023-02-01-preview/workloadclassifiers/method_listbyworkloadgroup.go index ddac0e26f5f..aded3abe903 100644 --- a/resource-manager/sql/2023-02-01-preview/workloadclassifiers/method_listbyworkloadgroup.go +++ b/resource-manager/sql/2023-02-01-preview/workloadclassifiers/method_listbyworkloadgroup.go @@ -23,6 +23,18 @@ type ListByWorkloadGroupCompleteResult struct { Items []WorkloadClassifier } +type ListByWorkloadGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkloadGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkloadGroup ... func (c WorkloadClassifiersClient) ListByWorkloadGroup(ctx context.Context, id WorkloadGroupId) (result ListByWorkloadGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadClassifiersClient) ListByWorkloadGroup(ctx context.Context, id W http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkloadGroupCustomPager{}, Path: fmt.Sprintf("%s/workloadClassifiers", id.ID()), } diff --git a/resource-manager/sql/2023-02-01-preview/workloadgroups/method_listbydatabase.go b/resource-manager/sql/2023-02-01-preview/workloadgroups/method_listbydatabase.go index ef2e75e503f..6d05174887c 100644 --- a/resource-manager/sql/2023-02-01-preview/workloadgroups/method_listbydatabase.go +++ b/resource-manager/sql/2023-02-01-preview/workloadgroups/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []WorkloadGroup } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c WorkloadGroupsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkloadGroupsClient) ListByDatabase(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/workloadGroups", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/backupshorttermretentionpolicies/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/backupshorttermretentionpolicies/method_listbydatabase.go index 199b6f38d26..7ba5917833b 100644 --- a/resource-manager/sql/2023-05-01-preview/backupshorttermretentionpolicies/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/backupshorttermretentionpolicies/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []BackupShortTermRetentionPolicy } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c BackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/backupShortTermRetentionPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/blobauditing/method_databaseblobauditingpolicieslistbydatabase.go b/resource-manager/sql/2023-05-01-preview/blobauditing/method_databaseblobauditingpolicieslistbydatabase.go index b2e8f7194fa..db3f09927a3 100644 --- a/resource-manager/sql/2023-05-01-preview/blobauditing/method_databaseblobauditingpolicieslistbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/blobauditing/method_databaseblobauditingpolicieslistbydatabase.go @@ -24,6 +24,18 @@ type DatabaseBlobAuditingPoliciesListByDatabaseCompleteResult struct { Items []DatabaseBlobAuditingPolicy } +type DatabaseBlobAuditingPoliciesListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *DatabaseBlobAuditingPoliciesListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // DatabaseBlobAuditingPoliciesListByDatabase ... func (c BlobAuditingClient) DatabaseBlobAuditingPoliciesListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result DatabaseBlobAuditingPoliciesListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BlobAuditingClient) DatabaseBlobAuditingPoliciesListByDatabase(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &DatabaseBlobAuditingPoliciesListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/auditingSettings", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/blobauditing/method_extendeddatabaseblobauditingpolicieslistbydatabase.go b/resource-manager/sql/2023-05-01-preview/blobauditing/method_extendeddatabaseblobauditingpolicieslistbydatabase.go index 71c688c3e23..6b253b81cee 100644 --- a/resource-manager/sql/2023-05-01-preview/blobauditing/method_extendeddatabaseblobauditingpolicieslistbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/blobauditing/method_extendeddatabaseblobauditingpolicieslistbydatabase.go @@ -24,6 +24,18 @@ type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCompleteResult struct { Items []ExtendedDatabaseBlobAuditingPolicy } +type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExtendedDatabaseBlobAuditingPoliciesListByDatabase ... func (c BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ExtendedDatabaseBlobAuditingPoliciesListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesListByDatabase(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ExtendedDatabaseBlobAuditingPoliciesListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/extendedAuditingSettings", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/blobauditing/method_extendedserverblobauditingpolicieslistbyserver.go b/resource-manager/sql/2023-05-01-preview/blobauditing/method_extendedserverblobauditingpolicieslistbyserver.go index a70041e4e42..a457eacc4b5 100644 --- a/resource-manager/sql/2023-05-01-preview/blobauditing/method_extendedserverblobauditingpolicieslistbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/blobauditing/method_extendedserverblobauditingpolicieslistbyserver.go @@ -24,6 +24,18 @@ type ExtendedServerBlobAuditingPoliciesListByServerCompleteResult struct { Items []ExtendedServerBlobAuditingPolicy } +type ExtendedServerBlobAuditingPoliciesListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExtendedServerBlobAuditingPoliciesListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExtendedServerBlobAuditingPoliciesListByServer ... func (c BlobAuditingClient) ExtendedServerBlobAuditingPoliciesListByServer(ctx context.Context, id commonids.SqlServerId) (result ExtendedServerBlobAuditingPoliciesListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BlobAuditingClient) ExtendedServerBlobAuditingPoliciesListByServer(ctx c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ExtendedServerBlobAuditingPoliciesListByServerCustomPager{}, Path: fmt.Sprintf("%s/extendedAuditingSettings", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/blobauditing/method_serverblobauditingpolicieslistbyserver.go b/resource-manager/sql/2023-05-01-preview/blobauditing/method_serverblobauditingpolicieslistbyserver.go index 29f5eefe730..31b78fd7086 100644 --- a/resource-manager/sql/2023-05-01-preview/blobauditing/method_serverblobauditingpolicieslistbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/blobauditing/method_serverblobauditingpolicieslistbyserver.go @@ -24,6 +24,18 @@ type ServerBlobAuditingPoliciesListByServerCompleteResult struct { Items []ServerBlobAuditingPolicy } +type ServerBlobAuditingPoliciesListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ServerBlobAuditingPoliciesListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ServerBlobAuditingPoliciesListByServer ... func (c BlobAuditingClient) ServerBlobAuditingPoliciesListByServer(ctx context.Context, id commonids.SqlServerId) (result ServerBlobAuditingPoliciesListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c BlobAuditingClient) ServerBlobAuditingPoliciesListByServer(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ServerBlobAuditingPoliciesListByServerCustomPager{}, Path: fmt.Sprintf("%s/auditingSettings", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databaseadvancedthreatprotectionsettings/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/databaseadvancedthreatprotectionsettings/method_listbydatabase.go index d79249ddd75..23cb159b8fd 100644 --- a/resource-manager/sql/2023-05-01-preview/databaseadvancedthreatprotectionsettings/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/databaseadvancedthreatprotectionsettings/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DatabaseAdvancedThreatProtection } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseAdvancedThreatProtectionSettingsClient) ListByDatabase(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/advancedThreatProtectionSettings", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databaseadvisors/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/databaseadvisors/method_listbydatabase.go index a82f5e36d6a..514e3d2f332 100644 --- a/resource-manager/sql/2023-05-01-preview/databaseadvisors/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/databaseadvisors/method_listbydatabase.go @@ -54,8 +54,8 @@ func (c DatabaseAdvisorsClient) ListByDatabase(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/advisors", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/advisors", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/databasecolumns/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/databasecolumns/method_listbydatabase.go index a127b53a128..95a591eec19 100644 --- a/resource-manager/sql/2023-05-01-preview/databasecolumns/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/databasecolumns/method_listbydatabase.go @@ -63,6 +63,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseColumnsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -71,8 +83,9 @@ func (c DatabaseColumnsClient) ListByDatabase(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/columns", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/columns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/databasecolumns/method_listbytable.go b/resource-manager/sql/2023-05-01-preview/databasecolumns/method_listbytable.go index 446d21fefab..e58a820a57b 100644 --- a/resource-manager/sql/2023-05-01-preview/databasecolumns/method_listbytable.go +++ b/resource-manager/sql/2023-05-01-preview/databasecolumns/method_listbytable.go @@ -50,6 +50,18 @@ func (o ListByTableOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTable ... func (c DatabaseColumnsClient) ListByTable(ctx context.Context, id TableId, options ListByTableOperationOptions) (result ListByTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DatabaseColumnsClient) ListByTable(ctx context.Context, id TableId, opti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/columns", id.ID()), OptionsObject: options, + Pager: &ListByTableCustomPager{}, + Path: fmt.Sprintf("%s/columns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/databaseextensions/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/databaseextensions/method_listbydatabase.go index 6c49aff5fa6..799da49b37e 100644 --- a/resource-manager/sql/2023-05-01-preview/databaseextensions/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/databaseextensions/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ImportExportExtensionsOperationResult } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseExtensionsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseExtensionsClient) ListByDatabase(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/extensions", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databaseoperations/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/databaseoperations/method_listbydatabase.go index d19b1fab063..f475d473277 100644 --- a/resource-manager/sql/2023-05-01-preview/databaseoperations/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/databaseoperations/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DatabaseOperation } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseOperationsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseOperationsClient) ListByDatabase(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/operations", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databases/method_failover.go b/resource-manager/sql/2023-05-01-preview/databases/method_failover.go index b12dfc921f4..7afbab02040 100644 --- a/resource-manager/sql/2023-05-01-preview/databases/method_failover.go +++ b/resource-manager/sql/2023-05-01-preview/databases/method_failover.go @@ -57,8 +57,8 @@ func (c DatabasesClient) Failover(ctx context.Context, id commonids.SqlDatabaseI http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/failover", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/failover", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/databases/method_get.go b/resource-manager/sql/2023-05-01-preview/databases/method_get.go index 4bf8eaa18ce..a9f44b0b589 100644 --- a/resource-manager/sql/2023-05-01-preview/databases/method_get.go +++ b/resource-manager/sql/2023-05-01-preview/databases/method_get.go @@ -58,8 +58,8 @@ func (c DatabasesClient) Get(ctx context.Context, id commonids.SqlDatabaseId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/databases/method_listbyelasticpool.go b/resource-manager/sql/2023-05-01-preview/databases/method_listbyelasticpool.go index 30539d3d111..3e93e091c33 100644 --- a/resource-manager/sql/2023-05-01-preview/databases/method_listbyelasticpool.go +++ b/resource-manager/sql/2023-05-01-preview/databases/method_listbyelasticpool.go @@ -24,6 +24,18 @@ type ListByElasticPoolCompleteResult struct { Items []Database } +type ListByElasticPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByElasticPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByElasticPool ... func (c DatabasesClient) ListByElasticPool(ctx context.Context, id commonids.SqlElasticPoolId) (result ListByElasticPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabasesClient) ListByElasticPool(ctx context.Context, id commonids.Sql http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByElasticPoolCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databases/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/databases/method_listbyserver.go index 4eaf6f8dc31..fc07bd1705f 100644 --- a/resource-manager/sql/2023-05-01-preview/databases/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/databases/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []Database } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c DatabasesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabasesClient) ListByServer(ctx context.Context, id commonids.SqlServe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databases/method_listinaccessiblebyserver.go b/resource-manager/sql/2023-05-01-preview/databases/method_listinaccessiblebyserver.go index a0b3cf13345..f0b388a51d8 100644 --- a/resource-manager/sql/2023-05-01-preview/databases/method_listinaccessiblebyserver.go +++ b/resource-manager/sql/2023-05-01-preview/databases/method_listinaccessiblebyserver.go @@ -24,6 +24,18 @@ type ListInaccessibleByServerCompleteResult struct { Items []Database } +type ListInaccessibleByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInaccessibleByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInaccessibleByServer ... func (c DatabasesClient) ListInaccessibleByServer(ctx context.Context, id commonids.SqlServerId) (result ListInaccessibleByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabasesClient) ListInaccessibleByServer(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInaccessibleByServerCustomPager{}, Path: fmt.Sprintf("%s/inaccessibleDatabases", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databaseschemas/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/databaseschemas/method_listbydatabase.go index e6a7fd4a43f..c67b2be2776 100644 --- a/resource-manager/sql/2023-05-01-preview/databaseschemas/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/databaseschemas/method_listbydatabase.go @@ -51,6 +51,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseSchemasClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c DatabaseSchemasClient) ListByDatabase(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/databasesecurityalertpolicies/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/databasesecurityalertpolicies/method_listbydatabase.go index c3501efc2ec..8a840d331aa 100644 --- a/resource-manager/sql/2023-05-01-preview/databasesecurityalertpolicies/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/databasesecurityalertpolicies/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DatabaseSecurityAlertPolicy } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseSecurityAlertPoliciesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseSecurityAlertPoliciesClient) ListByDatabase(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/securityAlertPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentbaselines/method_listbysqlvulnerabilityassessment.go b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentbaselines/method_listbysqlvulnerabilityassessment.go index f87f5204eb1..6413a42ca96 100644 --- a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentbaselines/method_listbysqlvulnerabilityassessment.go +++ b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentbaselines/method_listbysqlvulnerabilityassessment.go @@ -24,6 +24,18 @@ type ListBySqlVulnerabilityAssessmentCompleteResult struct { Items []DatabaseSqlVulnerabilityAssessmentBaselineSet } +type ListBySqlVulnerabilityAssessmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySqlVulnerabilityAssessmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySqlVulnerabilityAssessment ... func (c DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilityAssessment(ctx context.Context, id commonids.SqlDatabaseId) (result ListBySqlVulnerabilityAssessmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseSqlVulnerabilityAssessmentBaselinesClient) ListBySqlVulnerabilit http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySqlVulnerabilityAssessmentCustomPager{}, Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentrulebaselines/method_listbybaseline.go b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentrulebaselines/method_listbybaseline.go index 181c4914afa..d1f64e0e286 100644 --- a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentrulebaselines/method_listbybaseline.go +++ b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentrulebaselines/method_listbybaseline.go @@ -24,6 +24,18 @@ type ListByBaselineCompleteResult struct { Items []DatabaseSqlVulnerabilityAssessmentRuleBaseline } +type ListByBaselineCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBaselineCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBaseline ... func (c DatabaseSqlVulnerabilityAssessmentRuleBaselinesClient) ListByBaseline(ctx context.Context, id commonids.SqlDatabaseId) (result ListByBaselineOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseSqlVulnerabilityAssessmentRuleBaselinesClient) ListByBaseline(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByBaselineCustomPager{}, Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines/default/rules", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentscanresult/method_listbyscan.go b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentscanresult/method_listbyscan.go index 69da28cd534..731625dcfbe 100644 --- a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentscanresult/method_listbyscan.go +++ b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentscanresult/method_listbyscan.go @@ -23,6 +23,18 @@ type ListByScanCompleteResult struct { Items []SqlVulnerabilityAssessmentScanResults } +type ListByScanCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScanCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScan ... func (c DatabaseSqlVulnerabilityAssessmentScanResultClient) ListByScan(ctx context.Context, id SqlVulnerabilityAssessmentVulnerabilityAssessmentScanId) (result ListByScanOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DatabaseSqlVulnerabilityAssessmentScanResultClient) ListByScan(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByScanCustomPager{}, Path: fmt.Sprintf("%s/scanResults", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go index a780f152264..126311fb464 100644 --- a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go +++ b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go @@ -24,6 +24,18 @@ type ListBySqlVulnerabilityAssessmentsCompleteResult struct { Items []SqlVulnerabilityAssessmentScanRecord } +type ListBySqlVulnerabilityAssessmentsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySqlVulnerabilityAssessmentsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySqlVulnerabilityAssessments ... func (c DatabaseSqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessments(ctx context.Context, id commonids.SqlDatabaseId) (result ListBySqlVulnerabilityAssessmentsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseSqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAss http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySqlVulnerabilityAssessmentsCustomPager{}, Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/scans", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentssettings/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentssettings/method_listbydatabase.go index 1e968b42fb3..3fb4122366d 100644 --- a/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentssettings/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/databasesqlvulnerabilityassessmentssettings/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []SqlVulnerabilityAssessment } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseSqlVulnerabilityAssessmentsSettingsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseSqlVulnerabilityAssessmentsSettingsClient) ListByDatabase(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databasetables/method_listbyschema.go b/resource-manager/sql/2023-05-01-preview/databasetables/method_listbyschema.go index f9a6dde0bdb..f2ce40497ad 100644 --- a/resource-manager/sql/2023-05-01-preview/databasetables/method_listbyschema.go +++ b/resource-manager/sql/2023-05-01-preview/databasetables/method_listbyschema.go @@ -50,6 +50,18 @@ func (o ListBySchemaOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySchemaCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySchemaCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySchema ... func (c DatabaseTablesClient) ListBySchema(ctx context.Context, id SchemaId, options ListBySchemaOperationOptions) (result ListBySchemaOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c DatabaseTablesClient) ListBySchema(ctx context.Context, id SchemaId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tables", id.ID()), OptionsObject: options, + Pager: &ListBySchemaCustomPager{}, + Path: fmt.Sprintf("%s/tables", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/databaseusages/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/databaseusages/method_listbydatabase.go index 89d906302bb..4b0299b00f1 100644 --- a/resource-manager/sql/2023-05-01-preview/databaseusages/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/databaseusages/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DatabaseUsage } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseUsagesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseUsagesClient) ListByDatabase(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessments/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessments/method_listbydatabase.go index b9d74a45fd8..c5f109bbde6 100644 --- a/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessments/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessments/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DatabaseVulnerabilityAssessment } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessmentscans/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessmentscans/method_listbydatabase.go index 40a80a13862..1dde13b5722 100644 --- a/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessmentscans/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/databasevulnerabilityassessmentscans/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []VulnerabilityAssessmentScanRecord } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments/default/scans", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/datamaskingrules/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/datamaskingrules/method_listbydatabase.go index 97cff9b24a4..43666bbd0a8 100644 --- a/resource-manager/sql/2023-05-01-preview/datamaskingrules/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/datamaskingrules/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DataMaskingRule } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DataMaskingRulesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataMaskingRulesClient) ListByDatabase(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/dataMaskingPolicies/default/rules", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/datawarehouseuseractivities/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/datawarehouseuseractivities/method_listbydatabase.go index 58b8073e989..0afca238098 100644 --- a/resource-manager/sql/2023-05-01-preview/datawarehouseuseractivities/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/datawarehouseuseractivities/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DataWarehouseUserActivities } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c DataWarehouseUserActivitiesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DataWarehouseUserActivitiesClient) ListByDatabase(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/dataWarehouseUserActivities", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/deletedservers/method_list.go b/resource-manager/sql/2023-05-01-preview/deletedservers/method_list.go index d2d84c30605..b05a2be5d8a 100644 --- a/resource-manager/sql/2023-05-01-preview/deletedservers/method_list.go +++ b/resource-manager/sql/2023-05-01-preview/deletedservers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DeletedServer } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeletedServersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeletedServersClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Sql/deletedServers", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/deletedservers/method_listbylocation.go b/resource-manager/sql/2023-05-01-preview/deletedservers/method_listbylocation.go index 50dfb0df2bf..db104941bc6 100644 --- a/resource-manager/sql/2023-05-01-preview/deletedservers/method_listbylocation.go +++ b/resource-manager/sql/2023-05-01-preview/deletedservers/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []DeletedServer } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c DeletedServersClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeletedServersClient) ListByLocation(ctx context.Context, id LocationId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/deletedServers", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/distributedavailabilitygroups/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/distributedavailabilitygroups/method_listbyinstance.go index e35dd1bfdc2..3d8d4ba9d9a 100644 --- a/resource-manager/sql/2023-05-01-preview/distributedavailabilitygroups/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/distributedavailabilitygroups/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []DistributedAvailabilityGroup } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c DistributedAvailabilityGroupsClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DistributedAvailabilityGroupsClient) ListByInstance(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/distributedAvailabilityGroups", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/elasticpooloperations/method_listbyelasticpool.go b/resource-manager/sql/2023-05-01-preview/elasticpooloperations/method_listbyelasticpool.go index e64c730008f..102edc56a53 100644 --- a/resource-manager/sql/2023-05-01-preview/elasticpooloperations/method_listbyelasticpool.go +++ b/resource-manager/sql/2023-05-01-preview/elasticpooloperations/method_listbyelasticpool.go @@ -24,6 +24,18 @@ type ListByElasticPoolCompleteResult struct { Items []ElasticPoolOperation } +type ListByElasticPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByElasticPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByElasticPool ... func (c ElasticPoolOperationsClient) ListByElasticPool(ctx context.Context, id commonids.SqlElasticPoolId) (result ListByElasticPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ElasticPoolOperationsClient) ListByElasticPool(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByElasticPoolCustomPager{}, Path: fmt.Sprintf("%s/operations", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/elasticpools/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/elasticpools/method_listbyserver.go index 5d9993c1092..6d3b53d468b 100644 --- a/resource-manager/sql/2023-05-01-preview/elasticpools/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/elasticpools/method_listbyserver.go @@ -51,6 +51,18 @@ func (o ListByServerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ElasticPoolsClient) ListByServer(ctx context.Context, id commonids.SqlServerId, options ListByServerOperationOptions) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ElasticPoolsClient) ListByServer(ctx context.Context, id commonids.SqlSe http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/elasticPools", id.ID()), OptionsObject: options, + Pager: &ListByServerCustomPager{}, + Path: fmt.Sprintf("%s/elasticPools", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/encryptionprotectors/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/encryptionprotectors/method_listbyserver.go index ac59d621b27..f7ca51c7156 100644 --- a/resource-manager/sql/2023-05-01-preview/encryptionprotectors/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/encryptionprotectors/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []EncryptionProtector } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c EncryptionProtectorsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EncryptionProtectorsClient) ListByServer(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/encryptionProtector", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/endpointcertificates/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/endpointcertificates/method_listbyinstance.go index 1ee89e5df37..d7097ee92a2 100644 --- a/resource-manager/sql/2023-05-01-preview/endpointcertificates/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/endpointcertificates/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []EndpointCertificate } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c EndpointCertificatesClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c EndpointCertificatesClient) ListByInstance(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/endpointCertificates", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/failovergroups/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/failovergroups/method_listbyserver.go index 9cada99d778..100e1a498b9 100644 --- a/resource-manager/sql/2023-05-01-preview/failovergroups/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/failovergroups/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []FailoverGroup } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c FailoverGroupsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FailoverGroupsClient) ListByServer(ctx context.Context, id commonids.Sql http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/failoverGroups", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/firewallrules/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/firewallrules/method_listbyserver.go index 7cc1b48fe08..aa03997e638 100644 --- a/resource-manager/sql/2023-05-01-preview/firewallrules/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/firewallrules/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []FirewallRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c FirewallRulesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c FirewallRulesClient) ListByServer(ctx context.Context, id commonids.SqlS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/geobackuppolicies/method_list.go b/resource-manager/sql/2023-05-01-preview/geobackuppolicies/method_list.go index 5a4dc3df5db..d44abba7a39 100644 --- a/resource-manager/sql/2023-05-01-preview/geobackuppolicies/method_list.go +++ b/resource-manager/sql/2023-05-01-preview/geobackuppolicies/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []GeoBackupPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GeoBackupPoliciesClient) List(ctx context.Context, id commonids.SqlDatabaseId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GeoBackupPoliciesClient) List(ctx context.Context, id commonids.SqlDatab http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/geoBackupPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/instancefailovergroups/method_listbylocation.go b/resource-manager/sql/2023-05-01-preview/instancefailovergroups/method_listbylocation.go index c4ab0b84e8e..b5ab352fd08 100644 --- a/resource-manager/sql/2023-05-01-preview/instancefailovergroups/method_listbylocation.go +++ b/resource-manager/sql/2023-05-01-preview/instancefailovergroups/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []InstanceFailoverGroup } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c InstanceFailoverGroupsClient) ListByLocation(ctx context.Context, id ProviderLocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c InstanceFailoverGroupsClient) ListByLocation(ctx context.Context, id Pro http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/instanceFailoverGroups", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/instancepools/method_list.go b/resource-manager/sql/2023-05-01-preview/instancepools/method_list.go index 2e2d7d99b93..a5553a16bf6 100644 --- a/resource-manager/sql/2023-05-01-preview/instancepools/method_list.go +++ b/resource-manager/sql/2023-05-01-preview/instancepools/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []InstancePool } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c InstancePoolsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c InstancePoolsClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Sql/instancePools", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/instancepools/method_listbyresourcegroup.go b/resource-manager/sql/2023-05-01-preview/instancepools/method_listbyresourcegroup.go index eb352e6d42a..6731b2a93f3 100644 --- a/resource-manager/sql/2023-05-01-preview/instancepools/method_listbyresourcegroup.go +++ b/resource-manager/sql/2023-05-01-preview/instancepools/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []InstancePool } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c InstancePoolsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c InstancePoolsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Sql/instancePools", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/ipv6firewallrules/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/ipv6firewallrules/method_listbyserver.go index 3ce9b68bd41..8c95219db62 100644 --- a/resource-manager/sql/2023-05-01-preview/ipv6firewallrules/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/ipv6firewallrules/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []IPv6FirewallRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c IPv6FirewallRulesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IPv6FirewallRulesClient) ListByServer(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/ipv6FirewallRules", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/jobagents/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/jobagents/method_listbyserver.go index 176cf8ee55a..5b82df1dd3d 100644 --- a/resource-manager/sql/2023-05-01-preview/jobagents/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/jobagents/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []JobAgent } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c JobAgentsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c JobAgentsClient) ListByServer(ctx context.Context, id commonids.SqlServe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/jobAgents", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/jobcredentials/method_listbyagent.go b/resource-manager/sql/2023-05-01-preview/jobcredentials/method_listbyagent.go index e7f79bc04b2..ec10fbb7262 100644 --- a/resource-manager/sql/2023-05-01-preview/jobcredentials/method_listbyagent.go +++ b/resource-manager/sql/2023-05-01-preview/jobcredentials/method_listbyagent.go @@ -23,6 +23,18 @@ type ListByAgentCompleteResult struct { Items []JobCredential } +type ListByAgentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAgentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAgent ... func (c JobCredentialsClient) ListByAgent(ctx context.Context, id JobAgentId) (result ListByAgentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobCredentialsClient) ListByAgent(ctx context.Context, id JobAgentId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAgentCustomPager{}, Path: fmt.Sprintf("%s/credentials", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/jobexecutions/method_listbyagent.go b/resource-manager/sql/2023-05-01-preview/jobexecutions/method_listbyagent.go index 6728068282a..102e1c0c866 100644 --- a/resource-manager/sql/2023-05-01-preview/jobexecutions/method_listbyagent.go +++ b/resource-manager/sql/2023-05-01-preview/jobexecutions/method_listbyagent.go @@ -74,6 +74,18 @@ func (o ListByAgentOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByAgentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAgentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAgent ... func (c JobExecutionsClient) ListByAgent(ctx context.Context, id JobAgentId, options ListByAgentOperationOptions) (result ListByAgentOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c JobExecutionsClient) ListByAgent(ctx context.Context, id JobAgentId, opt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/executions", id.ID()), OptionsObject: options, + Pager: &ListByAgentCustomPager{}, + Path: fmt.Sprintf("%s/executions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/jobexecutions/method_listbyjob.go b/resource-manager/sql/2023-05-01-preview/jobexecutions/method_listbyjob.go index 9e2f9cb26fb..f20a5ddb75a 100644 --- a/resource-manager/sql/2023-05-01-preview/jobexecutions/method_listbyjob.go +++ b/resource-manager/sql/2023-05-01-preview/jobexecutions/method_listbyjob.go @@ -74,6 +74,18 @@ func (o ListByJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByJob ... func (c JobExecutionsClient) ListByJob(ctx context.Context, id JobId, options ListByJobOperationOptions) (result ListByJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c JobExecutionsClient) ListByJob(ctx context.Context, id JobId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/executions", id.ID()), OptionsObject: options, + Pager: &ListByJobCustomPager{}, + Path: fmt.Sprintf("%s/executions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/jobprivateendpoints/method_listbyagent.go b/resource-manager/sql/2023-05-01-preview/jobprivateendpoints/method_listbyagent.go index 4d8a24bb288..45358ace395 100644 --- a/resource-manager/sql/2023-05-01-preview/jobprivateendpoints/method_listbyagent.go +++ b/resource-manager/sql/2023-05-01-preview/jobprivateendpoints/method_listbyagent.go @@ -23,6 +23,18 @@ type ListByAgentCompleteResult struct { Items []JobPrivateEndpoint } +type ListByAgentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAgentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAgent ... func (c JobPrivateEndpointsClient) ListByAgent(ctx context.Context, id JobAgentId) (result ListByAgentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobPrivateEndpointsClient) ListByAgent(ctx context.Context, id JobAgentI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAgentCustomPager{}, Path: fmt.Sprintf("%s/privateEndpoints", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/jobs/method_listbyagent.go b/resource-manager/sql/2023-05-01-preview/jobs/method_listbyagent.go index 15b5d187b02..ae393a334fa 100644 --- a/resource-manager/sql/2023-05-01-preview/jobs/method_listbyagent.go +++ b/resource-manager/sql/2023-05-01-preview/jobs/method_listbyagent.go @@ -23,6 +23,18 @@ type ListByAgentCompleteResult struct { Items []Job } +type ListByAgentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAgentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAgent ... func (c JobsClient) ListByAgent(ctx context.Context, id JobAgentId) (result ListByAgentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobsClient) ListByAgent(ctx context.Context, id JobAgentId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAgentCustomPager{}, Path: fmt.Sprintf("%s/jobs", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/jobstepexecutions/method_listbyjobexecution.go b/resource-manager/sql/2023-05-01-preview/jobstepexecutions/method_listbyjobexecution.go index 3ed953d27ee..e7c228c0e49 100644 --- a/resource-manager/sql/2023-05-01-preview/jobstepexecutions/method_listbyjobexecution.go +++ b/resource-manager/sql/2023-05-01-preview/jobstepexecutions/method_listbyjobexecution.go @@ -74,6 +74,18 @@ func (o ListByJobExecutionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByJobExecutionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByJobExecutionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByJobExecution ... func (c JobStepExecutionsClient) ListByJobExecution(ctx context.Context, id ExecutionId, options ListByJobExecutionOperationOptions) (result ListByJobExecutionOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c JobStepExecutionsClient) ListByJobExecution(ctx context.Context, id Exec http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/steps", id.ID()), OptionsObject: options, + Pager: &ListByJobExecutionCustomPager{}, + Path: fmt.Sprintf("%s/steps", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/jobsteps/method_listbyjob.go b/resource-manager/sql/2023-05-01-preview/jobsteps/method_listbyjob.go index fa10a7d56da..74a6d7dde41 100644 --- a/resource-manager/sql/2023-05-01-preview/jobsteps/method_listbyjob.go +++ b/resource-manager/sql/2023-05-01-preview/jobsteps/method_listbyjob.go @@ -23,6 +23,18 @@ type ListByJobCompleteResult struct { Items []JobStep } +type ListByJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByJob ... func (c JobStepsClient) ListByJob(ctx context.Context, id JobId) (result ListByJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobStepsClient) ListByJob(ctx context.Context, id JobId) (result ListByJ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByJobCustomPager{}, Path: fmt.Sprintf("%s/steps", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/jobsteps/method_listbyversion.go b/resource-manager/sql/2023-05-01-preview/jobsteps/method_listbyversion.go index 4f26a4898cd..f13eb451fce 100644 --- a/resource-manager/sql/2023-05-01-preview/jobsteps/method_listbyversion.go +++ b/resource-manager/sql/2023-05-01-preview/jobsteps/method_listbyversion.go @@ -23,6 +23,18 @@ type ListByVersionCompleteResult struct { Items []JobStep } +type ListByVersionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVersionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVersion ... func (c JobStepsClient) ListByVersion(ctx context.Context, id VersionId) (result ListByVersionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobStepsClient) ListByVersion(ctx context.Context, id VersionId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVersionCustomPager{}, Path: fmt.Sprintf("%s/steps", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/jobtargetexecutions/method_listbyjobexecution.go b/resource-manager/sql/2023-05-01-preview/jobtargetexecutions/method_listbyjobexecution.go index 25f1c198287..1a171760d34 100644 --- a/resource-manager/sql/2023-05-01-preview/jobtargetexecutions/method_listbyjobexecution.go +++ b/resource-manager/sql/2023-05-01-preview/jobtargetexecutions/method_listbyjobexecution.go @@ -74,6 +74,18 @@ func (o ListByJobExecutionOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByJobExecutionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByJobExecutionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByJobExecution ... func (c JobTargetExecutionsClient) ListByJobExecution(ctx context.Context, id ExecutionId, options ListByJobExecutionOperationOptions) (result ListByJobExecutionOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c JobTargetExecutionsClient) ListByJobExecution(ctx context.Context, id Ex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/targets", id.ID()), OptionsObject: options, + Pager: &ListByJobExecutionCustomPager{}, + Path: fmt.Sprintf("%s/targets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/jobtargetexecutions/method_listbystep.go b/resource-manager/sql/2023-05-01-preview/jobtargetexecutions/method_listbystep.go index d3c35598b7f..e3bfb49f5a4 100644 --- a/resource-manager/sql/2023-05-01-preview/jobtargetexecutions/method_listbystep.go +++ b/resource-manager/sql/2023-05-01-preview/jobtargetexecutions/method_listbystep.go @@ -74,6 +74,18 @@ func (o ListByStepOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByStepCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByStepCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByStep ... func (c JobTargetExecutionsClient) ListByStep(ctx context.Context, id ExecutionStepId, options ListByStepOperationOptions) (result ListByStepOperationResponse, err error) { opts := client.RequestOptions{ @@ -82,8 +94,9 @@ func (c JobTargetExecutionsClient) ListByStep(ctx context.Context, id ExecutionS http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/targets", id.ID()), OptionsObject: options, + Pager: &ListByStepCustomPager{}, + Path: fmt.Sprintf("%s/targets", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/jobtargetgroups/method_listbyagent.go b/resource-manager/sql/2023-05-01-preview/jobtargetgroups/method_listbyagent.go index acf3c174132..7b8417fda2f 100644 --- a/resource-manager/sql/2023-05-01-preview/jobtargetgroups/method_listbyagent.go +++ b/resource-manager/sql/2023-05-01-preview/jobtargetgroups/method_listbyagent.go @@ -23,6 +23,18 @@ type ListByAgentCompleteResult struct { Items []JobTargetGroup } +type ListByAgentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAgentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAgent ... func (c JobTargetGroupsClient) ListByAgent(ctx context.Context, id JobAgentId) (result ListByAgentOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobTargetGroupsClient) ListByAgent(ctx context.Context, id JobAgentId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAgentCustomPager{}, Path: fmt.Sprintf("%s/targetGroups", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/jobversions/method_listbyjob.go b/resource-manager/sql/2023-05-01-preview/jobversions/method_listbyjob.go index c5c618a1709..0eb60597289 100644 --- a/resource-manager/sql/2023-05-01-preview/jobversions/method_listbyjob.go +++ b/resource-manager/sql/2023-05-01-preview/jobversions/method_listbyjob.go @@ -23,6 +23,18 @@ type ListByJobCompleteResult struct { Items []Resource } +type ListByJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByJob ... func (c JobVersionsClient) ListByJob(ctx context.Context, id JobId) (result ListByJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobVersionsClient) ListByJob(ctx context.Context, id JobId) (result List http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByJobCustomPager{}, Path: fmt.Sprintf("%s/versions", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/ledgerdigestuploads/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/ledgerdigestuploads/method_listbydatabase.go index f9d1efffbca..4bf91908814 100644 --- a/resource-manager/sql/2023-05-01-preview/ledgerdigestuploads/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/ledgerdigestuploads/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []LedgerDigestUploads } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c LedgerDigestUploadsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LedgerDigestUploadsClient) ListByDatabase(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/ledgerDigestUploads", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/locationcapabilities/method_capabilitieslistbylocation.go b/resource-manager/sql/2023-05-01-preview/locationcapabilities/method_capabilitieslistbylocation.go index 66803d3cca7..f5e8ce02a3f 100644 --- a/resource-manager/sql/2023-05-01-preview/locationcapabilities/method_capabilitieslistbylocation.go +++ b/resource-manager/sql/2023-05-01-preview/locationcapabilities/method_capabilitieslistbylocation.go @@ -53,8 +53,8 @@ func (c LocationCapabilitiesClient) CapabilitiesListByLocation(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/capabilities", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/capabilities", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbydatabase.go index 9b06b095a02..ebed5c50c8d 100644 --- a/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbydatabase.go @@ -54,6 +54,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c LongTermRetentionBackupsClient) ListByDatabase(ctx context.Context, id LongTermRetentionServerLongTermRetentionDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionBackupsClient) ListByDatabase(ctx context.Context, id L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbylocation.go b/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbylocation.go index 9eb8cc35f8e..06dc3b458b7 100644 --- a/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbylocation.go +++ b/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbylocation.go @@ -54,6 +54,18 @@ func (o ListByLocationOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c LongTermRetentionBackupsClient) ListByLocation(ctx context.Context, id LocationId, options ListByLocationOperationOptions) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionBackupsClient) ListByLocation(ctx context.Context, id L http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), OptionsObject: options, + Pager: &ListByLocationCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyresourcegroupdatabase.go b/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyresourcegroupdatabase.go index 248ddf5099e..d6f15b72a9b 100644 --- a/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyresourcegroupdatabase.go +++ b/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyresourcegroupdatabase.go @@ -54,6 +54,18 @@ func (o ListByResourceGroupDatabaseOperationOptions) ToQuery() *client.QueryPara return &out } +type ListByResourceGroupDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroupDatabase ... func (c LongTermRetentionBackupsClient) ListByResourceGroupDatabase(ctx context.Context, id LocationLongTermRetentionServerLongTermRetentionDatabaseId, options ListByResourceGroupDatabaseOperationOptions) (result ListByResourceGroupDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionBackupsClient) ListByResourceGroupDatabase(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyresourcegrouplocation.go b/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyresourcegrouplocation.go index 80d016f8616..abdb9a9701e 100644 --- a/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyresourcegrouplocation.go +++ b/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyresourcegrouplocation.go @@ -54,6 +54,18 @@ func (o ListByResourceGroupLocationOperationOptions) ToQuery() *client.QueryPara return &out } +type ListByResourceGroupLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroupLocation ... func (c LongTermRetentionBackupsClient) ListByResourceGroupLocation(ctx context.Context, id ProviderLocationId, options ListByResourceGroupLocationOperationOptions) (result ListByResourceGroupLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionBackupsClient) ListByResourceGroupLocation(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupLocationCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyresourcegroupserver.go b/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyresourcegroupserver.go index b4e7b55f2b7..75e7eb7fb92 100644 --- a/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyresourcegroupserver.go +++ b/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyresourcegroupserver.go @@ -54,6 +54,18 @@ func (o ListByResourceGroupServerOperationOptions) ToQuery() *client.QueryParams return &out } +type ListByResourceGroupServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroupServer ... func (c LongTermRetentionBackupsClient) ListByResourceGroupServer(ctx context.Context, id LocationLongTermRetentionServerId, options ListByResourceGroupServerOperationOptions) (result ListByResourceGroupServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionBackupsClient) ListByResourceGroupServer(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupServerCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyserver.go index 53592c3ee5b..62fdc0efc10 100644 --- a/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/longtermretentionbackups/method_listbyserver.go @@ -54,6 +54,18 @@ func (o ListByServerOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c LongTermRetentionBackupsClient) ListByServer(ctx context.Context, id LongTermRetentionServerId, options ListByServerOperationOptions) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionBackupsClient) ListByServer(ctx context.Context, id Lon http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), OptionsObject: options, + Pager: &ListByServerCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbydatabase.go index 5721a8456b5..15551674f0e 100644 --- a/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbydatabase.go @@ -54,6 +54,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c LongTermRetentionManagedInstanceBackupsClient) ListByDatabase(ctx context.Context, id LongTermRetentionDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionManagedInstanceBackupsClient) ListByDatabase(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyinstance.go index a5a3b6cb608..846cb7d2c45 100644 --- a/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyinstance.go @@ -54,6 +54,18 @@ func (o ListByInstanceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c LongTermRetentionManagedInstanceBackupsClient) ListByInstance(ctx context.Context, id LongTermRetentionManagedInstanceId, options ListByInstanceOperationOptions) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionManagedInstanceBackupsClient) ListByInstance(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), OptionsObject: options, + Pager: &ListByInstanceCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbylocation.go b/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbylocation.go index 463b8b5d769..c94f12c6d5a 100644 --- a/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbylocation.go +++ b/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbylocation.go @@ -66,6 +66,18 @@ func (o ListByLocationOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c LongTermRetentionManagedInstanceBackupsClient) ListByLocation(ctx context.Context, id LocationId, options ListByLocationOperationOptions) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c LongTermRetentionManagedInstanceBackupsClient) ListByLocation(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), OptionsObject: options, + Pager: &ListByLocationCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupdatabase.go b/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupdatabase.go index 47a69749635..50e36859a1c 100644 --- a/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupdatabase.go +++ b/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupdatabase.go @@ -54,6 +54,18 @@ func (o ListByResourceGroupDatabaseOperationOptions) ToQuery() *client.QueryPara return &out } +type ListByResourceGroupDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroupDatabase ... func (c LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupDatabase(ctx context.Context, id LongTermRetentionManagedInstanceLongTermRetentionDatabaseId, options ListByResourceGroupDatabaseOperationOptions) (result ListByResourceGroupDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupDataba http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupinstance.go b/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupinstance.go index 2669b88247f..c596e6dc4a1 100644 --- a/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupinstance.go +++ b/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegroupinstance.go @@ -54,6 +54,18 @@ func (o ListByResourceGroupInstanceOperationOptions) ToQuery() *client.QueryPara return &out } +type ListByResourceGroupInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroupInstance ... func (c LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupInstance(ctx context.Context, id LocationLongTermRetentionManagedInstanceId, options ListByResourceGroupInstanceOperationOptions) (result ListByResourceGroupInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupInstan http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupInstanceCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegrouplocation.go b/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegrouplocation.go index bea21a1d149..88b355da8fc 100644 --- a/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegrouplocation.go +++ b/resource-manager/sql/2023-05-01-preview/longtermretentionmanagedinstancebackups/method_listbyresourcegrouplocation.go @@ -66,6 +66,18 @@ func (o ListByResourceGroupLocationOperationOptions) ToQuery() *client.QueryPara return &out } +type ListByResourceGroupLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroupLocation ... func (c LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupLocation(ctx context.Context, id ProviderLocationId, options ListByResourceGroupLocationOperationOptions) (result ListByResourceGroupLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -74,8 +86,9 @@ func (c LongTermRetentionManagedInstanceBackupsClient) ListByResourceGroupLocati http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupLocationCustomPager{}, + Path: fmt.Sprintf("%s/longTermRetentionManagedInstanceBackups", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/longtermretentionpolicies/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/longtermretentionpolicies/method_listbydatabase.go index 3bf8e5435e6..7a18447288b 100644 --- a/resource-manager/sql/2023-05-01-preview/longtermretentionpolicies/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/longtermretentionpolicies/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []LongTermRetentionPolicy } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c LongTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c LongTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/backupLongTermRetentionPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/maintenancewindowoptions/method_get.go b/resource-manager/sql/2023-05-01-preview/maintenancewindowoptions/method_get.go index c2cbca74647..8df35ad865e 100644 --- a/resource-manager/sql/2023-05-01-preview/maintenancewindowoptions/method_get.go +++ b/resource-manager/sql/2023-05-01-preview/maintenancewindowoptions/method_get.go @@ -54,8 +54,8 @@ func (c MaintenanceWindowOptionsClient) Get(ctx context.Context, id commonids.Sq http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/maintenanceWindowOptions/current", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/maintenanceWindowOptions/current", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/maintenancewindows/method_createorupdate.go b/resource-manager/sql/2023-05-01-preview/maintenancewindows/method_createorupdate.go index 671fc0b18e5..d5b61f30d78 100644 --- a/resource-manager/sql/2023-05-01-preview/maintenancewindows/method_createorupdate.go +++ b/resource-manager/sql/2023-05-01-preview/maintenancewindows/method_createorupdate.go @@ -53,8 +53,8 @@ func (c MaintenanceWindowsClient) CreateOrUpdate(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/maintenanceWindows/current", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/maintenanceWindows/current", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/maintenancewindows/method_get.go b/resource-manager/sql/2023-05-01-preview/maintenancewindows/method_get.go index 1b1c89e73c4..2358566ed8e 100644 --- a/resource-manager/sql/2023-05-01-preview/maintenancewindows/method_get.go +++ b/resource-manager/sql/2023-05-01-preview/maintenancewindows/method_get.go @@ -54,8 +54,8 @@ func (c MaintenanceWindowsClient) Get(ctx context.Context, id commonids.SqlDatab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/maintenanceWindows/current", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/maintenanceWindows/current", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/managedbackupshorttermretentionpolicies/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/managedbackupshorttermretentionpolicies/method_listbydatabase.go index ed66b3ac93e..abd1880b463 100644 --- a/resource-manager/sql/2023-05-01-preview/managedbackupshorttermretentionpolicies/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/managedbackupshorttermretentionpolicies/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ManagedBackupShortTermRetentionPolicy } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedBackupShortTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedBackupShortTermRetentionPoliciesClient) ListByDatabase(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/backupShortTermRetentionPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabaseadvancedthreatprotectionsettings/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/manageddatabaseadvancedthreatprotectionsettings/method_listbydatabase.go index 1eba61f5b22..b26815f2481 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabaseadvancedthreatprotectionsettings/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabaseadvancedthreatprotectionsettings/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ManagedDatabaseAdvancedThreatProtection } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseAdvancedThreatProtectionSettingsClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedDatabaseAdvancedThreatProtectionSettingsClient) ListByDatabase(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/advancedThreatProtectionSettings", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasecolumns/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/manageddatabasecolumns/method_listbydatabase.go index 1a30f2341b6..8f9d739806f 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasecolumns/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasecolumns/method_listbydatabase.go @@ -63,6 +63,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseColumnsClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -71,8 +83,9 @@ func (c ManagedDatabaseColumnsClient) ListByDatabase(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/columns", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/columns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasecolumns/method_listbytable.go b/resource-manager/sql/2023-05-01-preview/manageddatabasecolumns/method_listbytable.go index bdc23aa5b79..1223cbbe5af 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasecolumns/method_listbytable.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasecolumns/method_listbytable.go @@ -50,6 +50,18 @@ func (o ListByTableOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByTableCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByTableCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByTable ... func (c ManagedDatabaseColumnsClient) ListByTable(ctx context.Context, id SchemaTableId, options ListByTableOperationOptions) (result ListByTableOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ManagedDatabaseColumnsClient) ListByTable(ctx context.Context, id Schema http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/columns", id.ID()), OptionsObject: options, + Pager: &ListByTableCustomPager{}, + Path: fmt.Sprintf("%s/columns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasemoveoperations/method_listbylocation.go b/resource-manager/sql/2023-05-01-preview/manageddatabasemoveoperations/method_listbylocation.go index b694444ba77..d154d5af320 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasemoveoperations/method_listbylocation.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasemoveoperations/method_listbylocation.go @@ -54,6 +54,18 @@ func (o ListByLocationOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c ManagedDatabaseMoveOperationsClient) ListByLocation(ctx context.Context, id ProviderLocationId, options ListByLocationOperationOptions) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c ManagedDatabaseMoveOperationsClient) ListByLocation(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/managedDatabaseMoveOperationResults", id.ID()), OptionsObject: options, + Pager: &ListByLocationCustomPager{}, + Path: fmt.Sprintf("%s/managedDatabaseMoveOperationResults", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasequeries/method_listbyquery.go b/resource-manager/sql/2023-05-01-preview/manageddatabasequeries/method_listbyquery.go index b94e38e72e7..e0e521010a7 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasequeries/method_listbyquery.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasequeries/method_listbyquery.go @@ -58,6 +58,18 @@ func (o ListByQueryOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByQueryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByQueryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByQuery ... func (c ManagedDatabaseQueriesClient) ListByQuery(ctx context.Context, id QueryId, options ListByQueryOperationOptions) (result ListByQueryOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c ManagedDatabaseQueriesClient) ListByQuery(ctx context.Context, id QueryI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/statistics", id.ID()), OptionsObject: options, + Pager: &ListByQueryCustomPager{}, + Path: fmt.Sprintf("%s/statistics", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabases/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/manageddatabases/method_listbyinstance.go index 553abc569a5..f22159c138d 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabases/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabases/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ManagedDatabase } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedDatabasesClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedDatabasesClient) ListByInstance(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/databases", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabases/method_listinaccessiblebyinstance.go b/resource-manager/sql/2023-05-01-preview/manageddatabases/method_listinaccessiblebyinstance.go index 2aeffdb8aa8..043eeee41ce 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabases/method_listinaccessiblebyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabases/method_listinaccessiblebyinstance.go @@ -24,6 +24,18 @@ type ListInaccessibleByInstanceCompleteResult struct { Items []ManagedDatabase } +type ListInaccessibleByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInaccessibleByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInaccessibleByInstance ... func (c ManagedDatabasesClient) ListInaccessibleByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListInaccessibleByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedDatabasesClient) ListInaccessibleByInstance(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInaccessibleByInstanceCustomPager{}, Path: fmt.Sprintf("%s/inaccessibleManagedDatabases", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabaseschemas/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/manageddatabaseschemas/method_listbydatabase.go index fda09ac07fd..1e9c1d82bec 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabaseschemas/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabaseschemas/method_listbydatabase.go @@ -51,6 +51,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseSchemasClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagedDatabaseSchemasClient) ListByDatabase(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityalertpolicies/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityalertpolicies/method_listbydatabase.go index 7d6777ff32e..e09d852c08a 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityalertpolicies/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityalertpolicies/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ManagedDatabaseSecurityAlertPolicy } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedDatabaseSecurityAlertPoliciesClient) ListByDatabase(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/securityAlertPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityevents/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityevents/method_listbydatabase.go index a03fe5a1074..e65ae036286 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityevents/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasesecurityevents/method_listbydatabase.go @@ -59,6 +59,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseSecurityEventsClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c ManagedDatabaseSecurityEventsClient) ListByDatabase(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/securityEvents", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/securityEvents", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/method_listbydatabase.go index 337b4ba731e..fe2c0337ad5 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/method_listbydatabase.go @@ -51,6 +51,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseSensitivityLabelsClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagedDatabaseSensitivityLabelsClient) ListByDatabase(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sensitivityLabels", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/sensitivityLabels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/method_listcurrentbydatabase.go b/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/method_listcurrentbydatabase.go index 11e0be9552f..103ca96f4ff 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/method_listcurrentbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/method_listcurrentbydatabase.go @@ -55,6 +55,18 @@ func (o ListCurrentByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCurrentByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCurrentByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCurrentByDatabase ... func (c ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId, options ListCurrentByDatabaseOperationOptions) (result ListCurrentByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ManagedDatabaseSensitivityLabelsClient) ListCurrentByDatabase(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/currentSensitivityLabels", id.ID()), OptionsObject: options, + Pager: &ListCurrentByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/currentSensitivityLabels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/method_listrecommendedbydatabase.go b/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/method_listrecommendedbydatabase.go index e1cbfd178cd..912989aa100 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/method_listrecommendedbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasesensitivitylabels/method_listrecommendedbydatabase.go @@ -55,6 +55,18 @@ func (o ListRecommendedByDatabaseOperationOptions) ToQuery() *client.QueryParams return &out } +type ListRecommendedByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRecommendedByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRecommendedByDatabase ... func (c ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId, options ListRecommendedByDatabaseOperationOptions) (result ListRecommendedByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ManagedDatabaseSensitivityLabelsClient) ListRecommendedByDatabase(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendedSensitivityLabels", id.ID()), OptionsObject: options, + Pager: &ListRecommendedByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/recommendedSensitivityLabels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasetables/method_listbyschema.go b/resource-manager/sql/2023-05-01-preview/manageddatabasetables/method_listbyschema.go index ca6f78a75a0..acd107e0eb0 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasetables/method_listbyschema.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasetables/method_listbyschema.go @@ -50,6 +50,18 @@ func (o ListBySchemaOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBySchemaCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySchemaCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySchema ... func (c ManagedDatabaseTablesClient) ListBySchema(ctx context.Context, id DatabaseSchemaId, options ListBySchemaOperationOptions) (result ListBySchemaOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ManagedDatabaseTablesClient) ListBySchema(ctx context.Context, id Databa http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tables", id.ID()), OptionsObject: options, + Pager: &ListBySchemaCustomPager{}, + Path: fmt.Sprintf("%s/tables", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasetransparentdataencryption/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/manageddatabasetransparentdataencryption/method_listbydatabase.go index b0ec1e6c69a..aa31fc6e3a5 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasetransparentdataencryption/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasetransparentdataencryption/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ManagedTransparentDataEncryption } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseTransparentDataEncryptionClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedDatabaseTransparentDataEncryptionClient) ListByDatabase(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/transparentDataEncryption", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessments/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessments/method_listbydatabase.go index 3a29ef66a87..0bb5ed97468 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessments/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessments/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []DatabaseVulnerabilityAssessment } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedDatabaseVulnerabilityAssessmentsClient) ListByDatabase(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessmentscans/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessmentscans/method_listbydatabase.go index f1f366bf50b..b494431be17 100644 --- a/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessmentscans/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/manageddatabasevulnerabilityassessmentscans/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []VulnerabilityAssessmentScanRecord } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedDatabaseVulnerabilityAssessmentScansClient) ListByDatabase(ctx co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments/default/scans", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedinstanceadministrators/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/managedinstanceadministrators/method_listbyinstance.go index 32a35ea8807..9bef3057cbd 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstanceadministrators/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstanceadministrators/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ManagedInstanceAdministrator } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedInstanceAdministratorsClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceAdministratorsClient) ListByInstance(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/administrators", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedinstanceadvancedthreatprotectionsettings/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/managedinstanceadvancedthreatprotectionsettings/method_listbyinstance.go index f48e04b89c2..25fe1f3b75d 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstanceadvancedthreatprotectionsettings/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstanceadvancedthreatprotectionsettings/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ManagedInstanceAdvancedThreatProtection } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedInstanceAdvancedThreatProtectionSettingsClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceAdvancedThreatProtectionSettingsClient) ListByInstance(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/advancedThreatProtectionSettings", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedinstanceazureadonlyauthentications/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/managedinstanceazureadonlyauthentications/method_listbyinstance.go index d91ab2930ee..4cd27d8d271 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstanceazureadonlyauthentications/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstanceazureadonlyauthentications/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ManagedInstanceAzureADOnlyAuthentication } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedInstanceAzureADOnlyAuthenticationsClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceAzureADOnlyAuthenticationsClient) ListByInstance(ctx cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/azureADOnlyAuthentications", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedinstancedtcs/method_listbymanagedinstance.go b/resource-manager/sql/2023-05-01-preview/managedinstancedtcs/method_listbymanagedinstance.go index 3eb495b3d73..a3186adf70c 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstancedtcs/method_listbymanagedinstance.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstancedtcs/method_listbymanagedinstance.go @@ -24,6 +24,18 @@ type ListByManagedInstanceCompleteResult struct { Items []ManagedInstanceDtc } +type ListByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedInstance ... func (c ManagedInstanceDtcsClient) ListByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceDtcsClient) ListByManagedInstance(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedInstanceCustomPager{}, Path: fmt.Sprintf("%s/dtc", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedinstanceencryptionprotectors/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/managedinstanceencryptionprotectors/method_listbyinstance.go index 644ecb5c81f..92441270ccc 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstanceencryptionprotectors/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstanceencryptionprotectors/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ManagedInstanceEncryptionProtector } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedInstanceEncryptionProtectorsClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceEncryptionProtectorsClient) ListByInstance(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/encryptionProtector", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedinstancekeys/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/managedinstancekeys/method_listbyinstance.go index b4f551d6938..140196d0475 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstancekeys/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstancekeys/method_listbyinstance.go @@ -51,6 +51,18 @@ func (o ListByInstanceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedInstanceKeysClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId, options ListByInstanceOperationOptions) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagedInstanceKeysClient) ListByInstance(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/keys", id.ID()), OptionsObject: options, + Pager: &ListByInstanceCustomPager{}, + Path: fmt.Sprintf("%s/keys", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstancelongtermretentionpolicies/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/managedinstancelongtermretentionpolicies/method_listbydatabase.go index 4ef054370cf..cf4ace85962 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstancelongtermretentionpolicies/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstancelongtermretentionpolicies/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ManagedInstanceLongTermRetentionPolicy } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedInstanceLongTermRetentionPoliciesClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceLongTermRetentionPoliciesClient) ListByDatabase(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/backupLongTermRetentionPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedinstanceoperations/method_listbymanagedinstance.go b/resource-manager/sql/2023-05-01-preview/managedinstanceoperations/method_listbymanagedinstance.go index 3cfccafd866..1cfeccbb360 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstanceoperations/method_listbymanagedinstance.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstanceoperations/method_listbymanagedinstance.go @@ -24,6 +24,18 @@ type ListByManagedInstanceCompleteResult struct { Items []ManagedInstanceOperation } +type ListByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedInstance ... func (c ManagedInstanceOperationsClient) ListByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceOperationsClient) ListByManagedInstance(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedInstanceCustomPager{}, Path: fmt.Sprintf("%s/operations", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedinstanceprivateendpointconnections/method_listbymanagedinstance.go b/resource-manager/sql/2023-05-01-preview/managedinstanceprivateendpointconnections/method_listbymanagedinstance.go index 0b2f5535b60..73ea470009a 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstanceprivateendpointconnections/method_listbymanagedinstance.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstanceprivateendpointconnections/method_listbymanagedinstance.go @@ -24,6 +24,18 @@ type ListByManagedInstanceCompleteResult struct { Items []ManagedInstancePrivateEndpointConnection } +type ListByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedInstance ... func (c ManagedInstancePrivateEndpointConnectionsClient) ListByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstancePrivateEndpointConnectionsClient) ListByManagedInstance(c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedInstanceCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedinstanceprivatelinkresources/method_listbymanagedinstance.go b/resource-manager/sql/2023-05-01-preview/managedinstanceprivatelinkresources/method_listbymanagedinstance.go index 28e416b514b..99eb0ef7a33 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstanceprivatelinkresources/method_listbymanagedinstance.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstanceprivatelinkresources/method_listbymanagedinstance.go @@ -24,6 +24,18 @@ type ListByManagedInstanceCompleteResult struct { Items []ManagedInstancePrivateLink } +type ListByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedInstance ... func (c ManagedInstancePrivateLinkResourcesClient) ListByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstancePrivateLinkResourcesClient) ListByManagedInstance(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedInstanceCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedinstances/method_failover.go b/resource-manager/sql/2023-05-01-preview/managedinstances/method_failover.go index 56fb0eec8bb..6a09e24ad41 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstances/method_failover.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstances/method_failover.go @@ -57,8 +57,8 @@ func (c ManagedInstancesClient) Failover(ctx context.Context, id commonids.SqlMa http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/failover", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/failover", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstances/method_get.go b/resource-manager/sql/2023-05-01-preview/managedinstances/method_get.go index dea617eca0c..2c318ce242d 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstances/method_get.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstances/method_get.go @@ -54,8 +54,8 @@ func (c ManagedInstancesClient) Get(ctx context.Context, id commonids.SqlManaged http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstances/method_list.go b/resource-manager/sql/2023-05-01-preview/managedinstances/method_list.go index c91827f8032..55f688b91ac 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstances/method_list.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstances/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ManagedInstancesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagedInstancesClient) List(ctx context.Context, id commonids.Subscript http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Sql/managedInstances", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Sql/managedInstances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstances/method_listbyinstancepool.go b/resource-manager/sql/2023-05-01-preview/managedinstances/method_listbyinstancepool.go index 70ffbf54329..f98c7ba2901 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstances/method_listbyinstancepool.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstances/method_listbyinstancepool.go @@ -50,6 +50,18 @@ func (o ListByInstancePoolOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInstancePoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstancePoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstancePool ... func (c ManagedInstancesClient) ListByInstancePool(ctx context.Context, id InstancePoolId, options ListByInstancePoolOperationOptions) (result ListByInstancePoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ManagedInstancesClient) ListByInstancePool(ctx context.Context, id Insta http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/managedInstances", id.ID()), OptionsObject: options, + Pager: &ListByInstancePoolCustomPager{}, + Path: fmt.Sprintf("%s/managedInstances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstances/method_listbymanagedinstance.go b/resource-manager/sql/2023-05-01-preview/managedinstances/method_listbymanagedinstance.go index d306a4da009..8a7c6f76675 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstances/method_listbymanagedinstance.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstances/method_listbymanagedinstance.go @@ -75,6 +75,18 @@ func (o ListByManagedInstanceOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedInstance ... func (c ManagedInstancesClient) ListByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId, options ListByManagedInstanceOperationOptions) (result ListByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -83,8 +95,9 @@ func (c ManagedInstancesClient) ListByManagedInstance(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/topqueries", id.ID()), OptionsObject: options, + Pager: &ListByManagedInstanceCustomPager{}, + Path: fmt.Sprintf("%s/topqueries", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstances/method_listbyresourcegroup.go b/resource-manager/sql/2023-05-01-preview/managedinstances/method_listbyresourcegroup.go index df03e9916cb..0a8a15041c2 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstances/method_listbyresourcegroup.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstances/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ManagedInstancesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ManagedInstancesClient) ListByResourceGroup(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Sql/managedInstances", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Sql/managedInstances", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/managedinstances/method_listoutboundnetworkdependenciesbymanagedinstance.go b/resource-manager/sql/2023-05-01-preview/managedinstances/method_listoutboundnetworkdependenciesbymanagedinstance.go index 61e4e080c1f..e2bcb4e0daa 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstances/method_listoutboundnetworkdependenciesbymanagedinstance.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstances/method_listoutboundnetworkdependenciesbymanagedinstance.go @@ -24,6 +24,18 @@ type ListOutboundNetworkDependenciesByManagedInstanceCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesByManagedInstance ... func (c ManagedInstancesClient) ListOutboundNetworkDependenciesByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListOutboundNetworkDependenciesByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstancesClient) ListOutboundNetworkDependenciesByManagedInstance http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesByManagedInstanceCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedinstancevulnerabilityassessments/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/managedinstancevulnerabilityassessments/method_listbyinstance.go index a26bbb2a8a2..fd8eb23fe58 100644 --- a/resource-manager/sql/2023-05-01-preview/managedinstancevulnerabilityassessments/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/managedinstancevulnerabilityassessments/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ManagedInstanceVulnerabilityAssessment } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedInstanceVulnerabilityAssessmentsClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedInstanceVulnerabilityAssessmentsClient) ListByInstance(ctx contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedledgerdigestuploads/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/managedledgerdigestuploads/method_listbydatabase.go index 6f990d3f348..3c3d455fa28 100644 --- a/resource-manager/sql/2023-05-01-preview/managedledgerdigestuploads/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/managedledgerdigestuploads/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ManagedLedgerDigestUploads } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ManagedLedgerDigestUploadsClient) ListByDatabase(ctx context.Context, id commonids.SqlManagedInstanceDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedLedgerDigestUploadsClient) ListByDatabase(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/ledgerDigestUploads", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedrestorabledroppeddatabasebackupshorttermretentionpolicies/method_listbyrestorabledroppeddatabase.go b/resource-manager/sql/2023-05-01-preview/managedrestorabledroppeddatabasebackupshorttermretentionpolicies/method_listbyrestorabledroppeddatabase.go index f057762d6d5..6c10dd7bb9d 100644 --- a/resource-manager/sql/2023-05-01-preview/managedrestorabledroppeddatabasebackupshorttermretentionpolicies/method_listbyrestorabledroppeddatabase.go +++ b/resource-manager/sql/2023-05-01-preview/managedrestorabledroppeddatabasebackupshorttermretentionpolicies/method_listbyrestorabledroppeddatabase.go @@ -23,6 +23,18 @@ type ListByRestorableDroppedDatabaseCompleteResult struct { Items []ManagedBackupShortTermRetentionPolicy } +type ListByRestorableDroppedDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByRestorableDroppedDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByRestorableDroppedDatabase ... func (c ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) ListByRestorableDroppedDatabase(ctx context.Context, id ManagedInstanceRestorableDroppedDatabaseId) (result ListByRestorableDroppedDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByRestorableDroppedDatabaseCustomPager{}, Path: fmt.Sprintf("%s/backupShortTermRetentionPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedserverdnsaliases/method_listbymanagedinstance.go b/resource-manager/sql/2023-05-01-preview/managedserverdnsaliases/method_listbymanagedinstance.go index af829a73f3c..b78e1583e01 100644 --- a/resource-manager/sql/2023-05-01-preview/managedserverdnsaliases/method_listbymanagedinstance.go +++ b/resource-manager/sql/2023-05-01-preview/managedserverdnsaliases/method_listbymanagedinstance.go @@ -24,6 +24,18 @@ type ListByManagedInstanceCompleteResult struct { Items []ManagedServerDnsAlias } +type ListByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedInstance ... func (c ManagedServerDnsAliasesClient) ListByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedServerDnsAliasesClient) ListByManagedInstance(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedInstanceCustomPager{}, Path: fmt.Sprintf("%s/dnsAliases", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/managedserversecurityalertpolicies/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/managedserversecurityalertpolicies/method_listbyinstance.go index 47f612038e8..d0588ca068f 100644 --- a/resource-manager/sql/2023-05-01-preview/managedserversecurityalertpolicies/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/managedserversecurityalertpolicies/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ManagedServerSecurityAlertPolicy } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ManagedServerSecurityAlertPoliciesClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ManagedServerSecurityAlertPoliciesClient) ListByInstance(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/securityAlertPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/networksecurityperimeterconfigurations/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/networksecurityperimeterconfigurations/method_listbyserver.go index f7d9ba47cdc..fbf350145f6 100644 --- a/resource-manager/sql/2023-05-01-preview/networksecurityperimeterconfigurations/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/networksecurityperimeterconfigurations/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []NetworkSecurityPerimeterConfiguration } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c NetworkSecurityPerimeterConfigurationsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c NetworkSecurityPerimeterConfigurationsClient) ListByServer(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/networkSecurityPerimeterConfigurations", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/outboundfirewallrules/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/outboundfirewallrules/method_listbyserver.go index cb4bd289f1c..41445efebec 100644 --- a/resource-manager/sql/2023-05-01-preview/outboundfirewallrules/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/outboundfirewallrules/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []OutboundFirewallRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c OutboundFirewallRulesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c OutboundFirewallRulesClient) ListByServer(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/outboundFirewallRules", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/privateendpointconnections/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/privateendpointconnections/method_listbyserver.go index cb4449f52aa..7d901871bf9 100644 --- a/resource-manager/sql/2023-05-01-preview/privateendpointconnections/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/privateendpointconnections/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []PrivateEndpointConnection } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateEndpointConnectionsClient) ListByServer(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/privatelinkresources/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/privatelinkresources/method_listbyserver.go index dbcd6439811..a30057bb061 100644 --- a/resource-manager/sql/2023-05-01-preview/privatelinkresources/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/privatelinkresources/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []PrivateLinkResource } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c PrivateLinkResourcesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkResourcesClient) ListByServer(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/recoverabledatabases/method_get.go b/resource-manager/sql/2023-05-01-preview/recoverabledatabases/method_get.go index 6b758eade59..f1d18340b68 100644 --- a/resource-manager/sql/2023-05-01-preview/recoverabledatabases/method_get.go +++ b/resource-manager/sql/2023-05-01-preview/recoverabledatabases/method_get.go @@ -57,8 +57,8 @@ func (c RecoverableDatabasesClient) Get(ctx context.Context, id RecoverableDatab http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/recoverabledatabases/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/recoverabledatabases/method_listbyserver.go index 5a59d5ef8a7..c57293af9ea 100644 --- a/resource-manager/sql/2023-05-01-preview/recoverabledatabases/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/recoverabledatabases/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []RecoverableDatabase } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c RecoverableDatabasesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RecoverableDatabasesClient) ListByServer(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/recoverableDatabases", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/recoverablemanageddatabases/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/recoverablemanageddatabases/method_listbyinstance.go index 3d8920ebff4..57dd01f6bf9 100644 --- a/resource-manager/sql/2023-05-01-preview/recoverablemanageddatabases/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/recoverablemanageddatabases/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []RecoverableManagedDatabase } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c RecoverableManagedDatabasesClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RecoverableManagedDatabasesClient) ListByInstance(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/recoverableDatabases", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/replicationlinks/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/replicationlinks/method_listbydatabase.go index 33f5a004ddf..d822c28ded5 100644 --- a/resource-manager/sql/2023-05-01-preview/replicationlinks/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/replicationlinks/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []ReplicationLink } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c ReplicationLinksClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ReplicationLinksClient) ListByDatabase(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/replicationLinks", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/replicationlinks/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/replicationlinks/method_listbyserver.go index c25fe0038e9..4c0dc194d25 100644 --- a/resource-manager/sql/2023-05-01-preview/replicationlinks/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/replicationlinks/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ReplicationLink } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ReplicationLinksClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ReplicationLinksClient) ListByServer(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/replicationLinks", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/restorabledroppeddatabases/method_get.go b/resource-manager/sql/2023-05-01-preview/restorabledroppeddatabases/method_get.go index 3097ea7d352..03d3fe22529 100644 --- a/resource-manager/sql/2023-05-01-preview/restorabledroppeddatabases/method_get.go +++ b/resource-manager/sql/2023-05-01-preview/restorabledroppeddatabases/method_get.go @@ -57,8 +57,8 @@ func (c RestorableDroppedDatabasesClient) Get(ctx context.Context, id Restorable http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/restorabledroppeddatabases/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/restorabledroppeddatabases/method_listbyserver.go index c7b61b7629e..7c4fae2734b 100644 --- a/resource-manager/sql/2023-05-01-preview/restorabledroppeddatabases/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/restorabledroppeddatabases/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []RestorableDroppedDatabase } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c RestorableDroppedDatabasesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RestorableDroppedDatabasesClient) ListByServer(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/restorableDroppedDatabases", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/restorabledroppedmanageddatabases/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/restorabledroppedmanageddatabases/method_listbyinstance.go index 3106075e7f9..ebb6740b164 100644 --- a/resource-manager/sql/2023-05-01-preview/restorabledroppedmanageddatabases/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/restorabledroppedmanageddatabases/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []RestorableDroppedManagedDatabase } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c RestorableDroppedManagedDatabasesClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RestorableDroppedManagedDatabasesClient) ListByInstance(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/restorableDroppedDatabases", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/restorepoints/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/restorepoints/method_listbydatabase.go index 96605fa8b9e..977a780cf89 100644 --- a/resource-manager/sql/2023-05-01-preview/restorepoints/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/restorepoints/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []RestorePoint } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c RestorePointsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c RestorePointsClient) ListByDatabase(ctx context.Context, id commonids.Sq http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/restorePoints", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/sensitivitylabels/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/sensitivitylabels/method_listbydatabase.go index 6ae174c4c0c..6f57eee31d4 100644 --- a/resource-manager/sql/2023-05-01-preview/sensitivitylabels/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/sensitivitylabels/method_listbydatabase.go @@ -51,6 +51,18 @@ func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c SensitivityLabelsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId, options ListByDatabaseOperationOptions) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SensitivityLabelsClient) ListByDatabase(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sensitivityLabels", id.ID()), OptionsObject: options, + Pager: &ListByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/sensitivityLabels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/sensitivitylabels/method_listcurrentbydatabase.go b/resource-manager/sql/2023-05-01-preview/sensitivitylabels/method_listcurrentbydatabase.go index b431f8f3979..73a615c88fa 100644 --- a/resource-manager/sql/2023-05-01-preview/sensitivitylabels/method_listcurrentbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/sensitivitylabels/method_listcurrentbydatabase.go @@ -55,6 +55,18 @@ func (o ListCurrentByDatabaseOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCurrentByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCurrentByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCurrentByDatabase ... func (c SensitivityLabelsClient) ListCurrentByDatabase(ctx context.Context, id commonids.SqlDatabaseId, options ListCurrentByDatabaseOperationOptions) (result ListCurrentByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c SensitivityLabelsClient) ListCurrentByDatabase(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/currentSensitivityLabels", id.ID()), OptionsObject: options, + Pager: &ListCurrentByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/currentSensitivityLabels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/sensitivitylabels/method_listrecommendedbydatabase.go b/resource-manager/sql/2023-05-01-preview/sensitivitylabels/method_listrecommendedbydatabase.go index dc86be24851..2e9d85df880 100644 --- a/resource-manager/sql/2023-05-01-preview/sensitivitylabels/method_listrecommendedbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/sensitivitylabels/method_listrecommendedbydatabase.go @@ -55,6 +55,18 @@ func (o ListRecommendedByDatabaseOperationOptions) ToQuery() *client.QueryParams return &out } +type ListRecommendedByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRecommendedByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRecommendedByDatabase ... func (c SensitivityLabelsClient) ListRecommendedByDatabase(ctx context.Context, id commonids.SqlDatabaseId, options ListRecommendedByDatabaseOperationOptions) (result ListRecommendedByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c SensitivityLabelsClient) ListRecommendedByDatabase(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendedSensitivityLabels", id.ID()), OptionsObject: options, + Pager: &ListRecommendedByDatabaseCustomPager{}, + Path: fmt.Sprintf("%s/recommendedSensitivityLabels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/serveradvancedthreatprotectionsettings/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/serveradvancedthreatprotectionsettings/method_listbyserver.go index 11503629d11..f22ea47813e 100644 --- a/resource-manager/sql/2023-05-01-preview/serveradvancedthreatprotectionsettings/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/serveradvancedthreatprotectionsettings/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerAdvancedThreatProtection } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerAdvancedThreatProtectionSettingsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerAdvancedThreatProtectionSettingsClient) ListByServer(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/advancedThreatProtectionSettings", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/serveradvisors/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/serveradvisors/method_listbyserver.go index 123d67dc5f5..0ab13d2757c 100644 --- a/resource-manager/sql/2023-05-01-preview/serveradvisors/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/serveradvisors/method_listbyserver.go @@ -54,8 +54,8 @@ func (c ServerAdvisorsClient) ListByServer(ctx context.Context, id commonids.Sql http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/advisors", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/advisors", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/serverazureadadministrators/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/serverazureadadministrators/method_listbyserver.go index 6e45eec09a8..e6a4b34dac5 100644 --- a/resource-manager/sql/2023-05-01-preview/serverazureadadministrators/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/serverazureadadministrators/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerAzureADAdministrator } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerAzureADAdministratorsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerAzureADAdministratorsClient) ListByServer(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/administrators", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/serverazureadonlyauthentications/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/serverazureadonlyauthentications/method_listbyserver.go index ab714ce8d69..96d5964f0ee 100644 --- a/resource-manager/sql/2023-05-01-preview/serverazureadonlyauthentications/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/serverazureadonlyauthentications/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerAzureADOnlyAuthentication } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerAzureADOnlyAuthenticationsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerAzureADOnlyAuthenticationsClient) ListByServer(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/azureADOnlyAuthentications", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/serverconfigurationoptions/method_listbymanagedinstance.go b/resource-manager/sql/2023-05-01-preview/serverconfigurationoptions/method_listbymanagedinstance.go index 6e7df98df23..eb3f3fe6a8d 100644 --- a/resource-manager/sql/2023-05-01-preview/serverconfigurationoptions/method_listbymanagedinstance.go +++ b/resource-manager/sql/2023-05-01-preview/serverconfigurationoptions/method_listbymanagedinstance.go @@ -24,6 +24,18 @@ type ListByManagedInstanceCompleteResult struct { Items []ServerConfigurationOption } +type ListByManagedInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByManagedInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByManagedInstance ... func (c ServerConfigurationOptionsClient) ListByManagedInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByManagedInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerConfigurationOptionsClient) ListByManagedInstance(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByManagedInstanceCustomPager{}, Path: fmt.Sprintf("%s/serverConfigurationOptions", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/serverconnectionpolicies/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/serverconnectionpolicies/method_listbyserver.go index 92a6f38dd68..0eb69736366 100644 --- a/resource-manager/sql/2023-05-01-preview/serverconnectionpolicies/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/serverconnectionpolicies/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerConnectionPolicy } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerConnectionPoliciesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerConnectionPoliciesClient) ListByServer(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/connectionPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/serverdevopsaudit/method_settingslistbyserver.go b/resource-manager/sql/2023-05-01-preview/serverdevopsaudit/method_settingslistbyserver.go index 14823dd7b91..39e50f7940a 100644 --- a/resource-manager/sql/2023-05-01-preview/serverdevopsaudit/method_settingslistbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/serverdevopsaudit/method_settingslistbyserver.go @@ -24,6 +24,18 @@ type SettingsListByServerCompleteResult struct { Items []ServerDevOpsAuditingSettings } +type SettingsListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SettingsListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SettingsListByServer ... func (c ServerDevOpsAuditClient) SettingsListByServer(ctx context.Context, id commonids.SqlServerId) (result SettingsListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerDevOpsAuditClient) SettingsListByServer(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SettingsListByServerCustomPager{}, Path: fmt.Sprintf("%s/devOpsAuditingSettings", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/serverdnsaliases/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/serverdnsaliases/method_listbyserver.go index 30cd7b0d445..b67f67765b7 100644 --- a/resource-manager/sql/2023-05-01-preview/serverdnsaliases/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/serverdnsaliases/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerDnsAlias } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerDnsAliasesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerDnsAliasesClient) ListByServer(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/dnsAliases", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/serverkeys/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/serverkeys/method_listbyserver.go index a737ff6f99b..221552cd13f 100644 --- a/resource-manager/sql/2023-05-01-preview/serverkeys/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/serverkeys/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerKey } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerKeysClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerKeysClient) ListByServer(ctx context.Context, id commonids.SqlServ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/keys", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/serveroperations/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/serveroperations/method_listbyserver.go index 4e9b3370aa6..5eac4638595 100644 --- a/resource-manager/sql/2023-05-01-preview/serveroperations/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/serveroperations/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerOperation } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerOperationsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerOperationsClient) ListByServer(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/operations", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/servers/method_get.go b/resource-manager/sql/2023-05-01-preview/servers/method_get.go index b4125d98723..9fa3523f482 100644 --- a/resource-manager/sql/2023-05-01-preview/servers/method_get.go +++ b/resource-manager/sql/2023-05-01-preview/servers/method_get.go @@ -54,8 +54,8 @@ func (c ServersClient) Get(ctx context.Context, id commonids.SqlServerId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/servers/method_list.go b/resource-manager/sql/2023-05-01-preview/servers/method_list.go index 4c918077804..0ce97ea8572 100644 --- a/resource-manager/sql/2023-05-01-preview/servers/method_list.go +++ b/resource-manager/sql/2023-05-01-preview/servers/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId, op http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Sql/servers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Sql/servers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/servers/method_listbyresourcegroup.go b/resource-manager/sql/2023-05-01-preview/servers/method_listbyresourcegroup.go index 652f6d26588..eb7122c8a0a 100644 --- a/resource-manager/sql/2023-05-01-preview/servers/method_listbyresourcegroup.go +++ b/resource-manager/sql/2023-05-01-preview/servers/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Sql/servers", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Sql/servers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/serversecurityalertpolicies/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/serversecurityalertpolicies/method_listbyserver.go index 2694825f8a8..50b8635f5a0 100644 --- a/resource-manager/sql/2023-05-01-preview/serversecurityalertpolicies/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/serversecurityalertpolicies/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerSecurityAlertPolicy } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerSecurityAlertPoliciesClient) ListByServer(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/securityAlertPolicies", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/servertrustcertificates/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/servertrustcertificates/method_listbyinstance.go index d471e6d5c27..17f4bf95e19 100644 --- a/resource-manager/sql/2023-05-01-preview/servertrustcertificates/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/servertrustcertificates/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ServerTrustCertificate } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ServerTrustCertificatesClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerTrustCertificatesClient) ListByInstance(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/serverTrustCertificates", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/servertrustgroups/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/servertrustgroups/method_listbyinstance.go index fa48e2924af..eeaeeb3876f 100644 --- a/resource-manager/sql/2023-05-01-preview/servertrustgroups/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/servertrustgroups/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []ServerTrustGroup } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c ServerTrustGroupsClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerTrustGroupsClient) ListByInstance(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/serverTrustGroups", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/servertrustgroups/method_listbylocation.go b/resource-manager/sql/2023-05-01-preview/servertrustgroups/method_listbylocation.go index 6db42c216a8..8bad6d43f77 100644 --- a/resource-manager/sql/2023-05-01-preview/servertrustgroups/method_listbylocation.go +++ b/resource-manager/sql/2023-05-01-preview/servertrustgroups/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []ServerTrustGroup } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c ServerTrustGroupsClient) ListByLocation(ctx context.Context, id ProviderLocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ServerTrustGroupsClient) ListByLocation(ctx context.Context, id Provider http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/serverTrustGroups", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/serverusages/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/serverusages/method_listbyserver.go index 93c9bbdc68c..8c6774ff80d 100644 --- a/resource-manager/sql/2023-05-01-preview/serverusages/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/serverusages/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerUsage } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerUsagesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerUsagesClient) ListByServer(ctx context.Context, id commonids.SqlSe http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/servervulnerabilityassessments/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/servervulnerabilityassessments/method_listbyserver.go index 795c25ccd4b..49dc3296c3b 100644 --- a/resource-manager/sql/2023-05-01-preview/servervulnerabilityassessments/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/servervulnerabilityassessments/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []ServerVulnerabilityAssessment } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c ServerVulnerabilityAssessmentsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ServerVulnerabilityAssessmentsClient) ListByServer(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/method_createorupdate.go b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/method_createorupdate.go index cc8687ca746..f287d50ecef 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/method_createorupdate.go +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/method_createorupdate.go @@ -54,8 +54,8 @@ func (c SqlVulnerabilityAssessmentBaselineClient) CreateOrUpdate(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/method_get.go b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/method_get.go index 24130be8090..1742364c396 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/method_get.go +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/method_get.go @@ -54,8 +54,8 @@ func (c SqlVulnerabilityAssessmentBaselineClient) Get(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/method_listbysqlvulnerabilityassessment.go b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/method_listbysqlvulnerabilityassessment.go index e42759b6be7..caec9ab9821 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/method_listbysqlvulnerabilityassessment.go +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentbaseline/method_listbysqlvulnerabilityassessment.go @@ -51,6 +51,18 @@ func (o ListBySqlVulnerabilityAssessmentOperationOptions) ToQuery() *client.Quer return &out } +type ListBySqlVulnerabilityAssessmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySqlVulnerabilityAssessmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySqlVulnerabilityAssessment ... func (c SqlVulnerabilityAssessmentBaselineClient) ListBySqlVulnerabilityAssessment(ctx context.Context, id commonids.SqlServerId, options ListBySqlVulnerabilityAssessmentOperationOptions) (result ListBySqlVulnerabilityAssessmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SqlVulnerabilityAssessmentBaselineClient) ListBySqlVulnerabilityAssessme http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines", id.ID()), OptionsObject: options, + Pager: &ListBySqlVulnerabilityAssessmentCustomPager{}, + Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentexecutescan/method_execute.go b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentexecutescan/method_execute.go index 50f07786035..201fdbca8ea 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentexecutescan/method_execute.go +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentexecutescan/method_execute.go @@ -57,8 +57,8 @@ func (c SqlVulnerabilityAssessmentExecuteScanClient) Execute(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/initiateScan", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/initiateScan", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_createorupdate.go b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_createorupdate.go index b0504d394ff..fb8a7288f91 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_createorupdate.go +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_createorupdate.go @@ -53,8 +53,8 @@ func (c SqlVulnerabilityAssessmentRuleBaselineClient) CreateOrUpdate(ctx context http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_delete.go b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_delete.go index 3e2d2645e16..df062390726 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_delete.go +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_delete.go @@ -53,8 +53,8 @@ func (c SqlVulnerabilityAssessmentRuleBaselineClient) Delete(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_get.go b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_get.go index ae8a8df7311..b587ac02d42 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_get.go +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_get.go @@ -53,8 +53,8 @@ func (c SqlVulnerabilityAssessmentRuleBaselineClient) Get(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_listbybaseline.go b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_listbybaseline.go index 1cee70982f1..2ba72cbdd7d 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_listbybaseline.go +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentrulebaseline/method_listbybaseline.go @@ -51,6 +51,18 @@ func (o ListByBaselineOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByBaselineCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByBaselineCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByBaseline ... func (c SqlVulnerabilityAssessmentRuleBaselineClient) ListByBaseline(ctx context.Context, id commonids.SqlServerId, options ListByBaselineOperationOptions) (result ListByBaselineOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SqlVulnerabilityAssessmentRuleBaselineClient) ListByBaseline(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines/default/rules", id.ID()), OptionsObject: options, + Pager: &ListByBaselineCustomPager{}, + Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/baselines/default/rules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscanresult/method_get.go b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscanresult/method_get.go index d99588b4b6a..ef0c57e5f1f 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscanresult/method_get.go +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscanresult/method_get.go @@ -53,8 +53,8 @@ func (c SqlVulnerabilityAssessmentScanResultClient) Get(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscanresult/method_listbyscan.go b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscanresult/method_listbyscan.go index 01307934280..24c4bf34932 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscanresult/method_listbyscan.go +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscanresult/method_listbyscan.go @@ -50,6 +50,18 @@ func (o ListByScanOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByScanCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByScanCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByScan ... func (c SqlVulnerabilityAssessmentScanResultClient) ListByScan(ctx context.Context, id ScanId, options ListByScanOperationOptions) (result ListByScanOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SqlVulnerabilityAssessmentScanResultClient) ListByScan(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/scanResults", id.ID()), OptionsObject: options, + Pager: &ListByScanCustomPager{}, + Path: fmt.Sprintf("%s/scanResults", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscans/method_get.go b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscans/method_get.go index 4fc61f4d6e4..8c977afd356 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscans/method_get.go +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscans/method_get.go @@ -53,8 +53,8 @@ func (c SqlVulnerabilityAssessmentScansClient) Get(ctx context.Context, id ScanI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go index 52e5021a7a2..bc384217394 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentscans/method_listbysqlvulnerabilityassessments.go @@ -51,6 +51,18 @@ func (o ListBySqlVulnerabilityAssessmentsOperationOptions) ToQuery() *client.Que return &out } +type ListBySqlVulnerabilityAssessmentsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySqlVulnerabilityAssessmentsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySqlVulnerabilityAssessments ... func (c SqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessments(ctx context.Context, id commonids.SqlServerId, options ListBySqlVulnerabilityAssessmentsOperationOptions) (result ListBySqlVulnerabilityAssessmentsOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c SqlVulnerabilityAssessmentScansClient) ListBySqlVulnerabilityAssessments http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/scans", id.ID()), OptionsObject: options, + Pager: &ListBySqlVulnerabilityAssessmentsCustomPager{}, + Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments/default/scans", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentssettings/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentssettings/method_listbyserver.go index 98a21416183..14bdd4b30ed 100644 --- a/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentssettings/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/sqlvulnerabilityassessmentssettings/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []SqlVulnerabilityAssessment } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c SqlVulnerabilityAssessmentsSettingsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SqlVulnerabilityAssessmentsSettingsClient) ListByServer(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/sqlVulnerabilityAssessments", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/startstopmanagedinstanceschedules/method_listbyinstance.go b/resource-manager/sql/2023-05-01-preview/startstopmanagedinstanceschedules/method_listbyinstance.go index aa67710ed31..ea88a26dfa8 100644 --- a/resource-manager/sql/2023-05-01-preview/startstopmanagedinstanceschedules/method_listbyinstance.go +++ b/resource-manager/sql/2023-05-01-preview/startstopmanagedinstanceschedules/method_listbyinstance.go @@ -24,6 +24,18 @@ type ListByInstanceCompleteResult struct { Items []StartStopManagedInstanceSchedule } +type ListByInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstance ... func (c StartStopManagedInstanceSchedulesClient) ListByInstance(ctx context.Context, id commonids.SqlManagedInstanceId) (result ListByInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StartStopManagedInstanceSchedulesClient) ListByInstance(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByInstanceCustomPager{}, Path: fmt.Sprintf("%s/startStopSchedules", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/subscriptionusages/method_listbylocation.go b/resource-manager/sql/2023-05-01-preview/subscriptionusages/method_listbylocation.go index 5ac37b52783..084767e6180 100644 --- a/resource-manager/sql/2023-05-01-preview/subscriptionusages/method_listbylocation.go +++ b/resource-manager/sql/2023-05-01-preview/subscriptionusages/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []SubscriptionUsage } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c SubscriptionUsagesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SubscriptionUsagesClient) ListByLocation(ctx context.Context, id Locatio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/synapselinkworkspaces/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/synapselinkworkspaces/method_listbydatabase.go index e718a25531f..8444d646633 100644 --- a/resource-manager/sql/2023-05-01-preview/synapselinkworkspaces/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/synapselinkworkspaces/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []SynapseLinkWorkspace } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c SynapseLinkWorkspacesClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SynapseLinkWorkspacesClient) ListByDatabase(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/linkWorkspaces", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/syncagents/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/syncagents/method_listbyserver.go index b550c113093..021f3655ff0 100644 --- a/resource-manager/sql/2023-05-01-preview/syncagents/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/syncagents/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []SyncAgent } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c SyncAgentsClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SyncAgentsClient) ListByServer(ctx context.Context, id commonids.SqlServ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/syncAgents", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/syncagents/method_listlinkeddatabases.go b/resource-manager/sql/2023-05-01-preview/syncagents/method_listlinkeddatabases.go index 8ef1bb4797c..492851acf54 100644 --- a/resource-manager/sql/2023-05-01-preview/syncagents/method_listlinkeddatabases.go +++ b/resource-manager/sql/2023-05-01-preview/syncagents/method_listlinkeddatabases.go @@ -23,6 +23,18 @@ type ListLinkedDatabasesCompleteResult struct { Items []SyncAgentLinkedDatabase } +type ListLinkedDatabasesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListLinkedDatabasesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListLinkedDatabases ... func (c SyncAgentsClient) ListLinkedDatabases(ctx context.Context, id SyncAgentId) (result ListLinkedDatabasesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SyncAgentsClient) ListLinkedDatabases(ctx context.Context, id SyncAgentI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListLinkedDatabasesCustomPager{}, Path: fmt.Sprintf("%s/linkedDatabases", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/syncgroups/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/syncgroups/method_listbydatabase.go index f4400415cfe..1feba6cec91 100644 --- a/resource-manager/sql/2023-05-01-preview/syncgroups/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/syncgroups/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []SyncGroup } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c SyncGroupsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SyncGroupsClient) ListByDatabase(ctx context.Context, id commonids.SqlDa http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/syncGroups", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/syncgroups/method_listhubschemas.go b/resource-manager/sql/2023-05-01-preview/syncgroups/method_listhubschemas.go index e844a605f2e..8fe8c300344 100644 --- a/resource-manager/sql/2023-05-01-preview/syncgroups/method_listhubschemas.go +++ b/resource-manager/sql/2023-05-01-preview/syncgroups/method_listhubschemas.go @@ -23,6 +23,18 @@ type ListHubSchemasCompleteResult struct { Items []SyncFullSchemaProperties } +type ListHubSchemasCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHubSchemasCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHubSchemas ... func (c SyncGroupsClient) ListHubSchemas(ctx context.Context, id SyncGroupId) (result ListHubSchemasOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SyncGroupsClient) ListHubSchemas(ctx context.Context, id SyncGroupId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHubSchemasCustomPager{}, Path: fmt.Sprintf("%s/hubSchemas", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/syncgroups/method_listlogs.go b/resource-manager/sql/2023-05-01-preview/syncgroups/method_listlogs.go index 31ff78908d0..5f0554775a2 100644 --- a/resource-manager/sql/2023-05-01-preview/syncgroups/method_listlogs.go +++ b/resource-manager/sql/2023-05-01-preview/syncgroups/method_listlogs.go @@ -62,6 +62,18 @@ func (o ListLogsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListLogsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListLogsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListLogs ... func (c SyncGroupsClient) ListLogs(ctx context.Context, id SyncGroupId, options ListLogsOperationOptions) (result ListLogsOperationResponse, err error) { opts := client.RequestOptions{ @@ -70,8 +82,9 @@ func (c SyncGroupsClient) ListLogs(ctx context.Context, id SyncGroupId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/logs", id.ID()), OptionsObject: options, + Pager: &ListLogsCustomPager{}, + Path: fmt.Sprintf("%s/logs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/syncgroups/method_listsyncdatabaseids.go b/resource-manager/sql/2023-05-01-preview/syncgroups/method_listsyncdatabaseids.go index 54ae925b9f6..23a9db0fdcb 100644 --- a/resource-manager/sql/2023-05-01-preview/syncgroups/method_listsyncdatabaseids.go +++ b/resource-manager/sql/2023-05-01-preview/syncgroups/method_listsyncdatabaseids.go @@ -23,6 +23,18 @@ type ListSyncDatabaseIdsCompleteResult struct { Items []SyncDatabaseIdProperties } +type ListSyncDatabaseIdsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSyncDatabaseIdsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSyncDatabaseIds ... func (c SyncGroupsClient) ListSyncDatabaseIds(ctx context.Context, id LocationId) (result ListSyncDatabaseIdsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SyncGroupsClient) ListSyncDatabaseIds(ctx context.Context, id LocationId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSyncDatabaseIdsCustomPager{}, Path: fmt.Sprintf("%s/syncDatabaseIds", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/syncmembers/method_listbysyncgroup.go b/resource-manager/sql/2023-05-01-preview/syncmembers/method_listbysyncgroup.go index 1e6646ba716..ddd95153a82 100644 --- a/resource-manager/sql/2023-05-01-preview/syncmembers/method_listbysyncgroup.go +++ b/resource-manager/sql/2023-05-01-preview/syncmembers/method_listbysyncgroup.go @@ -23,6 +23,18 @@ type ListBySyncGroupCompleteResult struct { Items []SyncMember } +type ListBySyncGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySyncGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySyncGroup ... func (c SyncMembersClient) ListBySyncGroup(ctx context.Context, id SyncGroupId) (result ListBySyncGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SyncMembersClient) ListBySyncGroup(ctx context.Context, id SyncGroupId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySyncGroupCustomPager{}, Path: fmt.Sprintf("%s/syncMembers", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/syncmembers/method_listmemberschemas.go b/resource-manager/sql/2023-05-01-preview/syncmembers/method_listmemberschemas.go index 44f7c113d22..859d739124f 100644 --- a/resource-manager/sql/2023-05-01-preview/syncmembers/method_listmemberschemas.go +++ b/resource-manager/sql/2023-05-01-preview/syncmembers/method_listmemberschemas.go @@ -23,6 +23,18 @@ type ListMemberSchemasCompleteResult struct { Items []SyncFullSchemaProperties } +type ListMemberSchemasCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMemberSchemasCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMemberSchemas ... func (c SyncMembersClient) ListMemberSchemas(ctx context.Context, id SyncMemberId) (result ListMemberSchemasOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SyncMembersClient) ListMemberSchemas(ctx context.Context, id SyncMemberI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMemberSchemasCustomPager{}, Path: fmt.Sprintf("%s/schemas", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/timezones/method_listbylocation.go b/resource-manager/sql/2023-05-01-preview/timezones/method_listbylocation.go index 71e10af6cc0..48bdb1d9392 100644 --- a/resource-manager/sql/2023-05-01-preview/timezones/method_listbylocation.go +++ b/resource-manager/sql/2023-05-01-preview/timezones/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []TimeZone } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c TimeZonesClient) ListByLocation(ctx context.Context, id LocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TimeZonesClient) ListByLocation(ctx context.Context, id LocationId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/timeZones", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/transparentdataencryptions/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/transparentdataencryptions/method_listbydatabase.go index 2f86c609046..d260e1ce2a7 100644 --- a/resource-manager/sql/2023-05-01-preview/transparentdataencryptions/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/transparentdataencryptions/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []LogicalDatabaseTransparentDataEncryption } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c TransparentDataEncryptionsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TransparentDataEncryptionsClient) ListByDatabase(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/transparentDataEncryption", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/usages/method_listbyinstancepool.go b/resource-manager/sql/2023-05-01-preview/usages/method_listbyinstancepool.go index 4e52343779a..1c0d9617748 100644 --- a/resource-manager/sql/2023-05-01-preview/usages/method_listbyinstancepool.go +++ b/resource-manager/sql/2023-05-01-preview/usages/method_listbyinstancepool.go @@ -50,6 +50,18 @@ func (o ListByInstancePoolOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByInstancePoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByInstancePoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByInstancePool ... func (c UsagesClient) ListByInstancePool(ctx context.Context, id InstancePoolId, options ListByInstancePoolOperationOptions) (result ListByInstancePoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c UsagesClient) ListByInstancePool(ctx context.Context, id InstancePoolId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListByInstancePoolCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sql/2023-05-01-preview/virtualclusters/method_list.go b/resource-manager/sql/2023-05-01-preview/virtualclusters/method_list.go index 4268119dcb7..ae12b48da28 100644 --- a/resource-manager/sql/2023-05-01-preview/virtualclusters/method_list.go +++ b/resource-manager/sql/2023-05-01-preview/virtualclusters/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualCluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualClustersClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Sql/virtualClusters", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/virtualclusters/method_listbyresourcegroup.go b/resource-manager/sql/2023-05-01-preview/virtualclusters/method_listbyresourcegroup.go index 8feea7d5019..198ebcdf662 100644 --- a/resource-manager/sql/2023-05-01-preview/virtualclusters/method_listbyresourcegroup.go +++ b/resource-manager/sql/2023-05-01-preview/virtualclusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualCluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualClustersClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Sql/virtualClusters", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/virtualnetworkrules/method_listbyserver.go b/resource-manager/sql/2023-05-01-preview/virtualnetworkrules/method_listbyserver.go index fb33dae5f98..fd0e442a021 100644 --- a/resource-manager/sql/2023-05-01-preview/virtualnetworkrules/method_listbyserver.go +++ b/resource-manager/sql/2023-05-01-preview/virtualnetworkrules/method_listbyserver.go @@ -24,6 +24,18 @@ type ListByServerCompleteResult struct { Items []VirtualNetworkRule } +type ListByServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByServer ... func (c VirtualNetworkRulesClient) ListByServer(ctx context.Context, id commonids.SqlServerId) (result ListByServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworkRulesClient) ListByServer(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByServerCustomPager{}, Path: fmt.Sprintf("%s/virtualNetworkRules", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/workloadclassifiers/method_listbyworkloadgroup.go b/resource-manager/sql/2023-05-01-preview/workloadclassifiers/method_listbyworkloadgroup.go index ddac0e26f5f..aded3abe903 100644 --- a/resource-manager/sql/2023-05-01-preview/workloadclassifiers/method_listbyworkloadgroup.go +++ b/resource-manager/sql/2023-05-01-preview/workloadclassifiers/method_listbyworkloadgroup.go @@ -23,6 +23,18 @@ type ListByWorkloadGroupCompleteResult struct { Items []WorkloadClassifier } +type ListByWorkloadGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkloadGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkloadGroup ... func (c WorkloadClassifiersClient) ListByWorkloadGroup(ctx context.Context, id WorkloadGroupId) (result ListByWorkloadGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadClassifiersClient) ListByWorkloadGroup(ctx context.Context, id W http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkloadGroupCustomPager{}, Path: fmt.Sprintf("%s/workloadClassifiers", id.ID()), } diff --git a/resource-manager/sql/2023-05-01-preview/workloadgroups/method_listbydatabase.go b/resource-manager/sql/2023-05-01-preview/workloadgroups/method_listbydatabase.go index ef2e75e503f..6d05174887c 100644 --- a/resource-manager/sql/2023-05-01-preview/workloadgroups/method_listbydatabase.go +++ b/resource-manager/sql/2023-05-01-preview/workloadgroups/method_listbydatabase.go @@ -24,6 +24,18 @@ type ListByDatabaseCompleteResult struct { Items []WorkloadGroup } +type ListByDatabaseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDatabaseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDatabase ... func (c WorkloadGroupsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId) (result ListByDatabaseOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkloadGroupsClient) ListByDatabase(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDatabaseCustomPager{}, Path: fmt.Sprintf("%s/workloadGroups", id.ID()), } diff --git a/resource-manager/sqlvirtualmachine/2022-02-01/availabilitygrouplisteners/method_get.go b/resource-manager/sqlvirtualmachine/2022-02-01/availabilitygrouplisteners/method_get.go index cb0cb022f07..926cc90bed3 100644 --- a/resource-manager/sqlvirtualmachine/2022-02-01/availabilitygrouplisteners/method_get.go +++ b/resource-manager/sqlvirtualmachine/2022-02-01/availabilitygrouplisteners/method_get.go @@ -53,8 +53,8 @@ func (c AvailabilityGroupListenersClient) Get(ctx context.Context, id Availabili http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sqlvirtualmachine/2022-02-01/availabilitygrouplisteners/method_listbygroup.go b/resource-manager/sqlvirtualmachine/2022-02-01/availabilitygrouplisteners/method_listbygroup.go index 25fd99a946e..73e1f73cc64 100644 --- a/resource-manager/sqlvirtualmachine/2022-02-01/availabilitygrouplisteners/method_listbygroup.go +++ b/resource-manager/sqlvirtualmachine/2022-02-01/availabilitygrouplisteners/method_listbygroup.go @@ -23,6 +23,18 @@ type ListByGroupCompleteResult struct { Items []AvailabilityGroupListener } +type ListByGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGroup ... func (c AvailabilityGroupListenersClient) ListByGroup(ctx context.Context, id SqlVirtualMachineGroupId) (result ListByGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailabilityGroupListenersClient) ListByGroup(ctx context.Context, id Sq http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGroupCustomPager{}, Path: fmt.Sprintf("%s/availabilityGroupListeners", id.ID()), } diff --git a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachinegroups/method_list.go b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachinegroups/method_list.go index ac30c586efe..9f8a18f1dd0 100644 --- a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachinegroups/method_list.go +++ b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachinegroups/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SqlVirtualMachineGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SqlVirtualMachineGroupsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SqlVirtualMachineGroupsClient) List(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups", id.ID()), } diff --git a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachinegroups/method_listbyresourcegroup.go b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachinegroups/method_listbyresourcegroup.go index 17efa7a8d67..f593bf6e4b6 100644 --- a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachinegroups/method_listbyresourcegroup.go +++ b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachinegroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SqlVirtualMachineGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SqlVirtualMachineGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SqlVirtualMachineGroupsClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups", id.ID()), } diff --git a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_get.go b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_get.go index 774f633c0db..0fffbe8a99b 100644 --- a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_get.go +++ b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_get.go @@ -53,8 +53,8 @@ func (c SqlVirtualMachinesClient) Get(ctx context.Context, id SqlVirtualMachineI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_list.go b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_list.go index bdf9859d999..a92bd997d7d 100644 --- a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_list.go +++ b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SqlVirtualMachine } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SqlVirtualMachinesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SqlVirtualMachinesClient) List(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines", id.ID()), } diff --git a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_listbyresourcegroup.go b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_listbyresourcegroup.go index 58e488492f3..97fc15d62d7 100644 --- a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_listbyresourcegroup.go +++ b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SqlVirtualMachine } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SqlVirtualMachinesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SqlVirtualMachinesClient) ListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines", id.ID()), } diff --git a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_listbysqlvmgroup.go b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_listbysqlvmgroup.go index f6c6f32cfff..59bcb6f9831 100644 --- a/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_listbysqlvmgroup.go +++ b/resource-manager/sqlvirtualmachine/2022-02-01/sqlvirtualmachines/method_listbysqlvmgroup.go @@ -23,6 +23,18 @@ type ListBySqlVMGroupCompleteResult struct { Items []SqlVirtualMachine } +type ListBySqlVMGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySqlVMGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySqlVMGroup ... func (c SqlVirtualMachinesClient) ListBySqlVMGroup(ctx context.Context, id SqlVirtualMachineGroupId) (result ListBySqlVMGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SqlVirtualMachinesClient) ListBySqlVMGroup(ctx context.Context, id SqlVi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySqlVMGroupCustomPager{}, Path: fmt.Sprintf("%s/sqlVirtualMachines", id.ID()), } diff --git a/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/method_get.go b/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/method_get.go index cb0cb022f07..926cc90bed3 100644 --- a/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/method_get.go +++ b/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/method_get.go @@ -53,8 +53,8 @@ func (c AvailabilityGroupListenersClient) Get(ctx context.Context, id Availabili http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/method_listbygroup.go b/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/method_listbygroup.go index 25fd99a946e..73e1f73cc64 100644 --- a/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/method_listbygroup.go +++ b/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/method_listbygroup.go @@ -23,6 +23,18 @@ type ListByGroupCompleteResult struct { Items []AvailabilityGroupListener } +type ListByGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByGroup ... func (c AvailabilityGroupListenersClient) ListByGroup(ctx context.Context, id SqlVirtualMachineGroupId) (result ListByGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AvailabilityGroupListenersClient) ListByGroup(ctx context.Context, id Sq http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByGroupCustomPager{}, Path: fmt.Sprintf("%s/availabilityGroupListeners", id.ID()), } diff --git a/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/method_list.go b/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/method_list.go index ac30c586efe..9f8a18f1dd0 100644 --- a/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/method_list.go +++ b/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SqlVirtualMachineGroup } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SqlVirtualMachineGroupsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SqlVirtualMachineGroupsClient) List(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups", id.ID()), } diff --git a/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/method_listbyresourcegroup.go b/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/method_listbyresourcegroup.go index 17efa7a8d67..f593bf6e4b6 100644 --- a/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/method_listbyresourcegroup.go +++ b/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SqlVirtualMachineGroup } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SqlVirtualMachineGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SqlVirtualMachineGroupsClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups", id.ID()), } diff --git a/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_get.go b/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_get.go index 774f633c0db..0fffbe8a99b 100644 --- a/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_get.go +++ b/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_get.go @@ -53,8 +53,8 @@ func (c SqlVirtualMachinesClient) Get(ctx context.Context, id SqlVirtualMachineI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_list.go b/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_list.go index bdf9859d999..a92bd997d7d 100644 --- a/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_list.go +++ b/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []SqlVirtualMachine } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SqlVirtualMachinesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SqlVirtualMachinesClient) List(ctx context.Context, id commonids.Subscri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines", id.ID()), } diff --git a/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_listbyresourcegroup.go b/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_listbyresourcegroup.go index 58e488492f3..97fc15d62d7 100644 --- a/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_listbyresourcegroup.go +++ b/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SqlVirtualMachine } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SqlVirtualMachinesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SqlVirtualMachinesClient) ListByResourceGroup(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines", id.ID()), } diff --git a/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_listbysqlvmgroup.go b/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_listbysqlvmgroup.go index f6c6f32cfff..59bcb6f9831 100644 --- a/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_listbysqlvmgroup.go +++ b/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_listbysqlvmgroup.go @@ -23,6 +23,18 @@ type ListBySqlVMGroupCompleteResult struct { Items []SqlVirtualMachine } +type ListBySqlVMGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySqlVMGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySqlVMGroup ... func (c SqlVirtualMachinesClient) ListBySqlVMGroup(ctx context.Context, id SqlVirtualMachineGroupId) (result ListBySqlVMGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SqlVirtualMachinesClient) ListBySqlVMGroup(ctx context.Context, id SqlVi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySqlVMGroupCustomPager{}, Path: fmt.Sprintf("%s/sqlVirtualMachines", id.ID()), } diff --git a/resource-manager/storage/2023-01-01/blobcontainers/method_createorupdateimmutabilitypolicy.go b/resource-manager/storage/2023-01-01/blobcontainers/method_createorupdateimmutabilitypolicy.go index dee60925ab9..d5d71851073 100644 --- a/resource-manager/storage/2023-01-01/blobcontainers/method_createorupdateimmutabilitypolicy.go +++ b/resource-manager/storage/2023-01-01/blobcontainers/method_createorupdateimmutabilitypolicy.go @@ -54,8 +54,8 @@ func (c BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/immutabilityPolicies/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/immutabilityPolicies/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/blobcontainers/method_deleteimmutabilitypolicy.go b/resource-manager/storage/2023-01-01/blobcontainers/method_deleteimmutabilitypolicy.go index e133376e6ae..71dcef6dd82 100644 --- a/resource-manager/storage/2023-01-01/blobcontainers/method_deleteimmutabilitypolicy.go +++ b/resource-manager/storage/2023-01-01/blobcontainers/method_deleteimmutabilitypolicy.go @@ -54,8 +54,8 @@ func (c BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/immutabilityPolicies/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/immutabilityPolicies/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/blobcontainers/method_extendimmutabilitypolicy.go b/resource-manager/storage/2023-01-01/blobcontainers/method_extendimmutabilitypolicy.go index bf4fcd69d56..e2b3562b6e6 100644 --- a/resource-manager/storage/2023-01-01/blobcontainers/method_extendimmutabilitypolicy.go +++ b/resource-manager/storage/2023-01-01/blobcontainers/method_extendimmutabilitypolicy.go @@ -54,8 +54,8 @@ func (c BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/immutabilityPolicies/default/extend", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/immutabilityPolicies/default/extend", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/blobcontainers/method_getimmutabilitypolicy.go b/resource-manager/storage/2023-01-01/blobcontainers/method_getimmutabilitypolicy.go index a00be34f7d9..a86d0abab3f 100644 --- a/resource-manager/storage/2023-01-01/blobcontainers/method_getimmutabilitypolicy.go +++ b/resource-manager/storage/2023-01-01/blobcontainers/method_getimmutabilitypolicy.go @@ -54,8 +54,8 @@ func (c BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/immutabilityPolicies/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/immutabilityPolicies/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/blobcontainers/method_list.go b/resource-manager/storage/2023-01-01/blobcontainers/method_list.go index 75c25f2a6be..7e4f85cf9f4 100644 --- a/resource-manager/storage/2023-01-01/blobcontainers/method_list.go +++ b/resource-manager/storage/2023-01-01/blobcontainers/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BlobContainersClient) List(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c BlobContainersClient) List(ctx context.Context, id commonids.StorageAcco http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/blobServices/default/containers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/blobServices/default/containers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/blobcontainers/method_lockimmutabilitypolicy.go b/resource-manager/storage/2023-01-01/blobcontainers/method_lockimmutabilitypolicy.go index c3dad0aa33d..613d1a91b0f 100644 --- a/resource-manager/storage/2023-01-01/blobcontainers/method_lockimmutabilitypolicy.go +++ b/resource-manager/storage/2023-01-01/blobcontainers/method_lockimmutabilitypolicy.go @@ -54,8 +54,8 @@ func (c BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/immutabilityPolicies/default/lock", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/immutabilityPolicies/default/lock", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/deletedaccounts/method_list.go b/resource-manager/storage/2023-01-01/deletedaccounts/method_list.go index 6281f25862f..69aa3a2df35 100644 --- a/resource-manager/storage/2023-01-01/deletedaccounts/method_list.go +++ b/resource-manager/storage/2023-01-01/deletedaccounts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DeletedAccount } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeletedAccountsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeletedAccountsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Storage/deletedAccounts", id.ID()), } diff --git a/resource-manager/storage/2023-01-01/encryptionscopes/method_list.go b/resource-manager/storage/2023-01-01/encryptionscopes/method_list.go index 3f69d7f4b84..270b8f24cf7 100644 --- a/resource-manager/storage/2023-01-01/encryptionscopes/method_list.go +++ b/resource-manager/storage/2023-01-01/encryptionscopes/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EncryptionScopesClient) List(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c EncryptionScopesClient) List(ctx context.Context, id commonids.StorageAc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/encryptionScopes", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/encryptionScopes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/fileshares/method_create.go b/resource-manager/storage/2023-01-01/fileshares/method_create.go index 9e5d1fc0b91..3f1b71f5e91 100644 --- a/resource-manager/storage/2023-01-01/fileshares/method_create.go +++ b/resource-manager/storage/2023-01-01/fileshares/method_create.go @@ -54,8 +54,8 @@ func (c FileSharesClient) Create(ctx context.Context, id ShareId, input FileShar http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/fileshares/method_delete.go b/resource-manager/storage/2023-01-01/fileshares/method_delete.go index ebfe201e961..5149309d141 100644 --- a/resource-manager/storage/2023-01-01/fileshares/method_delete.go +++ b/resource-manager/storage/2023-01-01/fileshares/method_delete.go @@ -56,8 +56,8 @@ func (c FileSharesClient) Delete(ctx context.Context, id ShareId, options Delete http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/fileshares/method_get.go b/resource-manager/storage/2023-01-01/fileshares/method_get.go index 25753bf56e4..b20b8f157e0 100644 --- a/resource-manager/storage/2023-01-01/fileshares/method_get.go +++ b/resource-manager/storage/2023-01-01/fileshares/method_get.go @@ -56,8 +56,8 @@ func (c FileSharesClient) Get(ctx context.Context, id ShareId, options GetOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/fileshares/method_lease.go b/resource-manager/storage/2023-01-01/fileshares/method_lease.go index 6cc9ad87bc7..45f4fab799b 100644 --- a/resource-manager/storage/2023-01-01/fileshares/method_lease.go +++ b/resource-manager/storage/2023-01-01/fileshares/method_lease.go @@ -53,8 +53,8 @@ func (c FileSharesClient) Lease(ctx context.Context, id ShareId, input LeaseShar http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/lease", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/lease", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/fileshares/method_list.go b/resource-manager/storage/2023-01-01/fileshares/method_list.go index 0813793b9a5..6c096ded1b0 100644 --- a/resource-manager/storage/2023-01-01/fileshares/method_list.go +++ b/resource-manager/storage/2023-01-01/fileshares/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FileSharesClient) List(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c FileSharesClient) List(ctx context.Context, id commonids.StorageAccountI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/fileServices/default/shares", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/fileServices/default/shares", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/queueservice/method_queuelist.go b/resource-manager/storage/2023-01-01/queueservice/method_queuelist.go index 07675390302..318e140f7d5 100644 --- a/resource-manager/storage/2023-01-01/queueservice/method_queuelist.go +++ b/resource-manager/storage/2023-01-01/queueservice/method_queuelist.go @@ -55,6 +55,18 @@ func (o QueueListOperationOptions) ToQuery() *client.QueryParams { return &out } +type QueueListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *QueueListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // QueueList ... func (c QueueServiceClient) QueueList(ctx context.Context, id commonids.StorageAccountId, options QueueListOperationOptions) (result QueueListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c QueueServiceClient) QueueList(ctx context.Context, id commonids.StorageA http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/queueServices/default/queues", id.ID()), OptionsObject: options, + Pager: &QueueListCustomPager{}, + Path: fmt.Sprintf("%s/queueServices/default/queues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/storageaccounts/method_failover.go b/resource-manager/storage/2023-01-01/storageaccounts/method_failover.go index 48b41c7cf8d..232206ae331 100644 --- a/resource-manager/storage/2023-01-01/storageaccounts/method_failover.go +++ b/resource-manager/storage/2023-01-01/storageaccounts/method_failover.go @@ -57,8 +57,8 @@ func (c StorageAccountsClient) Failover(ctx context.Context, id commonids.Storag http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/failover", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/failover", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/storageaccounts/method_getproperties.go b/resource-manager/storage/2023-01-01/storageaccounts/method_getproperties.go index 4a7e19f589d..0670e27212f 100644 --- a/resource-manager/storage/2023-01-01/storageaccounts/method_getproperties.go +++ b/resource-manager/storage/2023-01-01/storageaccounts/method_getproperties.go @@ -54,8 +54,8 @@ func (c StorageAccountsClient) GetProperties(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/storageaccounts/method_hierarchicalnamespacemigration.go b/resource-manager/storage/2023-01-01/storageaccounts/method_hierarchicalnamespacemigration.go index 7d045a3f50f..aacd24aa153 100644 --- a/resource-manager/storage/2023-01-01/storageaccounts/method_hierarchicalnamespacemigration.go +++ b/resource-manager/storage/2023-01-01/storageaccounts/method_hierarchicalnamespacemigration.go @@ -57,8 +57,8 @@ func (c StorageAccountsClient) HierarchicalNamespaceMigration(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/hnsonmigration", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/hnsonmigration", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/storageaccounts/method_list.go b/resource-manager/storage/2023-01-01/storageaccounts/method_list.go index ba8600da3c7..33b9fbf81a2 100644 --- a/resource-manager/storage/2023-01-01/storageaccounts/method_list.go +++ b/resource-manager/storage/2023-01-01/storageaccounts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []StorageAccount } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StorageAccountsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StorageAccountsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Storage/storageAccounts", id.ID()), } diff --git a/resource-manager/storage/2023-01-01/storageaccounts/method_listbyresourcegroup.go b/resource-manager/storage/2023-01-01/storageaccounts/method_listbyresourcegroup.go index 01a8c8b02d1..2804ed13908 100644 --- a/resource-manager/storage/2023-01-01/storageaccounts/method_listbyresourcegroup.go +++ b/resource-manager/storage/2023-01-01/storageaccounts/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []StorageAccount } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c StorageAccountsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StorageAccountsClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Storage/storageAccounts", id.ID()), } diff --git a/resource-manager/storage/2023-01-01/storageaccounts/method_listkeys.go b/resource-manager/storage/2023-01-01/storageaccounts/method_listkeys.go index 6261bd06a98..2d73921315f 100644 --- a/resource-manager/storage/2023-01-01/storageaccounts/method_listkeys.go +++ b/resource-manager/storage/2023-01-01/storageaccounts/method_listkeys.go @@ -54,8 +54,8 @@ func (c StorageAccountsClient) ListKeys(ctx context.Context, id commonids.Storag http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listKeys", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listKeys", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-01-01/tableservice/method_tablelist.go b/resource-manager/storage/2023-01-01/tableservice/method_tablelist.go index 27b25b875f6..cf60c202775 100644 --- a/resource-manager/storage/2023-01-01/tableservice/method_tablelist.go +++ b/resource-manager/storage/2023-01-01/tableservice/method_tablelist.go @@ -24,6 +24,18 @@ type TableListCompleteResult struct { Items []Table } +type TableListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TableListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TableList ... func (c TableServiceClient) TableList(ctx context.Context, id commonids.StorageAccountId) (result TableListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TableServiceClient) TableList(ctx context.Context, id commonids.StorageA http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &TableListCustomPager{}, Path: fmt.Sprintf("%s/tableServices/default/tables", id.ID()), } diff --git a/resource-manager/storage/2023-05-01/blobcontainers/method_createorupdateimmutabilitypolicy.go b/resource-manager/storage/2023-05-01/blobcontainers/method_createorupdateimmutabilitypolicy.go index dee60925ab9..d5d71851073 100644 --- a/resource-manager/storage/2023-05-01/blobcontainers/method_createorupdateimmutabilitypolicy.go +++ b/resource-manager/storage/2023-05-01/blobcontainers/method_createorupdateimmutabilitypolicy.go @@ -54,8 +54,8 @@ func (c BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/immutabilityPolicies/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/immutabilityPolicies/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/blobcontainers/method_deleteimmutabilitypolicy.go b/resource-manager/storage/2023-05-01/blobcontainers/method_deleteimmutabilitypolicy.go index e133376e6ae..71dcef6dd82 100644 --- a/resource-manager/storage/2023-05-01/blobcontainers/method_deleteimmutabilitypolicy.go +++ b/resource-manager/storage/2023-05-01/blobcontainers/method_deleteimmutabilitypolicy.go @@ -54,8 +54,8 @@ func (c BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/immutabilityPolicies/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/immutabilityPolicies/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/blobcontainers/method_extendimmutabilitypolicy.go b/resource-manager/storage/2023-05-01/blobcontainers/method_extendimmutabilitypolicy.go index bf4fcd69d56..e2b3562b6e6 100644 --- a/resource-manager/storage/2023-05-01/blobcontainers/method_extendimmutabilitypolicy.go +++ b/resource-manager/storage/2023-05-01/blobcontainers/method_extendimmutabilitypolicy.go @@ -54,8 +54,8 @@ func (c BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/immutabilityPolicies/default/extend", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/immutabilityPolicies/default/extend", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/blobcontainers/method_getimmutabilitypolicy.go b/resource-manager/storage/2023-05-01/blobcontainers/method_getimmutabilitypolicy.go index a00be34f7d9..a86d0abab3f 100644 --- a/resource-manager/storage/2023-05-01/blobcontainers/method_getimmutabilitypolicy.go +++ b/resource-manager/storage/2023-05-01/blobcontainers/method_getimmutabilitypolicy.go @@ -54,8 +54,8 @@ func (c BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/immutabilityPolicies/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/immutabilityPolicies/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/blobcontainers/method_list.go b/resource-manager/storage/2023-05-01/blobcontainers/method_list.go index 75c25f2a6be..7e4f85cf9f4 100644 --- a/resource-manager/storage/2023-05-01/blobcontainers/method_list.go +++ b/resource-manager/storage/2023-05-01/blobcontainers/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c BlobContainersClient) List(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c BlobContainersClient) List(ctx context.Context, id commonids.StorageAcco http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/blobServices/default/containers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/blobServices/default/containers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/blobcontainers/method_lockimmutabilitypolicy.go b/resource-manager/storage/2023-05-01/blobcontainers/method_lockimmutabilitypolicy.go index c3dad0aa33d..613d1a91b0f 100644 --- a/resource-manager/storage/2023-05-01/blobcontainers/method_lockimmutabilitypolicy.go +++ b/resource-manager/storage/2023-05-01/blobcontainers/method_lockimmutabilitypolicy.go @@ -54,8 +54,8 @@ func (c BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/immutabilityPolicies/default/lock", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/immutabilityPolicies/default/lock", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/deletedaccounts/method_list.go b/resource-manager/storage/2023-05-01/deletedaccounts/method_list.go index 6281f25862f..69aa3a2df35 100644 --- a/resource-manager/storage/2023-05-01/deletedaccounts/method_list.go +++ b/resource-manager/storage/2023-05-01/deletedaccounts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DeletedAccount } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeletedAccountsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeletedAccountsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Storage/deletedAccounts", id.ID()), } diff --git a/resource-manager/storage/2023-05-01/encryptionscopes/method_list.go b/resource-manager/storage/2023-05-01/encryptionscopes/method_list.go index 3f69d7f4b84..270b8f24cf7 100644 --- a/resource-manager/storage/2023-05-01/encryptionscopes/method_list.go +++ b/resource-manager/storage/2023-05-01/encryptionscopes/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EncryptionScopesClient) List(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c EncryptionScopesClient) List(ctx context.Context, id commonids.StorageAc http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/encryptionScopes", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/encryptionScopes", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/fileshares/method_create.go b/resource-manager/storage/2023-05-01/fileshares/method_create.go index 9e5d1fc0b91..3f1b71f5e91 100644 --- a/resource-manager/storage/2023-05-01/fileshares/method_create.go +++ b/resource-manager/storage/2023-05-01/fileshares/method_create.go @@ -54,8 +54,8 @@ func (c FileSharesClient) Create(ctx context.Context, id ShareId, input FileShar http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/fileshares/method_delete.go b/resource-manager/storage/2023-05-01/fileshares/method_delete.go index ebfe201e961..5149309d141 100644 --- a/resource-manager/storage/2023-05-01/fileshares/method_delete.go +++ b/resource-manager/storage/2023-05-01/fileshares/method_delete.go @@ -56,8 +56,8 @@ func (c FileSharesClient) Delete(ctx context.Context, id ShareId, options Delete http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/fileshares/method_get.go b/resource-manager/storage/2023-05-01/fileshares/method_get.go index 25753bf56e4..b20b8f157e0 100644 --- a/resource-manager/storage/2023-05-01/fileshares/method_get.go +++ b/resource-manager/storage/2023-05-01/fileshares/method_get.go @@ -56,8 +56,8 @@ func (c FileSharesClient) Get(ctx context.Context, id ShareId, options GetOperat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/fileshares/method_lease.go b/resource-manager/storage/2023-05-01/fileshares/method_lease.go index 6cc9ad87bc7..45f4fab799b 100644 --- a/resource-manager/storage/2023-05-01/fileshares/method_lease.go +++ b/resource-manager/storage/2023-05-01/fileshares/method_lease.go @@ -53,8 +53,8 @@ func (c FileSharesClient) Lease(ctx context.Context, id ShareId, input LeaseShar http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/lease", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/lease", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/fileshares/method_list.go b/resource-manager/storage/2023-05-01/fileshares/method_list.go index 0813793b9a5..6c096ded1b0 100644 --- a/resource-manager/storage/2023-05-01/fileshares/method_list.go +++ b/resource-manager/storage/2023-05-01/fileshares/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c FileSharesClient) List(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c FileSharesClient) List(ctx context.Context, id commonids.StorageAccountI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/fileServices/default/shares", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/fileServices/default/shares", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/localusers/method_list.go b/resource-manager/storage/2023-05-01/localusers/method_list.go index aadb4374868..f95895afe80 100644 --- a/resource-manager/storage/2023-05-01/localusers/method_list.go +++ b/resource-manager/storage/2023-05-01/localusers/method_list.go @@ -59,6 +59,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c LocalUsersClient) List(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -67,8 +79,9 @@ func (c LocalUsersClient) List(ctx context.Context, id commonids.StorageAccountI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/localUsers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/localUsers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/queueservice/method_queuelist.go b/resource-manager/storage/2023-05-01/queueservice/method_queuelist.go index 07675390302..318e140f7d5 100644 --- a/resource-manager/storage/2023-05-01/queueservice/method_queuelist.go +++ b/resource-manager/storage/2023-05-01/queueservice/method_queuelist.go @@ -55,6 +55,18 @@ func (o QueueListOperationOptions) ToQuery() *client.QueryParams { return &out } +type QueueListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *QueueListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // QueueList ... func (c QueueServiceClient) QueueList(ctx context.Context, id commonids.StorageAccountId, options QueueListOperationOptions) (result QueueListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c QueueServiceClient) QueueList(ctx context.Context, id commonids.StorageA http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/queueServices/default/queues", id.ID()), OptionsObject: options, + Pager: &QueueListCustomPager{}, + Path: fmt.Sprintf("%s/queueServices/default/queues", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/storageaccounts/method_failover.go b/resource-manager/storage/2023-05-01/storageaccounts/method_failover.go index 48b41c7cf8d..232206ae331 100644 --- a/resource-manager/storage/2023-05-01/storageaccounts/method_failover.go +++ b/resource-manager/storage/2023-05-01/storageaccounts/method_failover.go @@ -57,8 +57,8 @@ func (c StorageAccountsClient) Failover(ctx context.Context, id commonids.Storag http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/failover", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/failover", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/storageaccounts/method_getproperties.go b/resource-manager/storage/2023-05-01/storageaccounts/method_getproperties.go index 4a7e19f589d..0670e27212f 100644 --- a/resource-manager/storage/2023-05-01/storageaccounts/method_getproperties.go +++ b/resource-manager/storage/2023-05-01/storageaccounts/method_getproperties.go @@ -54,8 +54,8 @@ func (c StorageAccountsClient) GetProperties(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/storageaccounts/method_hierarchicalnamespacemigration.go b/resource-manager/storage/2023-05-01/storageaccounts/method_hierarchicalnamespacemigration.go index 7d045a3f50f..aacd24aa153 100644 --- a/resource-manager/storage/2023-05-01/storageaccounts/method_hierarchicalnamespacemigration.go +++ b/resource-manager/storage/2023-05-01/storageaccounts/method_hierarchicalnamespacemigration.go @@ -57,8 +57,8 @@ func (c StorageAccountsClient) HierarchicalNamespaceMigration(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/hnsonmigration", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/hnsonmigration", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/storageaccounts/method_list.go b/resource-manager/storage/2023-05-01/storageaccounts/method_list.go index ba8600da3c7..33b9fbf81a2 100644 --- a/resource-manager/storage/2023-05-01/storageaccounts/method_list.go +++ b/resource-manager/storage/2023-05-01/storageaccounts/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []StorageAccount } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StorageAccountsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StorageAccountsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Storage/storageAccounts", id.ID()), } diff --git a/resource-manager/storage/2023-05-01/storageaccounts/method_listbyresourcegroup.go b/resource-manager/storage/2023-05-01/storageaccounts/method_listbyresourcegroup.go index 01a8c8b02d1..2804ed13908 100644 --- a/resource-manager/storage/2023-05-01/storageaccounts/method_listbyresourcegroup.go +++ b/resource-manager/storage/2023-05-01/storageaccounts/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []StorageAccount } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c StorageAccountsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StorageAccountsClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Storage/storageAccounts", id.ID()), } diff --git a/resource-manager/storage/2023-05-01/storageaccounts/method_listkeys.go b/resource-manager/storage/2023-05-01/storageaccounts/method_listkeys.go index 6261bd06a98..2d73921315f 100644 --- a/resource-manager/storage/2023-05-01/storageaccounts/method_listkeys.go +++ b/resource-manager/storage/2023-05-01/storageaccounts/method_listkeys.go @@ -54,8 +54,8 @@ func (c StorageAccountsClient) ListKeys(ctx context.Context, id commonids.Storag http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/listKeys", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/listKeys", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/method_networksecurityperimeterconfigurationslist.go b/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/method_networksecurityperimeterconfigurationslist.go index 8ad45d31488..59ff6cccbfb 100644 --- a/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/method_networksecurityperimeterconfigurationslist.go +++ b/resource-manager/storage/2023-05-01/storageaccountsnetworksecurityperimeterconfigurations/method_networksecurityperimeterconfigurationslist.go @@ -24,6 +24,18 @@ type NetworkSecurityPerimeterConfigurationsListCompleteResult struct { Items []NetworkSecurityPerimeterConfiguration } +type NetworkSecurityPerimeterConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkSecurityPerimeterConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // NetworkSecurityPerimeterConfigurationsList ... func (c StorageAccountsNetworkSecurityPerimeterConfigurationsClient) NetworkSecurityPerimeterConfigurationsList(ctx context.Context, id commonids.StorageAccountId) (result NetworkSecurityPerimeterConfigurationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StorageAccountsNetworkSecurityPerimeterConfigurationsClient) NetworkSecu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &NetworkSecurityPerimeterConfigurationsListCustomPager{}, Path: fmt.Sprintf("%s/networkSecurityPerimeterConfigurations", id.ID()), } diff --git a/resource-manager/storage/2023-05-01/storagetaskassignments/method_instancesreportlist.go b/resource-manager/storage/2023-05-01/storagetaskassignments/method_instancesreportlist.go index 4740d7daed4..30b6702fcd6 100644 --- a/resource-manager/storage/2023-05-01/storagetaskassignments/method_instancesreportlist.go +++ b/resource-manager/storage/2023-05-01/storagetaskassignments/method_instancesreportlist.go @@ -55,6 +55,18 @@ func (o InstancesReportListOperationOptions) ToQuery() *client.QueryParams { return &out } +type InstancesReportListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *InstancesReportListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // InstancesReportList ... func (c StorageTaskAssignmentsClient) InstancesReportList(ctx context.Context, id commonids.StorageAccountId, options InstancesReportListOperationOptions) (result InstancesReportListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c StorageTaskAssignmentsClient) InstancesReportList(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports", id.ID()), OptionsObject: options, + Pager: &InstancesReportListCustomPager{}, + Path: fmt.Sprintf("%s/reports", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/storagetaskassignments/method_list.go b/resource-manager/storage/2023-05-01/storagetaskassignments/method_list.go index 5110aaccda3..cd5eaa88f19 100644 --- a/resource-manager/storage/2023-05-01/storagetaskassignments/method_list.go +++ b/resource-manager/storage/2023-05-01/storagetaskassignments/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StorageTaskAssignmentsClient) List(ctx context.Context, id commonids.StorageAccountId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c StorageTaskAssignmentsClient) List(ctx context.Context, id commonids.Sto http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/storageTaskAssignments", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/storageTaskAssignments", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/storagetaskassignments/method_storagetaskassignmentinstancesreportlist.go b/resource-manager/storage/2023-05-01/storagetaskassignments/method_storagetaskassignmentinstancesreportlist.go index a4d35bf48b4..aa19a466da9 100644 --- a/resource-manager/storage/2023-05-01/storagetaskassignments/method_storagetaskassignmentinstancesreportlist.go +++ b/resource-manager/storage/2023-05-01/storagetaskassignments/method_storagetaskassignmentinstancesreportlist.go @@ -54,6 +54,18 @@ func (o StorageTaskAssignmentInstancesReportListOperationOptions) ToQuery() *cli return &out } +type StorageTaskAssignmentInstancesReportListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *StorageTaskAssignmentInstancesReportListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // StorageTaskAssignmentInstancesReportList ... func (c StorageTaskAssignmentsClient) StorageTaskAssignmentInstancesReportList(ctx context.Context, id StorageTaskAssignmentId, options StorageTaskAssignmentInstancesReportListOperationOptions) (result StorageTaskAssignmentInstancesReportListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c StorageTaskAssignmentsClient) StorageTaskAssignmentInstancesReportList(c http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/reports", id.ID()), OptionsObject: options, + Pager: &StorageTaskAssignmentInstancesReportListCustomPager{}, + Path: fmt.Sprintf("%s/reports", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storage/2023-05-01/tableservice/method_tablelist.go b/resource-manager/storage/2023-05-01/tableservice/method_tablelist.go index 27b25b875f6..cf60c202775 100644 --- a/resource-manager/storage/2023-05-01/tableservice/method_tablelist.go +++ b/resource-manager/storage/2023-05-01/tableservice/method_tablelist.go @@ -24,6 +24,18 @@ type TableListCompleteResult struct { Items []Table } +type TableListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *TableListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // TableList ... func (c TableServiceClient) TableList(ctx context.Context, id commonids.StorageAccountId) (result TableListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TableServiceClient) TableList(ctx context.Context, id commonids.StorageA http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &TableListCustomPager{}, Path: fmt.Sprintf("%s/tableServices/default/tables", id.ID()), } diff --git a/resource-manager/storagecache/2023-05-01/amlfilesystems/method_list.go b/resource-manager/storagecache/2023-05-01/amlfilesystems/method_list.go index 2bf22ce15fe..6da4d7dec09 100644 --- a/resource-manager/storagecache/2023-05-01/amlfilesystems/method_list.go +++ b/resource-manager/storagecache/2023-05-01/amlfilesystems/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AmlFilesystem } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AmlFilesystemsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AmlFilesystemsClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageCache/amlFilesystems", id.ID()), } diff --git a/resource-manager/storagecache/2023-05-01/amlfilesystems/method_listbyresourcegroup.go b/resource-manager/storagecache/2023-05-01/amlfilesystems/method_listbyresourcegroup.go index 8658237c516..38e38601c61 100644 --- a/resource-manager/storagecache/2023-05-01/amlfilesystems/method_listbyresourcegroup.go +++ b/resource-manager/storagecache/2023-05-01/amlfilesystems/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AmlFilesystem } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AmlFilesystemsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AmlFilesystemsClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageCache/amlFilesystems", id.ID()), } diff --git a/resource-manager/storagecache/2023-05-01/ascusages/method_list.go b/resource-manager/storagecache/2023-05-01/ascusages/method_list.go index eac788dced8..bc59ea94f0b 100644 --- a/resource-manager/storagecache/2023-05-01/ascusages/method_list.go +++ b/resource-manager/storagecache/2023-05-01/ascusages/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ResourceUsage } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AscUsagesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AscUsagesClient) List(ctx context.Context, id LocationId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/storagecache/2023-05-01/caches/method_list.go b/resource-manager/storagecache/2023-05-01/caches/method_list.go index a11420e84b6..40a0ff23301 100644 --- a/resource-manager/storagecache/2023-05-01/caches/method_list.go +++ b/resource-manager/storagecache/2023-05-01/caches/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cache } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CachesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CachesClient) List(ctx context.Context, id commonids.SubscriptionId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageCache/caches", id.ID()), } diff --git a/resource-manager/storagecache/2023-05-01/caches/method_listbyresourcegroup.go b/resource-manager/storagecache/2023-05-01/caches/method_listbyresourcegroup.go index dd1bd354432..6d1f66d9721 100644 --- a/resource-manager/storagecache/2023-05-01/caches/method_listbyresourcegroup.go +++ b/resource-manager/storagecache/2023-05-01/caches/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cache } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CachesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CachesClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageCache/caches", id.ID()), } diff --git a/resource-manager/storagecache/2023-05-01/skus/method_list.go b/resource-manager/storagecache/2023-05-01/skus/method_list.go index cf4979ace69..3b2b13a5c9b 100644 --- a/resource-manager/storagecache/2023-05-01/skus/method_list.go +++ b/resource-manager/storagecache/2023-05-01/skus/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ResourceSku } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SKUsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SKUsClient) List(ctx context.Context, id commonids.SubscriptionId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageCache/skus", id.ID()), } diff --git a/resource-manager/storagecache/2023-05-01/storagetargets/method_delete.go b/resource-manager/storagecache/2023-05-01/storagetargets/method_delete.go index 504473e8fd3..efd1a49d34b 100644 --- a/resource-manager/storagecache/2023-05-01/storagetargets/method_delete.go +++ b/resource-manager/storagecache/2023-05-01/storagetargets/method_delete.go @@ -57,8 +57,8 @@ func (c StorageTargetsClient) Delete(ctx context.Context, id StorageTargetId, op http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storagecache/2023-05-01/storagetargets/method_listbycache.go b/resource-manager/storagecache/2023-05-01/storagetargets/method_listbycache.go index c71cabc6b0f..21f29c197e4 100644 --- a/resource-manager/storagecache/2023-05-01/storagetargets/method_listbycache.go +++ b/resource-manager/storagecache/2023-05-01/storagetargets/method_listbycache.go @@ -23,6 +23,18 @@ type ListByCacheCompleteResult struct { Items []StorageTarget } +type ListByCacheCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCacheCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCache ... func (c StorageTargetsClient) ListByCache(ctx context.Context, id CacheId) (result ListByCacheOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StorageTargetsClient) ListByCache(ctx context.Context, id CacheId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCacheCustomPager{}, Path: fmt.Sprintf("%s/storageTargets", id.ID()), } diff --git a/resource-manager/storagecache/2023-05-01/usagemodels/method_list.go b/resource-manager/storagecache/2023-05-01/usagemodels/method_list.go index e03888fed73..9987b445704 100644 --- a/resource-manager/storagecache/2023-05-01/usagemodels/method_list.go +++ b/resource-manager/storagecache/2023-05-01/usagemodels/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []UsageModel } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UsageModelsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c UsageModelsClient) List(ctx context.Context, id commonids.SubscriptionId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageCache/usageModels", id.ID()), } diff --git a/resource-manager/storagecache/2024-03-01/amlfilesystems/method_list.go b/resource-manager/storagecache/2024-03-01/amlfilesystems/method_list.go index 2bf22ce15fe..6da4d7dec09 100644 --- a/resource-manager/storagecache/2024-03-01/amlfilesystems/method_list.go +++ b/resource-manager/storagecache/2024-03-01/amlfilesystems/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AmlFilesystem } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AmlFilesystemsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AmlFilesystemsClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageCache/amlFilesystems", id.ID()), } diff --git a/resource-manager/storagecache/2024-03-01/amlfilesystems/method_listbyresourcegroup.go b/resource-manager/storagecache/2024-03-01/amlfilesystems/method_listbyresourcegroup.go index 8658237c516..38e38601c61 100644 --- a/resource-manager/storagecache/2024-03-01/amlfilesystems/method_listbyresourcegroup.go +++ b/resource-manager/storagecache/2024-03-01/amlfilesystems/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AmlFilesystem } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AmlFilesystemsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AmlFilesystemsClient) ListByResourceGroup(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageCache/amlFilesystems", id.ID()), } diff --git a/resource-manager/storagecache/2024-03-01/ascusages/method_list.go b/resource-manager/storagecache/2024-03-01/ascusages/method_list.go index eac788dced8..bc59ea94f0b 100644 --- a/resource-manager/storagecache/2024-03-01/ascusages/method_list.go +++ b/resource-manager/storagecache/2024-03-01/ascusages/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ResourceUsage } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AscUsagesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AscUsagesClient) List(ctx context.Context, id LocationId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/storagecache/2024-03-01/caches/method_list.go b/resource-manager/storagecache/2024-03-01/caches/method_list.go index a11420e84b6..40a0ff23301 100644 --- a/resource-manager/storagecache/2024-03-01/caches/method_list.go +++ b/resource-manager/storagecache/2024-03-01/caches/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Cache } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CachesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CachesClient) List(ctx context.Context, id commonids.SubscriptionId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageCache/caches", id.ID()), } diff --git a/resource-manager/storagecache/2024-03-01/caches/method_listbyresourcegroup.go b/resource-manager/storagecache/2024-03-01/caches/method_listbyresourcegroup.go index dd1bd354432..6d1f66d9721 100644 --- a/resource-manager/storagecache/2024-03-01/caches/method_listbyresourcegroup.go +++ b/resource-manager/storagecache/2024-03-01/caches/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cache } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CachesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CachesClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageCache/caches", id.ID()), } diff --git a/resource-manager/storagecache/2024-03-01/importjobs/method_listbyamlfilesystem.go b/resource-manager/storagecache/2024-03-01/importjobs/method_listbyamlfilesystem.go index 6394afbc1c4..7726eba8b18 100644 --- a/resource-manager/storagecache/2024-03-01/importjobs/method_listbyamlfilesystem.go +++ b/resource-manager/storagecache/2024-03-01/importjobs/method_listbyamlfilesystem.go @@ -23,6 +23,18 @@ type ListByAmlFilesystemCompleteResult struct { Items []ImportJob } +type ListByAmlFilesystemCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByAmlFilesystemCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByAmlFilesystem ... func (c ImportJobsClient) ListByAmlFilesystem(ctx context.Context, id AmlFilesystemId) (result ListByAmlFilesystemOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ImportJobsClient) ListByAmlFilesystem(ctx context.Context, id AmlFilesys http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByAmlFilesystemCustomPager{}, Path: fmt.Sprintf("%s/importJobs", id.ID()), } diff --git a/resource-manager/storagecache/2024-03-01/skus/method_list.go b/resource-manager/storagecache/2024-03-01/skus/method_list.go index cf4979ace69..3b2b13a5c9b 100644 --- a/resource-manager/storagecache/2024-03-01/skus/method_list.go +++ b/resource-manager/storagecache/2024-03-01/skus/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ResourceSku } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SKUsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SKUsClient) List(ctx context.Context, id commonids.SubscriptionId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageCache/skus", id.ID()), } diff --git a/resource-manager/storagecache/2024-03-01/storagetargets/method_delete.go b/resource-manager/storagecache/2024-03-01/storagetargets/method_delete.go index 504473e8fd3..efd1a49d34b 100644 --- a/resource-manager/storagecache/2024-03-01/storagetargets/method_delete.go +++ b/resource-manager/storagecache/2024-03-01/storagetargets/method_delete.go @@ -57,8 +57,8 @@ func (c StorageTargetsClient) Delete(ctx context.Context, id StorageTargetId, op http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/storagecache/2024-03-01/storagetargets/method_listbycache.go b/resource-manager/storagecache/2024-03-01/storagetargets/method_listbycache.go index c71cabc6b0f..21f29c197e4 100644 --- a/resource-manager/storagecache/2024-03-01/storagetargets/method_listbycache.go +++ b/resource-manager/storagecache/2024-03-01/storagetargets/method_listbycache.go @@ -23,6 +23,18 @@ type ListByCacheCompleteResult struct { Items []StorageTarget } +type ListByCacheCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCacheCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCache ... func (c StorageTargetsClient) ListByCache(ctx context.Context, id CacheId) (result ListByCacheOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StorageTargetsClient) ListByCache(ctx context.Context, id CacheId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCacheCustomPager{}, Path: fmt.Sprintf("%s/storageTargets", id.ID()), } diff --git a/resource-manager/storagecache/2024-03-01/usagemodels/method_list.go b/resource-manager/storagecache/2024-03-01/usagemodels/method_list.go index e03888fed73..9987b445704 100644 --- a/resource-manager/storagecache/2024-03-01/usagemodels/method_list.go +++ b/resource-manager/storagecache/2024-03-01/usagemodels/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []UsageModel } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c UsageModelsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c UsageModelsClient) List(ctx context.Context, id commonids.SubscriptionId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageCache/usageModels", id.ID()), } diff --git a/resource-manager/storagemover/2023-03-01/agents/method_list.go b/resource-manager/storagemover/2023-03-01/agents/method_list.go index bce87b35ad3..b46c8429b8d 100644 --- a/resource-manager/storagemover/2023-03-01/agents/method_list.go +++ b/resource-manager/storagemover/2023-03-01/agents/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Agent } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AgentsClient) List(ctx context.Context, id StorageMoverId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AgentsClient) List(ctx context.Context, id StorageMoverId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/agents", id.ID()), } diff --git a/resource-manager/storagemover/2023-03-01/endpoints/method_list.go b/resource-manager/storagemover/2023-03-01/endpoints/method_list.go index d0837766469..c6907a3130c 100644 --- a/resource-manager/storagemover/2023-03-01/endpoints/method_list.go +++ b/resource-manager/storagemover/2023-03-01/endpoints/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Endpoint } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EndpointsClient) List(ctx context.Context, id StorageMoverId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c EndpointsClient) List(ctx context.Context, id StorageMoverId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/endpoints", id.ID()), } diff --git a/resource-manager/storagemover/2023-03-01/jobdefinitions/method_list.go b/resource-manager/storagemover/2023-03-01/jobdefinitions/method_list.go index e08b7cafe23..83373757268 100644 --- a/resource-manager/storagemover/2023-03-01/jobdefinitions/method_list.go +++ b/resource-manager/storagemover/2023-03-01/jobdefinitions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []JobDefinition } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c JobDefinitionsClient) List(ctx context.Context, id ProjectId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobDefinitionsClient) List(ctx context.Context, id ProjectId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/jobDefinitions", id.ID()), } diff --git a/resource-manager/storagemover/2023-03-01/jobruns/method_list.go b/resource-manager/storagemover/2023-03-01/jobruns/method_list.go index 35f126872a1..bee748a25d7 100644 --- a/resource-manager/storagemover/2023-03-01/jobruns/method_list.go +++ b/resource-manager/storagemover/2023-03-01/jobruns/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []JobRun } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c JobRunsClient) List(ctx context.Context, id JobDefinitionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobRunsClient) List(ctx context.Context, id JobDefinitionId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/jobRuns", id.ID()), } diff --git a/resource-manager/storagemover/2023-03-01/projects/method_list.go b/resource-manager/storagemover/2023-03-01/projects/method_list.go index b262a0d8487..553e5b24543 100644 --- a/resource-manager/storagemover/2023-03-01/projects/method_list.go +++ b/resource-manager/storagemover/2023-03-01/projects/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Project } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProjectsClient) List(ctx context.Context, id StorageMoverId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProjectsClient) List(ctx context.Context, id StorageMoverId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/projects", id.ID()), } diff --git a/resource-manager/storagemover/2023-03-01/storagemovers/method_list.go b/resource-manager/storagemover/2023-03-01/storagemovers/method_list.go index d6036fc3416..659be08027a 100644 --- a/resource-manager/storagemover/2023-03-01/storagemovers/method_list.go +++ b/resource-manager/storagemover/2023-03-01/storagemovers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []StorageMover } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StorageMoversClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StorageMoversClient) List(ctx context.Context, id commonids.ResourceGrou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageMover/storageMovers", id.ID()), } diff --git a/resource-manager/storagemover/2023-03-01/storagemovers/method_listbysubscription.go b/resource-manager/storagemover/2023-03-01/storagemovers/method_listbysubscription.go index 2595232a3ca..bc160076c18 100644 --- a/resource-manager/storagemover/2023-03-01/storagemovers/method_listbysubscription.go +++ b/resource-manager/storagemover/2023-03-01/storagemovers/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []StorageMover } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c StorageMoversClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StorageMoversClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageMover/storageMovers", id.ID()), } diff --git a/resource-manager/storagemover/2023-10-01/agents/method_list.go b/resource-manager/storagemover/2023-10-01/agents/method_list.go index bce87b35ad3..b46c8429b8d 100644 --- a/resource-manager/storagemover/2023-10-01/agents/method_list.go +++ b/resource-manager/storagemover/2023-10-01/agents/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Agent } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AgentsClient) List(ctx context.Context, id StorageMoverId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AgentsClient) List(ctx context.Context, id StorageMoverId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/agents", id.ID()), } diff --git a/resource-manager/storagemover/2023-10-01/endpoints/method_list.go b/resource-manager/storagemover/2023-10-01/endpoints/method_list.go index d0837766469..c6907a3130c 100644 --- a/resource-manager/storagemover/2023-10-01/endpoints/method_list.go +++ b/resource-manager/storagemover/2023-10-01/endpoints/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Endpoint } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EndpointsClient) List(ctx context.Context, id StorageMoverId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c EndpointsClient) List(ctx context.Context, id StorageMoverId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/endpoints", id.ID()), } diff --git a/resource-manager/storagemover/2023-10-01/jobdefinitions/method_list.go b/resource-manager/storagemover/2023-10-01/jobdefinitions/method_list.go index e08b7cafe23..83373757268 100644 --- a/resource-manager/storagemover/2023-10-01/jobdefinitions/method_list.go +++ b/resource-manager/storagemover/2023-10-01/jobdefinitions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []JobDefinition } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c JobDefinitionsClient) List(ctx context.Context, id ProjectId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobDefinitionsClient) List(ctx context.Context, id ProjectId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/jobDefinitions", id.ID()), } diff --git a/resource-manager/storagemover/2023-10-01/jobruns/method_list.go b/resource-manager/storagemover/2023-10-01/jobruns/method_list.go index 35f126872a1..bee748a25d7 100644 --- a/resource-manager/storagemover/2023-10-01/jobruns/method_list.go +++ b/resource-manager/storagemover/2023-10-01/jobruns/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []JobRun } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c JobRunsClient) List(ctx context.Context, id JobDefinitionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobRunsClient) List(ctx context.Context, id JobDefinitionId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/jobRuns", id.ID()), } diff --git a/resource-manager/storagemover/2023-10-01/projects/method_list.go b/resource-manager/storagemover/2023-10-01/projects/method_list.go index b262a0d8487..553e5b24543 100644 --- a/resource-manager/storagemover/2023-10-01/projects/method_list.go +++ b/resource-manager/storagemover/2023-10-01/projects/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Project } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProjectsClient) List(ctx context.Context, id StorageMoverId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProjectsClient) List(ctx context.Context, id StorageMoverId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/projects", id.ID()), } diff --git a/resource-manager/storagemover/2023-10-01/storagemovers/method_list.go b/resource-manager/storagemover/2023-10-01/storagemovers/method_list.go index d6036fc3416..659be08027a 100644 --- a/resource-manager/storagemover/2023-10-01/storagemovers/method_list.go +++ b/resource-manager/storagemover/2023-10-01/storagemovers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []StorageMover } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StorageMoversClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StorageMoversClient) List(ctx context.Context, id commonids.ResourceGrou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageMover/storageMovers", id.ID()), } diff --git a/resource-manager/storagemover/2023-10-01/storagemovers/method_listbysubscription.go b/resource-manager/storagemover/2023-10-01/storagemovers/method_listbysubscription.go index 2595232a3ca..bc160076c18 100644 --- a/resource-manager/storagemover/2023-10-01/storagemovers/method_listbysubscription.go +++ b/resource-manager/storagemover/2023-10-01/storagemovers/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []StorageMover } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c StorageMoversClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StorageMoversClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageMover/storageMovers", id.ID()), } diff --git a/resource-manager/storagemover/2024-07-01/agents/method_list.go b/resource-manager/storagemover/2024-07-01/agents/method_list.go index bce87b35ad3..b46c8429b8d 100644 --- a/resource-manager/storagemover/2024-07-01/agents/method_list.go +++ b/resource-manager/storagemover/2024-07-01/agents/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Agent } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AgentsClient) List(ctx context.Context, id StorageMoverId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AgentsClient) List(ctx context.Context, id StorageMoverId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/agents", id.ID()), } diff --git a/resource-manager/storagemover/2024-07-01/endpoints/method_list.go b/resource-manager/storagemover/2024-07-01/endpoints/method_list.go index d0837766469..c6907a3130c 100644 --- a/resource-manager/storagemover/2024-07-01/endpoints/method_list.go +++ b/resource-manager/storagemover/2024-07-01/endpoints/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Endpoint } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EndpointsClient) List(ctx context.Context, id StorageMoverId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c EndpointsClient) List(ctx context.Context, id StorageMoverId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/endpoints", id.ID()), } diff --git a/resource-manager/storagemover/2024-07-01/jobdefinitions/method_list.go b/resource-manager/storagemover/2024-07-01/jobdefinitions/method_list.go index e08b7cafe23..83373757268 100644 --- a/resource-manager/storagemover/2024-07-01/jobdefinitions/method_list.go +++ b/resource-manager/storagemover/2024-07-01/jobdefinitions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []JobDefinition } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c JobDefinitionsClient) List(ctx context.Context, id ProjectId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobDefinitionsClient) List(ctx context.Context, id ProjectId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/jobDefinitions", id.ID()), } diff --git a/resource-manager/storagemover/2024-07-01/jobruns/method_list.go b/resource-manager/storagemover/2024-07-01/jobruns/method_list.go index 35f126872a1..bee748a25d7 100644 --- a/resource-manager/storagemover/2024-07-01/jobruns/method_list.go +++ b/resource-manager/storagemover/2024-07-01/jobruns/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []JobRun } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c JobRunsClient) List(ctx context.Context, id JobDefinitionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c JobRunsClient) List(ctx context.Context, id JobDefinitionId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/jobRuns", id.ID()), } diff --git a/resource-manager/storagemover/2024-07-01/projects/method_list.go b/resource-manager/storagemover/2024-07-01/projects/method_list.go index b262a0d8487..553e5b24543 100644 --- a/resource-manager/storagemover/2024-07-01/projects/method_list.go +++ b/resource-manager/storagemover/2024-07-01/projects/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Project } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProjectsClient) List(ctx context.Context, id StorageMoverId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProjectsClient) List(ctx context.Context, id StorageMoverId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/projects", id.ID()), } diff --git a/resource-manager/storagemover/2024-07-01/storagemovers/method_list.go b/resource-manager/storagemover/2024-07-01/storagemovers/method_list.go index d6036fc3416..659be08027a 100644 --- a/resource-manager/storagemover/2024-07-01/storagemovers/method_list.go +++ b/resource-manager/storagemover/2024-07-01/storagemovers/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []StorageMover } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StorageMoversClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StorageMoversClient) List(ctx context.Context, id commonids.ResourceGrou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageMover/storageMovers", id.ID()), } diff --git a/resource-manager/storagemover/2024-07-01/storagemovers/method_listbysubscription.go b/resource-manager/storagemover/2024-07-01/storagemovers/method_listbysubscription.go index 2595232a3ca..bc160076c18 100644 --- a/resource-manager/storagemover/2024-07-01/storagemovers/method_listbysubscription.go +++ b/resource-manager/storagemover/2024-07-01/storagemovers/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []StorageMover } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c StorageMoversClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StorageMoversClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StorageMover/storageMovers", id.ID()), } diff --git a/resource-manager/storagepool/2021-08-01/diskpools/method_listbyresourcegroup.go b/resource-manager/storagepool/2021-08-01/diskpools/method_listbyresourcegroup.go index 7eb6683dbcc..26cd5f60961 100644 --- a/resource-manager/storagepool/2021-08-01/diskpools/method_listbyresourcegroup.go +++ b/resource-manager/storagepool/2021-08-01/diskpools/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []DiskPool } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DiskPoolsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiskPoolsClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StoragePool/diskPools", id.ID()), } diff --git a/resource-manager/storagepool/2021-08-01/diskpools/method_listbysubscription.go b/resource-manager/storagepool/2021-08-01/diskpools/method_listbysubscription.go index 28b7269eb98..3daf991aa56 100644 --- a/resource-manager/storagepool/2021-08-01/diskpools/method_listbysubscription.go +++ b/resource-manager/storagepool/2021-08-01/diskpools/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []DiskPool } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c DiskPoolsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiskPoolsClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StoragePool/diskPools", id.ID()), } diff --git a/resource-manager/storagepool/2021-08-01/diskpools/method_listoutboundnetworkdependenciesendpoints.go b/resource-manager/storagepool/2021-08-01/diskpools/method_listoutboundnetworkdependenciesendpoints.go index ac2dc6b371e..6a5479f9bd8 100644 --- a/resource-manager/storagepool/2021-08-01/diskpools/method_listoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/storagepool/2021-08-01/diskpools/method_listoutboundnetworkdependenciesendpoints.go @@ -23,6 +23,18 @@ type ListOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type ListOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOutboundNetworkDependenciesEndpoints ... func (c DiskPoolsClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, id DiskPoolId) (result ListOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiskPoolsClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/storagepool/2021-08-01/diskpoolzones/method_list.go b/resource-manager/storagepool/2021-08-01/diskpoolzones/method_list.go index c2ae6317a5c..f60b10b8147 100644 --- a/resource-manager/storagepool/2021-08-01/diskpoolzones/method_list.go +++ b/resource-manager/storagepool/2021-08-01/diskpoolzones/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []DiskPoolZoneInfo } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DiskPoolZonesClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiskPoolZonesClient) List(ctx context.Context, id LocationId) (result Li http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/diskPoolZones", id.ID()), } diff --git a/resource-manager/storagepool/2021-08-01/iscsitargets/method_listbydiskpool.go b/resource-manager/storagepool/2021-08-01/iscsitargets/method_listbydiskpool.go index b99dace9907..3af7d86a1c4 100644 --- a/resource-manager/storagepool/2021-08-01/iscsitargets/method_listbydiskpool.go +++ b/resource-manager/storagepool/2021-08-01/iscsitargets/method_listbydiskpool.go @@ -23,6 +23,18 @@ type ListByDiskPoolCompleteResult struct { Items []IscsiTarget } +type ListByDiskPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByDiskPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByDiskPool ... func (c IscsiTargetsClient) ListByDiskPool(ctx context.Context, id DiskPoolId) (result ListByDiskPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IscsiTargetsClient) ListByDiskPool(ctx context.Context, id DiskPoolId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByDiskPoolCustomPager{}, Path: fmt.Sprintf("%s/iscsiTargets", id.ID()), } diff --git a/resource-manager/storagepool/2021-08-01/resourceskus/method_list.go b/resource-manager/storagepool/2021-08-01/resourceskus/method_list.go index 9a7e092442e..95414a76b19 100644 --- a/resource-manager/storagepool/2021-08-01/resourceskus/method_list.go +++ b/resource-manager/storagepool/2021-08-01/resourceskus/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ResourceSkuInfo } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourceSkusClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceSkusClient) List(ctx context.Context, id LocationId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/streamanalytics/2020-03-01/clusters/method_createorupdate.go b/resource-manager/streamanalytics/2020-03-01/clusters/method_createorupdate.go index a0817eb6bed..9e8ad9f9868 100644 --- a/resource-manager/streamanalytics/2020-03-01/clusters/method_createorupdate.go +++ b/resource-manager/streamanalytics/2020-03-01/clusters/method_createorupdate.go @@ -61,8 +61,8 @@ func (c ClustersClient) CreateOrUpdate(ctx context.Context, id ClusterId, input http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/clusters/method_listbyresourcegroup.go b/resource-manager/streamanalytics/2020-03-01/clusters/method_listbyresourcegroup.go index a1ffdbefec9..95851ff5f53 100644 --- a/resource-manager/streamanalytics/2020-03-01/clusters/method_listbyresourcegroup.go +++ b/resource-manager/streamanalytics/2020-03-01/clusters/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cluster } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StreamAnalytics/clusters", id.ID()), } diff --git a/resource-manager/streamanalytics/2020-03-01/clusters/method_listbysubscription.go b/resource-manager/streamanalytics/2020-03-01/clusters/method_listbysubscription.go index b6faca3a168..f3fd38f60be 100644 --- a/resource-manager/streamanalytics/2020-03-01/clusters/method_listbysubscription.go +++ b/resource-manager/streamanalytics/2020-03-01/clusters/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Cluster } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ClustersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ClustersClient) ListBySubscription(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.StreamAnalytics/clusters", id.ID()), } diff --git a/resource-manager/streamanalytics/2020-03-01/clusters/method_liststreamingjobs.go b/resource-manager/streamanalytics/2020-03-01/clusters/method_liststreamingjobs.go index 2ae6cd8a5fc..0554fda4dbb 100644 --- a/resource-manager/streamanalytics/2020-03-01/clusters/method_liststreamingjobs.go +++ b/resource-manager/streamanalytics/2020-03-01/clusters/method_liststreamingjobs.go @@ -23,6 +23,18 @@ type ListStreamingJobsCompleteResult struct { Items []ClusterJob } +type ListStreamingJobsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListStreamingJobsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListStreamingJobs ... func (c ClustersClient) ListStreamingJobs(ctx context.Context, id ClusterId) (result ListStreamingJobsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ClustersClient) ListStreamingJobs(ctx context.Context, id ClusterId) (re http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListStreamingJobsCustomPager{}, Path: fmt.Sprintf("%s/listStreamingJobs", id.ID()), } diff --git a/resource-manager/streamanalytics/2020-03-01/clusters/method_update.go b/resource-manager/streamanalytics/2020-03-01/clusters/method_update.go index dd58409344a..0f74f78f1a7 100644 --- a/resource-manager/streamanalytics/2020-03-01/clusters/method_update.go +++ b/resource-manager/streamanalytics/2020-03-01/clusters/method_update.go @@ -57,8 +57,8 @@ func (c ClustersClient) Update(ctx context.Context, id ClusterId, input Cluster, http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/functions/method_createorreplace.go b/resource-manager/streamanalytics/2020-03-01/functions/method_createorreplace.go index 7580e900438..7dea7554153 100644 --- a/resource-manager/streamanalytics/2020-03-01/functions/method_createorreplace.go +++ b/resource-manager/streamanalytics/2020-03-01/functions/method_createorreplace.go @@ -58,8 +58,8 @@ func (c FunctionsClient) CreateOrReplace(ctx context.Context, id FunctionId, inp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/functions/method_listbystreamingjob.go b/resource-manager/streamanalytics/2020-03-01/functions/method_listbystreamingjob.go index 447c0a55189..e468719df51 100644 --- a/resource-manager/streamanalytics/2020-03-01/functions/method_listbystreamingjob.go +++ b/resource-manager/streamanalytics/2020-03-01/functions/method_listbystreamingjob.go @@ -50,6 +50,18 @@ func (o ListByStreamingJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByStreamingJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByStreamingJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByStreamingJob ... func (c FunctionsClient) ListByStreamingJob(ctx context.Context, id StreamingJobId, options ListByStreamingJobOperationOptions) (result ListByStreamingJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c FunctionsClient) ListByStreamingJob(ctx context.Context, id StreamingJob http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/functions", id.ID()), OptionsObject: options, + Pager: &ListByStreamingJobCustomPager{}, + Path: fmt.Sprintf("%s/functions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/functions/method_update.go b/resource-manager/streamanalytics/2020-03-01/functions/method_update.go index 8bbc97ac52e..9a6b1d2d294 100644 --- a/resource-manager/streamanalytics/2020-03-01/functions/method_update.go +++ b/resource-manager/streamanalytics/2020-03-01/functions/method_update.go @@ -53,8 +53,8 @@ func (c FunctionsClient) Update(ctx context.Context, id FunctionId, input Functi http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/inputs/method_createorreplace.go b/resource-manager/streamanalytics/2020-03-01/inputs/method_createorreplace.go index 91764cfe010..e42ec1acffd 100644 --- a/resource-manager/streamanalytics/2020-03-01/inputs/method_createorreplace.go +++ b/resource-manager/streamanalytics/2020-03-01/inputs/method_createorreplace.go @@ -58,8 +58,8 @@ func (c InputsClient) CreateOrReplace(ctx context.Context, id InputId, input Inp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/inputs/method_listbystreamingjob.go b/resource-manager/streamanalytics/2020-03-01/inputs/method_listbystreamingjob.go index cedbc6ce639..4e682830afc 100644 --- a/resource-manager/streamanalytics/2020-03-01/inputs/method_listbystreamingjob.go +++ b/resource-manager/streamanalytics/2020-03-01/inputs/method_listbystreamingjob.go @@ -50,6 +50,18 @@ func (o ListByStreamingJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByStreamingJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByStreamingJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByStreamingJob ... func (c InputsClient) ListByStreamingJob(ctx context.Context, id StreamingJobId, options ListByStreamingJobOperationOptions) (result ListByStreamingJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c InputsClient) ListByStreamingJob(ctx context.Context, id StreamingJobId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/inputs", id.ID()), OptionsObject: options, + Pager: &ListByStreamingJobCustomPager{}, + Path: fmt.Sprintf("%s/inputs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/inputs/method_update.go b/resource-manager/streamanalytics/2020-03-01/inputs/method_update.go index 3f8508178ac..0291f7c2025 100644 --- a/resource-manager/streamanalytics/2020-03-01/inputs/method_update.go +++ b/resource-manager/streamanalytics/2020-03-01/inputs/method_update.go @@ -53,8 +53,8 @@ func (c InputsClient) Update(ctx context.Context, id InputId, input Input, optio http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/outputs/method_createorreplace.go b/resource-manager/streamanalytics/2020-03-01/outputs/method_createorreplace.go index e81310d3d75..8160d215384 100644 --- a/resource-manager/streamanalytics/2020-03-01/outputs/method_createorreplace.go +++ b/resource-manager/streamanalytics/2020-03-01/outputs/method_createorreplace.go @@ -58,8 +58,8 @@ func (c OutputsClient) CreateOrReplace(ctx context.Context, id OutputId, input O http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/outputs/method_listbystreamingjob.go b/resource-manager/streamanalytics/2020-03-01/outputs/method_listbystreamingjob.go index e77d7c7a447..f404f99b2d9 100644 --- a/resource-manager/streamanalytics/2020-03-01/outputs/method_listbystreamingjob.go +++ b/resource-manager/streamanalytics/2020-03-01/outputs/method_listbystreamingjob.go @@ -50,6 +50,18 @@ func (o ListByStreamingJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByStreamingJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByStreamingJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByStreamingJob ... func (c OutputsClient) ListByStreamingJob(ctx context.Context, id StreamingJobId, options ListByStreamingJobOperationOptions) (result ListByStreamingJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c OutputsClient) ListByStreamingJob(ctx context.Context, id StreamingJobId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/outputs", id.ID()), OptionsObject: options, + Pager: &ListByStreamingJobCustomPager{}, + Path: fmt.Sprintf("%s/outputs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/outputs/method_update.go b/resource-manager/streamanalytics/2020-03-01/outputs/method_update.go index 36959c15f98..ab568fb27d8 100644 --- a/resource-manager/streamanalytics/2020-03-01/outputs/method_update.go +++ b/resource-manager/streamanalytics/2020-03-01/outputs/method_update.go @@ -53,8 +53,8 @@ func (c OutputsClient) Update(ctx context.Context, id OutputId, input Output, op http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_createorupdate.go b/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_createorupdate.go index b8e2bafa454..0e1edc5918b 100644 --- a/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_createorupdate.go +++ b/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_createorupdate.go @@ -58,8 +58,8 @@ func (c PrivateEndpointsClient) CreateOrUpdate(ctx context.Context, id PrivateEn http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_listbycluster.go b/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_listbycluster.go index ee072a17045..489bc12990b 100644 --- a/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_listbycluster.go +++ b/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_listbycluster.go @@ -23,6 +23,18 @@ type ListByClusterCompleteResult struct { Items []PrivateEndpoint } +type ListByClusterCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByClusterCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCluster ... func (c PrivateEndpointsClient) ListByCluster(ctx context.Context, id ClusterId) (result ListByClusterOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointsClient) ListByCluster(ctx context.Context, id ClusterId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByClusterCustomPager{}, Path: fmt.Sprintf("%s/privateEndpoints", id.ID()), } diff --git a/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_createorreplace.go b/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_createorreplace.go index 95d9cbcf619..f332e84e344 100644 --- a/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_createorreplace.go +++ b/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_createorreplace.go @@ -61,8 +61,8 @@ func (c StreamingJobsClient) CreateOrReplace(ctx context.Context, id StreamingJo http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_get.go b/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_get.go index 33a9b3b0de5..dde10e46823 100644 --- a/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_get.go +++ b/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_get.go @@ -53,8 +53,8 @@ func (c StreamingJobsClient) Get(ctx context.Context, id StreamingJobId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_list.go b/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_list.go index 1a16f952269..eb50ec400db 100644 --- a/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_list.go +++ b/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StreamingJobsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c StreamingJobsClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.StreamAnalytics/streamingJobs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.StreamAnalytics/streamingJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_listbyresourcegroup.go b/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_listbyresourcegroup.go index 502a3bc30f5..c3baa38df09 100644 --- a/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_listbyresourcegroup.go +++ b/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c StreamingJobsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c StreamingJobsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.StreamAnalytics/streamingJobs", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.StreamAnalytics/streamingJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_update.go b/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_update.go index e3d51b9428e..ce4cea0f55b 100644 --- a/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_update.go +++ b/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_update.go @@ -53,8 +53,8 @@ func (c StreamingJobsClient) Update(ctx context.Context, id StreamingJobId, inpu http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/transformations/method_createorreplace.go b/resource-manager/streamanalytics/2020-03-01/transformations/method_createorreplace.go index 8ad723fdb0c..5cc1cd2494b 100644 --- a/resource-manager/streamanalytics/2020-03-01/transformations/method_createorreplace.go +++ b/resource-manager/streamanalytics/2020-03-01/transformations/method_createorreplace.go @@ -58,8 +58,8 @@ func (c TransformationsClient) CreateOrReplace(ctx context.Context, id Transform http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2020-03-01/transformations/method_update.go b/resource-manager/streamanalytics/2020-03-01/transformations/method_update.go index 6633990382d..274e46212d4 100644 --- a/resource-manager/streamanalytics/2020-03-01/transformations/method_update.go +++ b/resource-manager/streamanalytics/2020-03-01/transformations/method_update.go @@ -53,8 +53,8 @@ func (c TransformationsClient) Update(ctx context.Context, id TransformationId, http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/functions/method_createorreplace.go b/resource-manager/streamanalytics/2021-10-01-preview/functions/method_createorreplace.go index 7580e900438..7dea7554153 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/functions/method_createorreplace.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/functions/method_createorreplace.go @@ -58,8 +58,8 @@ func (c FunctionsClient) CreateOrReplace(ctx context.Context, id FunctionId, inp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/functions/method_listbystreamingjob.go b/resource-manager/streamanalytics/2021-10-01-preview/functions/method_listbystreamingjob.go index 447c0a55189..e468719df51 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/functions/method_listbystreamingjob.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/functions/method_listbystreamingjob.go @@ -50,6 +50,18 @@ func (o ListByStreamingJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByStreamingJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByStreamingJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByStreamingJob ... func (c FunctionsClient) ListByStreamingJob(ctx context.Context, id StreamingJobId, options ListByStreamingJobOperationOptions) (result ListByStreamingJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c FunctionsClient) ListByStreamingJob(ctx context.Context, id StreamingJob http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/functions", id.ID()), OptionsObject: options, + Pager: &ListByStreamingJobCustomPager{}, + Path: fmt.Sprintf("%s/functions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/functions/method_update.go b/resource-manager/streamanalytics/2021-10-01-preview/functions/method_update.go index 8bbc97ac52e..9a6b1d2d294 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/functions/method_update.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/functions/method_update.go @@ -53,8 +53,8 @@ func (c FunctionsClient) Update(ctx context.Context, id FunctionId, input Functi http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/inputs/method_createorreplace.go b/resource-manager/streamanalytics/2021-10-01-preview/inputs/method_createorreplace.go index 91764cfe010..e42ec1acffd 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/inputs/method_createorreplace.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/inputs/method_createorreplace.go @@ -58,8 +58,8 @@ func (c InputsClient) CreateOrReplace(ctx context.Context, id InputId, input Inp http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/inputs/method_listbystreamingjob.go b/resource-manager/streamanalytics/2021-10-01-preview/inputs/method_listbystreamingjob.go index cedbc6ce639..4e682830afc 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/inputs/method_listbystreamingjob.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/inputs/method_listbystreamingjob.go @@ -50,6 +50,18 @@ func (o ListByStreamingJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByStreamingJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByStreamingJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByStreamingJob ... func (c InputsClient) ListByStreamingJob(ctx context.Context, id StreamingJobId, options ListByStreamingJobOperationOptions) (result ListByStreamingJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c InputsClient) ListByStreamingJob(ctx context.Context, id StreamingJobId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/inputs", id.ID()), OptionsObject: options, + Pager: &ListByStreamingJobCustomPager{}, + Path: fmt.Sprintf("%s/inputs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/inputs/method_update.go b/resource-manager/streamanalytics/2021-10-01-preview/inputs/method_update.go index 3f8508178ac..0291f7c2025 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/inputs/method_update.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/inputs/method_update.go @@ -53,8 +53,8 @@ func (c InputsClient) Update(ctx context.Context, id InputId, input Input, optio http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_createorreplace.go b/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_createorreplace.go index e81310d3d75..8160d215384 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_createorreplace.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_createorreplace.go @@ -58,8 +58,8 @@ func (c OutputsClient) CreateOrReplace(ctx context.Context, id OutputId, input O http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_listbystreamingjob.go b/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_listbystreamingjob.go index e77d7c7a447..f404f99b2d9 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_listbystreamingjob.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_listbystreamingjob.go @@ -50,6 +50,18 @@ func (o ListByStreamingJobOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByStreamingJobCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByStreamingJobCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByStreamingJob ... func (c OutputsClient) ListByStreamingJob(ctx context.Context, id StreamingJobId, options ListByStreamingJobOperationOptions) (result ListByStreamingJobOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c OutputsClient) ListByStreamingJob(ctx context.Context, id StreamingJobId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/outputs", id.ID()), OptionsObject: options, + Pager: &ListByStreamingJobCustomPager{}, + Path: fmt.Sprintf("%s/outputs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_update.go b/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_update.go index 36959c15f98..ab568fb27d8 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_update.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_update.go @@ -53,8 +53,8 @@ func (c OutputsClient) Update(ctx context.Context, id OutputId, input Output, op http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_createorreplace.go b/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_createorreplace.go index 95d9cbcf619..f332e84e344 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_createorreplace.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_createorreplace.go @@ -61,8 +61,8 @@ func (c StreamingJobsClient) CreateOrReplace(ctx context.Context, id StreamingJo http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_get.go b/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_get.go index 33a9b3b0de5..dde10e46823 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_get.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_get.go @@ -53,8 +53,8 @@ func (c StreamingJobsClient) Get(ctx context.Context, id StreamingJobId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_list.go b/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_list.go index 1a16f952269..eb50ec400db 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_list.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StreamingJobsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c StreamingJobsClient) List(ctx context.Context, id commonids.Subscription http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.StreamAnalytics/streamingJobs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.StreamAnalytics/streamingJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_listbyresourcegroup.go b/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_listbyresourcegroup.go index 502a3bc30f5..c3baa38df09 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_listbyresourcegroup.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c StreamingJobsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c StreamingJobsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.StreamAnalytics/streamingJobs", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.StreamAnalytics/streamingJobs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_skulist.go b/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_skulist.go index 17470301b9b..d9f4774ddb5 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_skulist.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_skulist.go @@ -23,6 +23,18 @@ type SkuListCompleteResult struct { Items []GetStreamingJobSkuResult } +type SkuListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SkuListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SkuList ... func (c StreamingJobsClient) SkuList(ctx context.Context, id StreamingJobId) (result SkuListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StreamingJobsClient) SkuList(ctx context.Context, id StreamingJobId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SkuListCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_update.go b/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_update.go index e3d51b9428e..ce4cea0f55b 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_update.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_update.go @@ -53,8 +53,8 @@ func (c StreamingJobsClient) Update(ctx context.Context, id StreamingJobId, inpu http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/transformations/method_createorreplace.go b/resource-manager/streamanalytics/2021-10-01-preview/transformations/method_createorreplace.go index 8ad723fdb0c..5cc1cd2494b 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/transformations/method_createorreplace.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/transformations/method_createorreplace.go @@ -58,8 +58,8 @@ func (c TransformationsClient) CreateOrReplace(ctx context.Context, id Transform http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/streamanalytics/2021-10-01-preview/transformations/method_update.go b/resource-manager/streamanalytics/2021-10-01-preview/transformations/method_update.go index 6633990382d..274e46212d4 100644 --- a/resource-manager/streamanalytics/2021-10-01-preview/transformations/method_update.go +++ b/resource-manager/streamanalytics/2021-10-01-preview/transformations/method_update.go @@ -53,8 +53,8 @@ func (c TransformationsClient) Update(ctx context.Context, id TransformationId, http.StatusOK, }, HttpMethod: http.MethodPatch, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/synapse/2021-06-01/bigdatapools/method_createorupdate.go b/resource-manager/synapse/2021-06-01/bigdatapools/method_createorupdate.go index 10d64aeb44f..97d807960b0 100644 --- a/resource-manager/synapse/2021-06-01/bigdatapools/method_createorupdate.go +++ b/resource-manager/synapse/2021-06-01/bigdatapools/method_createorupdate.go @@ -57,8 +57,8 @@ func (c BigDataPoolsClient) CreateOrUpdate(ctx context.Context, id BigDataPoolId http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/synapse/2021-06-01/bigdatapools/method_listbyworkspace.go b/resource-manager/synapse/2021-06-01/bigdatapools/method_listbyworkspace.go index c4611de3c18..c8cc548d712 100644 --- a/resource-manager/synapse/2021-06-01/bigdatapools/method_listbyworkspace.go +++ b/resource-manager/synapse/2021-06-01/bigdatapools/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []BigDataPoolResourceInfo } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c BigDataPoolsClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c BigDataPoolsClient) ListByWorkspace(ctx context.Context, id WorkspaceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/bigDataPools", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/integrationruntime/method_create.go b/resource-manager/synapse/2021-06-01/integrationruntime/method_create.go index bfd57bd9ca3..01fb2d2514c 100644 --- a/resource-manager/synapse/2021-06-01/integrationruntime/method_create.go +++ b/resource-manager/synapse/2021-06-01/integrationruntime/method_create.go @@ -57,8 +57,8 @@ func (c IntegrationRuntimeClient) Create(ctx context.Context, id IntegrationRunt http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/synapse/2021-06-01/integrationruntime/method_get.go b/resource-manager/synapse/2021-06-01/integrationruntime/method_get.go index 5b8ff468034..d92912f8795 100644 --- a/resource-manager/synapse/2021-06-01/integrationruntime/method_get.go +++ b/resource-manager/synapse/2021-06-01/integrationruntime/method_get.go @@ -53,8 +53,8 @@ func (c IntegrationRuntimeClient) Get(ctx context.Context, id IntegrationRuntime http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/synapse/2021-06-01/integrationruntime/method_listbyworkspace.go b/resource-manager/synapse/2021-06-01/integrationruntime/method_listbyworkspace.go index 97b35ca149b..59be9a1c349 100644 --- a/resource-manager/synapse/2021-06-01/integrationruntime/method_listbyworkspace.go +++ b/resource-manager/synapse/2021-06-01/integrationruntime/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []IntegrationRuntimeResource } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c IntegrationRuntimeClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IntegrationRuntimeClient) ListByWorkspace(ctx context.Context, id Worksp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/integrationRuntimes", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/integrationruntime/method_objectmetadatalist.go b/resource-manager/synapse/2021-06-01/integrationruntime/method_objectmetadatalist.go index 54debfedfa2..64c399ef327 100644 --- a/resource-manager/synapse/2021-06-01/integrationruntime/method_objectmetadatalist.go +++ b/resource-manager/synapse/2021-06-01/integrationruntime/method_objectmetadatalist.go @@ -24,6 +24,18 @@ type ObjectMetadataListCompleteResult struct { Items []SsisObjectMetadata } +type ObjectMetadataListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ObjectMetadataListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ObjectMetadataList ... func (c IntegrationRuntimeClient) ObjectMetadataList(ctx context.Context, id IntegrationRuntimeId, input GetSsisObjectMetadataRequest) (result ObjectMetadataListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c IntegrationRuntimeClient) ObjectMetadataList(ctx context.Context, id Int http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ObjectMetadataListCustomPager{}, Path: fmt.Sprintf("%s/getObjectMetadata", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/ipfirewallrules/method_listbyworkspace.go b/resource-manager/synapse/2021-06-01/ipfirewallrules/method_listbyworkspace.go index 41385fb65a9..61632611791 100644 --- a/resource-manager/synapse/2021-06-01/ipfirewallrules/method_listbyworkspace.go +++ b/resource-manager/synapse/2021-06-01/ipfirewallrules/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []IPFirewallRuleInfo } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c IPFirewallRulesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IPFirewallRulesClient) ListByWorkspace(ctx context.Context, id Workspace http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/firewallRules", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/keys/method_listbyworkspace.go b/resource-manager/synapse/2021-06-01/keys/method_listbyworkspace.go index 0bc0d66b60e..b41af4170f9 100644 --- a/resource-manager/synapse/2021-06-01/keys/method_listbyworkspace.go +++ b/resource-manager/synapse/2021-06-01/keys/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []Key } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c KeysClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c KeysClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/keys", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/libraries/method_listbyworkspace.go b/resource-manager/synapse/2021-06-01/libraries/method_listbyworkspace.go index 4739292909e..9a5d3b87b5e 100644 --- a/resource-manager/synapse/2021-06-01/libraries/method_listbyworkspace.go +++ b/resource-manager/synapse/2021-06-01/libraries/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []LibraryResource } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c LibrariesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c LibrariesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/libraries", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/privateendpointconnections/method_list.go b/resource-manager/synapse/2021-06-01/privateendpointconnections/method_list.go index 2f1b25e81ac..bcf36ce4c39 100644 --- a/resource-manager/synapse/2021-06-01/privateendpointconnections/method_list.go +++ b/resource-manager/synapse/2021-06-01/privateendpointconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateEndpointConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id Workspace http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/privateendpointconnections/method_privatelinkhublist.go b/resource-manager/synapse/2021-06-01/privateendpointconnections/method_privatelinkhublist.go index ed205fc6377..a7f6b5ea2a4 100644 --- a/resource-manager/synapse/2021-06-01/privateendpointconnections/method_privatelinkhublist.go +++ b/resource-manager/synapse/2021-06-01/privateendpointconnections/method_privatelinkhublist.go @@ -23,6 +23,18 @@ type PrivateLinkHubListCompleteResult struct { Items []PrivateEndpointConnectionForPrivateLinkHub } +type PrivateLinkHubListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkHubListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkHubList ... func (c PrivateEndpointConnectionsClient) PrivateLinkHubList(ctx context.Context, id PrivateLinkHubId) (result PrivateLinkHubListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateEndpointConnectionsClient) PrivateLinkHubList(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkHubListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/privatelinkhubprivatelinkresources/method_list.go b/resource-manager/synapse/2021-06-01/privatelinkhubprivatelinkresources/method_list.go index 6937a3a3cc7..a1254f8a749 100644 --- a/resource-manager/synapse/2021-06-01/privatelinkhubprivatelinkresources/method_list.go +++ b/resource-manager/synapse/2021-06-01/privatelinkhubprivatelinkresources/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateLinkResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkHubPrivateLinkResourcesClient) List(ctx context.Context, id PrivateLinkHubId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkHubPrivateLinkResourcesClient) List(ctx context.Context, id P http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/privatelinkhubs/method_list.go b/resource-manager/synapse/2021-06-01/privatelinkhubs/method_list.go index b70e6b11525..4fe4724aa7d 100644 --- a/resource-manager/synapse/2021-06-01/privatelinkhubs/method_list.go +++ b/resource-manager/synapse/2021-06-01/privatelinkhubs/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PrivateLinkHub } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkHubsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkHubsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Synapse/privateLinkHubs", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/privatelinkhubs/method_listbyresourcegroup.go b/resource-manager/synapse/2021-06-01/privatelinkhubs/method_listbyresourcegroup.go index 6608e0dd4c0..c07457b7c59 100644 --- a/resource-manager/synapse/2021-06-01/privatelinkhubs/method_listbyresourcegroup.go +++ b/resource-manager/synapse/2021-06-01/privatelinkhubs/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []PrivateLinkHub } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c PrivateLinkHubsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateLinkHubsClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Synapse/privateLinkHubs", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/privatelinkhubs/method_privateendpointconnectionsprivatelinkhublist.go b/resource-manager/synapse/2021-06-01/privatelinkhubs/method_privateendpointconnectionsprivatelinkhublist.go index f1e2b282256..39370a0f9b2 100644 --- a/resource-manager/synapse/2021-06-01/privatelinkhubs/method_privateendpointconnectionsprivatelinkhublist.go +++ b/resource-manager/synapse/2021-06-01/privatelinkhubs/method_privateendpointconnectionsprivatelinkhublist.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsPrivateLinkHubListCompleteResult struct { Items []PrivateEndpointConnectionForPrivateLinkHub } +type PrivateEndpointConnectionsPrivateLinkHubListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsPrivateLinkHubListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsPrivateLinkHubList ... func (c PrivateLinkHubsClient) PrivateEndpointConnectionsPrivateLinkHubList(ctx context.Context, id PrivateLinkHubId) (result PrivateEndpointConnectionsPrivateLinkHubListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkHubsClient) PrivateEndpointConnectionsPrivateLinkHubList(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsPrivateLinkHubListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/privatelinkresources/method_list.go b/resource-manager/synapse/2021-06-01/privatelinkresources/method_list.go index 772d455805e..6da6c0206e7 100644 --- a/resource-manager/synapse/2021-06-01/privatelinkresources/method_list.go +++ b/resource-manager/synapse/2021-06-01/privatelinkresources/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PrivateLinkResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateLinkResourcesClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PrivateLinkResourcesClient) List(ctx context.Context, id WorkspaceId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/recoverablesqlpools/method_workspacemanagedsqlserverrecoverablesqlpoolslist.go b/resource-manager/synapse/2021-06-01/recoverablesqlpools/method_workspacemanagedsqlserverrecoverablesqlpoolslist.go index d95cdd35732..de3cf611c80 100644 --- a/resource-manager/synapse/2021-06-01/recoverablesqlpools/method_workspacemanagedsqlserverrecoverablesqlpoolslist.go +++ b/resource-manager/synapse/2021-06-01/recoverablesqlpools/method_workspacemanagedsqlserverrecoverablesqlpoolslist.go @@ -23,6 +23,18 @@ type WorkspaceManagedSqlServerRecoverableSqlPoolsListCompleteResult struct { Items []RecoverableSqlPool } +type WorkspaceManagedSqlServerRecoverableSqlPoolsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceManagedSqlServerRecoverableSqlPoolsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceManagedSqlServerRecoverableSqlPoolsList ... func (c RecoverableSqlPoolsClient) WorkspaceManagedSqlServerRecoverableSqlPoolsList(ctx context.Context, id WorkspaceId) (result WorkspaceManagedSqlServerRecoverableSqlPoolsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c RecoverableSqlPoolsClient) WorkspaceManagedSqlServerRecoverableSqlPoolsL http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceManagedSqlServerRecoverableSqlPoolsListCustomPager{}, Path: fmt.Sprintf("%s/recoverableSqlPools", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/sqlpools/method_listbyworkspace.go b/resource-manager/synapse/2021-06-01/sqlpools/method_listbyworkspace.go index 11b4e0badb0..d2029452390 100644 --- a/resource-manager/synapse/2021-06-01/sqlpools/method_listbyworkspace.go +++ b/resource-manager/synapse/2021-06-01/sqlpools/method_listbyworkspace.go @@ -23,6 +23,18 @@ type ListByWorkspaceCompleteResult struct { Items []SqlPool } +type ListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByWorkspace ... func (c SqlPoolsClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (result ListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SqlPoolsClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/sqlPools", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/sqlpoolsbackup/method_sqlpoolrestorepointslist.go b/resource-manager/synapse/2021-06-01/sqlpoolsbackup/method_sqlpoolrestorepointslist.go index 9664e5557c4..542c7cf592d 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolsbackup/method_sqlpoolrestorepointslist.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolsbackup/method_sqlpoolrestorepointslist.go @@ -23,6 +23,18 @@ type SqlPoolRestorePointsListCompleteResult struct { Items []RestorePoint } +type SqlPoolRestorePointsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolRestorePointsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolRestorePointsList ... func (c SqlPoolsBackupClient) SqlPoolRestorePointsList(ctx context.Context, id SqlPoolId) (result SqlPoolRestorePointsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SqlPoolsBackupClient) SqlPoolRestorePointsList(ctx context.Context, id S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SqlPoolRestorePointsListCustomPager{}, Path: fmt.Sprintf("%s/restorePoints", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/sqlpoolsblobauditing/method_extendedsqlpoolblobauditingpolicieslistbysqlpool.go b/resource-manager/synapse/2021-06-01/sqlpoolsblobauditing/method_extendedsqlpoolblobauditingpolicieslistbysqlpool.go index 2a4e42a3b93..44405d7a5a1 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolsblobauditing/method_extendedsqlpoolblobauditingpolicieslistbysqlpool.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolsblobauditing/method_extendedsqlpoolblobauditingpolicieslistbysqlpool.go @@ -23,6 +23,18 @@ type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolCompleteResult struct { Items []ExtendedSqlPoolBlobAuditingPolicy } +type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ExtendedSqlPoolBlobAuditingPoliciesListBySqlPool ... func (c SqlPoolsBlobAuditingClient) ExtendedSqlPoolBlobAuditingPoliciesListBySqlPool(ctx context.Context, id SqlPoolId) (result ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SqlPoolsBlobAuditingClient) ExtendedSqlPoolBlobAuditingPoliciesListBySql http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolCustomPager{}, Path: fmt.Sprintf("%s/extendedAuditingSettings", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/sqlpoolsmaintenancewindowoptions/method_sqlpoolmaintenancewindowoptionsget.go b/resource-manager/synapse/2021-06-01/sqlpoolsmaintenancewindowoptions/method_sqlpoolmaintenancewindowoptionsget.go index b87632b0848..19f3edb15d1 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolsmaintenancewindowoptions/method_sqlpoolmaintenancewindowoptionsget.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolsmaintenancewindowoptions/method_sqlpoolmaintenancewindowoptionsget.go @@ -53,8 +53,8 @@ func (c SqlPoolsMaintenanceWindowOptionsClient) SqlPoolMaintenanceWindowOptionsG http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/maintenanceWindowOptions/current", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/maintenanceWindowOptions/current", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/synapse/2021-06-01/sqlpoolsmaintenancewindows/method_sqlpoolmaintenancewindowscreateorupdate.go b/resource-manager/synapse/2021-06-01/sqlpoolsmaintenancewindows/method_sqlpoolmaintenancewindowscreateorupdate.go index 6aad8c3b5f1..b587ad10898 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolsmaintenancewindows/method_sqlpoolmaintenancewindowscreateorupdate.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolsmaintenancewindows/method_sqlpoolmaintenancewindowscreateorupdate.go @@ -52,8 +52,8 @@ func (c SqlPoolsMaintenanceWindowsClient) SqlPoolMaintenanceWindowsCreateOrUpdat http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/maintenancewindows/current", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/maintenancewindows/current", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/synapse/2021-06-01/sqlpoolsmaintenancewindows/method_sqlpoolmaintenancewindowsget.go b/resource-manager/synapse/2021-06-01/sqlpoolsmaintenancewindows/method_sqlpoolmaintenancewindowsget.go index ea170b55c65..ceb9c0efd21 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolsmaintenancewindows/method_sqlpoolmaintenancewindowsget.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolsmaintenancewindows/method_sqlpoolmaintenancewindowsget.go @@ -53,8 +53,8 @@ func (c SqlPoolsMaintenanceWindowsClient) SqlPoolMaintenanceWindowsGet(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/maintenancewindows/current", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/maintenancewindows/current", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/synapse/2021-06-01/sqlpoolsoperations/method_sqlpooloperationslist.go b/resource-manager/synapse/2021-06-01/sqlpoolsoperations/method_sqlpooloperationslist.go index ea77e6c2d74..ee59b20b526 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolsoperations/method_sqlpooloperationslist.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolsoperations/method_sqlpooloperationslist.go @@ -23,6 +23,18 @@ type SqlPoolOperationsListCompleteResult struct { Items []SqlPoolOperation } +type SqlPoolOperationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolOperationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolOperationsList ... func (c SqlPoolsOperationsClient) SqlPoolOperationsList(ctx context.Context, id SqlPoolId) (result SqlPoolOperationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SqlPoolsOperationsClient) SqlPoolOperationsList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SqlPoolOperationsListCustomPager{}, Path: fmt.Sprintf("%s/operations", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/sqlpoolsreplicationlinks/method_sqlpoolreplicationlinkslist.go b/resource-manager/synapse/2021-06-01/sqlpoolsreplicationlinks/method_sqlpoolreplicationlinkslist.go index a38e74441fc..25594376457 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolsreplicationlinks/method_sqlpoolreplicationlinkslist.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolsreplicationlinks/method_sqlpoolreplicationlinkslist.go @@ -23,6 +23,18 @@ type SqlPoolReplicationLinksListCompleteResult struct { Items []ReplicationLink } +type SqlPoolReplicationLinksListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolReplicationLinksListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolReplicationLinksList ... func (c SqlPoolsReplicationLinksClient) SqlPoolReplicationLinksList(ctx context.Context, id SqlPoolId) (result SqlPoolReplicationLinksListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SqlPoolsReplicationLinksClient) SqlPoolReplicationLinksList(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SqlPoolReplicationLinksListCustomPager{}, Path: fmt.Sprintf("%s/replicationLinks", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/sqlpoolsschemas/method_sqlpoolschemaslist.go b/resource-manager/synapse/2021-06-01/sqlpoolsschemas/method_sqlpoolschemaslist.go index e40fbc63389..cca6cb82fba 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolsschemas/method_sqlpoolschemaslist.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolsschemas/method_sqlpoolschemaslist.go @@ -50,6 +50,18 @@ func (o SqlPoolSchemasListOperationOptions) ToQuery() *client.QueryParams { return &out } +type SqlPoolSchemasListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolSchemasListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolSchemasList ... func (c SqlPoolsSchemasClient) SqlPoolSchemasList(ctx context.Context, id SqlPoolId, options SqlPoolSchemasListOperationOptions) (result SqlPoolSchemasListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SqlPoolsSchemasClient) SqlPoolSchemasList(ctx context.Context, id SqlPoo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/schemas", id.ID()), OptionsObject: options, + Pager: &SqlPoolSchemasListCustomPager{}, + Path: fmt.Sprintf("%s/schemas", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/synapse/2021-06-01/sqlpoolsschemas/method_sqlpoolvulnerabilityassessmentscanslist.go b/resource-manager/synapse/2021-06-01/sqlpoolsschemas/method_sqlpoolvulnerabilityassessmentscanslist.go index d5edeaa94d3..e470f1b36db 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolsschemas/method_sqlpoolvulnerabilityassessmentscanslist.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolsschemas/method_sqlpoolvulnerabilityassessmentscanslist.go @@ -23,6 +23,18 @@ type SqlPoolVulnerabilityAssessmentScansListCompleteResult struct { Items []VulnerabilityAssessmentScanRecord } +type SqlPoolVulnerabilityAssessmentScansListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolVulnerabilityAssessmentScansListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolVulnerabilityAssessmentScansList ... func (c SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentScansList(ctx context.Context, id SqlPoolId) (result SqlPoolVulnerabilityAssessmentScansListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentScansList(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SqlPoolVulnerabilityAssessmentScansListCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments/default/scans", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/sqlpoolsschemas/method_sqlpoolvulnerabilityassessmentslist.go b/resource-manager/synapse/2021-06-01/sqlpoolsschemas/method_sqlpoolvulnerabilityassessmentslist.go index c236dd57a84..1fc14038060 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolsschemas/method_sqlpoolvulnerabilityassessmentslist.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolsschemas/method_sqlpoolvulnerabilityassessmentslist.go @@ -23,6 +23,18 @@ type SqlPoolVulnerabilityAssessmentsListCompleteResult struct { Items []SqlPoolVulnerabilityAssessment } +type SqlPoolVulnerabilityAssessmentsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolVulnerabilityAssessmentsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolVulnerabilityAssessmentsList ... func (c SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentsList(ctx context.Context, id SqlPoolId) (result SqlPoolVulnerabilityAssessmentsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SqlPoolsSchemasClient) SqlPoolVulnerabilityAssessmentsList(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SqlPoolVulnerabilityAssessmentsListCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/sqlpoolssecurityalertpolicies/method_sqlpoolsecurityalertpolicieslist.go b/resource-manager/synapse/2021-06-01/sqlpoolssecurityalertpolicies/method_sqlpoolsecurityalertpolicieslist.go index b346368c73c..38f3dff15df 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolssecurityalertpolicies/method_sqlpoolsecurityalertpolicieslist.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolssecurityalertpolicies/method_sqlpoolsecurityalertpolicieslist.go @@ -23,6 +23,18 @@ type SqlPoolSecurityAlertPoliciesListCompleteResult struct { Items []SqlPoolSecurityAlertPolicy } +type SqlPoolSecurityAlertPoliciesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolSecurityAlertPoliciesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolSecurityAlertPoliciesList ... func (c SqlPoolsSecurityAlertPoliciesClient) SqlPoolSecurityAlertPoliciesList(ctx context.Context, id SqlPoolId) (result SqlPoolSecurityAlertPoliciesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SqlPoolsSecurityAlertPoliciesClient) SqlPoolSecurityAlertPoliciesList(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SqlPoolSecurityAlertPoliciesListCustomPager{}, Path: fmt.Sprintf("%s/securityAlertPolicies", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/sqlpoolssensitivitylabels/method_sqlpoolsensitivitylabelslistcurrent.go b/resource-manager/synapse/2021-06-01/sqlpoolssensitivitylabels/method_sqlpoolsensitivitylabelslistcurrent.go index 5ef15cbf3eb..bbd76922fa1 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolssensitivitylabels/method_sqlpoolsensitivitylabelslistcurrent.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolssensitivitylabels/method_sqlpoolsensitivitylabelslistcurrent.go @@ -50,6 +50,18 @@ func (o SqlPoolSensitivityLabelsListCurrentOperationOptions) ToQuery() *client.Q return &out } +type SqlPoolSensitivityLabelsListCurrentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolSensitivityLabelsListCurrentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolSensitivityLabelsListCurrent ... func (c SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsListCurrent(ctx context.Context, id SqlPoolId, options SqlPoolSensitivityLabelsListCurrentOperationOptions) (result SqlPoolSensitivityLabelsListCurrentOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsListCurrent(ctx http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/currentSensitivityLabels", id.ID()), OptionsObject: options, + Pager: &SqlPoolSensitivityLabelsListCurrentCustomPager{}, + Path: fmt.Sprintf("%s/currentSensitivityLabels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/synapse/2021-06-01/sqlpoolssensitivitylabels/method_sqlpoolsensitivitylabelslistrecommended.go b/resource-manager/synapse/2021-06-01/sqlpoolssensitivitylabels/method_sqlpoolsensitivitylabelslistrecommended.go index 8f761d1ec02..02c76176f74 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolssensitivitylabels/method_sqlpoolsensitivitylabelslistrecommended.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolssensitivitylabels/method_sqlpoolsensitivitylabelslistrecommended.go @@ -54,6 +54,18 @@ func (o SqlPoolSensitivityLabelsListRecommendedOperationOptions) ToQuery() *clie return &out } +type SqlPoolSensitivityLabelsListRecommendedCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolSensitivityLabelsListRecommendedCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolSensitivityLabelsListRecommended ... func (c SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsListRecommended(ctx context.Context, id SqlPoolId, options SqlPoolSensitivityLabelsListRecommendedOperationOptions) (result SqlPoolSensitivityLabelsListRecommendedOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsListRecommended http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendedSensitivityLabels", id.ID()), OptionsObject: options, + Pager: &SqlPoolSensitivityLabelsListRecommendedCustomPager{}, + Path: fmt.Sprintf("%s/recommendedSensitivityLabels", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/synapse/2021-06-01/sqlpoolstables/method_sqlpooltablecolumnslistbytablename.go b/resource-manager/synapse/2021-06-01/sqlpoolstables/method_sqlpooltablecolumnslistbytablename.go index 5043bc873ab..1b846bc63e8 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolstables/method_sqlpooltablecolumnslistbytablename.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolstables/method_sqlpooltablecolumnslistbytablename.go @@ -50,6 +50,18 @@ func (o SqlPoolTableColumnsListByTableNameOperationOptions) ToQuery() *client.Qu return &out } +type SqlPoolTableColumnsListByTableNameCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolTableColumnsListByTableNameCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolTableColumnsListByTableName ... func (c SqlPoolsTablesClient) SqlPoolTableColumnsListByTableName(ctx context.Context, id TableId, options SqlPoolTableColumnsListByTableNameOperationOptions) (result SqlPoolTableColumnsListByTableNameOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SqlPoolsTablesClient) SqlPoolTableColumnsListByTableName(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/columns", id.ID()), OptionsObject: options, + Pager: &SqlPoolTableColumnsListByTableNameCustomPager{}, + Path: fmt.Sprintf("%s/columns", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/synapse/2021-06-01/sqlpoolstables/method_sqlpooltableslistbyschema.go b/resource-manager/synapse/2021-06-01/sqlpoolstables/method_sqlpooltableslistbyschema.go index e033dbc477d..b8a38915dc6 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolstables/method_sqlpooltableslistbyschema.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolstables/method_sqlpooltableslistbyschema.go @@ -50,6 +50,18 @@ func (o SqlPoolTablesListBySchemaOperationOptions) ToQuery() *client.QueryParams return &out } +type SqlPoolTablesListBySchemaCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolTablesListBySchemaCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolTablesListBySchema ... func (c SqlPoolsTablesClient) SqlPoolTablesListBySchema(ctx context.Context, id SchemaId, options SqlPoolTablesListBySchemaOperationOptions) (result SqlPoolTablesListBySchemaOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c SqlPoolsTablesClient) SqlPoolTablesListBySchema(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/tables", id.ID()), OptionsObject: options, + Pager: &SqlPoolTablesListBySchemaCustomPager{}, + Path: fmt.Sprintf("%s/tables", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/synapse/2021-06-01/sqlpoolstransparentdataencryption/method_sqlpooltransparentdataencryptionslist.go b/resource-manager/synapse/2021-06-01/sqlpoolstransparentdataencryption/method_sqlpooltransparentdataencryptionslist.go index 12c1fc008a8..f7015b2ae91 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolstransparentdataencryption/method_sqlpooltransparentdataencryptionslist.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolstransparentdataencryption/method_sqlpooltransparentdataencryptionslist.go @@ -23,6 +23,18 @@ type SqlPoolTransparentDataEncryptionsListCompleteResult struct { Items []TransparentDataEncryption } +type SqlPoolTransparentDataEncryptionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolTransparentDataEncryptionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolTransparentDataEncryptionsList ... func (c SqlPoolsTransparentDataEncryptionClient) SqlPoolTransparentDataEncryptionsList(ctx context.Context, id SqlPoolId) (result SqlPoolTransparentDataEncryptionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SqlPoolsTransparentDataEncryptionClient) SqlPoolTransparentDataEncryptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SqlPoolTransparentDataEncryptionsListCustomPager{}, Path: fmt.Sprintf("%s/transparentDataEncryption", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/sqlpoolsusages/method_sqlpoolusageslist.go b/resource-manager/synapse/2021-06-01/sqlpoolsusages/method_sqlpoolusageslist.go index de8c7381a2b..e40e48c5d52 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolsusages/method_sqlpoolusageslist.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolsusages/method_sqlpoolusageslist.go @@ -23,6 +23,18 @@ type SqlPoolUsagesListCompleteResult struct { Items []SqlPoolUsage } +type SqlPoolUsagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolUsagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolUsagesList ... func (c SqlPoolsUsagesClient) SqlPoolUsagesList(ctx context.Context, id SqlPoolId) (result SqlPoolUsagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SqlPoolsUsagesClient) SqlPoolUsagesList(ctx context.Context, id SqlPoolI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SqlPoolUsagesListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/sqlpoolsworkloadclassifiers/method_sqlpoolworkloadclassifierlist.go b/resource-manager/synapse/2021-06-01/sqlpoolsworkloadclassifiers/method_sqlpoolworkloadclassifierlist.go index 2f144a75366..17495d07fa4 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolsworkloadclassifiers/method_sqlpoolworkloadclassifierlist.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolsworkloadclassifiers/method_sqlpoolworkloadclassifierlist.go @@ -23,6 +23,18 @@ type SqlPoolWorkloadClassifierListCompleteResult struct { Items []WorkloadClassifier } +type SqlPoolWorkloadClassifierListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolWorkloadClassifierListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolWorkloadClassifierList ... func (c SqlPoolsWorkloadClassifiersClient) SqlPoolWorkloadClassifierList(ctx context.Context, id WorkloadGroupId) (result SqlPoolWorkloadClassifierListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SqlPoolsWorkloadClassifiersClient) SqlPoolWorkloadClassifierList(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SqlPoolWorkloadClassifierListCustomPager{}, Path: fmt.Sprintf("%s/workloadClassifiers", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/sqlpoolsworkloadgroups/method_sqlpoolworkloadgrouplist.go b/resource-manager/synapse/2021-06-01/sqlpoolsworkloadgroups/method_sqlpoolworkloadgrouplist.go index a8441464564..cd390307d89 100644 --- a/resource-manager/synapse/2021-06-01/sqlpoolsworkloadgroups/method_sqlpoolworkloadgrouplist.go +++ b/resource-manager/synapse/2021-06-01/sqlpoolsworkloadgroups/method_sqlpoolworkloadgrouplist.go @@ -23,6 +23,18 @@ type SqlPoolWorkloadGroupListCompleteResult struct { Items []WorkloadGroup } +type SqlPoolWorkloadGroupListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SqlPoolWorkloadGroupListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SqlPoolWorkloadGroupList ... func (c SqlPoolsWorkloadGroupsClient) SqlPoolWorkloadGroupList(ctx context.Context, id SqlPoolId) (result SqlPoolWorkloadGroupListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SqlPoolsWorkloadGroupsClient) SqlPoolWorkloadGroupList(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SqlPoolWorkloadGroupListCustomPager{}, Path: fmt.Sprintf("%s/workloadGroups", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/workspaceazureadonlyauthentications/method_azureadonlyauthenticationslist.go b/resource-manager/synapse/2021-06-01/workspaceazureadonlyauthentications/method_azureadonlyauthenticationslist.go index dd430885b46..62094ff7f77 100644 --- a/resource-manager/synapse/2021-06-01/workspaceazureadonlyauthentications/method_azureadonlyauthenticationslist.go +++ b/resource-manager/synapse/2021-06-01/workspaceazureadonlyauthentications/method_azureadonlyauthenticationslist.go @@ -23,6 +23,18 @@ type AzureADOnlyAuthenticationsListCompleteResult struct { Items []AzureADOnlyAuthentication } +type AzureADOnlyAuthenticationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *AzureADOnlyAuthenticationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AzureADOnlyAuthenticationsList ... func (c WorkspaceAzureADOnlyAuthenticationsClient) AzureADOnlyAuthenticationsList(ctx context.Context, id WorkspaceId) (result AzureADOnlyAuthenticationsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkspaceAzureADOnlyAuthenticationsClient) AzureADOnlyAuthenticationsLis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &AzureADOnlyAuthenticationsListCustomPager{}, Path: fmt.Sprintf("%s/azureADOnlyAuthentications", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserver/method_recoverablesqlpoolslist.go b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserver/method_recoverablesqlpoolslist.go index 34fbd8b6eea..e55ef7e9e96 100644 --- a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserver/method_recoverablesqlpoolslist.go +++ b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserver/method_recoverablesqlpoolslist.go @@ -23,6 +23,18 @@ type RecoverableSqlPoolsListCompleteResult struct { Items []RecoverableSqlPool } +type RecoverableSqlPoolsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RecoverableSqlPoolsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // RecoverableSqlPoolsList ... func (c WorkspaceManagedSqlServerClient) RecoverableSqlPoolsList(ctx context.Context, id WorkspaceId) (result RecoverableSqlPoolsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkspaceManagedSqlServerClient) RecoverableSqlPoolsList(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &RecoverableSqlPoolsListCustomPager{}, Path: fmt.Sprintf("%s/recoverableSqlPools", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverblobauditing/method_workspacemanagedsqlserverblobauditingpolicieslistbyworkspace.go b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverblobauditing/method_workspacemanagedsqlserverblobauditingpolicieslistbyworkspace.go index 12508a37939..24bb6f9f4cc 100644 --- a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverblobauditing/method_workspacemanagedsqlserverblobauditingpolicieslistbyworkspace.go +++ b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverblobauditing/method_workspacemanagedsqlserverblobauditingpolicieslistbyworkspace.go @@ -23,6 +23,18 @@ type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceCompleteResult Items []ServerBlobAuditingPolicy } +type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspace ... func (c WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspace(ctx context.Context, id WorkspaceId) (result WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerBl http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/auditingSettings", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverblobauditing/method_workspacemanagedsqlserverextendedblobauditingpolicieslistbyworkspace.go b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverblobauditing/method_workspacemanagedsqlserverextendedblobauditingpolicieslistbyworkspace.go index ca468a5c8fb..7b0df154d5d 100644 --- a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverblobauditing/method_workspacemanagedsqlserverextendedblobauditingpolicieslistbyworkspace.go +++ b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverblobauditing/method_workspacemanagedsqlserverextendedblobauditingpolicieslistbyworkspace.go @@ -23,6 +23,18 @@ type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceComplet Items []ExtendedServerBlobAuditingPolicy } +type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspace ... func (c WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspace(ctx context.Context, id WorkspaceId) (result WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkspaceManagedSqlServerBlobAuditingClient) WorkspaceManagedSqlServerEx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceCustomPager{}, Path: fmt.Sprintf("%s/extendedAuditingSettings", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverdedicatedsqlminimaltlssettings/method_list.go b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverdedicatedsqlminimaltlssettings/method_list.go index 84f13b10564..b2cb2f83cc3 100644 --- a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverdedicatedsqlminimaltlssettings/method_list.go +++ b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverdedicatedsqlminimaltlssettings/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []DedicatedSQLMinimalTLSSettings } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsClient) List(ctx context.Context, id WorkspaceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsClient) List(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/dedicatedSQLMinimalTLSSettings", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserversecurityalertpolicies/method_workspacemanagedsqlserversecurityalertpolicylist.go b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserversecurityalertpolicies/method_workspacemanagedsqlserversecurityalertpolicylist.go index da3ede65bf3..9eacee2ba91 100644 --- a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserversecurityalertpolicies/method_workspacemanagedsqlserversecurityalertpolicylist.go +++ b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserversecurityalertpolicies/method_workspacemanagedsqlserversecurityalertpolicylist.go @@ -23,6 +23,18 @@ type WorkspaceManagedSqlServerSecurityAlertPolicyListCompleteResult struct { Items []ServerSecurityAlertPolicy } +type WorkspaceManagedSqlServerSecurityAlertPolicyListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceManagedSqlServerSecurityAlertPolicyListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceManagedSqlServerSecurityAlertPolicyList ... func (c WorkspaceManagedSqlServerSecurityAlertPoliciesClient) WorkspaceManagedSqlServerSecurityAlertPolicyList(ctx context.Context, id WorkspaceId) (result WorkspaceManagedSqlServerSecurityAlertPolicyListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkspaceManagedSqlServerSecurityAlertPoliciesClient) WorkspaceManagedSq http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceManagedSqlServerSecurityAlertPolicyListCustomPager{}, Path: fmt.Sprintf("%s/securityAlertPolicies", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverserverencryptionprotector/method_workspacemanagedsqlserverencryptionprotectorlist.go b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverserverencryptionprotector/method_workspacemanagedsqlserverencryptionprotectorlist.go index b01b7a225dd..f4ee5f597c5 100644 --- a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverserverencryptionprotector/method_workspacemanagedsqlserverencryptionprotectorlist.go +++ b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverserverencryptionprotector/method_workspacemanagedsqlserverencryptionprotectorlist.go @@ -23,6 +23,18 @@ type WorkspaceManagedSqlServerEncryptionProtectorListCompleteResult struct { Items []EncryptionProtector } +type WorkspaceManagedSqlServerEncryptionProtectorListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceManagedSqlServerEncryptionProtectorListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceManagedSqlServerEncryptionProtectorList ... func (c WorkspaceManagedSqlServerServerEncryptionProtectorClient) WorkspaceManagedSqlServerEncryptionProtectorList(ctx context.Context, id WorkspaceId) (result WorkspaceManagedSqlServerEncryptionProtectorListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkspaceManagedSqlServerServerEncryptionProtectorClient) WorkspaceManag http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceManagedSqlServerEncryptionProtectorListCustomPager{}, Path: fmt.Sprintf("%s/encryptionProtector", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverservervulnerabilityassessments/method_workspacemanagedsqlservervulnerabilityassessmentslist.go b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverservervulnerabilityassessments/method_workspacemanagedsqlservervulnerabilityassessmentslist.go index de607b70fb3..4b4e73ad65e 100644 --- a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverservervulnerabilityassessments/method_workspacemanagedsqlservervulnerabilityassessmentslist.go +++ b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserverservervulnerabilityassessments/method_workspacemanagedsqlservervulnerabilityassessmentslist.go @@ -23,6 +23,18 @@ type WorkspaceManagedSqlServerVulnerabilityAssessmentsListCompleteResult struct Items []ServerVulnerabilityAssessment } +type WorkspaceManagedSqlServerVulnerabilityAssessmentsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceManagedSqlServerVulnerabilityAssessmentsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceManagedSqlServerVulnerabilityAssessmentsList ... func (c WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient) WorkspaceManagedSqlServerVulnerabilityAssessmentsList(ctx context.Context, id WorkspaceId) (result WorkspaceManagedSqlServerVulnerabilityAssessmentsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkspaceManagedSqlServerServerVulnerabilityAssessmentsClient) Workspace http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceManagedSqlServerVulnerabilityAssessmentsListCustomPager{}, Path: fmt.Sprintf("%s/vulnerabilityAssessments", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserversqlusages/method_workspacemanagedsqlserverusageslist.go b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserversqlusages/method_workspacemanagedsqlserverusageslist.go index 6eb3abb95b4..0cb4310bf8b 100644 --- a/resource-manager/synapse/2021-06-01/workspacemanagedsqlserversqlusages/method_workspacemanagedsqlserverusageslist.go +++ b/resource-manager/synapse/2021-06-01/workspacemanagedsqlserversqlusages/method_workspacemanagedsqlserverusageslist.go @@ -23,6 +23,18 @@ type WorkspaceManagedSqlServerUsagesListCompleteResult struct { Items []ServerUsage } +type WorkspaceManagedSqlServerUsagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkspaceManagedSqlServerUsagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkspaceManagedSqlServerUsagesList ... func (c WorkspaceManagedSqlServerSqlUsagesClient) WorkspaceManagedSqlServerUsagesList(ctx context.Context, id WorkspaceId) (result WorkspaceManagedSqlServerUsagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkspaceManagedSqlServerSqlUsagesClient) WorkspaceManagedSqlServerUsage http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkspaceManagedSqlServerUsagesListCustomPager{}, Path: fmt.Sprintf("%s/sqlUsages", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/workspaces/method_list.go b/resource-manager/synapse/2021-06-01/workspaces/method_list.go index 5b6ecb940dd..d2ace42df80 100644 --- a/resource-manager/synapse/2021-06-01/workspaces/method_list.go +++ b/resource-manager/synapse/2021-06-01/workspaces/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Workspace } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkspacesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) List(ctx context.Context, id commonids.SubscriptionId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Synapse/workspaces", id.ID()), } diff --git a/resource-manager/synapse/2021-06-01/workspaces/method_listbyresourcegroup.go b/resource-manager/synapse/2021-06-01/workspaces/method_listbyresourcegroup.go index f1807d5a918..9aeade36594 100644 --- a/resource-manager/synapse/2021-06-01/workspaces/method_listbyresourcegroup.go +++ b/resource-manager/synapse/2021-06-01/workspaces/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Workspace } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Synapse/workspaces", id.ID()), } diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_delete.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_delete.go index fd09f93e3f5..1152b836a8f 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_delete.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_delete.go @@ -56,8 +56,8 @@ func (c AvailabilitySetsClient) Delete(ctx context.Context, id AvailabilitySetId http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_listbyresourcegroup.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_listbyresourcegroup.go index ebbd629c5fd..f157d8afe9e 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_listbyresourcegroup.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AvailabilitySet } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AvailabilitySetsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AvailabilitySetsClient) ListByResourceGroup(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/availabilitySets", id.ID()), } diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_listbysubscription.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_listbysubscription.go index 80ed715bdad..3c56e7f9c7d 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_listbysubscription.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []AvailabilitySet } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c AvailabilitySetsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AvailabilitySetsClient) ListBySubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/availabilitySets", id.ID()), } diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_delete.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_delete.go index 6c283e92640..9d69f8fae92 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_delete.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_delete.go @@ -56,8 +56,8 @@ func (c CloudsClient) Delete(ctx context.Context, id CloudId, options DeleteOper http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_listbyresourcegroup.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_listbyresourcegroup.go index 793f6906648..363a44e2312 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_listbyresourcegroup.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Cloud } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CloudsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CloudsClient) ListByResourceGroup(ctx context.Context, id commonids.Reso http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/clouds", id.ID()), } diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_listbysubscription.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_listbysubscription.go index a9d2e377178..baf74e3ecd5 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_listbysubscription.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []Cloud } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c CloudsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CloudsClient) ListBySubscription(ctx context.Context, id commonids.Subsc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/clouds", id.ID()), } diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_listbyvirtualmachineinstance.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_listbyvirtualmachineinstance.go index 9ecff449ff5..b3c65a24221 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_listbyvirtualmachineinstance.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_listbyvirtualmachineinstance.go @@ -24,6 +24,18 @@ type ListByVirtualMachineInstanceCompleteResult struct { Items []GuestAgent } +type ListByVirtualMachineInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVirtualMachineInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVirtualMachineInstance ... func (c GuestAgentsClient) ListByVirtualMachineInstance(ctx context.Context, id commonids.ScopeId) (result ListByVirtualMachineInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c GuestAgentsClient) ListByVirtualMachineInstance(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVirtualMachineInstanceCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/virtualMachineInstances/default/guestAgents", id.ID()), } diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_listbyvmmserver.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_listbyvmmserver.go index 6c1120b4cee..5a9f0855d5c 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_listbyvmmserver.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_listbyvmmserver.go @@ -23,6 +23,18 @@ type ListByVMmServerCompleteResult struct { Items []InventoryItem } +type ListByVMmServerCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVMmServerCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVMmServer ... func (c InventoryItemsClient) ListByVMmServer(ctx context.Context, id VMmServerId) (result ListByVMmServerOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c InventoryItemsClient) ListByVMmServer(ctx context.Context, id VMmServerI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVMmServerCustomPager{}, Path: fmt.Sprintf("%s/inventoryItems", id.ID()), } diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_delete.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_delete.go index 850139ee9c8..ca2a8334505 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_delete.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_delete.go @@ -61,8 +61,8 @@ func (c VirtualMachineInstancesClient) Delete(ctx context.Context, id commonids. http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/virtualMachineInstances/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/virtualMachineInstances/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_list.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_list.go index baefccf46de..a34db1c431e 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_list.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []VirtualMachineInstance } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachineInstancesClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineInstancesClient) List(ctx context.Context, id commonids.Sc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/virtualMachineInstances", id.ID()), } diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_delete.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_delete.go index bf24f068ad3..6073a8906f8 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_delete.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_delete.go @@ -56,8 +56,8 @@ func (c VirtualMachineTemplatesClient) Delete(ctx context.Context, id VirtualMac http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_listbyresourcegroup.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_listbyresourcegroup.go index ec025ad5d18..f0b732d011b 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_listbyresourcegroup.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualMachineTemplate } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualMachineTemplatesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineTemplatesClient) ListByResourceGroup(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/virtualMachineTemplates", id.ID()), } diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_listbysubscription.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_listbysubscription.go index b22f366cf16..9146dbd70db 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_listbysubscription.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []VirtualMachineTemplate } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c VirtualMachineTemplatesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualMachineTemplatesClient) ListBySubscription(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/virtualMachineTemplates", id.ID()), } diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_delete.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_delete.go index 2b6b3874a86..fc9f19e84de 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_delete.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_delete.go @@ -56,8 +56,8 @@ func (c VirtualNetworksClient) Delete(ctx context.Context, id VirtualNetworkId, http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_listbyresourcegroup.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_listbyresourcegroup.go index ab276017a9e..5f49bb1b700 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_listbyresourcegroup.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VirtualNetwork } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VirtualNetworksClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/virtualNetworks", id.ID()), } diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_listbysubscription.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_listbysubscription.go index 4379b6ce8ad..11d78e40875 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_listbysubscription.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []VirtualNetwork } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c VirtualNetworksClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VirtualNetworksClient) ListBySubscription(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/virtualNetworks", id.ID()), } diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/method_listbyvirtualmachineinstance.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/method_listbyvirtualmachineinstance.go index fbaa6692a49..fbd168f8506 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/method_listbyvirtualmachineinstance.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/method_listbyvirtualmachineinstance.go @@ -24,6 +24,18 @@ type ListByVirtualMachineInstanceCompleteResult struct { Items []VMInstanceHybridIdentityMetadata } +type ListByVirtualMachineInstanceCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVirtualMachineInstanceCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByVirtualMachineInstance ... func (c VMInstanceHybridIdentityMetadatasClient) ListByVirtualMachineInstance(ctx context.Context, id commonids.ScopeId) (result ListByVirtualMachineInstanceOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VMInstanceHybridIdentityMetadatasClient) ListByVirtualMachineInstance(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByVirtualMachineInstanceCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/virtualMachineInstances/default/hybridIdentityMetadata", id.ID()), } diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_delete.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_delete.go index b2b9d83624c..a07f7d70d6a 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_delete.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_delete.go @@ -56,8 +56,8 @@ func (c VMmServersClient) Delete(ctx context.Context, id VMmServerId, options De http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbyresourcegroup.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbyresourcegroup.go index a43596710f7..254588786d8 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbyresourcegroup.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []VMmServer } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c VMmServersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VMmServersClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/vmmServers", id.ID()), } diff --git a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbysubscription.go b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbysubscription.go index 6ab43a1bf3a..81121776f23 100644 --- a/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbysubscription.go +++ b/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []VMmServer } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c VMmServersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c VMmServersClient) ListBySubscription(ctx context.Context, id commonids.S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.ScVmm/vmmServers", id.ID()), } diff --git a/resource-manager/timeseriesinsights/2020-05-15/environments/method_get.go b/resource-manager/timeseriesinsights/2020-05-15/environments/method_get.go index 94070a15fca..152a6439940 100644 --- a/resource-manager/timeseriesinsights/2020-05-15/environments/method_get.go +++ b/resource-manager/timeseriesinsights/2020-05-15/environments/method_get.go @@ -54,8 +54,8 @@ func (c EnvironmentsClient) Get(ctx context.Context, id EnvironmentId, options G http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/trafficmanager/2018-08-01/heatmaps/method_heatmapget.go b/resource-manager/trafficmanager/2018-08-01/heatmaps/method_heatmapget.go index 8ce6f976398..4579935200c 100644 --- a/resource-manager/trafficmanager/2018-08-01/heatmaps/method_heatmapget.go +++ b/resource-manager/trafficmanager/2018-08-01/heatmaps/method_heatmapget.go @@ -57,8 +57,8 @@ func (c HeatMapsClient) HeatMapGet(ctx context.Context, id TrafficManagerProfile http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/heatMaps/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/heatMaps/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/trafficmanager/2022-04-01/heatmaps/method_heatmapget.go b/resource-manager/trafficmanager/2022-04-01/heatmaps/method_heatmapget.go index 8ce6f976398..4579935200c 100644 --- a/resource-manager/trafficmanager/2022-04-01/heatmaps/method_heatmapget.go +++ b/resource-manager/trafficmanager/2022-04-01/heatmaps/method_heatmapget.go @@ -57,8 +57,8 @@ func (c HeatMapsClient) HeatMapGet(ctx context.Context, id TrafficManagerProfile http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/heatMaps/default", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/heatMaps/default", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/videoanalyzer/2021-05-01-preview/edgemodules/method_list.go b/resource-manager/videoanalyzer/2021-05-01-preview/edgemodules/method_list.go index cfa344d3916..fa58a247932 100644 --- a/resource-manager/videoanalyzer/2021-05-01-preview/edgemodules/method_list.go +++ b/resource-manager/videoanalyzer/2021-05-01-preview/edgemodules/method_list.go @@ -58,6 +58,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"@nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c EdgeModulesClient) List(ctx context.Context, id VideoAnalyzerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -66,8 +78,9 @@ func (c EdgeModulesClient) List(ctx context.Context, id VideoAnalyzerId, options http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/edgeModules", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/edgeModules", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/videoanalyzer/2021-05-01-preview/videos/method_accesspolicieslist.go b/resource-manager/videoanalyzer/2021-05-01-preview/videos/method_accesspolicieslist.go index b4449de91a0..753c14b726d 100644 --- a/resource-manager/videoanalyzer/2021-05-01-preview/videos/method_accesspolicieslist.go +++ b/resource-manager/videoanalyzer/2021-05-01-preview/videos/method_accesspolicieslist.go @@ -50,6 +50,18 @@ func (o AccessPoliciesListOperationOptions) ToQuery() *client.QueryParams { return &out } +type AccessPoliciesListCustomPager struct { + NextLink *odata.Link `json:"@nextLink"` +} + +func (p *AccessPoliciesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // AccessPoliciesList ... func (c VideosClient) AccessPoliciesList(ctx context.Context, id VideoAnalyzerId, options AccessPoliciesListOperationOptions) (result AccessPoliciesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c VideosClient) AccessPoliciesList(ctx context.Context, id VideoAnalyzerId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/accessPolicies", id.ID()), OptionsObject: options, + Pager: &AccessPoliciesListCustomPager{}, + Path: fmt.Sprintf("%s/accessPolicies", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/videoanalyzer/2021-05-01-preview/videos/method_videoslist.go b/resource-manager/videoanalyzer/2021-05-01-preview/videos/method_videoslist.go index 1d3f4a3b823..cd362857a80 100644 --- a/resource-manager/videoanalyzer/2021-05-01-preview/videos/method_videoslist.go +++ b/resource-manager/videoanalyzer/2021-05-01-preview/videos/method_videoslist.go @@ -50,6 +50,18 @@ func (o VideosListOperationOptions) ToQuery() *client.QueryParams { return &out } +type VideosListCustomPager struct { + NextLink *odata.Link `json:"@nextLink"` +} + +func (p *VideosListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // VideosList ... func (c VideosClient) VideosList(ctx context.Context, id VideoAnalyzerId, options VideosListOperationOptions) (result VideosListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c VideosClient) VideosList(ctx context.Context, id VideoAnalyzerId, option http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/videos", id.ID()), OptionsObject: options, + Pager: &VideosListCustomPager{}, + Path: fmt.Sprintf("%s/videos", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/vmware/2022-05-01/addons/method_list.go b/resource-manager/vmware/2022-05-01/addons/method_list.go index 9e6be479741..a50822ba5f2 100644 --- a/resource-manager/vmware/2022-05-01/addons/method_list.go +++ b/resource-manager/vmware/2022-05-01/addons/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Addon } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AddonsClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AddonsClient) List(ctx context.Context, id PrivateCloudId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/addons", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/authorizations/method_list.go b/resource-manager/vmware/2022-05-01/authorizations/method_list.go index e9ec3c424fa..7917ff14ecc 100644 --- a/resource-manager/vmware/2022-05-01/authorizations/method_list.go +++ b/resource-manager/vmware/2022-05-01/authorizations/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteAuthorization } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AuthorizationsClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AuthorizationsClient) List(ctx context.Context, id PrivateCloudId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/authorizations", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/cloudlinks/method_list.go b/resource-manager/vmware/2022-05-01/cloudlinks/method_list.go index 05fbce4b70d..d94c29128a9 100644 --- a/resource-manager/vmware/2022-05-01/cloudlinks/method_list.go +++ b/resource-manager/vmware/2022-05-01/cloudlinks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CloudLink } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CloudLinksClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CloudLinksClient) List(ctx context.Context, id PrivateCloudId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/cloudLinks", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/clusters/method_list.go b/resource-manager/vmware/2022-05-01/clusters/method_list.go index b0492081e11..b938757a5ee 100644 --- a/resource-manager/vmware/2022-05-01/clusters/method_list.go +++ b/resource-manager/vmware/2022-05-01/clusters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ClustersClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ClustersClient) List(ctx context.Context, id PrivateCloudId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/clusters", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/datastores/method_list.go b/resource-manager/vmware/2022-05-01/datastores/method_list.go index 41bb133ada0..8afe34f8b51 100644 --- a/resource-manager/vmware/2022-05-01/datastores/method_list.go +++ b/resource-manager/vmware/2022-05-01/datastores/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Datastore } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataStoresClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DataStoresClient) List(ctx context.Context, id ClusterId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/dataStores", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/globalreachconnections/method_list.go b/resource-manager/vmware/2022-05-01/globalreachconnections/method_list.go index d56ef316c34..a8abe1cb77b 100644 --- a/resource-manager/vmware/2022-05-01/globalreachconnections/method_list.go +++ b/resource-manager/vmware/2022-05-01/globalreachconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []GlobalReachConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GlobalReachConnectionsClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GlobalReachConnectionsClient) List(ctx context.Context, id PrivateCloudI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/globalReachConnections", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/hcxenterprisesites/method_list.go b/resource-manager/vmware/2022-05-01/hcxenterprisesites/method_list.go index e9632412fa5..64f8d92ad34 100644 --- a/resource-manager/vmware/2022-05-01/hcxenterprisesites/method_list.go +++ b/resource-manager/vmware/2022-05-01/hcxenterprisesites/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []HcxEnterpriseSite } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c HcxEnterpriseSitesClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HcxEnterpriseSitesClient) List(ctx context.Context, id PrivateCloudId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/hcxEnterpriseSites", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/placementpolicies/method_list.go b/resource-manager/vmware/2022-05-01/placementpolicies/method_list.go index 3cc5ce35ce6..4309fa220ec 100644 --- a/resource-manager/vmware/2022-05-01/placementpolicies/method_list.go +++ b/resource-manager/vmware/2022-05-01/placementpolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PlacementPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PlacementPoliciesClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PlacementPoliciesClient) List(ctx context.Context, id ClusterId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/placementPolicies", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/privateclouds/method_list.go b/resource-manager/vmware/2022-05-01/privateclouds/method_list.go index 87e53d4fa60..07763c581c6 100644 --- a/resource-manager/vmware/2022-05-01/privateclouds/method_list.go +++ b/resource-manager/vmware/2022-05-01/privateclouds/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PrivateCloud } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateCloudsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateCloudsClient) List(ctx context.Context, id commonids.ResourceGrou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AVS/privateClouds", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/privateclouds/method_listinsubscription.go b/resource-manager/vmware/2022-05-01/privateclouds/method_listinsubscription.go index b964327f524..426b6eca6b1 100644 --- a/resource-manager/vmware/2022-05-01/privateclouds/method_listinsubscription.go +++ b/resource-manager/vmware/2022-05-01/privateclouds/method_listinsubscription.go @@ -24,6 +24,18 @@ type ListInSubscriptionCompleteResult struct { Items []PrivateCloud } +type ListInSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInSubscription ... func (c PrivateCloudsClient) ListInSubscription(ctx context.Context, id commonids.SubscriptionId) (result ListInSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateCloudsClient) ListInSubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AVS/privateClouds", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/scripts/method_scriptcmdletslist.go b/resource-manager/vmware/2022-05-01/scripts/method_scriptcmdletslist.go index 6de9fb31604..48256bb124e 100644 --- a/resource-manager/vmware/2022-05-01/scripts/method_scriptcmdletslist.go +++ b/resource-manager/vmware/2022-05-01/scripts/method_scriptcmdletslist.go @@ -23,6 +23,18 @@ type ScriptCmdletsListCompleteResult struct { Items []ScriptCmdlet } +type ScriptCmdletsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ScriptCmdletsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ScriptCmdletsList ... func (c ScriptsClient) ScriptCmdletsList(ctx context.Context, id ScriptPackageId) (result ScriptCmdletsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScriptsClient) ScriptCmdletsList(ctx context.Context, id ScriptPackageId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ScriptCmdletsListCustomPager{}, Path: fmt.Sprintf("%s/scriptCmdlets", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/scripts/method_scriptexecutionslist.go b/resource-manager/vmware/2022-05-01/scripts/method_scriptexecutionslist.go index bad58d5370d..713eb51aae3 100644 --- a/resource-manager/vmware/2022-05-01/scripts/method_scriptexecutionslist.go +++ b/resource-manager/vmware/2022-05-01/scripts/method_scriptexecutionslist.go @@ -23,6 +23,18 @@ type ScriptExecutionsListCompleteResult struct { Items []ScriptExecution } +type ScriptExecutionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ScriptExecutionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ScriptExecutionsList ... func (c ScriptsClient) ScriptExecutionsList(ctx context.Context, id PrivateCloudId) (result ScriptExecutionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScriptsClient) ScriptExecutionsList(ctx context.Context, id PrivateCloud http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ScriptExecutionsListCustomPager{}, Path: fmt.Sprintf("%s/scriptExecutions", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/scripts/method_scriptpackageslist.go b/resource-manager/vmware/2022-05-01/scripts/method_scriptpackageslist.go index 74851860a41..00e7767740a 100644 --- a/resource-manager/vmware/2022-05-01/scripts/method_scriptpackageslist.go +++ b/resource-manager/vmware/2022-05-01/scripts/method_scriptpackageslist.go @@ -23,6 +23,18 @@ type ScriptPackagesListCompleteResult struct { Items []ScriptPackage } +type ScriptPackagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ScriptPackagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ScriptPackagesList ... func (c ScriptsClient) ScriptPackagesList(ctx context.Context, id PrivateCloudId) (result ScriptPackagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScriptsClient) ScriptPackagesList(ctx context.Context, id PrivateCloudId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ScriptPackagesListCustomPager{}, Path: fmt.Sprintf("%s/scriptPackages", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/virtualmachines/method_list.go b/resource-manager/vmware/2022-05-01/virtualmachines/method_list.go index eb5d309e28e..d371cb25521 100644 --- a/resource-manager/vmware/2022-05-01/virtualmachines/method_list.go +++ b/resource-manager/vmware/2022-05-01/virtualmachines/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualMachine } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachinesClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachinesClient) List(ctx context.Context, id ClusterId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/virtualMachines", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/workloadnetworks/method_list.go b/resource-manager/vmware/2022-05-01/workloadnetworks/method_list.go index 1982593fd89..fef0c5a3fff 100644 --- a/resource-manager/vmware/2022-05-01/workloadnetworks/method_list.go +++ b/resource-manager/vmware/2022-05-01/workloadnetworks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Resource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkloadNetworksClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) List(ctx context.Context, id PrivateCloudId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listdhcp.go b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listdhcp.go index 51eaa5568cb..b5f34290745 100644 --- a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listdhcp.go +++ b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listdhcp.go @@ -23,6 +23,18 @@ type ListDhcpCompleteResult struct { Items []WorkloadNetworkDhcp } +type ListDhcpCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDhcpCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDhcp ... func (c WorkloadNetworksClient) ListDhcp(ctx context.Context, id PrivateCloudId) (result ListDhcpOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListDhcp(ctx context.Context, id PrivateCloudId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDhcpCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/dhcpConfigurations", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listdnsservices.go b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listdnsservices.go index 0ab331487af..5534d066801 100644 --- a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listdnsservices.go +++ b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listdnsservices.go @@ -23,6 +23,18 @@ type ListDnsServicesCompleteResult struct { Items []WorkloadNetworkDnsService } +type ListDnsServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDnsServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDnsServices ... func (c WorkloadNetworksClient) ListDnsServices(ctx context.Context, id PrivateCloudId) (result ListDnsServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListDnsServices(ctx context.Context, id PrivateC http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDnsServicesCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/dnsServices", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listdnszones.go b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listdnszones.go index 5f1ea38bcc6..68d8ecd0dad 100644 --- a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listdnszones.go +++ b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listdnszones.go @@ -23,6 +23,18 @@ type ListDnsZonesCompleteResult struct { Items []WorkloadNetworkDnsZone } +type ListDnsZonesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDnsZonesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDnsZones ... func (c WorkloadNetworksClient) ListDnsZones(ctx context.Context, id PrivateCloudId) (result ListDnsZonesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListDnsZones(ctx context.Context, id PrivateClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDnsZonesCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/dnsZones", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listgateways.go b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listgateways.go index 4055dfcf294..197ce58a934 100644 --- a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listgateways.go +++ b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listgateways.go @@ -23,6 +23,18 @@ type ListGatewaysCompleteResult struct { Items []WorkloadNetworkGateway } +type ListGatewaysCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListGatewaysCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListGateways ... func (c WorkloadNetworksClient) ListGateways(ctx context.Context, id PrivateCloudId) (result ListGatewaysOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListGateways(ctx context.Context, id PrivateClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListGatewaysCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/gateways", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listportmirroring.go b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listportmirroring.go index acb78b2a727..498c14e1fff 100644 --- a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listportmirroring.go +++ b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listportmirroring.go @@ -23,6 +23,18 @@ type ListPortMirroringCompleteResult struct { Items []WorkloadNetworkPortMirroring } +type ListPortMirroringCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPortMirroringCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPortMirroring ... func (c WorkloadNetworksClient) ListPortMirroring(ctx context.Context, id PrivateCloudId) (result ListPortMirroringOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListPortMirroring(ctx context.Context, id Privat http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPortMirroringCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/portMirroringProfiles", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listpublicips.go b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listpublicips.go index 3c8e285db1a..cfa8d4bf1a9 100644 --- a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listpublicips.go +++ b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listpublicips.go @@ -23,6 +23,18 @@ type ListPublicIPsCompleteResult struct { Items []WorkloadNetworkPublicIP } +type ListPublicIPsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPublicIPsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPublicIPs ... func (c WorkloadNetworksClient) ListPublicIPs(ctx context.Context, id PrivateCloudId) (result ListPublicIPsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListPublicIPs(ctx context.Context, id PrivateClo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPublicIPsCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/publicIPs", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listsegments.go b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listsegments.go index 950c0395fdd..8f371d330ba 100644 --- a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listsegments.go +++ b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listsegments.go @@ -23,6 +23,18 @@ type ListSegmentsCompleteResult struct { Items []WorkloadNetworkSegment } +type ListSegmentsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSegmentsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSegments ... func (c WorkloadNetworksClient) ListSegments(ctx context.Context, id PrivateCloudId) (result ListSegmentsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListSegments(ctx context.Context, id PrivateClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSegmentsCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/segments", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listvirtualmachines.go b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listvirtualmachines.go index 1f46e95f955..6d1a9a1dae2 100644 --- a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listvirtualmachines.go +++ b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listvirtualmachines.go @@ -23,6 +23,18 @@ type ListVirtualMachinesCompleteResult struct { Items []WorkloadNetworkVirtualMachine } +type ListVirtualMachinesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachinesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVirtualMachines ... func (c WorkloadNetworksClient) ListVirtualMachines(ctx context.Context, id PrivateCloudId) (result ListVirtualMachinesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListVirtualMachines(ctx context.Context, id Priv http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListVirtualMachinesCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/virtualMachines", id.ID()), } diff --git a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listvmgroups.go b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listvmgroups.go index 65d95f8094b..1c846ae4916 100644 --- a/resource-manager/vmware/2022-05-01/workloadnetworks/method_listvmgroups.go +++ b/resource-manager/vmware/2022-05-01/workloadnetworks/method_listvmgroups.go @@ -23,6 +23,18 @@ type ListVMGroupsCompleteResult struct { Items []WorkloadNetworkVMGroup } +type ListVMGroupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVMGroupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVMGroups ... func (c WorkloadNetworksClient) ListVMGroups(ctx context.Context, id PrivateCloudId) (result ListVMGroupsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListVMGroups(ctx context.Context, id PrivateClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListVMGroupsCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/vmGroups", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/addons/method_list.go b/resource-manager/vmware/2023-03-01/addons/method_list.go index 9e6be479741..a50822ba5f2 100644 --- a/resource-manager/vmware/2023-03-01/addons/method_list.go +++ b/resource-manager/vmware/2023-03-01/addons/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Addon } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AddonsClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AddonsClient) List(ctx context.Context, id PrivateCloudId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/addons", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/authorizations/method_list.go b/resource-manager/vmware/2023-03-01/authorizations/method_list.go index e9ec3c424fa..7917ff14ecc 100644 --- a/resource-manager/vmware/2023-03-01/authorizations/method_list.go +++ b/resource-manager/vmware/2023-03-01/authorizations/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteAuthorization } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AuthorizationsClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AuthorizationsClient) List(ctx context.Context, id PrivateCloudId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/authorizations", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/cloudlinks/method_list.go b/resource-manager/vmware/2023-03-01/cloudlinks/method_list.go index 05fbce4b70d..d94c29128a9 100644 --- a/resource-manager/vmware/2023-03-01/cloudlinks/method_list.go +++ b/resource-manager/vmware/2023-03-01/cloudlinks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CloudLink } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CloudLinksClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CloudLinksClient) List(ctx context.Context, id PrivateCloudId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/cloudLinks", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/clusters/method_list.go b/resource-manager/vmware/2023-03-01/clusters/method_list.go index b0492081e11..b938757a5ee 100644 --- a/resource-manager/vmware/2023-03-01/clusters/method_list.go +++ b/resource-manager/vmware/2023-03-01/clusters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ClustersClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ClustersClient) List(ctx context.Context, id PrivateCloudId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/clusters", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/datastores/method_list.go b/resource-manager/vmware/2023-03-01/datastores/method_list.go index 41bb133ada0..8afe34f8b51 100644 --- a/resource-manager/vmware/2023-03-01/datastores/method_list.go +++ b/resource-manager/vmware/2023-03-01/datastores/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Datastore } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataStoresClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DataStoresClient) List(ctx context.Context, id ClusterId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/dataStores", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/globalreachconnections/method_list.go b/resource-manager/vmware/2023-03-01/globalreachconnections/method_list.go index d56ef316c34..a8abe1cb77b 100644 --- a/resource-manager/vmware/2023-03-01/globalreachconnections/method_list.go +++ b/resource-manager/vmware/2023-03-01/globalreachconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []GlobalReachConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GlobalReachConnectionsClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GlobalReachConnectionsClient) List(ctx context.Context, id PrivateCloudI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/globalReachConnections", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/hcxenterprisesites/method_list.go b/resource-manager/vmware/2023-03-01/hcxenterprisesites/method_list.go index e9632412fa5..64f8d92ad34 100644 --- a/resource-manager/vmware/2023-03-01/hcxenterprisesites/method_list.go +++ b/resource-manager/vmware/2023-03-01/hcxenterprisesites/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []HcxEnterpriseSite } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c HcxEnterpriseSitesClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HcxEnterpriseSitesClient) List(ctx context.Context, id PrivateCloudId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/hcxEnterpriseSites", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/placementpolicies/method_list.go b/resource-manager/vmware/2023-03-01/placementpolicies/method_list.go index 3cc5ce35ce6..4309fa220ec 100644 --- a/resource-manager/vmware/2023-03-01/placementpolicies/method_list.go +++ b/resource-manager/vmware/2023-03-01/placementpolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PlacementPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PlacementPoliciesClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PlacementPoliciesClient) List(ctx context.Context, id ClusterId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/placementPolicies", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/privateclouds/method_list.go b/resource-manager/vmware/2023-03-01/privateclouds/method_list.go index 87e53d4fa60..07763c581c6 100644 --- a/resource-manager/vmware/2023-03-01/privateclouds/method_list.go +++ b/resource-manager/vmware/2023-03-01/privateclouds/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PrivateCloud } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateCloudsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateCloudsClient) List(ctx context.Context, id commonids.ResourceGrou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AVS/privateClouds", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/privateclouds/method_listinsubscription.go b/resource-manager/vmware/2023-03-01/privateclouds/method_listinsubscription.go index b964327f524..426b6eca6b1 100644 --- a/resource-manager/vmware/2023-03-01/privateclouds/method_listinsubscription.go +++ b/resource-manager/vmware/2023-03-01/privateclouds/method_listinsubscription.go @@ -24,6 +24,18 @@ type ListInSubscriptionCompleteResult struct { Items []PrivateCloud } +type ListInSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInSubscription ... func (c PrivateCloudsClient) ListInSubscription(ctx context.Context, id commonids.SubscriptionId) (result ListInSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateCloudsClient) ListInSubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AVS/privateClouds", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/scripts/method_scriptcmdletslist.go b/resource-manager/vmware/2023-03-01/scripts/method_scriptcmdletslist.go index 6de9fb31604..48256bb124e 100644 --- a/resource-manager/vmware/2023-03-01/scripts/method_scriptcmdletslist.go +++ b/resource-manager/vmware/2023-03-01/scripts/method_scriptcmdletslist.go @@ -23,6 +23,18 @@ type ScriptCmdletsListCompleteResult struct { Items []ScriptCmdlet } +type ScriptCmdletsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ScriptCmdletsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ScriptCmdletsList ... func (c ScriptsClient) ScriptCmdletsList(ctx context.Context, id ScriptPackageId) (result ScriptCmdletsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScriptsClient) ScriptCmdletsList(ctx context.Context, id ScriptPackageId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ScriptCmdletsListCustomPager{}, Path: fmt.Sprintf("%s/scriptCmdlets", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/scripts/method_scriptexecutionslist.go b/resource-manager/vmware/2023-03-01/scripts/method_scriptexecutionslist.go index bad58d5370d..713eb51aae3 100644 --- a/resource-manager/vmware/2023-03-01/scripts/method_scriptexecutionslist.go +++ b/resource-manager/vmware/2023-03-01/scripts/method_scriptexecutionslist.go @@ -23,6 +23,18 @@ type ScriptExecutionsListCompleteResult struct { Items []ScriptExecution } +type ScriptExecutionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ScriptExecutionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ScriptExecutionsList ... func (c ScriptsClient) ScriptExecutionsList(ctx context.Context, id PrivateCloudId) (result ScriptExecutionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScriptsClient) ScriptExecutionsList(ctx context.Context, id PrivateCloud http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ScriptExecutionsListCustomPager{}, Path: fmt.Sprintf("%s/scriptExecutions", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/scripts/method_scriptpackageslist.go b/resource-manager/vmware/2023-03-01/scripts/method_scriptpackageslist.go index 74851860a41..00e7767740a 100644 --- a/resource-manager/vmware/2023-03-01/scripts/method_scriptpackageslist.go +++ b/resource-manager/vmware/2023-03-01/scripts/method_scriptpackageslist.go @@ -23,6 +23,18 @@ type ScriptPackagesListCompleteResult struct { Items []ScriptPackage } +type ScriptPackagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ScriptPackagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ScriptPackagesList ... func (c ScriptsClient) ScriptPackagesList(ctx context.Context, id PrivateCloudId) (result ScriptPackagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScriptsClient) ScriptPackagesList(ctx context.Context, id PrivateCloudId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ScriptPackagesListCustomPager{}, Path: fmt.Sprintf("%s/scriptPackages", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/virtualmachines/method_list.go b/resource-manager/vmware/2023-03-01/virtualmachines/method_list.go index eb5d309e28e..d371cb25521 100644 --- a/resource-manager/vmware/2023-03-01/virtualmachines/method_list.go +++ b/resource-manager/vmware/2023-03-01/virtualmachines/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualMachine } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachinesClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachinesClient) List(ctx context.Context, id ClusterId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/virtualMachines", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/workloadnetworks/method_list.go b/resource-manager/vmware/2023-03-01/workloadnetworks/method_list.go index 1982593fd89..fef0c5a3fff 100644 --- a/resource-manager/vmware/2023-03-01/workloadnetworks/method_list.go +++ b/resource-manager/vmware/2023-03-01/workloadnetworks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Resource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkloadNetworksClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) List(ctx context.Context, id PrivateCloudId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listdhcp.go b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listdhcp.go index 51eaa5568cb..b5f34290745 100644 --- a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listdhcp.go +++ b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listdhcp.go @@ -23,6 +23,18 @@ type ListDhcpCompleteResult struct { Items []WorkloadNetworkDhcp } +type ListDhcpCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDhcpCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDhcp ... func (c WorkloadNetworksClient) ListDhcp(ctx context.Context, id PrivateCloudId) (result ListDhcpOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListDhcp(ctx context.Context, id PrivateCloudId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDhcpCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/dhcpConfigurations", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listdnsservices.go b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listdnsservices.go index 0ab331487af..5534d066801 100644 --- a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listdnsservices.go +++ b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listdnsservices.go @@ -23,6 +23,18 @@ type ListDnsServicesCompleteResult struct { Items []WorkloadNetworkDnsService } +type ListDnsServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDnsServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDnsServices ... func (c WorkloadNetworksClient) ListDnsServices(ctx context.Context, id PrivateCloudId) (result ListDnsServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListDnsServices(ctx context.Context, id PrivateC http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDnsServicesCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/dnsServices", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listdnszones.go b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listdnszones.go index 5f1ea38bcc6..68d8ecd0dad 100644 --- a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listdnszones.go +++ b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listdnszones.go @@ -23,6 +23,18 @@ type ListDnsZonesCompleteResult struct { Items []WorkloadNetworkDnsZone } +type ListDnsZonesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDnsZonesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDnsZones ... func (c WorkloadNetworksClient) ListDnsZones(ctx context.Context, id PrivateCloudId) (result ListDnsZonesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListDnsZones(ctx context.Context, id PrivateClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDnsZonesCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/dnsZones", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listgateways.go b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listgateways.go index 4055dfcf294..197ce58a934 100644 --- a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listgateways.go +++ b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listgateways.go @@ -23,6 +23,18 @@ type ListGatewaysCompleteResult struct { Items []WorkloadNetworkGateway } +type ListGatewaysCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListGatewaysCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListGateways ... func (c WorkloadNetworksClient) ListGateways(ctx context.Context, id PrivateCloudId) (result ListGatewaysOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListGateways(ctx context.Context, id PrivateClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListGatewaysCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/gateways", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listportmirroring.go b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listportmirroring.go index acb78b2a727..498c14e1fff 100644 --- a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listportmirroring.go +++ b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listportmirroring.go @@ -23,6 +23,18 @@ type ListPortMirroringCompleteResult struct { Items []WorkloadNetworkPortMirroring } +type ListPortMirroringCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPortMirroringCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPortMirroring ... func (c WorkloadNetworksClient) ListPortMirroring(ctx context.Context, id PrivateCloudId) (result ListPortMirroringOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListPortMirroring(ctx context.Context, id Privat http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPortMirroringCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/portMirroringProfiles", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listpublicips.go b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listpublicips.go index 3c8e285db1a..cfa8d4bf1a9 100644 --- a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listpublicips.go +++ b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listpublicips.go @@ -23,6 +23,18 @@ type ListPublicIPsCompleteResult struct { Items []WorkloadNetworkPublicIP } +type ListPublicIPsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPublicIPsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPublicIPs ... func (c WorkloadNetworksClient) ListPublicIPs(ctx context.Context, id PrivateCloudId) (result ListPublicIPsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListPublicIPs(ctx context.Context, id PrivateClo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPublicIPsCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/publicIPs", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listsegments.go b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listsegments.go index 950c0395fdd..8f371d330ba 100644 --- a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listsegments.go +++ b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listsegments.go @@ -23,6 +23,18 @@ type ListSegmentsCompleteResult struct { Items []WorkloadNetworkSegment } +type ListSegmentsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSegmentsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSegments ... func (c WorkloadNetworksClient) ListSegments(ctx context.Context, id PrivateCloudId) (result ListSegmentsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListSegments(ctx context.Context, id PrivateClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSegmentsCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/segments", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listvirtualmachines.go b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listvirtualmachines.go index 1f46e95f955..6d1a9a1dae2 100644 --- a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listvirtualmachines.go +++ b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listvirtualmachines.go @@ -23,6 +23,18 @@ type ListVirtualMachinesCompleteResult struct { Items []WorkloadNetworkVirtualMachine } +type ListVirtualMachinesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVirtualMachinesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVirtualMachines ... func (c WorkloadNetworksClient) ListVirtualMachines(ctx context.Context, id PrivateCloudId) (result ListVirtualMachinesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListVirtualMachines(ctx context.Context, id Priv http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListVirtualMachinesCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/virtualMachines", id.ID()), } diff --git a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listvmgroups.go b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listvmgroups.go index 65d95f8094b..1c846ae4916 100644 --- a/resource-manager/vmware/2023-03-01/workloadnetworks/method_listvmgroups.go +++ b/resource-manager/vmware/2023-03-01/workloadnetworks/method_listvmgroups.go @@ -23,6 +23,18 @@ type ListVMGroupsCompleteResult struct { Items []WorkloadNetworkVMGroup } +type ListVMGroupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListVMGroupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListVMGroups ... func (c WorkloadNetworksClient) ListVMGroups(ctx context.Context, id PrivateCloudId) (result ListVMGroupsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) ListVMGroups(ctx context.Context, id PrivateClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListVMGroupsCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/vmGroups", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/addons/method_list.go b/resource-manager/vmware/2023-09-01/addons/method_list.go index 9e6be479741..a50822ba5f2 100644 --- a/resource-manager/vmware/2023-09-01/addons/method_list.go +++ b/resource-manager/vmware/2023-09-01/addons/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Addon } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AddonsClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AddonsClient) List(ctx context.Context, id PrivateCloudId) (result ListO http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/addons", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/authorizations/method_list.go b/resource-manager/vmware/2023-09-01/authorizations/method_list.go index e9ec3c424fa..7917ff14ecc 100644 --- a/resource-manager/vmware/2023-09-01/authorizations/method_list.go +++ b/resource-manager/vmware/2023-09-01/authorizations/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ExpressRouteAuthorization } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AuthorizationsClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AuthorizationsClient) List(ctx context.Context, id PrivateCloudId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/authorizations", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/cloudlinks/method_list.go b/resource-manager/vmware/2023-09-01/cloudlinks/method_list.go index 05fbce4b70d..d94c29128a9 100644 --- a/resource-manager/vmware/2023-09-01/cloudlinks/method_list.go +++ b/resource-manager/vmware/2023-09-01/cloudlinks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []CloudLink } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CloudLinksClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CloudLinksClient) List(ctx context.Context, id PrivateCloudId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/cloudLinks", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/clusters/method_list.go b/resource-manager/vmware/2023-09-01/clusters/method_list.go index b0492081e11..b938757a5ee 100644 --- a/resource-manager/vmware/2023-09-01/clusters/method_list.go +++ b/resource-manager/vmware/2023-09-01/clusters/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Cluster } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ClustersClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ClustersClient) List(ctx context.Context, id PrivateCloudId) (result Lis http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/clusters", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/datastores/method_list.go b/resource-manager/vmware/2023-09-01/datastores/method_list.go index 41bb133ada0..8afe34f8b51 100644 --- a/resource-manager/vmware/2023-09-01/datastores/method_list.go +++ b/resource-manager/vmware/2023-09-01/datastores/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []Datastore } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DataStoresClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DataStoresClient) List(ctx context.Context, id ClusterId) (result ListOp http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/dataStores", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/globalreachconnections/method_list.go b/resource-manager/vmware/2023-09-01/globalreachconnections/method_list.go index d56ef316c34..a8abe1cb77b 100644 --- a/resource-manager/vmware/2023-09-01/globalreachconnections/method_list.go +++ b/resource-manager/vmware/2023-09-01/globalreachconnections/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []GlobalReachConnection } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c GlobalReachConnectionsClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c GlobalReachConnectionsClient) List(ctx context.Context, id PrivateCloudI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/globalReachConnections", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/hcxenterprisesites/method_list.go b/resource-manager/vmware/2023-09-01/hcxenterprisesites/method_list.go index e9632412fa5..64f8d92ad34 100644 --- a/resource-manager/vmware/2023-09-01/hcxenterprisesites/method_list.go +++ b/resource-manager/vmware/2023-09-01/hcxenterprisesites/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []HcxEnterpriseSite } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c HcxEnterpriseSitesClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c HcxEnterpriseSitesClient) List(ctx context.Context, id PrivateCloudId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/hcxEnterpriseSites", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/iscsipaths/method_listbyprivatecloud.go b/resource-manager/vmware/2023-09-01/iscsipaths/method_listbyprivatecloud.go index 135a03322ab..e7cd57a1a45 100644 --- a/resource-manager/vmware/2023-09-01/iscsipaths/method_listbyprivatecloud.go +++ b/resource-manager/vmware/2023-09-01/iscsipaths/method_listbyprivatecloud.go @@ -23,6 +23,18 @@ type ListByPrivateCloudCompleteResult struct { Items []IscsiPath } +type ListByPrivateCloudCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByPrivateCloudCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByPrivateCloud ... func (c IscsiPathsClient) ListByPrivateCloud(ctx context.Context, id PrivateCloudId) (result ListByPrivateCloudOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c IscsiPathsClient) ListByPrivateCloud(ctx context.Context, id PrivateClou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByPrivateCloudCustomPager{}, Path: fmt.Sprintf("%s/iscsiPaths", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/placementpolicies/method_list.go b/resource-manager/vmware/2023-09-01/placementpolicies/method_list.go index 3cc5ce35ce6..4309fa220ec 100644 --- a/resource-manager/vmware/2023-09-01/placementpolicies/method_list.go +++ b/resource-manager/vmware/2023-09-01/placementpolicies/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []PlacementPolicy } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PlacementPoliciesClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c PlacementPoliciesClient) List(ctx context.Context, id ClusterId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/placementPolicies", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/privateclouds/method_list.go b/resource-manager/vmware/2023-09-01/privateclouds/method_list.go index 87e53d4fa60..07763c581c6 100644 --- a/resource-manager/vmware/2023-09-01/privateclouds/method_list.go +++ b/resource-manager/vmware/2023-09-01/privateclouds/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []PrivateCloud } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c PrivateCloudsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateCloudsClient) List(ctx context.Context, id commonids.ResourceGrou http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AVS/privateClouds", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/privateclouds/method_listinsubscription.go b/resource-manager/vmware/2023-09-01/privateclouds/method_listinsubscription.go index b964327f524..426b6eca6b1 100644 --- a/resource-manager/vmware/2023-09-01/privateclouds/method_listinsubscription.go +++ b/resource-manager/vmware/2023-09-01/privateclouds/method_listinsubscription.go @@ -24,6 +24,18 @@ type ListInSubscriptionCompleteResult struct { Items []PrivateCloud } +type ListInSubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInSubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInSubscription ... func (c PrivateCloudsClient) ListInSubscription(ctx context.Context, id commonids.SubscriptionId) (result ListInSubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c PrivateCloudsClient) ListInSubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInSubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.AVS/privateClouds", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/scriptcmdlets/method_list.go b/resource-manager/vmware/2023-09-01/scriptcmdlets/method_list.go index 218c471bb97..5f9acf1d0a1 100644 --- a/resource-manager/vmware/2023-09-01/scriptcmdlets/method_list.go +++ b/resource-manager/vmware/2023-09-01/scriptcmdlets/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ScriptCmdlet } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScriptCmdletsClient) List(ctx context.Context, id ScriptPackageId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScriptCmdletsClient) List(ctx context.Context, id ScriptPackageId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/scriptCmdlets", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/scriptexecutions/method_list.go b/resource-manager/vmware/2023-09-01/scriptexecutions/method_list.go index 6b4522bf1e7..efc560e0189 100644 --- a/resource-manager/vmware/2023-09-01/scriptexecutions/method_list.go +++ b/resource-manager/vmware/2023-09-01/scriptexecutions/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ScriptExecution } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScriptExecutionsClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScriptExecutionsClient) List(ctx context.Context, id PrivateCloudId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/scriptExecutions", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/scriptpackages/method_list.go b/resource-manager/vmware/2023-09-01/scriptpackages/method_list.go index fed305db4e4..88050bd64ce 100644 --- a/resource-manager/vmware/2023-09-01/scriptpackages/method_list.go +++ b/resource-manager/vmware/2023-09-01/scriptpackages/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ScriptPackage } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ScriptPackagesClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ScriptPackagesClient) List(ctx context.Context, id PrivateCloudId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/scriptPackages", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/virtualmachines/method_list.go b/resource-manager/vmware/2023-09-01/virtualmachines/method_list.go index eb5d309e28e..d371cb25521 100644 --- a/resource-manager/vmware/2023-09-01/virtualmachines/method_list.go +++ b/resource-manager/vmware/2023-09-01/virtualmachines/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []VirtualMachine } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c VirtualMachinesClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VirtualMachinesClient) List(ctx context.Context, id ClusterId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/virtualMachines", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistdhcp.go b/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistdhcp.go index f6090927ad8..5115bc1ac04 100644 --- a/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistdhcp.go +++ b/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistdhcp.go @@ -23,6 +23,18 @@ type WorkloadNetworksListDhcpCompleteResult struct { Items []WorkloadNetworkDhcp } +type WorkloadNetworksListDhcpCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkloadNetworksListDhcpCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkloadNetworksListDhcp ... func (c VMwaresClient) WorkloadNetworksListDhcp(ctx context.Context, id PrivateCloudId) (result WorkloadNetworksListDhcpOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMwaresClient) WorkloadNetworksListDhcp(ctx context.Context, id PrivateC http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkloadNetworksListDhcpCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/dhcpConfigurations", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistdnsservices.go b/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistdnsservices.go index c0ad3c7e818..c6a56942de6 100644 --- a/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistdnsservices.go +++ b/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistdnsservices.go @@ -23,6 +23,18 @@ type WorkloadNetworksListDnsServicesCompleteResult struct { Items []WorkloadNetworkDnsService } +type WorkloadNetworksListDnsServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkloadNetworksListDnsServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkloadNetworksListDnsServices ... func (c VMwaresClient) WorkloadNetworksListDnsServices(ctx context.Context, id PrivateCloudId) (result WorkloadNetworksListDnsServicesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMwaresClient) WorkloadNetworksListDnsServices(ctx context.Context, id P http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkloadNetworksListDnsServicesCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/dnsServices", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistdnszones.go b/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistdnszones.go index f4cf24fc9ed..786e1de0c0f 100644 --- a/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistdnszones.go +++ b/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistdnszones.go @@ -23,6 +23,18 @@ type WorkloadNetworksListDnsZonesCompleteResult struct { Items []WorkloadNetworkDnsZone } +type WorkloadNetworksListDnsZonesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkloadNetworksListDnsZonesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkloadNetworksListDnsZones ... func (c VMwaresClient) WorkloadNetworksListDnsZones(ctx context.Context, id PrivateCloudId) (result WorkloadNetworksListDnsZonesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMwaresClient) WorkloadNetworksListDnsZones(ctx context.Context, id Priv http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkloadNetworksListDnsZonesCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/dnsZones", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistportmirroring.go b/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistportmirroring.go index ec365cf24d4..7d89ec0dea3 100644 --- a/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistportmirroring.go +++ b/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistportmirroring.go @@ -23,6 +23,18 @@ type WorkloadNetworksListPortMirroringCompleteResult struct { Items []WorkloadNetworkPortMirroring } +type WorkloadNetworksListPortMirroringCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkloadNetworksListPortMirroringCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkloadNetworksListPortMirroring ... func (c VMwaresClient) WorkloadNetworksListPortMirroring(ctx context.Context, id PrivateCloudId) (result WorkloadNetworksListPortMirroringOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMwaresClient) WorkloadNetworksListPortMirroring(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkloadNetworksListPortMirroringCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/portMirroringProfiles", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistpublicips.go b/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistpublicips.go index 692446f048a..68ee02fc5c1 100644 --- a/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistpublicips.go +++ b/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistpublicips.go @@ -23,6 +23,18 @@ type WorkloadNetworksListPublicIPsCompleteResult struct { Items []WorkloadNetworkPublicIP } +type WorkloadNetworksListPublicIPsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkloadNetworksListPublicIPsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkloadNetworksListPublicIPs ... func (c VMwaresClient) WorkloadNetworksListPublicIPs(ctx context.Context, id PrivateCloudId) (result WorkloadNetworksListPublicIPsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMwaresClient) WorkloadNetworksListPublicIPs(ctx context.Context, id Pri http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkloadNetworksListPublicIPsCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/publicIPs", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistvmgroups.go b/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistvmgroups.go index 1cd11392ece..8ebb1a34614 100644 --- a/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistvmgroups.go +++ b/resource-manager/vmware/2023-09-01/vmwares/method_workloadnetworkslistvmgroups.go @@ -23,6 +23,18 @@ type WorkloadNetworksListVMGroupsCompleteResult struct { Items []WorkloadNetworkVMGroup } +type WorkloadNetworksListVMGroupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkloadNetworksListVMGroupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkloadNetworksListVMGroups ... func (c VMwaresClient) WorkloadNetworksListVMGroups(ctx context.Context, id PrivateCloudId) (result WorkloadNetworksListVMGroupsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c VMwaresClient) WorkloadNetworksListVMGroups(ctx context.Context, id Priv http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkloadNetworksListVMGroupsCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/vmGroups", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/workloadnetworkgateways/method_workloadnetworkslistgateways.go b/resource-manager/vmware/2023-09-01/workloadnetworkgateways/method_workloadnetworkslistgateways.go index 7037bc672f6..e8c59e8d1cc 100644 --- a/resource-manager/vmware/2023-09-01/workloadnetworkgateways/method_workloadnetworkslistgateways.go +++ b/resource-manager/vmware/2023-09-01/workloadnetworkgateways/method_workloadnetworkslistgateways.go @@ -23,6 +23,18 @@ type WorkloadNetworksListGatewaysCompleteResult struct { Items []WorkloadNetworkGateway } +type WorkloadNetworksListGatewaysCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkloadNetworksListGatewaysCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkloadNetworksListGateways ... func (c WorkloadNetworkGatewaysClient) WorkloadNetworksListGateways(ctx context.Context, id PrivateCloudId) (result WorkloadNetworksListGatewaysOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworkGatewaysClient) WorkloadNetworksListGateways(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkloadNetworksListGatewaysCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/gateways", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/workloadnetworks/method_list.go b/resource-manager/vmware/2023-09-01/workloadnetworks/method_list.go index 5924726a02d..1ea3355fafb 100644 --- a/resource-manager/vmware/2023-09-01/workloadnetworks/method_list.go +++ b/resource-manager/vmware/2023-09-01/workloadnetworks/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []WorkloadNetwork } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkloadNetworksClient) List(ctx context.Context, id PrivateCloudId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworksClient) List(ctx context.Context, id PrivateCloudId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/workloadnetworksegments/method_workloadnetworkslistsegments.go b/resource-manager/vmware/2023-09-01/workloadnetworksegments/method_workloadnetworkslistsegments.go index cb5249b4bcb..0b0cc339464 100644 --- a/resource-manager/vmware/2023-09-01/workloadnetworksegments/method_workloadnetworkslistsegments.go +++ b/resource-manager/vmware/2023-09-01/workloadnetworksegments/method_workloadnetworkslistsegments.go @@ -23,6 +23,18 @@ type WorkloadNetworksListSegmentsCompleteResult struct { Items []WorkloadNetworkSegment } +type WorkloadNetworksListSegmentsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkloadNetworksListSegmentsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkloadNetworksListSegments ... func (c WorkloadNetworkSegmentsClient) WorkloadNetworksListSegments(ctx context.Context, id PrivateCloudId) (result WorkloadNetworksListSegmentsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworkSegmentsClient) WorkloadNetworksListSegments(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkloadNetworksListSegmentsCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/segments", id.ID()), } diff --git a/resource-manager/vmware/2023-09-01/workloadnetworkvirtualmachines/method_workloadnetworkslistvirtualmachines.go b/resource-manager/vmware/2023-09-01/workloadnetworkvirtualmachines/method_workloadnetworkslistvirtualmachines.go index bc3bc3a17d4..59260b06909 100644 --- a/resource-manager/vmware/2023-09-01/workloadnetworkvirtualmachines/method_workloadnetworkslistvirtualmachines.go +++ b/resource-manager/vmware/2023-09-01/workloadnetworkvirtualmachines/method_workloadnetworkslistvirtualmachines.go @@ -23,6 +23,18 @@ type WorkloadNetworksListVirtualMachinesCompleteResult struct { Items []WorkloadNetworkVirtualMachine } +type WorkloadNetworksListVirtualMachinesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkloadNetworksListVirtualMachinesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkloadNetworksListVirtualMachines ... func (c WorkloadNetworkVirtualMachinesClient) WorkloadNetworksListVirtualMachines(ctx context.Context, id PrivateCloudId) (result WorkloadNetworksListVirtualMachinesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkloadNetworkVirtualMachinesClient) WorkloadNetworksListVirtualMachine http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkloadNetworksListVirtualMachinesCustomPager{}, Path: fmt.Sprintf("%s/workloadNetworks/default/virtualMachines", id.ID()), } diff --git a/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_listbyresourcegroup.go b/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_listbyresourcegroup.go index cb5c013628a..fb430cc01f7 100644 --- a/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_listbyresourcegroup.go +++ b/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []CommunicationsGateway } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CommunicationsGatewaysClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CommunicationsGatewaysClient) ListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.VoiceServices/communicationsGateways", id.ID()), } diff --git a/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_listbysubscription.go b/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_listbysubscription.go index b3b0c28f044..aef54f4792c 100644 --- a/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_listbysubscription.go +++ b/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []CommunicationsGateway } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c CommunicationsGatewaysClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CommunicationsGatewaysClient) ListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.VoiceServices/communicationsGateways", id.ID()), } diff --git a/resource-manager/voiceservices/2023-04-03/testlines/method_listbycommunicationsgateway.go b/resource-manager/voiceservices/2023-04-03/testlines/method_listbycommunicationsgateway.go index b933af3232c..64b28890b5e 100644 --- a/resource-manager/voiceservices/2023-04-03/testlines/method_listbycommunicationsgateway.go +++ b/resource-manager/voiceservices/2023-04-03/testlines/method_listbycommunicationsgateway.go @@ -23,6 +23,18 @@ type ListByCommunicationsGatewayCompleteResult struct { Items []TestLine } +type ListByCommunicationsGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCommunicationsGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCommunicationsGateway ... func (c TestLinesClient) ListByCommunicationsGateway(ctx context.Context, id CommunicationsGatewayId) (result ListByCommunicationsGatewayOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TestLinesClient) ListByCommunicationsGateway(ctx context.Context, id Com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCommunicationsGatewayCustomPager{}, Path: fmt.Sprintf("%s/testLines", id.ID()), } diff --git a/resource-manager/voiceservices/2023-09-01/communicationsgateways/method_listbyresourcegroup.go b/resource-manager/voiceservices/2023-09-01/communicationsgateways/method_listbyresourcegroup.go index cb5c013628a..fb430cc01f7 100644 --- a/resource-manager/voiceservices/2023-09-01/communicationsgateways/method_listbyresourcegroup.go +++ b/resource-manager/voiceservices/2023-09-01/communicationsgateways/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []CommunicationsGateway } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CommunicationsGatewaysClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CommunicationsGatewaysClient) ListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.VoiceServices/communicationsGateways", id.ID()), } diff --git a/resource-manager/voiceservices/2023-09-01/communicationsgateways/method_listbysubscription.go b/resource-manager/voiceservices/2023-09-01/communicationsgateways/method_listbysubscription.go index b3b0c28f044..aef54f4792c 100644 --- a/resource-manager/voiceservices/2023-09-01/communicationsgateways/method_listbysubscription.go +++ b/resource-manager/voiceservices/2023-09-01/communicationsgateways/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []CommunicationsGateway } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c CommunicationsGatewaysClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CommunicationsGatewaysClient) ListBySubscription(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.VoiceServices/communicationsGateways", id.ID()), } diff --git a/resource-manager/voiceservices/2023-09-01/testlines/method_listbycommunicationsgateway.go b/resource-manager/voiceservices/2023-09-01/testlines/method_listbycommunicationsgateway.go index b933af3232c..64b28890b5e 100644 --- a/resource-manager/voiceservices/2023-09-01/testlines/method_listbycommunicationsgateway.go +++ b/resource-manager/voiceservices/2023-09-01/testlines/method_listbycommunicationsgateway.go @@ -23,6 +23,18 @@ type ListByCommunicationsGatewayCompleteResult struct { Items []TestLine } +type ListByCommunicationsGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCommunicationsGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByCommunicationsGateway ... func (c TestLinesClient) ListByCommunicationsGateway(ctx context.Context, id CommunicationsGatewayId) (result ListByCommunicationsGatewayOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TestLinesClient) ListByCommunicationsGateway(ctx context.Context, id Com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByCommunicationsGatewayCustomPager{}, Path: fmt.Sprintf("%s/testLines", id.ID()), } diff --git a/resource-manager/web/2016-06-01/connections/method_list.go b/resource-manager/web/2016-06-01/connections/method_list.go index 72ebc169bd3..97c5f6b54cb 100644 --- a/resource-manager/web/2016-06-01/connections/method_list.go +++ b/resource-manager/web/2016-06-01/connections/method_list.go @@ -58,8 +58,8 @@ func (c ConnectionsClient) List(ctx context.Context, id commonids.ResourceGroupI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/connections", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/connections", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2016-06-01/customapis/method_list.go b/resource-manager/web/2016-06-01/customapis/method_list.go index a46e3dc06ea..4eb1988f163 100644 --- a/resource-manager/web/2016-06-01/customapis/method_list.go +++ b/resource-manager/web/2016-06-01/customapis/method_list.go @@ -58,8 +58,8 @@ func (c CustomAPIsClient) List(ctx context.Context, id commonids.SubscriptionId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/customApis", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/customApis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2016-06-01/customapis/method_listbyresourcegroup.go b/resource-manager/web/2016-06-01/customapis/method_listbyresourcegroup.go index 0830b8e07a7..7e5efd7e31e 100644 --- a/resource-manager/web/2016-06-01/customapis/method_listbyresourcegroup.go +++ b/resource-manager/web/2016-06-01/customapis/method_listbyresourcegroup.go @@ -58,8 +58,8 @@ func (c CustomAPIsClient) ListByResourceGroup(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/customApis", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/customApis", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/appservicecertificateorders/method_list.go b/resource-manager/web/2022-09-01/appservicecertificateorders/method_list.go index bf5fb68e51b..dc2a1437f6d 100644 --- a/resource-manager/web/2022-09-01/appservicecertificateorders/method_list.go +++ b/resource-manager/web/2022-09-01/appservicecertificateorders/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AppServiceCertificateOrder } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AppServiceCertificateOrdersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceCertificateOrdersClient) List(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CertificateRegistration/certificateOrders", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appservicecertificateorders/method_listbyresourcegroup.go b/resource-manager/web/2022-09-01/appservicecertificateorders/method_listbyresourcegroup.go index ec4e47be229..e800bd4359e 100644 --- a/resource-manager/web/2022-09-01/appservicecertificateorders/method_listbyresourcegroup.go +++ b/resource-manager/web/2022-09-01/appservicecertificateorders/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AppServiceCertificateOrder } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AppServiceCertificateOrdersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceCertificateOrdersClient) ListByResourceGroup(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CertificateRegistration/certificateOrders", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appservicecertificateorders/method_listcertificates.go b/resource-manager/web/2022-09-01/appservicecertificateorders/method_listcertificates.go index 60eb5b6d8e8..04a478191c0 100644 --- a/resource-manager/web/2022-09-01/appservicecertificateorders/method_listcertificates.go +++ b/resource-manager/web/2022-09-01/appservicecertificateorders/method_listcertificates.go @@ -23,6 +23,18 @@ type ListCertificatesCompleteResult struct { Items []AppServiceCertificateResource } +type ListCertificatesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCertificatesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCertificates ... func (c AppServiceCertificateOrdersClient) ListCertificates(ctx context.Context, id CertificateOrderId) (result ListCertificatesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceCertificateOrdersClient) ListCertificates(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCertificatesCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_changevnet.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_changevnet.go index 3c0aaf531fd..6bf6156af62 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_changevnet.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_changevnet.go @@ -27,6 +27,18 @@ type ChangeVnetCompleteResult struct { Items []Site } +type ChangeVnetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ChangeVnetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ChangeVnet ... func (c AppServiceEnvironmentsClient) ChangeVnet(ctx context.Context, id commonids.AppServiceEnvironmentId, input VirtualNetworkProfile) (result ChangeVnetOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c AppServiceEnvironmentsClient) ChangeVnet(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ChangeVnetCustomPager{}, Path: fmt.Sprintf("%s/changeVirtualNetwork", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_delete.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_delete.go index 67e550c1929..55cf71e5108 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_delete.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_delete.go @@ -57,8 +57,8 @@ func (c AppServiceEnvironmentsClient) Delete(ctx context.Context, id commonids.A http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go index 6bd59027a79..0ba5559383d 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go @@ -24,6 +24,18 @@ type GetInboundNetworkDependenciesEndpointsCompleteResult struct { Items []InboundEnvironmentEndpoint } +type GetInboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetInboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetInboundNetworkDependenciesEndpoints ... func (c AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetInboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpoints(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetInboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/inboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go index d6f4a4dfe25..0e457723e3d 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go @@ -24,6 +24,18 @@ type GetOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type GetOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetOutboundNetworkDependenciesEndpoints ... func (c AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpoints(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_getprivateendpointconnectionlist.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_getprivateendpointconnectionlist.go index f3bf4837ce2..c4ecbd05aaf 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_getprivateendpointconnectionlist.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_getprivateendpointconnectionlist.go @@ -24,6 +24,18 @@ type GetPrivateEndpointConnectionListCompleteResult struct { Items []RemotePrivateEndpointConnectionARMResource } +type GetPrivateEndpointConnectionListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetPrivateEndpointConnectionListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetPrivateEndpointConnectionList ... func (c AppServiceEnvironmentsClient) GetPrivateEndpointConnectionList(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetPrivateEndpointConnectionListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) GetPrivateEndpointConnectionList(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetPrivateEndpointConnectionListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_list.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_list.go index 60b5a0ca787..b29d1ea041b 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_list.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AppServiceEnvironmentResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AppServiceEnvironmentsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) List(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/hostingEnvironments", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listappserviceplans.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listappserviceplans.go index 35717866ea8..26d1f005a45 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listappserviceplans.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listappserviceplans.go @@ -24,6 +24,18 @@ type ListAppServicePlansCompleteResult struct { Items []AppServicePlan } +type ListAppServicePlansCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppServicePlansCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAppServicePlans ... func (c AppServiceEnvironmentsClient) ListAppServicePlans(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListAppServicePlansOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListAppServicePlans(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAppServicePlansCustomPager{}, Path: fmt.Sprintf("%s/serverFarms", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listbyresourcegroup.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listbyresourcegroup.go index 49415a3322e..3d45ec03742 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listbyresourcegroup.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AppServiceEnvironmentResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AppServiceEnvironmentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/hostingEnvironments", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listcapacities.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listcapacities.go index 43f7e6ce021..b524c9ea8d6 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listcapacities.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listcapacities.go @@ -24,6 +24,18 @@ type ListCapacitiesCompleteResult struct { Items []StampCapacity } +type ListCapacitiesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCapacitiesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCapacities ... func (c AppServiceEnvironmentsClient) ListCapacities(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListCapacitiesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListCapacities(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCapacitiesCustomPager{}, Path: fmt.Sprintf("%s/capacities/compute", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolemetricdefinitions.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolemetricdefinitions.go index 224c729749d..703092408d6 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolemetricdefinitions.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolemetricdefinitions.go @@ -24,6 +24,18 @@ type ListMultiRoleMetricDefinitionsCompleteResult struct { Items []ResourceMetricDefinition } +type ListMultiRoleMetricDefinitionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRoleMetricDefinitionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRoleMetricDefinitions ... func (c AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRoleMetricDefinitionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRoleMetricDefinitionsCustomPager{}, Path: fmt.Sprintf("%s/multiRolePools/default/metricdefinitions", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go index 78b3216e939..b0c259db50e 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go @@ -23,6 +23,18 @@ type ListMultiRolePoolInstanceMetricDefinitionsCompleteResult struct { Items []ResourceMetricDefinition } +type ListMultiRolePoolInstanceMetricDefinitionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRolePoolInstanceMetricDefinitionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRolePoolInstanceMetricDefinitions ... func (c AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitions(ctx context.Context, id DefaultInstanceId) (result ListMultiRolePoolInstanceMetricDefinitionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitions http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRolePoolInstanceMetricDefinitionsCustomPager{}, Path: fmt.Sprintf("%s/metricdefinitions", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolepools.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolepools.go index ec9b78bfc45..2fff5186ba4 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolepools.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolepools.go @@ -24,6 +24,18 @@ type ListMultiRolePoolsCompleteResult struct { Items []WorkerPoolResource } +type ListMultiRolePoolsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRolePoolsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRolePools ... func (c AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRolePoolsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRolePoolsCustomPager{}, Path: fmt.Sprintf("%s/multiRolePools", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolepoolskus.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolepoolskus.go index 596b758f3b4..68df6ce4b5d 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolepoolskus.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultirolepoolskus.go @@ -24,6 +24,18 @@ type ListMultiRolePoolSkusCompleteResult struct { Items []SkuInfo } +type ListMultiRolePoolSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRolePoolSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRolePoolSkus ... func (c AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRolePoolSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRolePoolSkusCustomPager{}, Path: fmt.Sprintf("%s/multiRolePools/default/skus", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultiroleusages.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultiroleusages.go index 9267ed4740f..a835e6f4109 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultiroleusages.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listmultiroleusages.go @@ -24,6 +24,18 @@ type ListMultiRoleUsagesCompleteResult struct { Items []Usage } +type ListMultiRoleUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRoleUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRoleUsages ... func (c AppServiceEnvironmentsClient) ListMultiRoleUsages(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRoleUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRoleUsages(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRoleUsagesCustomPager{}, Path: fmt.Sprintf("%s/multiRolePools/default/usages", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listusages.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listusages.go index 6cb15f03800..c12dab87aa4 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listusages.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listusages.go @@ -51,6 +51,18 @@ func (o ListUsagesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUsages ... func (c AppServiceEnvironmentsClient) ListUsages(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListUsagesOperationOptions) (result ListUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AppServiceEnvironmentsClient) ListUsages(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListUsagesCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listwebapps.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listwebapps.go index 7f68dcecbc7..6adb4062cbe 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listwebapps.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listwebapps.go @@ -51,6 +51,18 @@ func (o ListWebAppsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListWebAppsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebAppsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebApps ... func (c AppServiceEnvironmentsClient) ListWebApps(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListWebAppsOperationOptions) (result ListWebAppsOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AppServiceEnvironmentsClient) ListWebApps(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sites", id.ID()), OptionsObject: options, + Pager: &ListWebAppsCustomPager{}, + Path: fmt.Sprintf("%s/sites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listwebworkermetricdefinitions.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listwebworkermetricdefinitions.go index 06408a3fdd9..0d83ccdd738 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listwebworkermetricdefinitions.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listwebworkermetricdefinitions.go @@ -23,6 +23,18 @@ type ListWebWorkerMetricDefinitionsCompleteResult struct { Items []ResourceMetricDefinition } +type ListWebWorkerMetricDefinitionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebWorkerMetricDefinitionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebWorkerMetricDefinitions ... func (c AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitions(ctx context.Context, id WorkerPoolId) (result ListWebWorkerMetricDefinitionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitions(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebWorkerMetricDefinitionsCustomPager{}, Path: fmt.Sprintf("%s/metricdefinitions", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listwebworkerusages.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listwebworkerusages.go index 094d26611b3..380989d1a8d 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listwebworkerusages.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listwebworkerusages.go @@ -23,6 +23,18 @@ type ListWebWorkerUsagesCompleteResult struct { Items []Usage } +type ListWebWorkerUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebWorkerUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebWorkerUsages ... func (c AppServiceEnvironmentsClient) ListWebWorkerUsages(ctx context.Context, id WorkerPoolId) (result ListWebWorkerUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListWebWorkerUsages(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebWorkerUsagesCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go index f9ce473c32f..283907aee09 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go @@ -23,6 +23,18 @@ type ListWorkerPoolInstanceMetricDefinitionsCompleteResult struct { Items []ResourceMetricDefinition } +type ListWorkerPoolInstanceMetricDefinitionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWorkerPoolInstanceMetricDefinitionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWorkerPoolInstanceMetricDefinitions ... func (c AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitions(ctx context.Context, id WorkerPoolInstanceId) (result ListWorkerPoolInstanceMetricDefinitionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitions(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWorkerPoolInstanceMetricDefinitionsCustomPager{}, Path: fmt.Sprintf("%s/metricdefinitions", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listworkerpools.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listworkerpools.go index 3c7549e990f..ec25afdb033 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listworkerpools.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listworkerpools.go @@ -24,6 +24,18 @@ type ListWorkerPoolsCompleteResult struct { Items []WorkerPoolResource } +type ListWorkerPoolsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWorkerPoolsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWorkerPools ... func (c AppServiceEnvironmentsClient) ListWorkerPools(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListWorkerPoolsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListWorkerPools(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWorkerPoolsCustomPager{}, Path: fmt.Sprintf("%s/workerPools", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_listworkerpoolskus.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_listworkerpoolskus.go index c1b28b118d0..74192d0c7ec 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_listworkerpoolskus.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_listworkerpoolskus.go @@ -23,6 +23,18 @@ type ListWorkerPoolSkusCompleteResult struct { Items []SkuInfo } +type ListWorkerPoolSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWorkerPoolSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWorkerPoolSkus ... func (c AppServiceEnvironmentsClient) ListWorkerPoolSkus(ctx context.Context, id WorkerPoolId) (result ListWorkerPoolSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListWorkerPoolSkus(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWorkerPoolSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_resume.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_resume.go index def906a3f1a..9cafc62c013 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_resume.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_resume.go @@ -27,6 +27,18 @@ type ResumeCompleteResult struct { Items []Site } +type ResumeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResumeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Resume ... func (c AppServiceEnvironmentsClient) Resume(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ResumeOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c AppServiceEnvironmentsClient) Resume(ctx context.Context, id commonids.A http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ResumeCustomPager{}, Path: fmt.Sprintf("%s/resume", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceenvironments/method_suspend.go b/resource-manager/web/2022-09-01/appserviceenvironments/method_suspend.go index 5395b21b683..e6c388ed071 100644 --- a/resource-manager/web/2022-09-01/appserviceenvironments/method_suspend.go +++ b/resource-manager/web/2022-09-01/appserviceenvironments/method_suspend.go @@ -27,6 +27,18 @@ type SuspendCompleteResult struct { Items []Site } +type SuspendCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SuspendCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Suspend ... func (c AppServiceEnvironmentsClient) Suspend(ctx context.Context, id commonids.AppServiceEnvironmentId) (result SuspendOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c AppServiceEnvironmentsClient) Suspend(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &SuspendCustomPager{}, Path: fmt.Sprintf("%s/suspend", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceplans/method_list.go b/resource-manager/web/2022-09-01/appserviceplans/method_list.go index 1eca306be0f..6825b73b994 100644 --- a/resource-manager/web/2022-09-01/appserviceplans/method_list.go +++ b/resource-manager/web/2022-09-01/appserviceplans/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AppServicePlansClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AppServicePlansClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/serverFarms", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/serverFarms", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/appserviceplans/method_listbyresourcegroup.go b/resource-manager/web/2022-09-01/appserviceplans/method_listbyresourcegroup.go index 633d58c91fc..8a92a8bb9a4 100644 --- a/resource-manager/web/2022-09-01/appserviceplans/method_listbyresourcegroup.go +++ b/resource-manager/web/2022-09-01/appserviceplans/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AppServicePlan } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AppServicePlansClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServicePlansClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/serverFarms", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceplans/method_listhybridconnections.go b/resource-manager/web/2022-09-01/appserviceplans/method_listhybridconnections.go index 39236bde7f2..397cbb6929c 100644 --- a/resource-manager/web/2022-09-01/appserviceplans/method_listhybridconnections.go +++ b/resource-manager/web/2022-09-01/appserviceplans/method_listhybridconnections.go @@ -24,6 +24,18 @@ type ListHybridConnectionsCompleteResult struct { Items []HybridConnection } +type ListHybridConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHybridConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHybridConnections ... func (c AppServicePlansClient) ListHybridConnections(ctx context.Context, id commonids.AppServicePlanId) (result ListHybridConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServicePlansClient) ListHybridConnections(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHybridConnectionsCustomPager{}, Path: fmt.Sprintf("%s/hybridConnectionRelays", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceplans/method_listusages.go b/resource-manager/web/2022-09-01/appserviceplans/method_listusages.go index 26a666b6ad4..ba526d56a55 100644 --- a/resource-manager/web/2022-09-01/appserviceplans/method_listusages.go +++ b/resource-manager/web/2022-09-01/appserviceplans/method_listusages.go @@ -51,6 +51,18 @@ func (o ListUsagesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUsages ... func (c AppServicePlansClient) ListUsages(ctx context.Context, id commonids.AppServicePlanId, options ListUsagesOperationOptions) (result ListUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AppServicePlansClient) ListUsages(ctx context.Context, id commonids.AppS http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListUsagesCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/appserviceplans/method_listwebapps.go b/resource-manager/web/2022-09-01/appserviceplans/method_listwebapps.go index 580d5a7e6e5..facb051bd72 100644 --- a/resource-manager/web/2022-09-01/appserviceplans/method_listwebapps.go +++ b/resource-manager/web/2022-09-01/appserviceplans/method_listwebapps.go @@ -55,6 +55,18 @@ func (o ListWebAppsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListWebAppsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebAppsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebApps ... func (c AppServicePlansClient) ListWebApps(ctx context.Context, id commonids.AppServicePlanId, options ListWebAppsOperationOptions) (result ListWebAppsOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c AppServicePlansClient) ListWebApps(ctx context.Context, id commonids.App http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sites", id.ID()), OptionsObject: options, + Pager: &ListWebAppsCustomPager{}, + Path: fmt.Sprintf("%s/sites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/appserviceplans/method_listwebappsbyhybridconnection.go b/resource-manager/web/2022-09-01/appserviceplans/method_listwebappsbyhybridconnection.go index 7f6d7365400..84d13849999 100644 --- a/resource-manager/web/2022-09-01/appserviceplans/method_listwebappsbyhybridconnection.go +++ b/resource-manager/web/2022-09-01/appserviceplans/method_listwebappsbyhybridconnection.go @@ -23,6 +23,18 @@ type ListWebAppsByHybridConnectionCompleteResult struct { Items []string } +type ListWebAppsByHybridConnectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebAppsByHybridConnectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebAppsByHybridConnection ... func (c AppServicePlansClient) ListWebAppsByHybridConnection(ctx context.Context, id HybridConnectionNamespaceRelayId) (result ListWebAppsByHybridConnectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServicePlansClient) ListWebAppsByHybridConnection(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebAppsByHybridConnectionCustomPager{}, Path: fmt.Sprintf("%s/sites", id.ID()), } diff --git a/resource-manager/web/2022-09-01/appserviceplans/method_restartwebapps.go b/resource-manager/web/2022-09-01/appserviceplans/method_restartwebapps.go index ffa2a205011..0eb829e73f3 100644 --- a/resource-manager/web/2022-09-01/appserviceplans/method_restartwebapps.go +++ b/resource-manager/web/2022-09-01/appserviceplans/method_restartwebapps.go @@ -53,8 +53,8 @@ func (c AppServicePlansClient) RestartWebApps(ctx context.Context, id commonids. http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/restartSites", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restartSites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/certificateordersdiagnostics/method_getappservicecertificateorderdetectorresponse.go b/resource-manager/web/2022-09-01/certificateordersdiagnostics/method_getappservicecertificateorderdetectorresponse.go index 43f26d37c36..234f65f33a3 100644 --- a/resource-manager/web/2022-09-01/certificateordersdiagnostics/method_getappservicecertificateorderdetectorresponse.go +++ b/resource-manager/web/2022-09-01/certificateordersdiagnostics/method_getappservicecertificateorderdetectorresponse.go @@ -61,8 +61,8 @@ func (c CertificateOrdersDiagnosticsClient) GetAppServiceCertificateOrderDetecto http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/certificateordersdiagnostics/method_listappservicecertificateorderdetectorresponse.go b/resource-manager/web/2022-09-01/certificateordersdiagnostics/method_listappservicecertificateorderdetectorresponse.go index 8601baa2944..405663304fc 100644 --- a/resource-manager/web/2022-09-01/certificateordersdiagnostics/method_listappservicecertificateorderdetectorresponse.go +++ b/resource-manager/web/2022-09-01/certificateordersdiagnostics/method_listappservicecertificateorderdetectorresponse.go @@ -23,6 +23,18 @@ type ListAppServiceCertificateOrderDetectorResponseCompleteResult struct { Items []DetectorResponse } +type ListAppServiceCertificateOrderDetectorResponseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppServiceCertificateOrderDetectorResponseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAppServiceCertificateOrderDetectorResponse ... func (c CertificateOrdersDiagnosticsClient) ListAppServiceCertificateOrderDetectorResponse(ctx context.Context, id CertificateOrderId) (result ListAppServiceCertificateOrderDetectorResponseOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificateOrdersDiagnosticsClient) ListAppServiceCertificateOrderDetect http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAppServiceCertificateOrderDetectorResponseCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2022-09-01/certificates/method_list.go b/resource-manager/web/2022-09-01/certificates/method_list.go index 9e38b2965e5..aaa547d06bb 100644 --- a/resource-manager/web/2022-09-01/certificates/method_list.go +++ b/resource-manager/web/2022-09-01/certificates/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CertificatesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c CertificatesClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/certificates", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/certificates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/certificates/method_listbyresourcegroup.go b/resource-manager/web/2022-09-01/certificates/method_listbyresourcegroup.go index c594d8867eb..94e8fdd644a 100644 --- a/resource-manager/web/2022-09-01/certificates/method_listbyresourcegroup.go +++ b/resource-manager/web/2022-09-01/certificates/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Certificate } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CertificatesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CertificatesClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/certificates", id.ID()), } diff --git a/resource-manager/web/2022-09-01/containerapps/method_listbyresourcegroup.go b/resource-manager/web/2022-09-01/containerapps/method_listbyresourcegroup.go index 41ee4fd8ced..e6d795c0f7d 100644 --- a/resource-manager/web/2022-09-01/containerapps/method_listbyresourcegroup.go +++ b/resource-manager/web/2022-09-01/containerapps/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ContainerApp } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ContainerAppsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ContainerAppsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/containerApps", id.ID()), } diff --git a/resource-manager/web/2022-09-01/containerapps/method_listbysubscription.go b/resource-manager/web/2022-09-01/containerapps/method_listbysubscription.go index 1f21755ef86..d1d592f103c 100644 --- a/resource-manager/web/2022-09-01/containerapps/method_listbysubscription.go +++ b/resource-manager/web/2022-09-01/containerapps/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ContainerApp } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ContainerAppsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ContainerAppsClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/containerApps", id.ID()), } diff --git a/resource-manager/web/2022-09-01/containerappsrevisions/method_listrevisions.go b/resource-manager/web/2022-09-01/containerappsrevisions/method_listrevisions.go index 7b6ef4b99f3..0248f10075a 100644 --- a/resource-manager/web/2022-09-01/containerappsrevisions/method_listrevisions.go +++ b/resource-manager/web/2022-09-01/containerappsrevisions/method_listrevisions.go @@ -23,6 +23,18 @@ type ListRevisionsCompleteResult struct { Items []Revision } +type ListRevisionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRevisionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRevisions ... func (c ContainerAppsRevisionsClient) ListRevisions(ctx context.Context, id ProviderContainerAppId) (result ListRevisionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContainerAppsRevisionsClient) ListRevisions(ctx context.Context, id Prov http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListRevisionsCustomPager{}, Path: fmt.Sprintf("%s/revisions", id.ID()), } diff --git a/resource-manager/web/2022-09-01/deletedwebapps/method_list.go b/resource-manager/web/2022-09-01/deletedwebapps/method_list.go index 545107bbfc0..9727a056e86 100644 --- a/resource-manager/web/2022-09-01/deletedwebapps/method_list.go +++ b/resource-manager/web/2022-09-01/deletedwebapps/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DeletedSite } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeletedWebAppsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeletedWebAppsClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/deletedSites", id.ID()), } diff --git a/resource-manager/web/2022-09-01/deletedwebapps/method_listbylocation.go b/resource-manager/web/2022-09-01/deletedwebapps/method_listbylocation.go index 7ca76499cc7..09bdd361949 100644 --- a/resource-manager/web/2022-09-01/deletedwebapps/method_listbylocation.go +++ b/resource-manager/web/2022-09-01/deletedwebapps/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []DeletedSite } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c DeletedWebAppsClient) ListByLocation(ctx context.Context, id ProviderLocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeletedWebAppsClient) ListByLocation(ctx context.Context, id ProviderLoc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/deletedSites", id.ID()), } diff --git a/resource-manager/web/2022-09-01/diagnostics/method_executesiteanalysis.go b/resource-manager/web/2022-09-01/diagnostics/method_executesiteanalysis.go index bc5d3b93098..39c10eb722f 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_executesiteanalysis.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_executesiteanalysis.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) ExecuteSiteAnalysis(ctx context.Context, id AnalysisI http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/execute", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/execute", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/diagnostics/method_executesiteanalysisslot.go b/resource-manager/web/2022-09-01/diagnostics/method_executesiteanalysisslot.go index 9c46ec6e7c0..cdfb303e3a3 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_executesiteanalysisslot.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_executesiteanalysisslot.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) ExecuteSiteAnalysisSlot(ctx context.Context, id Diagn http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/execute", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/execute", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/diagnostics/method_executesitedetector.go b/resource-manager/web/2022-09-01/diagnostics/method_executesitedetector.go index d5921adb000..bd22012f0bf 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_executesitedetector.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_executesitedetector.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) ExecuteSiteDetector(ctx context.Context, id Diagnosti http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/execute", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/execute", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/diagnostics/method_executesitedetectorslot.go b/resource-manager/web/2022-09-01/diagnostics/method_executesitedetectorslot.go index 57d36c6f2bd..7b7c52ca9ac 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_executesitedetectorslot.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_executesitedetectorslot.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) ExecuteSiteDetectorSlot(ctx context.Context, id SlotD http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/execute", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/execute", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/diagnostics/method_gethostingenvironmentdetectorresponse.go b/resource-manager/web/2022-09-01/diagnostics/method_gethostingenvironmentdetectorresponse.go index 5c07b3a16ac..c0f8da53660 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_gethostingenvironmentdetectorresponse.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_gethostingenvironmentdetectorresponse.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) GetHostingEnvironmentDetectorResponse(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/diagnostics/method_getsitedetectorresponse.go b/resource-manager/web/2022-09-01/diagnostics/method_getsitedetectorresponse.go index 2bb7b20c482..92cb6f72ab9 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_getsitedetectorresponse.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_getsitedetectorresponse.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) GetSiteDetectorResponse(ctx context.Context, id Detec http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/diagnostics/method_getsitedetectorresponseslot.go b/resource-manager/web/2022-09-01/diagnostics/method_getsitedetectorresponseslot.go index 18b8359de69..2cdbdd632a1 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_getsitedetectorresponseslot.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_getsitedetectorresponseslot.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) GetSiteDetectorResponseSlot(ctx context.Context, id S http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/diagnostics/method_listhostingenvironmentdetectorresponses.go b/resource-manager/web/2022-09-01/diagnostics/method_listhostingenvironmentdetectorresponses.go index c7c9a7736d7..f112dde06bf 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_listhostingenvironmentdetectorresponses.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_listhostingenvironmentdetectorresponses.go @@ -24,6 +24,18 @@ type ListHostingEnvironmentDetectorResponsesCompleteResult struct { Items []DetectorResponse } +type ListHostingEnvironmentDetectorResponsesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHostingEnvironmentDetectorResponsesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHostingEnvironmentDetectorResponses ... func (c DiagnosticsClient) ListHostingEnvironmentDetectorResponses(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListHostingEnvironmentDetectorResponsesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiagnosticsClient) ListHostingEnvironmentDetectorResponses(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHostingEnvironmentDetectorResponsesCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2022-09-01/diagnostics/method_listsiteanalyses.go b/resource-manager/web/2022-09-01/diagnostics/method_listsiteanalyses.go index ca324027e66..91c871786aa 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_listsiteanalyses.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_listsiteanalyses.go @@ -23,6 +23,18 @@ type ListSiteAnalysesCompleteResult struct { Items []AnalysisDefinition } +type ListSiteAnalysesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteAnalysesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteAnalyses ... func (c DiagnosticsClient) ListSiteAnalyses(ctx context.Context, id DiagnosticId) (result ListSiteAnalysesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteAnalyses(ctx context.Context, id DiagnosticId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteAnalysesCustomPager{}, Path: fmt.Sprintf("%s/analyses", id.ID()), } diff --git a/resource-manager/web/2022-09-01/diagnostics/method_listsiteanalysesslot.go b/resource-manager/web/2022-09-01/diagnostics/method_listsiteanalysesslot.go index 52bfd315a5c..23f4e7d5c77 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_listsiteanalysesslot.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_listsiteanalysesslot.go @@ -23,6 +23,18 @@ type ListSiteAnalysesSlotCompleteResult struct { Items []AnalysisDefinition } +type ListSiteAnalysesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteAnalysesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteAnalysesSlot ... func (c DiagnosticsClient) ListSiteAnalysesSlot(ctx context.Context, id SlotDiagnosticId) (result ListSiteAnalysesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteAnalysesSlot(ctx context.Context, id SlotDiag http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteAnalysesSlotCustomPager{}, Path: fmt.Sprintf("%s/analyses", id.ID()), } diff --git a/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectorresponses.go b/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectorresponses.go index 6747c3cafe0..69a5711f698 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectorresponses.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectorresponses.go @@ -24,6 +24,18 @@ type ListSiteDetectorResponsesCompleteResult struct { Items []DetectorResponse } +type ListSiteDetectorResponsesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDetectorResponsesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDetectorResponses ... func (c DiagnosticsClient) ListSiteDetectorResponses(ctx context.Context, id commonids.AppServiceId) (result ListSiteDetectorResponsesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiagnosticsClient) ListSiteDetectorResponses(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDetectorResponsesCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectorresponsesslot.go b/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectorresponsesslot.go index 92abcc624d0..d50bb289cf4 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectorresponsesslot.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectorresponsesslot.go @@ -23,6 +23,18 @@ type ListSiteDetectorResponsesSlotCompleteResult struct { Items []DetectorResponse } +type ListSiteDetectorResponsesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDetectorResponsesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDetectorResponsesSlot ... func (c DiagnosticsClient) ListSiteDetectorResponsesSlot(ctx context.Context, id SlotId) (result ListSiteDetectorResponsesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteDetectorResponsesSlot(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDetectorResponsesSlotCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectors.go b/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectors.go index 52495cf4120..ee307b8dfde 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectors.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectors.go @@ -23,6 +23,18 @@ type ListSiteDetectorsCompleteResult struct { Items []DetectorDefinitionResource } +type ListSiteDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDetectors ... func (c DiagnosticsClient) ListSiteDetectors(ctx context.Context, id DiagnosticId) (result ListSiteDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteDetectors(ctx context.Context, id DiagnosticI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectorsslot.go b/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectorsslot.go index 89553dfa71a..eb8b985ebc6 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectorsslot.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_listsitedetectorsslot.go @@ -23,6 +23,18 @@ type ListSiteDetectorsSlotCompleteResult struct { Items []DetectorDefinitionResource } +type ListSiteDetectorsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDetectorsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDetectorsSlot ... func (c DiagnosticsClient) ListSiteDetectorsSlot(ctx context.Context, id SlotDiagnosticId) (result ListSiteDetectorsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteDetectorsSlot(ctx context.Context, id SlotDia http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDetectorsSlotCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2022-09-01/diagnostics/method_listsitediagnosticcategories.go b/resource-manager/web/2022-09-01/diagnostics/method_listsitediagnosticcategories.go index a9afd41cc0a..29ffd71a26c 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_listsitediagnosticcategories.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_listsitediagnosticcategories.go @@ -24,6 +24,18 @@ type ListSiteDiagnosticCategoriesCompleteResult struct { Items []DiagnosticCategory } +type ListSiteDiagnosticCategoriesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDiagnosticCategoriesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDiagnosticCategories ... func (c DiagnosticsClient) ListSiteDiagnosticCategories(ctx context.Context, id commonids.AppServiceId) (result ListSiteDiagnosticCategoriesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiagnosticsClient) ListSiteDiagnosticCategories(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDiagnosticCategoriesCustomPager{}, Path: fmt.Sprintf("%s/diagnostics", id.ID()), } diff --git a/resource-manager/web/2022-09-01/diagnostics/method_listsitediagnosticcategoriesslot.go b/resource-manager/web/2022-09-01/diagnostics/method_listsitediagnosticcategoriesslot.go index fb6b85de307..1236f4d4ea2 100644 --- a/resource-manager/web/2022-09-01/diagnostics/method_listsitediagnosticcategoriesslot.go +++ b/resource-manager/web/2022-09-01/diagnostics/method_listsitediagnosticcategoriesslot.go @@ -23,6 +23,18 @@ type ListSiteDiagnosticCategoriesSlotCompleteResult struct { Items []DiagnosticCategory } +type ListSiteDiagnosticCategoriesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDiagnosticCategoriesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDiagnosticCategoriesSlot ... func (c DiagnosticsClient) ListSiteDiagnosticCategoriesSlot(ctx context.Context, id SlotId) (result ListSiteDiagnosticCategoriesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteDiagnosticCategoriesSlot(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDiagnosticCategoriesSlotCustomPager{}, Path: fmt.Sprintf("%s/diagnostics", id.ID()), } diff --git a/resource-manager/web/2022-09-01/domains/method_delete.go b/resource-manager/web/2022-09-01/domains/method_delete.go index 67ba404cd4b..1e544b1f599 100644 --- a/resource-manager/web/2022-09-01/domains/method_delete.go +++ b/resource-manager/web/2022-09-01/domains/method_delete.go @@ -53,8 +53,8 @@ func (c DomainsClient) Delete(ctx context.Context, id DomainId, options DeleteOp http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/domains/method_list.go b/resource-manager/web/2022-09-01/domains/method_list.go index f8362b34c59..526910a6cc5 100644 --- a/resource-manager/web/2022-09-01/domains/method_list.go +++ b/resource-manager/web/2022-09-01/domains/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Domain } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DomainsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DomainsClient) List(ctx context.Context, id commonids.SubscriptionId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DomainRegistration/domains", id.ID()), } diff --git a/resource-manager/web/2022-09-01/domains/method_listbyresourcegroup.go b/resource-manager/web/2022-09-01/domains/method_listbyresourcegroup.go index 32693c76e6a..d65249dc0bb 100644 --- a/resource-manager/web/2022-09-01/domains/method_listbyresourcegroup.go +++ b/resource-manager/web/2022-09-01/domains/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Domain } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DomainsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DomainsClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DomainRegistration/domains", id.ID()), } diff --git a/resource-manager/web/2022-09-01/domains/method_listownershipidentifiers.go b/resource-manager/web/2022-09-01/domains/method_listownershipidentifiers.go index d87c3ef554c..7081d3bef77 100644 --- a/resource-manager/web/2022-09-01/domains/method_listownershipidentifiers.go +++ b/resource-manager/web/2022-09-01/domains/method_listownershipidentifiers.go @@ -23,6 +23,18 @@ type ListOwnershipIdentifiersCompleteResult struct { Items []DomainOwnershipIdentifier } +type ListOwnershipIdentifiersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOwnershipIdentifiersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOwnershipIdentifiers ... func (c DomainsClient) ListOwnershipIdentifiers(ctx context.Context, id DomainId) (result ListOwnershipIdentifiersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DomainsClient) ListOwnershipIdentifiers(ctx context.Context, id DomainId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOwnershipIdentifiersCustomPager{}, Path: fmt.Sprintf("%s/domainOwnershipIdentifiers", id.ID()), } diff --git a/resource-manager/web/2022-09-01/domains/method_listrecommendations.go b/resource-manager/web/2022-09-01/domains/method_listrecommendations.go index de29505132c..e59b7c9f97c 100644 --- a/resource-manager/web/2022-09-01/domains/method_listrecommendations.go +++ b/resource-manager/web/2022-09-01/domains/method_listrecommendations.go @@ -24,6 +24,18 @@ type ListRecommendationsCompleteResult struct { Items []NameIdentifier } +type ListRecommendationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRecommendationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRecommendations ... func (c DomainsClient) ListRecommendations(ctx context.Context, id commonids.SubscriptionId, input DomainRecommendationSearchParameters) (result ListRecommendationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DomainsClient) ListRecommendations(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListRecommendationsCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DomainRegistration/listDomainRecommendations", id.ID()), } diff --git a/resource-manager/web/2022-09-01/kubeenvironments/method_listbyresourcegroup.go b/resource-manager/web/2022-09-01/kubeenvironments/method_listbyresourcegroup.go index bc987c155e6..5b378fe3212 100644 --- a/resource-manager/web/2022-09-01/kubeenvironments/method_listbyresourcegroup.go +++ b/resource-manager/web/2022-09-01/kubeenvironments/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []KubeEnvironment } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c KubeEnvironmentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c KubeEnvironmentsClient) ListByResourceGroup(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/kubeEnvironments", id.ID()), } diff --git a/resource-manager/web/2022-09-01/kubeenvironments/method_listbysubscription.go b/resource-manager/web/2022-09-01/kubeenvironments/method_listbysubscription.go index a6c79892e57..a315f826e7c 100644 --- a/resource-manager/web/2022-09-01/kubeenvironments/method_listbysubscription.go +++ b/resource-manager/web/2022-09-01/kubeenvironments/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []KubeEnvironment } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c KubeEnvironmentsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c KubeEnvironmentsClient) ListBySubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/kubeEnvironments", id.ID()), } diff --git a/resource-manager/web/2022-09-01/provider/method_getavailablestacks.go b/resource-manager/web/2022-09-01/provider/method_getavailablestacks.go index e3c95b0d271..d38e1131c18 100644 --- a/resource-manager/web/2022-09-01/provider/method_getavailablestacks.go +++ b/resource-manager/web/2022-09-01/provider/method_getavailablestacks.go @@ -50,6 +50,18 @@ func (o GetAvailableStacksOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetAvailableStacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAvailableStacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAvailableStacks ... func (c ProviderClient) GetAvailableStacks(ctx context.Context, options GetAvailableStacksOperationOptions) (result GetAvailableStacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetAvailableStacks(ctx context.Context, options GetAvail http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Web/availableStacks", OptionsObject: options, + Pager: &GetAvailableStacksCustomPager{}, + Path: "/providers/Microsoft.Web/availableStacks", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/provider/method_getavailablestacksonprem.go b/resource-manager/web/2022-09-01/provider/method_getavailablestacksonprem.go index d1427b7e12c..88344e48bbe 100644 --- a/resource-manager/web/2022-09-01/provider/method_getavailablestacksonprem.go +++ b/resource-manager/web/2022-09-01/provider/method_getavailablestacksonprem.go @@ -51,6 +51,18 @@ func (o GetAvailableStacksOnPremOperationOptions) ToQuery() *client.QueryParams return &out } +type GetAvailableStacksOnPremCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAvailableStacksOnPremCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAvailableStacksOnPrem ... func (c ProviderClient) GetAvailableStacksOnPrem(ctx context.Context, id commonids.SubscriptionId, options GetAvailableStacksOnPremOperationOptions) (result GetAvailableStacksOnPremOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ProviderClient) GetAvailableStacksOnPrem(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/availableStacks", id.ID()), OptionsObject: options, + Pager: &GetAvailableStacksOnPremCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/availableStacks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/provider/method_getfunctionappstacks.go b/resource-manager/web/2022-09-01/provider/method_getfunctionappstacks.go index c3d16509989..e7d7af6faee 100644 --- a/resource-manager/web/2022-09-01/provider/method_getfunctionappstacks.go +++ b/resource-manager/web/2022-09-01/provider/method_getfunctionappstacks.go @@ -50,6 +50,18 @@ func (o GetFunctionAppStacksOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetFunctionAppStacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetFunctionAppStacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetFunctionAppStacks ... func (c ProviderClient) GetFunctionAppStacks(ctx context.Context, options GetFunctionAppStacksOperationOptions) (result GetFunctionAppStacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetFunctionAppStacks(ctx context.Context, options GetFun http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Web/functionAppStacks", OptionsObject: options, + Pager: &GetFunctionAppStacksCustomPager{}, + Path: "/providers/Microsoft.Web/functionAppStacks", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/provider/method_getfunctionappstacksforlocation.go b/resource-manager/web/2022-09-01/provider/method_getfunctionappstacksforlocation.go index 4c3aad06d10..d172b71e511 100644 --- a/resource-manager/web/2022-09-01/provider/method_getfunctionappstacksforlocation.go +++ b/resource-manager/web/2022-09-01/provider/method_getfunctionappstacksforlocation.go @@ -50,6 +50,18 @@ func (o GetFunctionAppStacksForLocationOperationOptions) ToQuery() *client.Query return &out } +type GetFunctionAppStacksForLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetFunctionAppStacksForLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetFunctionAppStacksForLocation ... func (c ProviderClient) GetFunctionAppStacksForLocation(ctx context.Context, id LocationId, options GetFunctionAppStacksForLocationOperationOptions) (result GetFunctionAppStacksForLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetFunctionAppStacksForLocation(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/functionAppStacks", id.ID()), OptionsObject: options, + Pager: &GetFunctionAppStacksForLocationCustomPager{}, + Path: fmt.Sprintf("%s/functionAppStacks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/provider/method_getwebappstacks.go b/resource-manager/web/2022-09-01/provider/method_getwebappstacks.go index 3ea1d65b326..94ed33af10c 100644 --- a/resource-manager/web/2022-09-01/provider/method_getwebappstacks.go +++ b/resource-manager/web/2022-09-01/provider/method_getwebappstacks.go @@ -50,6 +50,18 @@ func (o GetWebAppStacksOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetWebAppStacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetWebAppStacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetWebAppStacks ... func (c ProviderClient) GetWebAppStacks(ctx context.Context, options GetWebAppStacksOperationOptions) (result GetWebAppStacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetWebAppStacks(ctx context.Context, options GetWebAppSt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Web/webAppStacks", OptionsObject: options, + Pager: &GetWebAppStacksCustomPager{}, + Path: "/providers/Microsoft.Web/webAppStacks", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/provider/method_getwebappstacksforlocation.go b/resource-manager/web/2022-09-01/provider/method_getwebappstacksforlocation.go index fd6857cecd2..1b7970c0294 100644 --- a/resource-manager/web/2022-09-01/provider/method_getwebappstacksforlocation.go +++ b/resource-manager/web/2022-09-01/provider/method_getwebappstacksforlocation.go @@ -50,6 +50,18 @@ func (o GetWebAppStacksForLocationOperationOptions) ToQuery() *client.QueryParam return &out } +type GetWebAppStacksForLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetWebAppStacksForLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetWebAppStacksForLocation ... func (c ProviderClient) GetWebAppStacksForLocation(ctx context.Context, id LocationId, options GetWebAppStacksForLocationOperationOptions) (result GetWebAppStacksForLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetWebAppStacksForLocation(ctx context.Context, id Locat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/webAppStacks", id.ID()), OptionsObject: options, + Pager: &GetWebAppStacksForLocationCustomPager{}, + Path: fmt.Sprintf("%s/webAppStacks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/recommendations/method_disableallforhostingenvironment.go b/resource-manager/web/2022-09-01/recommendations/method_disableallforhostingenvironment.go index 3cf4d8a174d..3099cf85524 100644 --- a/resource-manager/web/2022-09-01/recommendations/method_disableallforhostingenvironment.go +++ b/resource-manager/web/2022-09-01/recommendations/method_disableallforhostingenvironment.go @@ -53,8 +53,8 @@ func (c RecommendationsClient) DisableAllForHostingEnvironment(ctx context.Conte http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/recommendations/disable", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/recommendations/disable", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/recommendations/method_disablerecommendationforhostingenvironment.go b/resource-manager/web/2022-09-01/recommendations/method_disablerecommendationforhostingenvironment.go index 9a2c85fe009..64a8ac5160d 100644 --- a/resource-manager/web/2022-09-01/recommendations/method_disablerecommendationforhostingenvironment.go +++ b/resource-manager/web/2022-09-01/recommendations/method_disablerecommendationforhostingenvironment.go @@ -52,8 +52,8 @@ func (c RecommendationsClient) DisableRecommendationForHostingEnvironment(ctx co http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/disable", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/disable", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/recommendations/method_getruledetailsbyhostingenvironment.go b/resource-manager/web/2022-09-01/recommendations/method_getruledetailsbyhostingenvironment.go index 524b4ba744d..2509533cd78 100644 --- a/resource-manager/web/2022-09-01/recommendations/method_getruledetailsbyhostingenvironment.go +++ b/resource-manager/web/2022-09-01/recommendations/method_getruledetailsbyhostingenvironment.go @@ -57,8 +57,8 @@ func (c RecommendationsClient) GetRuleDetailsByHostingEnvironment(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/recommendations/method_getruledetailsbywebapp.go b/resource-manager/web/2022-09-01/recommendations/method_getruledetailsbywebapp.go index aca06f267dd..8e4e22b5b79 100644 --- a/resource-manager/web/2022-09-01/recommendations/method_getruledetailsbywebapp.go +++ b/resource-manager/web/2022-09-01/recommendations/method_getruledetailsbywebapp.go @@ -57,8 +57,8 @@ func (c RecommendationsClient) GetRuleDetailsByWebApp(ctx context.Context, id Si http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/recommendations/method_list.go b/resource-manager/web/2022-09-01/recommendations/method_list.go index 4addca79cf1..f45d890f65b 100644 --- a/resource-manager/web/2022-09-01/recommendations/method_list.go +++ b/resource-manager/web/2022-09-01/recommendations/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RecommendationsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/recommendations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/recommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/recommendations/method_listhistoryforhostingenvironment.go b/resource-manager/web/2022-09-01/recommendations/method_listhistoryforhostingenvironment.go index 8e06b19581b..a66dab954fa 100644 --- a/resource-manager/web/2022-09-01/recommendations/method_listhistoryforhostingenvironment.go +++ b/resource-manager/web/2022-09-01/recommendations/method_listhistoryforhostingenvironment.go @@ -55,6 +55,18 @@ func (o ListHistoryForHostingEnvironmentOperationOptions) ToQuery() *client.Quer return &out } +type ListHistoryForHostingEnvironmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHistoryForHostingEnvironmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHistoryForHostingEnvironment ... func (c RecommendationsClient) ListHistoryForHostingEnvironment(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListHistoryForHostingEnvironmentOperationOptions) (result ListHistoryForHostingEnvironmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) ListHistoryForHostingEnvironment(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendationHistory", id.ID()), OptionsObject: options, + Pager: &ListHistoryForHostingEnvironmentCustomPager{}, + Path: fmt.Sprintf("%s/recommendationHistory", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/recommendations/method_listhistoryforwebapp.go b/resource-manager/web/2022-09-01/recommendations/method_listhistoryforwebapp.go index 9ee60f7ca8e..54a97058272 100644 --- a/resource-manager/web/2022-09-01/recommendations/method_listhistoryforwebapp.go +++ b/resource-manager/web/2022-09-01/recommendations/method_listhistoryforwebapp.go @@ -55,6 +55,18 @@ func (o ListHistoryForWebAppOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListHistoryForWebAppCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHistoryForWebAppCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHistoryForWebApp ... func (c RecommendationsClient) ListHistoryForWebApp(ctx context.Context, id commonids.AppServiceId, options ListHistoryForWebAppOperationOptions) (result ListHistoryForWebAppOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) ListHistoryForWebApp(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendationHistory", id.ID()), OptionsObject: options, + Pager: &ListHistoryForWebAppCustomPager{}, + Path: fmt.Sprintf("%s/recommendationHistory", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/recommendations/method_listrecommendedrulesforhostingenvironment.go b/resource-manager/web/2022-09-01/recommendations/method_listrecommendedrulesforhostingenvironment.go index 6702f1d0ea8..d7c819654b5 100644 --- a/resource-manager/web/2022-09-01/recommendations/method_listrecommendedrulesforhostingenvironment.go +++ b/resource-manager/web/2022-09-01/recommendations/method_listrecommendedrulesforhostingenvironment.go @@ -55,6 +55,18 @@ func (o ListRecommendedRulesForHostingEnvironmentOperationOptions) ToQuery() *cl return &out } +type ListRecommendedRulesForHostingEnvironmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRecommendedRulesForHostingEnvironmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRecommendedRulesForHostingEnvironment ... func (c RecommendationsClient) ListRecommendedRulesForHostingEnvironment(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListRecommendedRulesForHostingEnvironmentOperationOptions) (result ListRecommendedRulesForHostingEnvironmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) ListRecommendedRulesForHostingEnvironment(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendations", id.ID()), OptionsObject: options, + Pager: &ListRecommendedRulesForHostingEnvironmentCustomPager{}, + Path: fmt.Sprintf("%s/recommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/recommendations/method_listrecommendedrulesforwebapp.go b/resource-manager/web/2022-09-01/recommendations/method_listrecommendedrulesforwebapp.go index 51e166df89d..45f19bdafd5 100644 --- a/resource-manager/web/2022-09-01/recommendations/method_listrecommendedrulesforwebapp.go +++ b/resource-manager/web/2022-09-01/recommendations/method_listrecommendedrulesforwebapp.go @@ -55,6 +55,18 @@ func (o ListRecommendedRulesForWebAppOperationOptions) ToQuery() *client.QueryPa return &out } +type ListRecommendedRulesForWebAppCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRecommendedRulesForWebAppCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRecommendedRulesForWebApp ... func (c RecommendationsClient) ListRecommendedRulesForWebApp(ctx context.Context, id commonids.AppServiceId, options ListRecommendedRulesForWebAppOperationOptions) (result ListRecommendedRulesForWebAppOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) ListRecommendedRulesForWebApp(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendations", id.ID()), OptionsObject: options, + Pager: &ListRecommendedRulesForWebAppCustomPager{}, + Path: fmt.Sprintf("%s/recommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/recommendations/method_resetallfiltersforhostingenvironment.go b/resource-manager/web/2022-09-01/recommendations/method_resetallfiltersforhostingenvironment.go index 37b4b2703d0..23fe068d9bf 100644 --- a/resource-manager/web/2022-09-01/recommendations/method_resetallfiltersforhostingenvironment.go +++ b/resource-manager/web/2022-09-01/recommendations/method_resetallfiltersforhostingenvironment.go @@ -53,8 +53,8 @@ func (c RecommendationsClient) ResetAllFiltersForHostingEnvironment(ctx context. http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/recommendations/reset", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/recommendations/reset", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/resourcehealthmetadata/method_list.go b/resource-manager/web/2022-09-01/resourcehealthmetadata/method_list.go index e92184f3d0e..fc5ca6a83d6 100644 --- a/resource-manager/web/2022-09-01/resourcehealthmetadata/method_list.go +++ b/resource-manager/web/2022-09-01/resourcehealthmetadata/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ResourceHealthMetadata } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourceHealthMetadataClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceHealthMetadataClient) List(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/resourceHealthMetadata", id.ID()), } diff --git a/resource-manager/web/2022-09-01/resourcehealthmetadata/method_listbyresourcegroup.go b/resource-manager/web/2022-09-01/resourcehealthmetadata/method_listbyresourcegroup.go index c9732b0c927..44f705f6ee9 100644 --- a/resource-manager/web/2022-09-01/resourcehealthmetadata/method_listbyresourcegroup.go +++ b/resource-manager/web/2022-09-01/resourcehealthmetadata/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ResourceHealthMetadata } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ResourceHealthMetadataClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceHealthMetadataClient) ListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/resourceHealthMetadata", id.ID()), } diff --git a/resource-manager/web/2022-09-01/resourcehealthmetadata/method_listbysite.go b/resource-manager/web/2022-09-01/resourcehealthmetadata/method_listbysite.go index 884a120ea53..8b3c47e6b0c 100644 --- a/resource-manager/web/2022-09-01/resourcehealthmetadata/method_listbysite.go +++ b/resource-manager/web/2022-09-01/resourcehealthmetadata/method_listbysite.go @@ -24,6 +24,18 @@ type ListBySiteCompleteResult struct { Items []ResourceHealthMetadata } +type ListBySiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySite ... func (c ResourceHealthMetadataClient) ListBySite(ctx context.Context, id commonids.AppServiceId) (result ListBySiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceHealthMetadataClient) ListBySite(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySiteCustomPager{}, Path: fmt.Sprintf("%s/resourceHealthMetadata", id.ID()), } diff --git a/resource-manager/web/2022-09-01/resourcehealthmetadata/method_listbysiteslot.go b/resource-manager/web/2022-09-01/resourcehealthmetadata/method_listbysiteslot.go index 7ed12d15362..49e47b7379d 100644 --- a/resource-manager/web/2022-09-01/resourcehealthmetadata/method_listbysiteslot.go +++ b/resource-manager/web/2022-09-01/resourcehealthmetadata/method_listbysiteslot.go @@ -23,6 +23,18 @@ type ListBySiteSlotCompleteResult struct { Items []ResourceHealthMetadata } +type ListBySiteSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySiteSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySiteSlot ... func (c ResourceHealthMetadataClient) ListBySiteSlot(ctx context.Context, id SlotId) (result ListBySiteSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceHealthMetadataClient) ListBySiteSlot(ctx context.Context, id Slo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySiteSlotCustomPager{}, Path: fmt.Sprintf("%s/resourceHealthMetadata", id.ID()), } diff --git a/resource-manager/web/2022-09-01/resourceproviders/method_listbillingmeters.go b/resource-manager/web/2022-09-01/resourceproviders/method_listbillingmeters.go index 4779b97850c..684c35df7f1 100644 --- a/resource-manager/web/2022-09-01/resourceproviders/method_listbillingmeters.go +++ b/resource-manager/web/2022-09-01/resourceproviders/method_listbillingmeters.go @@ -55,6 +55,18 @@ func (o ListBillingMetersOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBillingMetersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBillingMetersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBillingMeters ... func (c ResourceProvidersClient) ListBillingMeters(ctx context.Context, id commonids.SubscriptionId, options ListBillingMetersOperationOptions) (result ListBillingMetersOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ResourceProvidersClient) ListBillingMeters(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/billingMeters", id.ID()), OptionsObject: options, + Pager: &ListBillingMetersCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/billingMeters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/resourceproviders/method_listcustomhostnamesites.go b/resource-manager/web/2022-09-01/resourceproviders/method_listcustomhostnamesites.go index fea9b3fab7f..62c87e04bf1 100644 --- a/resource-manager/web/2022-09-01/resourceproviders/method_listcustomhostnamesites.go +++ b/resource-manager/web/2022-09-01/resourceproviders/method_listcustomhostnamesites.go @@ -51,6 +51,18 @@ func (o ListCustomHostNameSitesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomHostNameSitesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomHostNameSitesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCustomHostNameSites ... func (c ResourceProvidersClient) ListCustomHostNameSites(ctx context.Context, id commonids.SubscriptionId, options ListCustomHostNameSitesOperationOptions) (result ListCustomHostNameSitesOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ResourceProvidersClient) ListCustomHostNameSites(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/customhostnameSites", id.ID()), OptionsObject: options, + Pager: &ListCustomHostNameSitesCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/customhostnameSites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/resourceproviders/method_listgeoregions.go b/resource-manager/web/2022-09-01/resourceproviders/method_listgeoregions.go index e8155e5bc12..ee39002c7a8 100644 --- a/resource-manager/web/2022-09-01/resourceproviders/method_listgeoregions.go +++ b/resource-manager/web/2022-09-01/resourceproviders/method_listgeoregions.go @@ -63,6 +63,18 @@ func (o ListGeoRegionsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListGeoRegionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListGeoRegionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListGeoRegions ... func (c ResourceProvidersClient) ListGeoRegions(ctx context.Context, id commonids.SubscriptionId, options ListGeoRegionsOperationOptions) (result ListGeoRegionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -71,8 +83,9 @@ func (c ResourceProvidersClient) ListGeoRegions(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/geoRegions", id.ID()), OptionsObject: options, + Pager: &ListGeoRegionsCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/geoRegions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/resourceproviders/method_listpremieraddonoffers.go b/resource-manager/web/2022-09-01/resourceproviders/method_listpremieraddonoffers.go index e7916ca9237..330e4571b61 100644 --- a/resource-manager/web/2022-09-01/resourceproviders/method_listpremieraddonoffers.go +++ b/resource-manager/web/2022-09-01/resourceproviders/method_listpremieraddonoffers.go @@ -24,6 +24,18 @@ type ListPremierAddOnOffersCompleteResult struct { Items []PremierAddOnOffer } +type ListPremierAddOnOffersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPremierAddOnOffersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPremierAddOnOffers ... func (c ResourceProvidersClient) ListPremierAddOnOffers(ctx context.Context, id commonids.SubscriptionId) (result ListPremierAddOnOffersOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceProvidersClient) ListPremierAddOnOffers(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPremierAddOnOffersCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/premieraddonoffers", id.ID()), } diff --git a/resource-manager/web/2022-09-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go b/resource-manager/web/2022-09-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go index c1bffee4cb3..b759ab015d3 100644 --- a/resource-manager/web/2022-09-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go +++ b/resource-manager/web/2022-09-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go @@ -24,6 +24,18 @@ type ListSiteIdentifiersAssignedToHostNameCompleteResult struct { Items []Identifier } +type ListSiteIdentifiersAssignedToHostNameCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteIdentifiersAssignedToHostNameCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteIdentifiersAssignedToHostName ... func (c ResourceProvidersClient) ListSiteIdentifiersAssignedToHostName(ctx context.Context, id commonids.SubscriptionId, input NameIdentifier) (result ListSiteIdentifiersAssignedToHostNameOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceProvidersClient) ListSiteIdentifiersAssignedToHostName(ctx conte http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSiteIdentifiersAssignedToHostNameCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/listSitesAssignedToHostName", id.ID()), } diff --git a/resource-manager/web/2022-09-01/resourceproviders/method_listsourcecontrols.go b/resource-manager/web/2022-09-01/resourceproviders/method_listsourcecontrols.go index 91c42d2744a..b06f0d3e624 100644 --- a/resource-manager/web/2022-09-01/resourceproviders/method_listsourcecontrols.go +++ b/resource-manager/web/2022-09-01/resourceproviders/method_listsourcecontrols.go @@ -23,6 +23,18 @@ type ListSourceControlsCompleteResult struct { Items []SourceControl } +type ListSourceControlsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSourceControlsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSourceControls ... func (c ResourceProvidersClient) ListSourceControls(ctx context.Context) (result ListSourceControlsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceProvidersClient) ListSourceControls(ctx context.Context) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSourceControlsCustomPager{}, Path: "/providers/Microsoft.Web/sourceControls", } diff --git a/resource-manager/web/2022-09-01/staticsites/method_getbuilddatabaseconnections.go b/resource-manager/web/2022-09-01/staticsites/method_getbuilddatabaseconnections.go index a32ff1e21ee..7b74f18507d 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_getbuilddatabaseconnections.go +++ b/resource-manager/web/2022-09-01/staticsites/method_getbuilddatabaseconnections.go @@ -23,6 +23,18 @@ type GetBuildDatabaseConnectionsCompleteResult struct { Items []DatabaseConnection } +type GetBuildDatabaseConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBuildDatabaseConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBuildDatabaseConnections ... func (c StaticSitesClient) GetBuildDatabaseConnections(ctx context.Context, id BuildId) (result GetBuildDatabaseConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetBuildDatabaseConnections(ctx context.Context, id B http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetBuildDatabaseConnectionsCustomPager{}, Path: fmt.Sprintf("%s/databaseConnections", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_getbuilddatabaseconnectionswithdetails.go b/resource-manager/web/2022-09-01/staticsites/method_getbuilddatabaseconnectionswithdetails.go index 6ce150c5f7b..dca1df6d320 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_getbuilddatabaseconnectionswithdetails.go +++ b/resource-manager/web/2022-09-01/staticsites/method_getbuilddatabaseconnectionswithdetails.go @@ -23,6 +23,18 @@ type GetBuildDatabaseConnectionsWithDetailsCompleteResult struct { Items []DatabaseConnection } +type GetBuildDatabaseConnectionsWithDetailsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBuildDatabaseConnectionsWithDetailsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBuildDatabaseConnectionsWithDetails ... func (c StaticSitesClient) GetBuildDatabaseConnectionsWithDetails(ctx context.Context, id BuildId) (result GetBuildDatabaseConnectionsWithDetailsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetBuildDatabaseConnectionsWithDetails(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetBuildDatabaseConnectionsWithDetailsCustomPager{}, Path: fmt.Sprintf("%s/showDatabaseConnections", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_getdatabaseconnections.go b/resource-manager/web/2022-09-01/staticsites/method_getdatabaseconnections.go index 030a9d42ab7..47dcec6884d 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_getdatabaseconnections.go +++ b/resource-manager/web/2022-09-01/staticsites/method_getdatabaseconnections.go @@ -23,6 +23,18 @@ type GetDatabaseConnectionsCompleteResult struct { Items []DatabaseConnection } +type GetDatabaseConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDatabaseConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDatabaseConnections ... func (c StaticSitesClient) GetDatabaseConnections(ctx context.Context, id StaticSiteId) (result GetDatabaseConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetDatabaseConnections(ctx context.Context, id Static http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDatabaseConnectionsCustomPager{}, Path: fmt.Sprintf("%s/databaseConnections", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_getdatabaseconnectionswithdetails.go b/resource-manager/web/2022-09-01/staticsites/method_getdatabaseconnectionswithdetails.go index 87437dabadd..4b57d3116ee 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_getdatabaseconnectionswithdetails.go +++ b/resource-manager/web/2022-09-01/staticsites/method_getdatabaseconnectionswithdetails.go @@ -23,6 +23,18 @@ type GetDatabaseConnectionsWithDetailsCompleteResult struct { Items []DatabaseConnection } +type GetDatabaseConnectionsWithDetailsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDatabaseConnectionsWithDetailsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDatabaseConnectionsWithDetails ... func (c StaticSitesClient) GetDatabaseConnectionsWithDetails(ctx context.Context, id StaticSiteId) (result GetDatabaseConnectionsWithDetailsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetDatabaseConnectionsWithDetails(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetDatabaseConnectionsWithDetailsCustomPager{}, Path: fmt.Sprintf("%s/showDatabaseConnections", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_getlinkedbackends.go b/resource-manager/web/2022-09-01/staticsites/method_getlinkedbackends.go index 17035b006d8..8b45e6df96b 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_getlinkedbackends.go +++ b/resource-manager/web/2022-09-01/staticsites/method_getlinkedbackends.go @@ -23,6 +23,18 @@ type GetLinkedBackendsCompleteResult struct { Items []StaticSiteLinkedBackendARMResource } +type GetLinkedBackendsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetLinkedBackendsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetLinkedBackends ... func (c StaticSitesClient) GetLinkedBackends(ctx context.Context, id StaticSiteId) (result GetLinkedBackendsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetLinkedBackends(ctx context.Context, id StaticSiteI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetLinkedBackendsCustomPager{}, Path: fmt.Sprintf("%s/linkedBackends", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_getlinkedbackendsforbuild.go b/resource-manager/web/2022-09-01/staticsites/method_getlinkedbackendsforbuild.go index ae42e346542..78d17e5d639 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_getlinkedbackendsforbuild.go +++ b/resource-manager/web/2022-09-01/staticsites/method_getlinkedbackendsforbuild.go @@ -23,6 +23,18 @@ type GetLinkedBackendsForBuildCompleteResult struct { Items []StaticSiteLinkedBackendARMResource } +type GetLinkedBackendsForBuildCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetLinkedBackendsForBuildCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetLinkedBackendsForBuild ... func (c StaticSitesClient) GetLinkedBackendsForBuild(ctx context.Context, id BuildId) (result GetLinkedBackendsForBuildOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetLinkedBackendsForBuild(ctx context.Context, id Bui http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetLinkedBackendsForBuildCustomPager{}, Path: fmt.Sprintf("%s/linkedBackends", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_getprivateendpointconnectionlist.go b/resource-manager/web/2022-09-01/staticsites/method_getprivateendpointconnectionlist.go index 56dadb4539a..7de0a9af9fb 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_getprivateendpointconnectionlist.go +++ b/resource-manager/web/2022-09-01/staticsites/method_getprivateendpointconnectionlist.go @@ -23,6 +23,18 @@ type GetPrivateEndpointConnectionListCompleteResult struct { Items []RemotePrivateEndpointConnectionARMResource } +type GetPrivateEndpointConnectionListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetPrivateEndpointConnectionListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetPrivateEndpointConnectionList ... func (c StaticSitesClient) GetPrivateEndpointConnectionList(ctx context.Context, id StaticSiteId) (result GetPrivateEndpointConnectionListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetPrivateEndpointConnectionList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetPrivateEndpointConnectionListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_getstaticsitebuilds.go b/resource-manager/web/2022-09-01/staticsites/method_getstaticsitebuilds.go index 574f7569255..b3a188507cf 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_getstaticsitebuilds.go +++ b/resource-manager/web/2022-09-01/staticsites/method_getstaticsitebuilds.go @@ -23,6 +23,18 @@ type GetStaticSiteBuildsCompleteResult struct { Items []StaticSiteBuildARMResource } +type GetStaticSiteBuildsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetStaticSiteBuildsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetStaticSiteBuilds ... func (c StaticSitesClient) GetStaticSiteBuilds(ctx context.Context, id StaticSiteId) (result GetStaticSiteBuildsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetStaticSiteBuilds(ctx context.Context, id StaticSit http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetStaticSiteBuildsCustomPager{}, Path: fmt.Sprintf("%s/builds", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_getstaticsitesbyresourcegroup.go b/resource-manager/web/2022-09-01/staticsites/method_getstaticsitesbyresourcegroup.go index 1225e3389a2..6c479510d72 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_getstaticsitesbyresourcegroup.go +++ b/resource-manager/web/2022-09-01/staticsites/method_getstaticsitesbyresourcegroup.go @@ -24,6 +24,18 @@ type GetStaticSitesByResourceGroupCompleteResult struct { Items []StaticSiteARMResource } +type GetStaticSitesByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetStaticSitesByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetStaticSitesByResourceGroup ... func (c StaticSitesClient) GetStaticSitesByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GetStaticSitesByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StaticSitesClient) GetStaticSitesByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetStaticSitesByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/staticSites", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_getuserprovidedfunctionappsforstaticsite.go b/resource-manager/web/2022-09-01/staticsites/method_getuserprovidedfunctionappsforstaticsite.go index 6025e193b2a..800d5ab1d72 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_getuserprovidedfunctionappsforstaticsite.go +++ b/resource-manager/web/2022-09-01/staticsites/method_getuserprovidedfunctionappsforstaticsite.go @@ -23,6 +23,18 @@ type GetUserProvidedFunctionAppsForStaticSiteCompleteResult struct { Items []StaticSiteUserProvidedFunctionAppARMResource } +type GetUserProvidedFunctionAppsForStaticSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUserProvidedFunctionAppsForStaticSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUserProvidedFunctionAppsForStaticSite ... func (c StaticSitesClient) GetUserProvidedFunctionAppsForStaticSite(ctx context.Context, id StaticSiteId) (result GetUserProvidedFunctionAppsForStaticSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetUserProvidedFunctionAppsForStaticSite(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUserProvidedFunctionAppsForStaticSiteCustomPager{}, Path: fmt.Sprintf("%s/userProvidedFunctionApps", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_getuserprovidedfunctionappsforstaticsitebuild.go b/resource-manager/web/2022-09-01/staticsites/method_getuserprovidedfunctionappsforstaticsitebuild.go index a7a48822a0a..b86539d1801 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_getuserprovidedfunctionappsforstaticsitebuild.go +++ b/resource-manager/web/2022-09-01/staticsites/method_getuserprovidedfunctionappsforstaticsitebuild.go @@ -23,6 +23,18 @@ type GetUserProvidedFunctionAppsForStaticSiteBuildCompleteResult struct { Items []StaticSiteUserProvidedFunctionAppARMResource } +type GetUserProvidedFunctionAppsForStaticSiteBuildCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUserProvidedFunctionAppsForStaticSiteBuildCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUserProvidedFunctionAppsForStaticSiteBuild ... func (c StaticSitesClient) GetUserProvidedFunctionAppsForStaticSiteBuild(ctx context.Context, id BuildId) (result GetUserProvidedFunctionAppsForStaticSiteBuildOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetUserProvidedFunctionAppsForStaticSiteBuild(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUserProvidedFunctionAppsForStaticSiteBuildCustomPager{}, Path: fmt.Sprintf("%s/userProvidedFunctionApps", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_list.go b/resource-manager/web/2022-09-01/staticsites/method_list.go index 21d87169b53..e071040c10d 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_list.go +++ b/resource-manager/web/2022-09-01/staticsites/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []StaticSiteARMResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StaticSitesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StaticSitesClient) List(ctx context.Context, id commonids.SubscriptionId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/staticSites", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_listbasicauth.go b/resource-manager/web/2022-09-01/staticsites/method_listbasicauth.go index 95300943673..3c466f4f588 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_listbasicauth.go +++ b/resource-manager/web/2022-09-01/staticsites/method_listbasicauth.go @@ -23,6 +23,18 @@ type ListBasicAuthCompleteResult struct { Items []StaticSiteBasicAuthPropertiesARMResource } +type ListBasicAuthCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBasicAuthCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBasicAuth ... func (c StaticSitesClient) ListBasicAuth(ctx context.Context, id StaticSiteId) (result ListBasicAuthOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListBasicAuth(ctx context.Context, id StaticSiteId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBasicAuthCustomPager{}, Path: fmt.Sprintf("%s/basicAuth", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_liststaticsitebuildfunctions.go b/resource-manager/web/2022-09-01/staticsites/method_liststaticsitebuildfunctions.go index 70fbabed186..3f2f7d75e25 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_liststaticsitebuildfunctions.go +++ b/resource-manager/web/2022-09-01/staticsites/method_liststaticsitebuildfunctions.go @@ -23,6 +23,18 @@ type ListStaticSiteBuildFunctionsCompleteResult struct { Items []StaticSiteFunctionOverviewARMResource } +type ListStaticSiteBuildFunctionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListStaticSiteBuildFunctionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListStaticSiteBuildFunctions ... func (c StaticSitesClient) ListStaticSiteBuildFunctions(ctx context.Context, id BuildId) (result ListStaticSiteBuildFunctionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListStaticSiteBuildFunctions(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListStaticSiteBuildFunctionsCustomPager{}, Path: fmt.Sprintf("%s/functions", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_liststaticsitecustomdomains.go b/resource-manager/web/2022-09-01/staticsites/method_liststaticsitecustomdomains.go index 6e912e97840..da0d6cea4e9 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_liststaticsitecustomdomains.go +++ b/resource-manager/web/2022-09-01/staticsites/method_liststaticsitecustomdomains.go @@ -23,6 +23,18 @@ type ListStaticSiteCustomDomainsCompleteResult struct { Items []StaticSiteCustomDomainOverviewARMResource } +type ListStaticSiteCustomDomainsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListStaticSiteCustomDomainsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListStaticSiteCustomDomains ... func (c StaticSitesClient) ListStaticSiteCustomDomains(ctx context.Context, id StaticSiteId) (result ListStaticSiteCustomDomainsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListStaticSiteCustomDomains(ctx context.Context, id S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListStaticSiteCustomDomainsCustomPager{}, Path: fmt.Sprintf("%s/customDomains", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_liststaticsitefunctions.go b/resource-manager/web/2022-09-01/staticsites/method_liststaticsitefunctions.go index 0549ce204f3..625443d50b3 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_liststaticsitefunctions.go +++ b/resource-manager/web/2022-09-01/staticsites/method_liststaticsitefunctions.go @@ -23,6 +23,18 @@ type ListStaticSiteFunctionsCompleteResult struct { Items []StaticSiteFunctionOverviewARMResource } +type ListStaticSiteFunctionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListStaticSiteFunctionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListStaticSiteFunctions ... func (c StaticSitesClient) ListStaticSiteFunctions(ctx context.Context, id StaticSiteId) (result ListStaticSiteFunctionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListStaticSiteFunctions(ctx context.Context, id Stati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListStaticSiteFunctionsCustomPager{}, Path: fmt.Sprintf("%s/functions", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_liststaticsiteusers.go b/resource-manager/web/2022-09-01/staticsites/method_liststaticsiteusers.go index f9d9a2e33da..d711c5393b9 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_liststaticsiteusers.go +++ b/resource-manager/web/2022-09-01/staticsites/method_liststaticsiteusers.go @@ -23,6 +23,18 @@ type ListStaticSiteUsersCompleteResult struct { Items []StaticSiteUserARMResource } +type ListStaticSiteUsersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListStaticSiteUsersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListStaticSiteUsers ... func (c StaticSitesClient) ListStaticSiteUsers(ctx context.Context, id AuthProviderId) (result ListStaticSiteUsersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListStaticSiteUsers(ctx context.Context, id AuthProvi http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListStaticSiteUsersCustomPager{}, Path: fmt.Sprintf("%s/listUsers", id.ID()), } diff --git a/resource-manager/web/2022-09-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go b/resource-manager/web/2022-09-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go index cda8ba615de..5cfabf447f9 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go +++ b/resource-manager/web/2022-09-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go @@ -57,8 +57,8 @@ func (c StaticSitesClient) RegisterUserProvidedFunctionAppWithStaticSite(ctx con http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go b/resource-manager/web/2022-09-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go index a3f67cbfd6e..32f030cb1b3 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go +++ b/resource-manager/web/2022-09-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go @@ -57,8 +57,8 @@ func (c StaticSitesClient) RegisterUserProvidedFunctionAppWithStaticSiteBuild(ct http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/staticsites/method_unlinkbackend.go b/resource-manager/web/2022-09-01/staticsites/method_unlinkbackend.go index 98066240969..897c1be7925 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_unlinkbackend.go +++ b/resource-manager/web/2022-09-01/staticsites/method_unlinkbackend.go @@ -53,8 +53,8 @@ func (c StaticSitesClient) UnlinkBackend(ctx context.Context, id LinkedBackendId http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/staticsites/method_unlinkbackendfrombuild.go b/resource-manager/web/2022-09-01/staticsites/method_unlinkbackendfrombuild.go index 9ef02435e54..7e356363af4 100644 --- a/resource-manager/web/2022-09-01/staticsites/method_unlinkbackendfrombuild.go +++ b/resource-manager/web/2022-09-01/staticsites/method_unlinkbackendfrombuild.go @@ -53,8 +53,8 @@ func (c StaticSitesClient) UnlinkBackendFromBuild(ctx context.Context, id BuildL http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/topleveldomains/method_list.go b/resource-manager/web/2022-09-01/topleveldomains/method_list.go index c985fabe4f6..3047b40a525 100644 --- a/resource-manager/web/2022-09-01/topleveldomains/method_list.go +++ b/resource-manager/web/2022-09-01/topleveldomains/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []TopLevelDomain } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TopLevelDomainsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TopLevelDomainsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DomainRegistration/topLevelDomains", id.ID()), } diff --git a/resource-manager/web/2022-09-01/topleveldomains/method_listagreements.go b/resource-manager/web/2022-09-01/topleveldomains/method_listagreements.go index bd043fd89ed..aef7718cae9 100644 --- a/resource-manager/web/2022-09-01/topleveldomains/method_listagreements.go +++ b/resource-manager/web/2022-09-01/topleveldomains/method_listagreements.go @@ -23,6 +23,18 @@ type ListAgreementsCompleteResult struct { Items []TldLegalAgreement } +type ListAgreementsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAgreementsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAgreements ... func (c TopLevelDomainsClient) ListAgreements(ctx context.Context, id TopLevelDomainId, input TopLevelDomainAgreementOption) (result ListAgreementsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TopLevelDomainsClient) ListAgreements(ctx context.Context, id TopLevelDo http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListAgreementsCustomPager{}, Path: fmt.Sprintf("%s/listAgreements", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_analyzecustomhostname.go b/resource-manager/web/2022-09-01/webapps/method_analyzecustomhostname.go index 6f783084cf7..b5b486f1e77 100644 --- a/resource-manager/web/2022-09-01/webapps/method_analyzecustomhostname.go +++ b/resource-manager/web/2022-09-01/webapps/method_analyzecustomhostname.go @@ -54,8 +54,8 @@ func (c WebAppsClient) AnalyzeCustomHostname(ctx context.Context, id commonids.A http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/analyzeCustomHostname", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/analyzeCustomHostname", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_analyzecustomhostnameslot.go b/resource-manager/web/2022-09-01/webapps/method_analyzecustomhostnameslot.go index a0f093109eb..4c608ff0d59 100644 --- a/resource-manager/web/2022-09-01/webapps/method_analyzecustomhostnameslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_analyzecustomhostnameslot.go @@ -53,8 +53,8 @@ func (c WebAppsClient) AnalyzeCustomHostnameSlot(ctx context.Context, id SlotId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/analyzeCustomHostname", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/analyzeCustomHostname", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_delete.go b/resource-manager/web/2022-09-01/webapps/method_delete.go index e9d88eba269..491e0c6eca1 100644 --- a/resource-manager/web/2022-09-01/webapps/method_delete.go +++ b/resource-manager/web/2022-09-01/webapps/method_delete.go @@ -58,8 +58,8 @@ func (c WebAppsClient) Delete(ctx context.Context, id commonids.AppServiceId, op http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_deleteslot.go b/resource-manager/web/2022-09-01/webapps/method_deleteslot.go index b134af54533..c2d4db43a52 100644 --- a/resource-manager/web/2022-09-01/webapps/method_deleteslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_deleteslot.go @@ -57,8 +57,8 @@ func (c WebAppsClient) DeleteSlot(ctx context.Context, id SlotId, options Delete http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_deletesourcecontrol.go b/resource-manager/web/2022-09-01/webapps/method_deletesourcecontrol.go index 1de5d801f35..7416e19fd09 100644 --- a/resource-manager/web/2022-09-01/webapps/method_deletesourcecontrol.go +++ b/resource-manager/web/2022-09-01/webapps/method_deletesourcecontrol.go @@ -54,8 +54,8 @@ func (c WebAppsClient) DeleteSourceControl(ctx context.Context, id commonids.App http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_deletesourcecontrolslot.go b/resource-manager/web/2022-09-01/webapps/method_deletesourcecontrolslot.go index 58843d09923..571dfbab3ab 100644 --- a/resource-manager/web/2022-09-01/webapps/method_deletesourcecontrolslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_deletesourcecontrolslot.go @@ -53,8 +53,8 @@ func (c WebAppsClient) DeleteSourceControlSlot(ctx context.Context, id SlotId, o http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_getappsettingskeyvaultreferences.go b/resource-manager/web/2022-09-01/webapps/method_getappsettingskeyvaultreferences.go index 13789dc34c6..043c62e221d 100644 --- a/resource-manager/web/2022-09-01/webapps/method_getappsettingskeyvaultreferences.go +++ b/resource-manager/web/2022-09-01/webapps/method_getappsettingskeyvaultreferences.go @@ -24,6 +24,18 @@ type GetAppSettingsKeyVaultReferencesCompleteResult struct { Items []ApiKVReference } +type GetAppSettingsKeyVaultReferencesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAppSettingsKeyVaultReferencesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAppSettingsKeyVaultReferences ... func (c WebAppsClient) GetAppSettingsKeyVaultReferences(ctx context.Context, id commonids.AppServiceId) (result GetAppSettingsKeyVaultReferencesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) GetAppSettingsKeyVaultReferences(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetAppSettingsKeyVaultReferencesCustomPager{}, Path: fmt.Sprintf("%s/config/configReferences/appSettings", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_getappsettingskeyvaultreferencesslot.go b/resource-manager/web/2022-09-01/webapps/method_getappsettingskeyvaultreferencesslot.go index 31339b54910..ee5c3cbf23a 100644 --- a/resource-manager/web/2022-09-01/webapps/method_getappsettingskeyvaultreferencesslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_getappsettingskeyvaultreferencesslot.go @@ -23,6 +23,18 @@ type GetAppSettingsKeyVaultReferencesSlotCompleteResult struct { Items []ApiKVReference } +type GetAppSettingsKeyVaultReferencesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAppSettingsKeyVaultReferencesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAppSettingsKeyVaultReferencesSlot ... func (c WebAppsClient) GetAppSettingsKeyVaultReferencesSlot(ctx context.Context, id SlotId) (result GetAppSettingsKeyVaultReferencesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) GetAppSettingsKeyVaultReferencesSlot(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetAppSettingsKeyVaultReferencesSlotCustomPager{}, Path: fmt.Sprintf("%s/config/configReferences/appSettings", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_getprivateendpointconnectionlist.go b/resource-manager/web/2022-09-01/webapps/method_getprivateendpointconnectionlist.go index bc56c125636..7eab86729c0 100644 --- a/resource-manager/web/2022-09-01/webapps/method_getprivateendpointconnectionlist.go +++ b/resource-manager/web/2022-09-01/webapps/method_getprivateendpointconnectionlist.go @@ -24,6 +24,18 @@ type GetPrivateEndpointConnectionListCompleteResult struct { Items []RemotePrivateEndpointConnectionARMResource } +type GetPrivateEndpointConnectionListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetPrivateEndpointConnectionListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetPrivateEndpointConnectionList ... func (c WebAppsClient) GetPrivateEndpointConnectionList(ctx context.Context, id commonids.AppServiceId) (result GetPrivateEndpointConnectionListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) GetPrivateEndpointConnectionList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetPrivateEndpointConnectionListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_getprivateendpointconnectionlistslot.go b/resource-manager/web/2022-09-01/webapps/method_getprivateendpointconnectionlistslot.go index 3c81c133f28..46bf684dad2 100644 --- a/resource-manager/web/2022-09-01/webapps/method_getprivateendpointconnectionlistslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_getprivateendpointconnectionlistslot.go @@ -23,6 +23,18 @@ type GetPrivateEndpointConnectionListSlotCompleteResult struct { Items []RemotePrivateEndpointConnectionARMResource } +type GetPrivateEndpointConnectionListSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetPrivateEndpointConnectionListSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetPrivateEndpointConnectionListSlot ... func (c WebAppsClient) GetPrivateEndpointConnectionListSlot(ctx context.Context, id SlotId) (result GetPrivateEndpointConnectionListSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) GetPrivateEndpointConnectionListSlot(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetPrivateEndpointConnectionListSlotCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go b/resource-manager/web/2022-09-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go index cc3f4652fd2..6544219dc39 100644 --- a/resource-manager/web/2022-09-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go +++ b/resource-manager/web/2022-09-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go @@ -24,6 +24,18 @@ type GetSiteConnectionStringKeyVaultReferencesCompleteResult struct { Items []ApiKVReference } +type GetSiteConnectionStringKeyVaultReferencesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetSiteConnectionStringKeyVaultReferencesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetSiteConnectionStringKeyVaultReferences ... func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferences(ctx context.Context, id commonids.AppServiceId) (result GetSiteConnectionStringKeyVaultReferencesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferences(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetSiteConnectionStringKeyVaultReferencesCustomPager{}, Path: fmt.Sprintf("%s/config/configReferences/connectionStrings", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go b/resource-manager/web/2022-09-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go index 463f2f7c4b4..94803ca2384 100644 --- a/resource-manager/web/2022-09-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go @@ -23,6 +23,18 @@ type GetSiteConnectionStringKeyVaultReferencesSlotCompleteResult struct { Items []ApiKVReference } +type GetSiteConnectionStringKeyVaultReferencesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetSiteConnectionStringKeyVaultReferencesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetSiteConnectionStringKeyVaultReferencesSlot ... func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferencesSlot(ctx context.Context, id SlotId) (result GetSiteConnectionStringKeyVaultReferencesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferencesSlot(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetSiteConnectionStringKeyVaultReferencesSlotCustomPager{}, Path: fmt.Sprintf("%s/config/configReferences/connectionStrings", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_list.go b/resource-manager/web/2022-09-01/webapps/method_list.go index bfeac1c6a6a..460b637e374 100644 --- a/resource-manager/web/2022-09-01/webapps/method_list.go +++ b/resource-manager/web/2022-09-01/webapps/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Site } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WebAppsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) List(ctx context.Context, id commonids.SubscriptionId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/sites", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listbackups.go b/resource-manager/web/2022-09-01/webapps/method_listbackups.go index 5a8136aba75..a8b70b26ecf 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listbackups.go +++ b/resource-manager/web/2022-09-01/webapps/method_listbackups.go @@ -24,6 +24,18 @@ type ListBackupsCompleteResult struct { Items []BackupItem } +type ListBackupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBackupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBackups ... func (c WebAppsClient) ListBackups(ctx context.Context, id commonids.AppServiceId) (result ListBackupsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListBackups(ctx context.Context, id commonids.AppServiceI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBackupsCustomPager{}, Path: fmt.Sprintf("%s/backups", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listbackupsslot.go b/resource-manager/web/2022-09-01/webapps/method_listbackupsslot.go index 3c3b88bb59a..c76afbae931 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listbackupsslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listbackupsslot.go @@ -23,6 +23,18 @@ type ListBackupsSlotCompleteResult struct { Items []BackupItem } +type ListBackupsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBackupsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBackupsSlot ... func (c WebAppsClient) ListBackupsSlot(ctx context.Context, id SlotId) (result ListBackupsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListBackupsSlot(ctx context.Context, id SlotId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBackupsSlotCustomPager{}, Path: fmt.Sprintf("%s/backups", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listbasicpublishingcredentialspolicies.go b/resource-manager/web/2022-09-01/webapps/method_listbasicpublishingcredentialspolicies.go index bb1f59c1b25..48de93b0880 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listbasicpublishingcredentialspolicies.go +++ b/resource-manager/web/2022-09-01/webapps/method_listbasicpublishingcredentialspolicies.go @@ -24,6 +24,18 @@ type ListBasicPublishingCredentialsPoliciesCompleteResult struct { Items []CsmPublishingCredentialsPoliciesEntity } +type ListBasicPublishingCredentialsPoliciesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBasicPublishingCredentialsPoliciesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBasicPublishingCredentialsPolicies ... func (c WebAppsClient) ListBasicPublishingCredentialsPolicies(ctx context.Context, id commonids.AppServiceId) (result ListBasicPublishingCredentialsPoliciesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListBasicPublishingCredentialsPolicies(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBasicPublishingCredentialsPoliciesCustomPager{}, Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go b/resource-manager/web/2022-09-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go index a4fb1885aec..6bfb2b86ffe 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go @@ -23,6 +23,18 @@ type ListBasicPublishingCredentialsPoliciesSlotCompleteResult struct { Items []CsmPublishingCredentialsPoliciesEntity } +type ListBasicPublishingCredentialsPoliciesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBasicPublishingCredentialsPoliciesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBasicPublishingCredentialsPoliciesSlot ... func (c WebAppsClient) ListBasicPublishingCredentialsPoliciesSlot(ctx context.Context, id SlotId) (result ListBasicPublishingCredentialsPoliciesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListBasicPublishingCredentialsPoliciesSlot(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBasicPublishingCredentialsPoliciesSlotCustomPager{}, Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listbyresourcegroup.go b/resource-manager/web/2022-09-01/webapps/method_listbyresourcegroup.go index 2fc1ae89f5d..3f9b2569d77 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listbyresourcegroup.go +++ b/resource-manager/web/2022-09-01/webapps/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WebAppsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c WebAppsClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/sites", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/sites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_listconfigurations.go b/resource-manager/web/2022-09-01/webapps/method_listconfigurations.go index 5f05ecf1172..8e804a2f12c 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listconfigurations.go +++ b/resource-manager/web/2022-09-01/webapps/method_listconfigurations.go @@ -24,6 +24,18 @@ type ListConfigurationsCompleteResult struct { Items []SiteConfigResource } +type ListConfigurationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConfigurationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConfigurations ... func (c WebAppsClient) ListConfigurations(ctx context.Context, id commonids.AppServiceId) (result ListConfigurationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListConfigurations(ctx context.Context, id commonids.AppS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConfigurationsCustomPager{}, Path: fmt.Sprintf("%s/config", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listconfigurationsnapshotinfo.go b/resource-manager/web/2022-09-01/webapps/method_listconfigurationsnapshotinfo.go index 652bf6cf34d..c3b12636fbb 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listconfigurationsnapshotinfo.go +++ b/resource-manager/web/2022-09-01/webapps/method_listconfigurationsnapshotinfo.go @@ -24,6 +24,18 @@ type ListConfigurationSnapshotInfoCompleteResult struct { Items []SiteConfigurationSnapshotInfo } +type ListConfigurationSnapshotInfoCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConfigurationSnapshotInfoCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConfigurationSnapshotInfo ... func (c WebAppsClient) ListConfigurationSnapshotInfo(ctx context.Context, id commonids.AppServiceId) (result ListConfigurationSnapshotInfoOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListConfigurationSnapshotInfo(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConfigurationSnapshotInfoCustomPager{}, Path: fmt.Sprintf("%s/config/web/snapshots", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listconfigurationsnapshotinfoslot.go b/resource-manager/web/2022-09-01/webapps/method_listconfigurationsnapshotinfoslot.go index 44202f38771..cef77008f85 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listconfigurationsnapshotinfoslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listconfigurationsnapshotinfoslot.go @@ -23,6 +23,18 @@ type ListConfigurationSnapshotInfoSlotCompleteResult struct { Items []SiteConfigurationSnapshotInfo } +type ListConfigurationSnapshotInfoSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConfigurationSnapshotInfoSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConfigurationSnapshotInfoSlot ... func (c WebAppsClient) ListConfigurationSnapshotInfoSlot(ctx context.Context, id SlotId) (result ListConfigurationSnapshotInfoSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListConfigurationSnapshotInfoSlot(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConfigurationSnapshotInfoSlotCustomPager{}, Path: fmt.Sprintf("%s/config/web/snapshots", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listconfigurationsslot.go b/resource-manager/web/2022-09-01/webapps/method_listconfigurationsslot.go index f80f201e6f4..4e3d0acefe3 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listconfigurationsslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listconfigurationsslot.go @@ -23,6 +23,18 @@ type ListConfigurationsSlotCompleteResult struct { Items []SiteConfigResource } +type ListConfigurationsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConfigurationsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConfigurationsSlot ... func (c WebAppsClient) ListConfigurationsSlot(ctx context.Context, id SlotId) (result ListConfigurationsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListConfigurationsSlot(ctx context.Context, id SlotId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConfigurationsSlotCustomPager{}, Path: fmt.Sprintf("%s/config", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listcontinuouswebjobs.go b/resource-manager/web/2022-09-01/webapps/method_listcontinuouswebjobs.go index 8e9ad1c4e72..63d3df76b91 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listcontinuouswebjobs.go +++ b/resource-manager/web/2022-09-01/webapps/method_listcontinuouswebjobs.go @@ -24,6 +24,18 @@ type ListContinuousWebJobsCompleteResult struct { Items []ContinuousWebJob } +type ListContinuousWebJobsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListContinuousWebJobsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListContinuousWebJobs ... func (c WebAppsClient) ListContinuousWebJobs(ctx context.Context, id commonids.AppServiceId) (result ListContinuousWebJobsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListContinuousWebJobs(ctx context.Context, id commonids.A http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListContinuousWebJobsCustomPager{}, Path: fmt.Sprintf("%s/continuousWebJobs", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listcontinuouswebjobsslot.go b/resource-manager/web/2022-09-01/webapps/method_listcontinuouswebjobsslot.go index 1004a452a7d..f187ed28ce3 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listcontinuouswebjobsslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listcontinuouswebjobsslot.go @@ -23,6 +23,18 @@ type ListContinuousWebJobsSlotCompleteResult struct { Items []ContinuousWebJob } +type ListContinuousWebJobsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListContinuousWebJobsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListContinuousWebJobsSlot ... func (c WebAppsClient) ListContinuousWebJobsSlot(ctx context.Context, id SlotId) (result ListContinuousWebJobsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListContinuousWebJobsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListContinuousWebJobsSlotCustomPager{}, Path: fmt.Sprintf("%s/continuousWebJobs", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listdeployments.go b/resource-manager/web/2022-09-01/webapps/method_listdeployments.go index dbc3fe7702d..62fe0173758 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listdeployments.go +++ b/resource-manager/web/2022-09-01/webapps/method_listdeployments.go @@ -24,6 +24,18 @@ type ListDeploymentsCompleteResult struct { Items []Deployment } +type ListDeploymentsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDeploymentsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDeployments ... func (c WebAppsClient) ListDeployments(ctx context.Context, id commonids.AppServiceId) (result ListDeploymentsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListDeployments(ctx context.Context, id commonids.AppServ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDeploymentsCustomPager{}, Path: fmt.Sprintf("%s/deployments", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listdeploymentsslot.go b/resource-manager/web/2022-09-01/webapps/method_listdeploymentsslot.go index a654f040dda..d42866c7b88 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listdeploymentsslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listdeploymentsslot.go @@ -23,6 +23,18 @@ type ListDeploymentsSlotCompleteResult struct { Items []Deployment } +type ListDeploymentsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDeploymentsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDeploymentsSlot ... func (c WebAppsClient) ListDeploymentsSlot(ctx context.Context, id SlotId) (result ListDeploymentsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListDeploymentsSlot(ctx context.Context, id SlotId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDeploymentsSlotCustomPager{}, Path: fmt.Sprintf("%s/deployments", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listdomainownershipidentifiers.go b/resource-manager/web/2022-09-01/webapps/method_listdomainownershipidentifiers.go index 1e11d65c73d..113e62c90b8 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listdomainownershipidentifiers.go +++ b/resource-manager/web/2022-09-01/webapps/method_listdomainownershipidentifiers.go @@ -24,6 +24,18 @@ type ListDomainOwnershipIdentifiersCompleteResult struct { Items []Identifier } +type ListDomainOwnershipIdentifiersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDomainOwnershipIdentifiersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDomainOwnershipIdentifiers ... func (c WebAppsClient) ListDomainOwnershipIdentifiers(ctx context.Context, id commonids.AppServiceId) (result ListDomainOwnershipIdentifiersOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListDomainOwnershipIdentifiers(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDomainOwnershipIdentifiersCustomPager{}, Path: fmt.Sprintf("%s/domainOwnershipIdentifiers", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listdomainownershipidentifiersslot.go b/resource-manager/web/2022-09-01/webapps/method_listdomainownershipidentifiersslot.go index 58149ed5d79..8bf54d7bc37 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listdomainownershipidentifiersslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listdomainownershipidentifiersslot.go @@ -23,6 +23,18 @@ type ListDomainOwnershipIdentifiersSlotCompleteResult struct { Items []Identifier } +type ListDomainOwnershipIdentifiersSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDomainOwnershipIdentifiersSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDomainOwnershipIdentifiersSlot ... func (c WebAppsClient) ListDomainOwnershipIdentifiersSlot(ctx context.Context, id SlotId) (result ListDomainOwnershipIdentifiersSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListDomainOwnershipIdentifiersSlot(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDomainOwnershipIdentifiersSlotCustomPager{}, Path: fmt.Sprintf("%s/domainOwnershipIdentifiers", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listfunctions.go b/resource-manager/web/2022-09-01/webapps/method_listfunctions.go index d279193909b..bec63cb0d75 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listfunctions.go +++ b/resource-manager/web/2022-09-01/webapps/method_listfunctions.go @@ -24,6 +24,18 @@ type ListFunctionsCompleteResult struct { Items []FunctionEnvelope } +type ListFunctionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListFunctionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListFunctions ... func (c WebAppsClient) ListFunctions(ctx context.Context, id commonids.AppServiceId) (result ListFunctionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListFunctions(ctx context.Context, id commonids.AppServic http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListFunctionsCustomPager{}, Path: fmt.Sprintf("%s/functions", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listhostnamebindings.go b/resource-manager/web/2022-09-01/webapps/method_listhostnamebindings.go index 9523c81cd3d..3dc80a9cfb7 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listhostnamebindings.go +++ b/resource-manager/web/2022-09-01/webapps/method_listhostnamebindings.go @@ -24,6 +24,18 @@ type ListHostNameBindingsCompleteResult struct { Items []HostNameBinding } +type ListHostNameBindingsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHostNameBindingsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHostNameBindings ... func (c WebAppsClient) ListHostNameBindings(ctx context.Context, id commonids.AppServiceId) (result ListHostNameBindingsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListHostNameBindings(ctx context.Context, id commonids.Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHostNameBindingsCustomPager{}, Path: fmt.Sprintf("%s/hostNameBindings", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listhostnamebindingsslot.go b/resource-manager/web/2022-09-01/webapps/method_listhostnamebindingsslot.go index 994fa1fa812..e2425090bce 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listhostnamebindingsslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listhostnamebindingsslot.go @@ -23,6 +23,18 @@ type ListHostNameBindingsSlotCompleteResult struct { Items []HostNameBinding } +type ListHostNameBindingsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHostNameBindingsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHostNameBindingsSlot ... func (c WebAppsClient) ListHostNameBindingsSlot(ctx context.Context, id SlotId) (result ListHostNameBindingsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListHostNameBindingsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHostNameBindingsSlotCustomPager{}, Path: fmt.Sprintf("%s/hostNameBindings", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listinstancefunctionsslot.go b/resource-manager/web/2022-09-01/webapps/method_listinstancefunctionsslot.go index ed90208bb4f..6c10eace684 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listinstancefunctionsslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listinstancefunctionsslot.go @@ -23,6 +23,18 @@ type ListInstanceFunctionsSlotCompleteResult struct { Items []FunctionEnvelope } +type ListInstanceFunctionsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceFunctionsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceFunctionsSlot ... func (c WebAppsClient) ListInstanceFunctionsSlot(ctx context.Context, id SlotId) (result ListInstanceFunctionsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceFunctionsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceFunctionsSlotCustomPager{}, Path: fmt.Sprintf("%s/functions", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listinstanceidentifiers.go b/resource-manager/web/2022-09-01/webapps/method_listinstanceidentifiers.go index bbcb5088d18..62730a6aff2 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listinstanceidentifiers.go +++ b/resource-manager/web/2022-09-01/webapps/method_listinstanceidentifiers.go @@ -24,6 +24,18 @@ type ListInstanceIdentifiersCompleteResult struct { Items []WebSiteInstanceStatus } +type ListInstanceIdentifiersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceIdentifiersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceIdentifiers ... func (c WebAppsClient) ListInstanceIdentifiers(ctx context.Context, id commonids.AppServiceId) (result ListInstanceIdentifiersOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListInstanceIdentifiers(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceIdentifiersCustomPager{}, Path: fmt.Sprintf("%s/instances", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listinstanceidentifiersslot.go b/resource-manager/web/2022-09-01/webapps/method_listinstanceidentifiersslot.go index 0a153b5dbac..65ad91633e2 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listinstanceidentifiersslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listinstanceidentifiersslot.go @@ -23,6 +23,18 @@ type ListInstanceIdentifiersSlotCompleteResult struct { Items []WebSiteInstanceStatus } +type ListInstanceIdentifiersSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceIdentifiersSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceIdentifiersSlot ... func (c WebAppsClient) ListInstanceIdentifiersSlot(ctx context.Context, id SlotId) (result ListInstanceIdentifiersSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceIdentifiersSlot(ctx context.Context, id SlotI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceIdentifiersSlotCustomPager{}, Path: fmt.Sprintf("%s/instances", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listinstanceprocesses.go b/resource-manager/web/2022-09-01/webapps/method_listinstanceprocesses.go index 79623ec52e8..7b596445609 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listinstanceprocesses.go +++ b/resource-manager/web/2022-09-01/webapps/method_listinstanceprocesses.go @@ -23,6 +23,18 @@ type ListInstanceProcessesCompleteResult struct { Items []ProcessInfo } +type ListInstanceProcessesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcesses ... func (c WebAppsClient) ListInstanceProcesses(ctx context.Context, id InstanceId) (result ListInstanceProcessesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcesses(ctx context.Context, id InstanceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessesCustomPager{}, Path: fmt.Sprintf("%s/processes", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessesslot.go b/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessesslot.go index 2589837f1cb..725411fb8b1 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessesslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessesslot.go @@ -23,6 +23,18 @@ type ListInstanceProcessesSlotCompleteResult struct { Items []ProcessInfo } +type ListInstanceProcessesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessesSlot ... func (c WebAppsClient) ListInstanceProcessesSlot(ctx context.Context, id SlotInstanceId) (result ListInstanceProcessesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessesSlot(ctx context.Context, id SlotIns http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessesSlotCustomPager{}, Path: fmt.Sprintf("%s/processes", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessmodules.go b/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessmodules.go index 77368d7f3d2..113a7dd68a6 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessmodules.go +++ b/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessmodules.go @@ -23,6 +23,18 @@ type ListInstanceProcessModulesCompleteResult struct { Items []ProcessModuleInfo } +type ListInstanceProcessModulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessModulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessModules ... func (c WebAppsClient) ListInstanceProcessModules(ctx context.Context, id InstanceProcessId) (result ListInstanceProcessModulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessModules(ctx context.Context, id Instan http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessModulesCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessmodulesslot.go b/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessmodulesslot.go index e4fd039279f..23d09675fe8 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessmodulesslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessmodulesslot.go @@ -23,6 +23,18 @@ type ListInstanceProcessModulesSlotCompleteResult struct { Items []ProcessModuleInfo } +type ListInstanceProcessModulesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessModulesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessModulesSlot ... func (c WebAppsClient) ListInstanceProcessModulesSlot(ctx context.Context, id SlotInstanceProcessId) (result ListInstanceProcessModulesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessModulesSlot(ctx context.Context, id Sl http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessModulesSlotCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessthreads.go b/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessthreads.go index ab35e6a6862..82d9b44dc60 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessthreads.go +++ b/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessthreads.go @@ -23,6 +23,18 @@ type ListInstanceProcessThreadsCompleteResult struct { Items []ProcessThreadInfo } +type ListInstanceProcessThreadsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessThreadsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessThreads ... func (c WebAppsClient) ListInstanceProcessThreads(ctx context.Context, id InstanceProcessId) (result ListInstanceProcessThreadsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessThreads(ctx context.Context, id Instan http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessThreadsCustomPager{}, Path: fmt.Sprintf("%s/threads", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessthreadsslot.go b/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessthreadsslot.go index 0bccdaf4c95..513fe67c6a7 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessthreadsslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listinstanceprocessthreadsslot.go @@ -23,6 +23,18 @@ type ListInstanceProcessThreadsSlotCompleteResult struct { Items []ProcessThreadInfo } +type ListInstanceProcessThreadsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessThreadsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessThreadsSlot ... func (c WebAppsClient) ListInstanceProcessThreadsSlot(ctx context.Context, id SlotInstanceProcessId) (result ListInstanceProcessThreadsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessThreadsSlot(ctx context.Context, id Sl http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessThreadsSlotCustomPager{}, Path: fmt.Sprintf("%s/threads", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listinstanceworkflowsslot.go b/resource-manager/web/2022-09-01/webapps/method_listinstanceworkflowsslot.go index c85fd3bfd26..472996214b1 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listinstanceworkflowsslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listinstanceworkflowsslot.go @@ -23,6 +23,18 @@ type ListInstanceWorkflowsSlotCompleteResult struct { Items []WorkflowEnvelope } +type ListInstanceWorkflowsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceWorkflowsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceWorkflowsSlot ... func (c WebAppsClient) ListInstanceWorkflowsSlot(ctx context.Context, id SlotId) (result ListInstanceWorkflowsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceWorkflowsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceWorkflowsSlotCustomPager{}, Path: fmt.Sprintf("%s/workflows", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listperfmoncounters.go b/resource-manager/web/2022-09-01/webapps/method_listperfmoncounters.go index 2fd3b578fc8..3e795219b6f 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listperfmoncounters.go +++ b/resource-manager/web/2022-09-01/webapps/method_listperfmoncounters.go @@ -51,6 +51,18 @@ func (o ListPerfMonCountersOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListPerfMonCountersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPerfMonCountersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPerfMonCounters ... func (c WebAppsClient) ListPerfMonCounters(ctx context.Context, id commonids.AppServiceId, options ListPerfMonCountersOperationOptions) (result ListPerfMonCountersOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c WebAppsClient) ListPerfMonCounters(ctx context.Context, id commonids.App http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/perfcounters", id.ID()), OptionsObject: options, + Pager: &ListPerfMonCountersCustomPager{}, + Path: fmt.Sprintf("%s/perfcounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_listperfmoncountersslot.go b/resource-manager/web/2022-09-01/webapps/method_listperfmoncountersslot.go index 24b03079502..3a2754f799e 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listperfmoncountersslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listperfmoncountersslot.go @@ -50,6 +50,18 @@ func (o ListPerfMonCountersSlotOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListPerfMonCountersSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPerfMonCountersSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPerfMonCountersSlot ... func (c WebAppsClient) ListPerfMonCountersSlot(ctx context.Context, id SlotId, options ListPerfMonCountersSlotOperationOptions) (result ListPerfMonCountersSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WebAppsClient) ListPerfMonCountersSlot(ctx context.Context, id SlotId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/perfcounters", id.ID()), OptionsObject: options, + Pager: &ListPerfMonCountersSlotCustomPager{}, + Path: fmt.Sprintf("%s/perfcounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_listprocesses.go b/resource-manager/web/2022-09-01/webapps/method_listprocesses.go index 7b1720fcc5b..ebf1da0bcf9 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listprocesses.go +++ b/resource-manager/web/2022-09-01/webapps/method_listprocesses.go @@ -24,6 +24,18 @@ type ListProcessesCompleteResult struct { Items []ProcessInfo } +type ListProcessesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcesses ... func (c WebAppsClient) ListProcesses(ctx context.Context, id commonids.AppServiceId) (result ListProcessesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListProcesses(ctx context.Context, id commonids.AppServic http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessesCustomPager{}, Path: fmt.Sprintf("%s/processes", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listprocessesslot.go b/resource-manager/web/2022-09-01/webapps/method_listprocessesslot.go index ff0a8e569c4..d737e095497 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listprocessesslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listprocessesslot.go @@ -23,6 +23,18 @@ type ListProcessesSlotCompleteResult struct { Items []ProcessInfo } +type ListProcessesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessesSlot ... func (c WebAppsClient) ListProcessesSlot(ctx context.Context, id SlotId) (result ListProcessesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessesSlot(ctx context.Context, id SlotId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessesSlotCustomPager{}, Path: fmt.Sprintf("%s/processes", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listprocessmodules.go b/resource-manager/web/2022-09-01/webapps/method_listprocessmodules.go index 2a5275b9930..e1a3a6af39e 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listprocessmodules.go +++ b/resource-manager/web/2022-09-01/webapps/method_listprocessmodules.go @@ -23,6 +23,18 @@ type ListProcessModulesCompleteResult struct { Items []ProcessModuleInfo } +type ListProcessModulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessModulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessModules ... func (c WebAppsClient) ListProcessModules(ctx context.Context, id ProcessId) (result ListProcessModulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessModules(ctx context.Context, id ProcessId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessModulesCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listprocessmodulesslot.go b/resource-manager/web/2022-09-01/webapps/method_listprocessmodulesslot.go index 5914a1dd854..0ddc8a915f9 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listprocessmodulesslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listprocessmodulesslot.go @@ -23,6 +23,18 @@ type ListProcessModulesSlotCompleteResult struct { Items []ProcessModuleInfo } +type ListProcessModulesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessModulesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessModulesSlot ... func (c WebAppsClient) ListProcessModulesSlot(ctx context.Context, id SlotProcessId) (result ListProcessModulesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessModulesSlot(ctx context.Context, id SlotProces http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessModulesSlotCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listprocessthreads.go b/resource-manager/web/2022-09-01/webapps/method_listprocessthreads.go index dbd85439f6c..32356aa2170 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listprocessthreads.go +++ b/resource-manager/web/2022-09-01/webapps/method_listprocessthreads.go @@ -23,6 +23,18 @@ type ListProcessThreadsCompleteResult struct { Items []ProcessThreadInfo } +type ListProcessThreadsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessThreadsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessThreads ... func (c WebAppsClient) ListProcessThreads(ctx context.Context, id ProcessId) (result ListProcessThreadsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessThreads(ctx context.Context, id ProcessId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessThreadsCustomPager{}, Path: fmt.Sprintf("%s/threads", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listprocessthreadsslot.go b/resource-manager/web/2022-09-01/webapps/method_listprocessthreadsslot.go index 66cf3a39c79..d3335f9f125 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listprocessthreadsslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listprocessthreadsslot.go @@ -23,6 +23,18 @@ type ListProcessThreadsSlotCompleteResult struct { Items []ProcessThreadInfo } +type ListProcessThreadsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessThreadsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessThreadsSlot ... func (c WebAppsClient) ListProcessThreadsSlot(ctx context.Context, id SlotProcessId) (result ListProcessThreadsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessThreadsSlot(ctx context.Context, id SlotProces http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessThreadsSlotCustomPager{}, Path: fmt.Sprintf("%s/threads", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listproductionsitedeploymentstatuses.go b/resource-manager/web/2022-09-01/webapps/method_listproductionsitedeploymentstatuses.go index 09c72048f91..dbca4c9c5cf 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listproductionsitedeploymentstatuses.go +++ b/resource-manager/web/2022-09-01/webapps/method_listproductionsitedeploymentstatuses.go @@ -24,6 +24,18 @@ type ListProductionSiteDeploymentStatusesCompleteResult struct { Items []CsmDeploymentStatus } +type ListProductionSiteDeploymentStatusesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProductionSiteDeploymentStatusesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProductionSiteDeploymentStatuses ... func (c WebAppsClient) ListProductionSiteDeploymentStatuses(ctx context.Context, id commonids.AppServiceId) (result ListProductionSiteDeploymentStatusesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListProductionSiteDeploymentStatuses(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProductionSiteDeploymentStatusesCustomPager{}, Path: fmt.Sprintf("%s/deploymentStatus", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listpubliccertificates.go b/resource-manager/web/2022-09-01/webapps/method_listpubliccertificates.go index b142a34aade..1566dc4e69f 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listpubliccertificates.go +++ b/resource-manager/web/2022-09-01/webapps/method_listpubliccertificates.go @@ -24,6 +24,18 @@ type ListPublicCertificatesCompleteResult struct { Items []PublicCertificate } +type ListPublicCertificatesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPublicCertificatesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPublicCertificates ... func (c WebAppsClient) ListPublicCertificates(ctx context.Context, id commonids.AppServiceId) (result ListPublicCertificatesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListPublicCertificates(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPublicCertificatesCustomPager{}, Path: fmt.Sprintf("%s/publicCertificates", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listpubliccertificatesslot.go b/resource-manager/web/2022-09-01/webapps/method_listpubliccertificatesslot.go index 7c509e40b8a..fb63cdc093c 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listpubliccertificatesslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listpubliccertificatesslot.go @@ -23,6 +23,18 @@ type ListPublicCertificatesSlotCompleteResult struct { Items []PublicCertificate } +type ListPublicCertificatesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPublicCertificatesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPublicCertificatesSlot ... func (c WebAppsClient) ListPublicCertificatesSlot(ctx context.Context, id SlotId) (result ListPublicCertificatesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListPublicCertificatesSlot(ctx context.Context, id SlotId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPublicCertificatesSlotCustomPager{}, Path: fmt.Sprintf("%s/publicCertificates", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listsitebackups.go b/resource-manager/web/2022-09-01/webapps/method_listsitebackups.go index 5a698476724..453b979ef15 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listsitebackups.go +++ b/resource-manager/web/2022-09-01/webapps/method_listsitebackups.go @@ -24,6 +24,18 @@ type ListSiteBackupsCompleteResult struct { Items []BackupItem } +type ListSiteBackupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteBackupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteBackups ... func (c WebAppsClient) ListSiteBackups(ctx context.Context, id commonids.AppServiceId) (result ListSiteBackupsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSiteBackups(ctx context.Context, id commonids.AppServ http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSiteBackupsCustomPager{}, Path: fmt.Sprintf("%s/listbackups", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listsitebackupsslot.go b/resource-manager/web/2022-09-01/webapps/method_listsitebackupsslot.go index 09933de5fe0..4b1fa4a16f5 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listsitebackupsslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listsitebackupsslot.go @@ -23,6 +23,18 @@ type ListSiteBackupsSlotCompleteResult struct { Items []BackupItem } +type ListSiteBackupsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteBackupsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteBackupsSlot ... func (c WebAppsClient) ListSiteBackupsSlot(ctx context.Context, id SlotId) (result ListSiteBackupsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSiteBackupsSlot(ctx context.Context, id SlotId) (resu http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSiteBackupsSlotCustomPager{}, Path: fmt.Sprintf("%s/listbackups", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listsiteextensions.go b/resource-manager/web/2022-09-01/webapps/method_listsiteextensions.go index d2ddde56092..8541bc980ce 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listsiteextensions.go +++ b/resource-manager/web/2022-09-01/webapps/method_listsiteextensions.go @@ -24,6 +24,18 @@ type ListSiteExtensionsCompleteResult struct { Items []SiteExtensionInfo } +type ListSiteExtensionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteExtensionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteExtensions ... func (c WebAppsClient) ListSiteExtensions(ctx context.Context, id commonids.AppServiceId) (result ListSiteExtensionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSiteExtensions(ctx context.Context, id commonids.AppS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteExtensionsCustomPager{}, Path: fmt.Sprintf("%s/siteExtensions", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listsiteextensionsslot.go b/resource-manager/web/2022-09-01/webapps/method_listsiteextensionsslot.go index 0c273967d62..b71b603d02f 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listsiteextensionsslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listsiteextensionsslot.go @@ -23,6 +23,18 @@ type ListSiteExtensionsSlotCompleteResult struct { Items []SiteExtensionInfo } +type ListSiteExtensionsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteExtensionsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteExtensionsSlot ... func (c WebAppsClient) ListSiteExtensionsSlot(ctx context.Context, id SlotId) (result ListSiteExtensionsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSiteExtensionsSlot(ctx context.Context, id SlotId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteExtensionsSlotCustomPager{}, Path: fmt.Sprintf("%s/siteExtensions", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listslotdifferencesfromproduction.go b/resource-manager/web/2022-09-01/webapps/method_listslotdifferencesfromproduction.go index aea96f5259e..8452739cf2b 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listslotdifferencesfromproduction.go +++ b/resource-manager/web/2022-09-01/webapps/method_listslotdifferencesfromproduction.go @@ -24,6 +24,18 @@ type ListSlotDifferencesFromProductionCompleteResult struct { Items []SlotDifference } +type ListSlotDifferencesFromProductionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSlotDifferencesFromProductionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSlotDifferencesFromProduction ... func (c WebAppsClient) ListSlotDifferencesFromProduction(ctx context.Context, id commonids.AppServiceId, input CsmSlotEntity) (result ListSlotDifferencesFromProductionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSlotDifferencesFromProduction(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSlotDifferencesFromProductionCustomPager{}, Path: fmt.Sprintf("%s/slotsdiffs", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listslotdifferencesslot.go b/resource-manager/web/2022-09-01/webapps/method_listslotdifferencesslot.go index 078afc6996d..7dad87c2b7a 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listslotdifferencesslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listslotdifferencesslot.go @@ -23,6 +23,18 @@ type ListSlotDifferencesSlotCompleteResult struct { Items []SlotDifference } +type ListSlotDifferencesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSlotDifferencesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSlotDifferencesSlot ... func (c WebAppsClient) ListSlotDifferencesSlot(ctx context.Context, id SlotId, input CsmSlotEntity) (result ListSlotDifferencesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSlotDifferencesSlot(ctx context.Context, id SlotId, i http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSlotDifferencesSlotCustomPager{}, Path: fmt.Sprintf("%s/slotsdiffs", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listslots.go b/resource-manager/web/2022-09-01/webapps/method_listslots.go index ec2224802b8..c76f15d5d03 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listslots.go +++ b/resource-manager/web/2022-09-01/webapps/method_listslots.go @@ -24,6 +24,18 @@ type ListSlotsCompleteResult struct { Items []Site } +type ListSlotsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSlotsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSlots ... func (c WebAppsClient) ListSlots(ctx context.Context, id commonids.AppServiceId) (result ListSlotsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSlots(ctx context.Context, id commonids.AppServiceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSlotsCustomPager{}, Path: fmt.Sprintf("%s/slots", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listslotsitedeploymentstatusesslot.go b/resource-manager/web/2022-09-01/webapps/method_listslotsitedeploymentstatusesslot.go index 19762fc4915..8ceee87cc66 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listslotsitedeploymentstatusesslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listslotsitedeploymentstatusesslot.go @@ -23,6 +23,18 @@ type ListSlotSiteDeploymentStatusesSlotCompleteResult struct { Items []CsmDeploymentStatus } +type ListSlotSiteDeploymentStatusesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSlotSiteDeploymentStatusesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSlotSiteDeploymentStatusesSlot ... func (c WebAppsClient) ListSlotSiteDeploymentStatusesSlot(ctx context.Context, id SlotId) (result ListSlotSiteDeploymentStatusesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSlotSiteDeploymentStatusesSlot(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSlotSiteDeploymentStatusesSlotCustomPager{}, Path: fmt.Sprintf("%s/deploymentStatus", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listsnapshots.go b/resource-manager/web/2022-09-01/webapps/method_listsnapshots.go index c87cd5d6a36..ae445c7d99c 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listsnapshots.go +++ b/resource-manager/web/2022-09-01/webapps/method_listsnapshots.go @@ -24,6 +24,18 @@ type ListSnapshotsCompleteResult struct { Items []Snapshot } +type ListSnapshotsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSnapshotsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSnapshots ... func (c WebAppsClient) ListSnapshots(ctx context.Context, id commonids.AppServiceId) (result ListSnapshotsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSnapshots(ctx context.Context, id commonids.AppServic http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSnapshotsCustomPager{}, Path: fmt.Sprintf("%s/snapshots", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listsnapshotsfromdrsecondary.go b/resource-manager/web/2022-09-01/webapps/method_listsnapshotsfromdrsecondary.go index 54e6f48ccd2..878e74fccd0 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listsnapshotsfromdrsecondary.go +++ b/resource-manager/web/2022-09-01/webapps/method_listsnapshotsfromdrsecondary.go @@ -24,6 +24,18 @@ type ListSnapshotsFromDRSecondaryCompleteResult struct { Items []Snapshot } +type ListSnapshotsFromDRSecondaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSnapshotsFromDRSecondaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSnapshotsFromDRSecondary ... func (c WebAppsClient) ListSnapshotsFromDRSecondary(ctx context.Context, id commonids.AppServiceId) (result ListSnapshotsFromDRSecondaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSnapshotsFromDRSecondary(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSnapshotsFromDRSecondaryCustomPager{}, Path: fmt.Sprintf("%s/snapshotsdr", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listsnapshotsfromdrsecondaryslot.go b/resource-manager/web/2022-09-01/webapps/method_listsnapshotsfromdrsecondaryslot.go index 1ac0b91c67f..6e438ec2ff9 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listsnapshotsfromdrsecondaryslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listsnapshotsfromdrsecondaryslot.go @@ -23,6 +23,18 @@ type ListSnapshotsFromDRSecondarySlotCompleteResult struct { Items []Snapshot } +type ListSnapshotsFromDRSecondarySlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSnapshotsFromDRSecondarySlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSnapshotsFromDRSecondarySlot ... func (c WebAppsClient) ListSnapshotsFromDRSecondarySlot(ctx context.Context, id SlotId) (result ListSnapshotsFromDRSecondarySlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSnapshotsFromDRSecondarySlot(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSnapshotsFromDRSecondarySlotCustomPager{}, Path: fmt.Sprintf("%s/snapshotsdr", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listsnapshotsslot.go b/resource-manager/web/2022-09-01/webapps/method_listsnapshotsslot.go index df1e7a2cb84..840f0882265 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listsnapshotsslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listsnapshotsslot.go @@ -23,6 +23,18 @@ type ListSnapshotsSlotCompleteResult struct { Items []Snapshot } +type ListSnapshotsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSnapshotsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSnapshotsSlot ... func (c WebAppsClient) ListSnapshotsSlot(ctx context.Context, id SlotId) (result ListSnapshotsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSnapshotsSlot(ctx context.Context, id SlotId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSnapshotsSlotCustomPager{}, Path: fmt.Sprintf("%s/snapshots", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobhistory.go b/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobhistory.go index bdb05c84e95..881719e8edf 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobhistory.go +++ b/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobhistory.go @@ -23,6 +23,18 @@ type ListTriggeredWebJobHistoryCompleteResult struct { Items []TriggeredJobHistory } +type ListTriggeredWebJobHistoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListTriggeredWebJobHistoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListTriggeredWebJobHistory ... func (c WebAppsClient) ListTriggeredWebJobHistory(ctx context.Context, id TriggeredWebJobId) (result ListTriggeredWebJobHistoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListTriggeredWebJobHistory(ctx context.Context, id Trigge http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListTriggeredWebJobHistoryCustomPager{}, Path: fmt.Sprintf("%s/history", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobhistoryslot.go b/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobhistoryslot.go index 81f7c7621c2..727607c47c6 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobhistoryslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobhistoryslot.go @@ -23,6 +23,18 @@ type ListTriggeredWebJobHistorySlotCompleteResult struct { Items []TriggeredJobHistory } +type ListTriggeredWebJobHistorySlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListTriggeredWebJobHistorySlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListTriggeredWebJobHistorySlot ... func (c WebAppsClient) ListTriggeredWebJobHistorySlot(ctx context.Context, id SlotTriggeredWebJobId) (result ListTriggeredWebJobHistorySlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListTriggeredWebJobHistorySlot(ctx context.Context, id Sl http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListTriggeredWebJobHistorySlotCustomPager{}, Path: fmt.Sprintf("%s/history", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobs.go b/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobs.go index 1a16871321a..a732150b7fb 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobs.go +++ b/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobs.go @@ -24,6 +24,18 @@ type ListTriggeredWebJobsCompleteResult struct { Items []TriggeredWebJob } +type ListTriggeredWebJobsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListTriggeredWebJobsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListTriggeredWebJobs ... func (c WebAppsClient) ListTriggeredWebJobs(ctx context.Context, id commonids.AppServiceId) (result ListTriggeredWebJobsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListTriggeredWebJobs(ctx context.Context, id commonids.Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListTriggeredWebJobsCustomPager{}, Path: fmt.Sprintf("%s/triggeredWebJobs", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobsslot.go b/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobsslot.go index 6a1759cc604..6dbb5cb9064 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobsslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listtriggeredwebjobsslot.go @@ -23,6 +23,18 @@ type ListTriggeredWebJobsSlotCompleteResult struct { Items []TriggeredWebJob } +type ListTriggeredWebJobsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListTriggeredWebJobsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListTriggeredWebJobsSlot ... func (c WebAppsClient) ListTriggeredWebJobsSlot(ctx context.Context, id SlotId) (result ListTriggeredWebJobsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListTriggeredWebJobsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListTriggeredWebJobsSlotCustomPager{}, Path: fmt.Sprintf("%s/triggeredWebJobs", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listusages.go b/resource-manager/web/2022-09-01/webapps/method_listusages.go index 786fedec8eb..6a245dab93f 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listusages.go +++ b/resource-manager/web/2022-09-01/webapps/method_listusages.go @@ -51,6 +51,18 @@ func (o ListUsagesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUsages ... func (c WebAppsClient) ListUsages(ctx context.Context, id commonids.AppServiceId, options ListUsagesOperationOptions) (result ListUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c WebAppsClient) ListUsages(ctx context.Context, id commonids.AppServiceId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListUsagesCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_listusagesslot.go b/resource-manager/web/2022-09-01/webapps/method_listusagesslot.go index 58f1bae9ff5..cbcbac0a262 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listusagesslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listusagesslot.go @@ -50,6 +50,18 @@ func (o ListUsagesSlotOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListUsagesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUsagesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUsagesSlot ... func (c WebAppsClient) ListUsagesSlot(ctx context.Context, id SlotId, options ListUsagesSlotOperationOptions) (result ListUsagesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WebAppsClient) ListUsagesSlot(ctx context.Context, id SlotId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListUsagesSlotCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_listwebjobs.go b/resource-manager/web/2022-09-01/webapps/method_listwebjobs.go index 009bef465d6..46c96736e0d 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listwebjobs.go +++ b/resource-manager/web/2022-09-01/webapps/method_listwebjobs.go @@ -24,6 +24,18 @@ type ListWebJobsCompleteResult struct { Items []WebJob } +type ListWebJobsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebJobsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebJobs ... func (c WebAppsClient) ListWebJobs(ctx context.Context, id commonids.AppServiceId) (result ListWebJobsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListWebJobs(ctx context.Context, id commonids.AppServiceI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebJobsCustomPager{}, Path: fmt.Sprintf("%s/webJobs", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listwebjobsslot.go b/resource-manager/web/2022-09-01/webapps/method_listwebjobsslot.go index 33b18905092..421ab88f0e1 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listwebjobsslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_listwebjobsslot.go @@ -23,6 +23,18 @@ type ListWebJobsSlotCompleteResult struct { Items []WebJob } +type ListWebJobsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebJobsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebJobsSlot ... func (c WebAppsClient) ListWebJobsSlot(ctx context.Context, id SlotId) (result ListWebJobsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListWebJobsSlot(ctx context.Context, id SlotId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebJobsSlotCustomPager{}, Path: fmt.Sprintf("%s/webJobs", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_listworkflows.go b/resource-manager/web/2022-09-01/webapps/method_listworkflows.go index 09f70cdc841..a098ec74cd5 100644 --- a/resource-manager/web/2022-09-01/webapps/method_listworkflows.go +++ b/resource-manager/web/2022-09-01/webapps/method_listworkflows.go @@ -24,6 +24,18 @@ type ListWorkflowsCompleteResult struct { Items []WorkflowEnvelope } +type ListWorkflowsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWorkflowsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWorkflows ... func (c WebAppsClient) ListWorkflows(ctx context.Context, id commonids.AppServiceId) (result ListWorkflowsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListWorkflows(ctx context.Context, id commonids.AppServic http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWorkflowsCustomPager{}, Path: fmt.Sprintf("%s/workflows", id.ID()), } diff --git a/resource-manager/web/2022-09-01/webapps/method_migratestorage.go b/resource-manager/web/2022-09-01/webapps/method_migratestorage.go index 5f0c28ff47d..f59a0b4a276 100644 --- a/resource-manager/web/2022-09-01/webapps/method_migratestorage.go +++ b/resource-manager/web/2022-09-01/webapps/method_migratestorage.go @@ -57,8 +57,8 @@ func (c WebAppsClient) MigrateStorage(ctx context.Context, id commonids.AppServi http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/migrate", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/migrate", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_restart.go b/resource-manager/web/2022-09-01/webapps/method_restart.go index fbc0d6837cb..4634c74caa7 100644 --- a/resource-manager/web/2022-09-01/webapps/method_restart.go +++ b/resource-manager/web/2022-09-01/webapps/method_restart.go @@ -57,8 +57,8 @@ func (c WebAppsClient) Restart(ctx context.Context, id commonids.AppServiceId, o http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/restart", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restart", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_restartslot.go b/resource-manager/web/2022-09-01/webapps/method_restartslot.go index 2ed5d2e9efa..28902482a9c 100644 --- a/resource-manager/web/2022-09-01/webapps/method_restartslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_restartslot.go @@ -56,8 +56,8 @@ func (c WebAppsClient) RestartSlot(ctx context.Context, id SlotId, options Resta http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/restart", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restart", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_startnetworktrace.go b/resource-manager/web/2022-09-01/webapps/method_startnetworktrace.go index 92ce80e4291..fa037fe2276 100644 --- a/resource-manager/web/2022-09-01/webapps/method_startnetworktrace.go +++ b/resource-manager/web/2022-09-01/webapps/method_startnetworktrace.go @@ -66,8 +66,8 @@ func (c WebAppsClient) StartNetworkTrace(ctx context.Context, id commonids.AppSe http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/startNetworkTrace", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/startNetworkTrace", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_startnetworktraceslot.go b/resource-manager/web/2022-09-01/webapps/method_startnetworktraceslot.go index 50d223940d5..8390b0d5feb 100644 --- a/resource-manager/web/2022-09-01/webapps/method_startnetworktraceslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_startnetworktraceslot.go @@ -65,8 +65,8 @@ func (c WebAppsClient) StartNetworkTraceSlot(ctx context.Context, id SlotId, opt http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/startNetworkTrace", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/startNetworkTrace", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktrace.go b/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktrace.go index 65c5c68ef51..8ca69360afe 100644 --- a/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktrace.go +++ b/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktrace.go @@ -62,8 +62,8 @@ func (c WebAppsClient) StartWebSiteNetworkTrace(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/networkTrace/start", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/networkTrace/start", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktraceoperation.go b/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktraceoperation.go index 21703009ddc..9fd9a12487f 100644 --- a/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktraceoperation.go +++ b/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktraceoperation.go @@ -66,8 +66,8 @@ func (c WebAppsClient) StartWebSiteNetworkTraceOperation(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/networkTrace/startOperation", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/networkTrace/startOperation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktraceoperationslot.go b/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktraceoperationslot.go index 2d71a255ba4..73249d3a29a 100644 --- a/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktraceoperationslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktraceoperationslot.go @@ -65,8 +65,8 @@ func (c WebAppsClient) StartWebSiteNetworkTraceOperationSlot(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/networkTrace/startOperation", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/networkTrace/startOperation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktraceslot.go b/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktraceslot.go index b52ac41f1a2..697b0f20648 100644 --- a/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktraceslot.go +++ b/resource-manager/web/2022-09-01/webapps/method_startwebsitenetworktraceslot.go @@ -61,8 +61,8 @@ func (c WebAppsClient) StartWebSiteNetworkTraceSlot(ctx context.Context, id Slot http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/networkTrace/start", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/networkTrace/start", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/workflowrunactions/method_coperepetitionslist.go b/resource-manager/web/2022-09-01/workflowrunactions/method_coperepetitionslist.go index c7ffe63f0c5..8e3b1832ac8 100644 --- a/resource-manager/web/2022-09-01/workflowrunactions/method_coperepetitionslist.go +++ b/resource-manager/web/2022-09-01/workflowrunactions/method_coperepetitionslist.go @@ -23,6 +23,18 @@ type CopeRepetitionsListCompleteResult struct { Items []WorkflowRunActionRepetitionDefinition } +type CopeRepetitionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CopeRepetitionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CopeRepetitionsList ... func (c WorkflowRunActionsClient) CopeRepetitionsList(ctx context.Context, id ActionId) (result CopeRepetitionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) CopeRepetitionsList(ctx context.Context, id Ac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CopeRepetitionsListCustomPager{}, Path: fmt.Sprintf("%s/scopeRepetitions", id.ID()), } diff --git a/resource-manager/web/2022-09-01/workflowrunactions/method_list.go b/resource-manager/web/2022-09-01/workflowrunactions/method_list.go index 67d1f71449e..532e550d8d0 100644 --- a/resource-manager/web/2022-09-01/workflowrunactions/method_list.go +++ b/resource-manager/web/2022-09-01/workflowrunactions/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowRunActionsClient) List(ctx context.Context, id RunId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowRunActionsClient) List(ctx context.Context, id RunId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/actions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/actions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/workflowrunactions/method_listexpressiontraces.go b/resource-manager/web/2022-09-01/workflowrunactions/method_listexpressiontraces.go index e91c1a639c4..07ca3a3e829 100644 --- a/resource-manager/web/2022-09-01/workflowrunactions/method_listexpressiontraces.go +++ b/resource-manager/web/2022-09-01/workflowrunactions/method_listexpressiontraces.go @@ -23,6 +23,18 @@ type ListExpressionTracesCompleteResult struct { Items []interface{} } +type ListExpressionTracesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListExpressionTracesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListExpressionTraces ... func (c WorkflowRunActionsClient) ListExpressionTraces(ctx context.Context, id ActionId) (result ListExpressionTracesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) ListExpressionTraces(ctx context.Context, id A http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListExpressionTracesCustomPager{}, Path: fmt.Sprintf("%s/listExpressionTraces", id.ID()), } diff --git a/resource-manager/web/2022-09-01/workflowrunactions/method_workflowrunactionrepetitionslist.go b/resource-manager/web/2022-09-01/workflowrunactions/method_workflowrunactionrepetitionslist.go index 6ccaa8e80ab..6b6fadac68b 100644 --- a/resource-manager/web/2022-09-01/workflowrunactions/method_workflowrunactionrepetitionslist.go +++ b/resource-manager/web/2022-09-01/workflowrunactions/method_workflowrunactionrepetitionslist.go @@ -23,6 +23,18 @@ type WorkflowRunActionRepetitionsListCompleteResult struct { Items []WorkflowRunActionRepetitionDefinition } +type WorkflowRunActionRepetitionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkflowRunActionRepetitionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkflowRunActionRepetitionsList ... func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsList(ctx context.Context, id ActionId) (result WorkflowRunActionRepetitionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsList(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkflowRunActionRepetitionsListCustomPager{}, Path: fmt.Sprintf("%s/repetitions", id.ID()), } diff --git a/resource-manager/web/2022-09-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go b/resource-manager/web/2022-09-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go index 0b816996565..a3f212a0cfe 100644 --- a/resource-manager/web/2022-09-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go +++ b/resource-manager/web/2022-09-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go @@ -23,6 +23,18 @@ type WorkflowRunActionRepetitionsListExpressionTracesCompleteResult struct { Items []interface{} } +type WorkflowRunActionRepetitionsListExpressionTracesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkflowRunActionRepetitionsListExpressionTracesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkflowRunActionRepetitionsListExpressionTraces ... func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsListExpressionTraces(ctx context.Context, id RepetitionId) (result WorkflowRunActionRepetitionsListExpressionTracesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsListExpressionTrac http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &WorkflowRunActionRepetitionsListExpressionTracesCustomPager{}, Path: fmt.Sprintf("%s/listExpressionTraces", id.ID()), } diff --git a/resource-manager/web/2022-09-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go b/resource-manager/web/2022-09-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go index 0c078f05c70..c1d6265df03 100644 --- a/resource-manager/web/2022-09-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go +++ b/resource-manager/web/2022-09-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go @@ -23,6 +23,18 @@ type WorkflowRunActionRepetitionsRequestHistoriesListCompleteResult struct { Items []RequestHistory } +type WorkflowRunActionRepetitionsRequestHistoriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkflowRunActionRepetitionsRequestHistoriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkflowRunActionRepetitionsRequestHistoriesList ... func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsRequestHistoriesList(ctx context.Context, id RepetitionId) (result WorkflowRunActionRepetitionsRequestHistoriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsRequestHistoriesLi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkflowRunActionRepetitionsRequestHistoriesListCustomPager{}, Path: fmt.Sprintf("%s/requestHistories", id.ID()), } diff --git a/resource-manager/web/2022-09-01/workflowruns/method_list.go b/resource-manager/web/2022-09-01/workflowruns/method_list.go index e5e8588c1e5..b2188f33e6d 100644 --- a/resource-manager/web/2022-09-01/workflowruns/method_list.go +++ b/resource-manager/web/2022-09-01/workflowruns/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowRunsClient) List(ctx context.Context, id ManagementWorkflowId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowRunsClient) List(ctx context.Context, id ManagementWorkflowId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/runs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/workflowtriggerhistories/method_list.go b/resource-manager/web/2022-09-01/workflowtriggerhistories/method_list.go index 473afc367c2..9737ffdb68c 100644 --- a/resource-manager/web/2022-09-01/workflowtriggerhistories/method_list.go +++ b/resource-manager/web/2022-09-01/workflowtriggerhistories/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowTriggerHistoriesClient) List(ctx context.Context, id TriggerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowTriggerHistoriesClient) List(ctx context.Context, id TriggerId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/histories", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/histories", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/workflowtriggers/method_list.go b/resource-manager/web/2022-09-01/workflowtriggers/method_list.go index 21af991a400..0f1c596b80c 100644 --- a/resource-manager/web/2022-09-01/workflowtriggers/method_list.go +++ b/resource-manager/web/2022-09-01/workflowtriggers/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowTriggersClient) List(ctx context.Context, id ManagementWorkflowId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowTriggersClient) List(ctx context.Context, id ManagementWorkflowI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/triggers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/triggers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2022-09-01/workflowversions/method_list.go b/resource-manager/web/2022-09-01/workflowversions/method_list.go index fe314139681..a70d4657650 100644 --- a/resource-manager/web/2022-09-01/workflowversions/method_list.go +++ b/resource-manager/web/2022-09-01/workflowversions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowVersionsClient) List(ctx context.Context, id ManagementWorkflowId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WorkflowVersionsClient) List(ctx context.Context, id ManagementWorkflowI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/appservicecertificateorders/method_list.go b/resource-manager/web/2023-01-01/appservicecertificateorders/method_list.go index bf5fb68e51b..dc2a1437f6d 100644 --- a/resource-manager/web/2023-01-01/appservicecertificateorders/method_list.go +++ b/resource-manager/web/2023-01-01/appservicecertificateorders/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AppServiceCertificateOrder } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AppServiceCertificateOrdersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceCertificateOrdersClient) List(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CertificateRegistration/certificateOrders", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appservicecertificateorders/method_listbyresourcegroup.go b/resource-manager/web/2023-01-01/appservicecertificateorders/method_listbyresourcegroup.go index ec4e47be229..e800bd4359e 100644 --- a/resource-manager/web/2023-01-01/appservicecertificateorders/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-01-01/appservicecertificateorders/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AppServiceCertificateOrder } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AppServiceCertificateOrdersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceCertificateOrdersClient) ListByResourceGroup(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CertificateRegistration/certificateOrders", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appservicecertificateorders/method_listcertificates.go b/resource-manager/web/2023-01-01/appservicecertificateorders/method_listcertificates.go index 60eb5b6d8e8..04a478191c0 100644 --- a/resource-manager/web/2023-01-01/appservicecertificateorders/method_listcertificates.go +++ b/resource-manager/web/2023-01-01/appservicecertificateorders/method_listcertificates.go @@ -23,6 +23,18 @@ type ListCertificatesCompleteResult struct { Items []AppServiceCertificateResource } +type ListCertificatesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCertificatesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCertificates ... func (c AppServiceCertificateOrdersClient) ListCertificates(ctx context.Context, id CertificateOrderId) (result ListCertificatesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceCertificateOrdersClient) ListCertificates(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCertificatesCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_changevnet.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_changevnet.go index 3c0aaf531fd..6bf6156af62 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_changevnet.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_changevnet.go @@ -27,6 +27,18 @@ type ChangeVnetCompleteResult struct { Items []Site } +type ChangeVnetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ChangeVnetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ChangeVnet ... func (c AppServiceEnvironmentsClient) ChangeVnet(ctx context.Context, id commonids.AppServiceEnvironmentId, input VirtualNetworkProfile) (result ChangeVnetOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c AppServiceEnvironmentsClient) ChangeVnet(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ChangeVnetCustomPager{}, Path: fmt.Sprintf("%s/changeVirtualNetwork", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go index 67e550c1929..55cf71e5108 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go @@ -57,8 +57,8 @@ func (c AppServiceEnvironmentsClient) Delete(ctx context.Context, id commonids.A http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go index 6bd59027a79..0ba5559383d 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go @@ -24,6 +24,18 @@ type GetInboundNetworkDependenciesEndpointsCompleteResult struct { Items []InboundEnvironmentEndpoint } +type GetInboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetInboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetInboundNetworkDependenciesEndpoints ... func (c AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetInboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpoints(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetInboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/inboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go index d6f4a4dfe25..0e457723e3d 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go @@ -24,6 +24,18 @@ type GetOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type GetOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetOutboundNetworkDependenciesEndpoints ... func (c AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpoints(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnectionlist.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnectionlist.go index f3bf4837ce2..c4ecbd05aaf 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnectionlist.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnectionlist.go @@ -24,6 +24,18 @@ type GetPrivateEndpointConnectionListCompleteResult struct { Items []RemotePrivateEndpointConnectionARMResource } +type GetPrivateEndpointConnectionListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetPrivateEndpointConnectionListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetPrivateEndpointConnectionList ... func (c AppServiceEnvironmentsClient) GetPrivateEndpointConnectionList(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetPrivateEndpointConnectionListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) GetPrivateEndpointConnectionList(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetPrivateEndpointConnectionListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_list.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_list.go index 60b5a0ca787..b29d1ea041b 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_list.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AppServiceEnvironmentResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AppServiceEnvironmentsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) List(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/hostingEnvironments", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listappserviceplans.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listappserviceplans.go index 35717866ea8..26d1f005a45 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listappserviceplans.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listappserviceplans.go @@ -24,6 +24,18 @@ type ListAppServicePlansCompleteResult struct { Items []AppServicePlan } +type ListAppServicePlansCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppServicePlansCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAppServicePlans ... func (c AppServiceEnvironmentsClient) ListAppServicePlans(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListAppServicePlansOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListAppServicePlans(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAppServicePlansCustomPager{}, Path: fmt.Sprintf("%s/serverFarms", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listbyresourcegroup.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listbyresourcegroup.go index 49415a3322e..3d45ec03742 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AppServiceEnvironmentResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AppServiceEnvironmentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/hostingEnvironments", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listcapacities.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listcapacities.go index 43f7e6ce021..b524c9ea8d6 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listcapacities.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listcapacities.go @@ -24,6 +24,18 @@ type ListCapacitiesCompleteResult struct { Items []StampCapacity } +type ListCapacitiesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCapacitiesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCapacities ... func (c AppServiceEnvironmentsClient) ListCapacities(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListCapacitiesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListCapacities(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCapacitiesCustomPager{}, Path: fmt.Sprintf("%s/capacities/compute", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolemetricdefinitions.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolemetricdefinitions.go index 224c729749d..703092408d6 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolemetricdefinitions.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolemetricdefinitions.go @@ -24,6 +24,18 @@ type ListMultiRoleMetricDefinitionsCompleteResult struct { Items []ResourceMetricDefinition } +type ListMultiRoleMetricDefinitionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRoleMetricDefinitionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRoleMetricDefinitions ... func (c AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRoleMetricDefinitionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRoleMetricDefinitionsCustomPager{}, Path: fmt.Sprintf("%s/multiRolePools/default/metricdefinitions", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go index 78b3216e939..b0c259db50e 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go @@ -23,6 +23,18 @@ type ListMultiRolePoolInstanceMetricDefinitionsCompleteResult struct { Items []ResourceMetricDefinition } +type ListMultiRolePoolInstanceMetricDefinitionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRolePoolInstanceMetricDefinitionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRolePoolInstanceMetricDefinitions ... func (c AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitions(ctx context.Context, id DefaultInstanceId) (result ListMultiRolePoolInstanceMetricDefinitionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitions http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRolePoolInstanceMetricDefinitionsCustomPager{}, Path: fmt.Sprintf("%s/metricdefinitions", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepools.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepools.go index ec9b78bfc45..2fff5186ba4 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepools.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepools.go @@ -24,6 +24,18 @@ type ListMultiRolePoolsCompleteResult struct { Items []WorkerPoolResource } +type ListMultiRolePoolsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRolePoolsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRolePools ... func (c AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRolePoolsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRolePoolsCustomPager{}, Path: fmt.Sprintf("%s/multiRolePools", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolskus.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolskus.go index 596b758f3b4..68df6ce4b5d 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolskus.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultirolepoolskus.go @@ -24,6 +24,18 @@ type ListMultiRolePoolSkusCompleteResult struct { Items []SkuInfo } +type ListMultiRolePoolSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRolePoolSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRolePoolSkus ... func (c AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRolePoolSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRolePoolSkusCustomPager{}, Path: fmt.Sprintf("%s/multiRolePools/default/skus", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultiroleusages.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultiroleusages.go index 9267ed4740f..a835e6f4109 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultiroleusages.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listmultiroleusages.go @@ -24,6 +24,18 @@ type ListMultiRoleUsagesCompleteResult struct { Items []Usage } +type ListMultiRoleUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRoleUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRoleUsages ... func (c AppServiceEnvironmentsClient) ListMultiRoleUsages(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRoleUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRoleUsages(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRoleUsagesCustomPager{}, Path: fmt.Sprintf("%s/multiRolePools/default/usages", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listusages.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listusages.go index 6cb15f03800..c12dab87aa4 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listusages.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listusages.go @@ -51,6 +51,18 @@ func (o ListUsagesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUsages ... func (c AppServiceEnvironmentsClient) ListUsages(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListUsagesOperationOptions) (result ListUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AppServiceEnvironmentsClient) ListUsages(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListUsagesCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebapps.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebapps.go index 7f68dcecbc7..6adb4062cbe 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebapps.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebapps.go @@ -51,6 +51,18 @@ func (o ListWebAppsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListWebAppsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebAppsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebApps ... func (c AppServiceEnvironmentsClient) ListWebApps(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListWebAppsOperationOptions) (result ListWebAppsOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AppServiceEnvironmentsClient) ListWebApps(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sites", id.ID()), OptionsObject: options, + Pager: &ListWebAppsCustomPager{}, + Path: fmt.Sprintf("%s/sites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkermetricdefinitions.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkermetricdefinitions.go index 06408a3fdd9..0d83ccdd738 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkermetricdefinitions.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkermetricdefinitions.go @@ -23,6 +23,18 @@ type ListWebWorkerMetricDefinitionsCompleteResult struct { Items []ResourceMetricDefinition } +type ListWebWorkerMetricDefinitionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebWorkerMetricDefinitionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebWorkerMetricDefinitions ... func (c AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitions(ctx context.Context, id WorkerPoolId) (result ListWebWorkerMetricDefinitionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitions(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebWorkerMetricDefinitionsCustomPager{}, Path: fmt.Sprintf("%s/metricdefinitions", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkerusages.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkerusages.go index 094d26611b3..380989d1a8d 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkerusages.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebworkerusages.go @@ -23,6 +23,18 @@ type ListWebWorkerUsagesCompleteResult struct { Items []Usage } +type ListWebWorkerUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebWorkerUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebWorkerUsages ... func (c AppServiceEnvironmentsClient) ListWebWorkerUsages(ctx context.Context, id WorkerPoolId) (result ListWebWorkerUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListWebWorkerUsages(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebWorkerUsagesCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go index f9ce473c32f..283907aee09 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go @@ -23,6 +23,18 @@ type ListWorkerPoolInstanceMetricDefinitionsCompleteResult struct { Items []ResourceMetricDefinition } +type ListWorkerPoolInstanceMetricDefinitionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWorkerPoolInstanceMetricDefinitionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWorkerPoolInstanceMetricDefinitions ... func (c AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitions(ctx context.Context, id WorkerPoolInstanceId) (result ListWorkerPoolInstanceMetricDefinitionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitions(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWorkerPoolInstanceMetricDefinitionsCustomPager{}, Path: fmt.Sprintf("%s/metricdefinitions", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpools.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpools.go index 3c7549e990f..ec25afdb033 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpools.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpools.go @@ -24,6 +24,18 @@ type ListWorkerPoolsCompleteResult struct { Items []WorkerPoolResource } +type ListWorkerPoolsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWorkerPoolsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWorkerPools ... func (c AppServiceEnvironmentsClient) ListWorkerPools(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListWorkerPoolsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListWorkerPools(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWorkerPoolsCustomPager{}, Path: fmt.Sprintf("%s/workerPools", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolskus.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolskus.go index c1b28b118d0..74192d0c7ec 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolskus.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_listworkerpoolskus.go @@ -23,6 +23,18 @@ type ListWorkerPoolSkusCompleteResult struct { Items []SkuInfo } +type ListWorkerPoolSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWorkerPoolSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWorkerPoolSkus ... func (c AppServiceEnvironmentsClient) ListWorkerPoolSkus(ctx context.Context, id WorkerPoolId) (result ListWorkerPoolSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListWorkerPoolSkus(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWorkerPoolSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_resume.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_resume.go index def906a3f1a..9cafc62c013 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_resume.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_resume.go @@ -27,6 +27,18 @@ type ResumeCompleteResult struct { Items []Site } +type ResumeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResumeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Resume ... func (c AppServiceEnvironmentsClient) Resume(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ResumeOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c AppServiceEnvironmentsClient) Resume(ctx context.Context, id commonids.A http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ResumeCustomPager{}, Path: fmt.Sprintf("%s/resume", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go b/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go index 5395b21b683..e6c388ed071 100644 --- a/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go +++ b/resource-manager/web/2023-01-01/appserviceenvironments/method_suspend.go @@ -27,6 +27,18 @@ type SuspendCompleteResult struct { Items []Site } +type SuspendCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SuspendCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Suspend ... func (c AppServiceEnvironmentsClient) Suspend(ctx context.Context, id commonids.AppServiceEnvironmentId) (result SuspendOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c AppServiceEnvironmentsClient) Suspend(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &SuspendCustomPager{}, Path: fmt.Sprintf("%s/suspend", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceplans/method_list.go b/resource-manager/web/2023-01-01/appserviceplans/method_list.go index 1eca306be0f..6825b73b994 100644 --- a/resource-manager/web/2023-01-01/appserviceplans/method_list.go +++ b/resource-manager/web/2023-01-01/appserviceplans/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AppServicePlansClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AppServicePlansClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/serverFarms", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/serverFarms", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/appserviceplans/method_listbyresourcegroup.go b/resource-manager/web/2023-01-01/appserviceplans/method_listbyresourcegroup.go index 633d58c91fc..8a92a8bb9a4 100644 --- a/resource-manager/web/2023-01-01/appserviceplans/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-01-01/appserviceplans/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AppServicePlan } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AppServicePlansClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServicePlansClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/serverFarms", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceplans/method_listhybridconnections.go b/resource-manager/web/2023-01-01/appserviceplans/method_listhybridconnections.go index 39236bde7f2..397cbb6929c 100644 --- a/resource-manager/web/2023-01-01/appserviceplans/method_listhybridconnections.go +++ b/resource-manager/web/2023-01-01/appserviceplans/method_listhybridconnections.go @@ -24,6 +24,18 @@ type ListHybridConnectionsCompleteResult struct { Items []HybridConnection } +type ListHybridConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHybridConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHybridConnections ... func (c AppServicePlansClient) ListHybridConnections(ctx context.Context, id commonids.AppServicePlanId) (result ListHybridConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServicePlansClient) ListHybridConnections(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHybridConnectionsCustomPager{}, Path: fmt.Sprintf("%s/hybridConnectionRelays", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceplans/method_listusages.go b/resource-manager/web/2023-01-01/appserviceplans/method_listusages.go index 26a666b6ad4..ba526d56a55 100644 --- a/resource-manager/web/2023-01-01/appserviceplans/method_listusages.go +++ b/resource-manager/web/2023-01-01/appserviceplans/method_listusages.go @@ -51,6 +51,18 @@ func (o ListUsagesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUsages ... func (c AppServicePlansClient) ListUsages(ctx context.Context, id commonids.AppServicePlanId, options ListUsagesOperationOptions) (result ListUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AppServicePlansClient) ListUsages(ctx context.Context, id commonids.AppS http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListUsagesCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/appserviceplans/method_listwebapps.go b/resource-manager/web/2023-01-01/appserviceplans/method_listwebapps.go index 580d5a7e6e5..facb051bd72 100644 --- a/resource-manager/web/2023-01-01/appserviceplans/method_listwebapps.go +++ b/resource-manager/web/2023-01-01/appserviceplans/method_listwebapps.go @@ -55,6 +55,18 @@ func (o ListWebAppsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListWebAppsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebAppsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebApps ... func (c AppServicePlansClient) ListWebApps(ctx context.Context, id commonids.AppServicePlanId, options ListWebAppsOperationOptions) (result ListWebAppsOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c AppServicePlansClient) ListWebApps(ctx context.Context, id commonids.App http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sites", id.ID()), OptionsObject: options, + Pager: &ListWebAppsCustomPager{}, + Path: fmt.Sprintf("%s/sites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/appserviceplans/method_listwebappsbyhybridconnection.go b/resource-manager/web/2023-01-01/appserviceplans/method_listwebappsbyhybridconnection.go index 7f6d7365400..84d13849999 100644 --- a/resource-manager/web/2023-01-01/appserviceplans/method_listwebappsbyhybridconnection.go +++ b/resource-manager/web/2023-01-01/appserviceplans/method_listwebappsbyhybridconnection.go @@ -23,6 +23,18 @@ type ListWebAppsByHybridConnectionCompleteResult struct { Items []string } +type ListWebAppsByHybridConnectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebAppsByHybridConnectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebAppsByHybridConnection ... func (c AppServicePlansClient) ListWebAppsByHybridConnection(ctx context.Context, id HybridConnectionNamespaceRelayId) (result ListWebAppsByHybridConnectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServicePlansClient) ListWebAppsByHybridConnection(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebAppsByHybridConnectionCustomPager{}, Path: fmt.Sprintf("%s/sites", id.ID()), } diff --git a/resource-manager/web/2023-01-01/appserviceplans/method_restartwebapps.go b/resource-manager/web/2023-01-01/appserviceplans/method_restartwebapps.go index ffa2a205011..0eb829e73f3 100644 --- a/resource-manager/web/2023-01-01/appserviceplans/method_restartwebapps.go +++ b/resource-manager/web/2023-01-01/appserviceplans/method_restartwebapps.go @@ -53,8 +53,8 @@ func (c AppServicePlansClient) RestartWebApps(ctx context.Context, id commonids. http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/restartSites", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restartSites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/certificateordersdiagnostics/method_getappservicecertificateorderdetectorresponse.go b/resource-manager/web/2023-01-01/certificateordersdiagnostics/method_getappservicecertificateorderdetectorresponse.go index 43f26d37c36..234f65f33a3 100644 --- a/resource-manager/web/2023-01-01/certificateordersdiagnostics/method_getappservicecertificateorderdetectorresponse.go +++ b/resource-manager/web/2023-01-01/certificateordersdiagnostics/method_getappservicecertificateorderdetectorresponse.go @@ -61,8 +61,8 @@ func (c CertificateOrdersDiagnosticsClient) GetAppServiceCertificateOrderDetecto http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/certificateordersdiagnostics/method_listappservicecertificateorderdetectorresponse.go b/resource-manager/web/2023-01-01/certificateordersdiagnostics/method_listappservicecertificateorderdetectorresponse.go index 8601baa2944..405663304fc 100644 --- a/resource-manager/web/2023-01-01/certificateordersdiagnostics/method_listappservicecertificateorderdetectorresponse.go +++ b/resource-manager/web/2023-01-01/certificateordersdiagnostics/method_listappservicecertificateorderdetectorresponse.go @@ -23,6 +23,18 @@ type ListAppServiceCertificateOrderDetectorResponseCompleteResult struct { Items []DetectorResponse } +type ListAppServiceCertificateOrderDetectorResponseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppServiceCertificateOrderDetectorResponseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAppServiceCertificateOrderDetectorResponse ... func (c CertificateOrdersDiagnosticsClient) ListAppServiceCertificateOrderDetectorResponse(ctx context.Context, id CertificateOrderId) (result ListAppServiceCertificateOrderDetectorResponseOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificateOrdersDiagnosticsClient) ListAppServiceCertificateOrderDetect http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAppServiceCertificateOrderDetectorResponseCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2023-01-01/certificates/method_list.go b/resource-manager/web/2023-01-01/certificates/method_list.go index 9e38b2965e5..aaa547d06bb 100644 --- a/resource-manager/web/2023-01-01/certificates/method_list.go +++ b/resource-manager/web/2023-01-01/certificates/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CertificatesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c CertificatesClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/certificates", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/certificates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/certificates/method_listbyresourcegroup.go b/resource-manager/web/2023-01-01/certificates/method_listbyresourcegroup.go index c594d8867eb..94e8fdd644a 100644 --- a/resource-manager/web/2023-01-01/certificates/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-01-01/certificates/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Certificate } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CertificatesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CertificatesClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/certificates", id.ID()), } diff --git a/resource-manager/web/2023-01-01/containerapps/method_listbyresourcegroup.go b/resource-manager/web/2023-01-01/containerapps/method_listbyresourcegroup.go index 41ee4fd8ced..e6d795c0f7d 100644 --- a/resource-manager/web/2023-01-01/containerapps/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-01-01/containerapps/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ContainerApp } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ContainerAppsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ContainerAppsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/containerApps", id.ID()), } diff --git a/resource-manager/web/2023-01-01/containerapps/method_listbysubscription.go b/resource-manager/web/2023-01-01/containerapps/method_listbysubscription.go index 1f21755ef86..d1d592f103c 100644 --- a/resource-manager/web/2023-01-01/containerapps/method_listbysubscription.go +++ b/resource-manager/web/2023-01-01/containerapps/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ContainerApp } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ContainerAppsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ContainerAppsClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/containerApps", id.ID()), } diff --git a/resource-manager/web/2023-01-01/containerappsrevisions/method_listrevisions.go b/resource-manager/web/2023-01-01/containerappsrevisions/method_listrevisions.go index 7b6ef4b99f3..0248f10075a 100644 --- a/resource-manager/web/2023-01-01/containerappsrevisions/method_listrevisions.go +++ b/resource-manager/web/2023-01-01/containerappsrevisions/method_listrevisions.go @@ -23,6 +23,18 @@ type ListRevisionsCompleteResult struct { Items []Revision } +type ListRevisionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRevisionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRevisions ... func (c ContainerAppsRevisionsClient) ListRevisions(ctx context.Context, id ProviderContainerAppId) (result ListRevisionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContainerAppsRevisionsClient) ListRevisions(ctx context.Context, id Prov http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListRevisionsCustomPager{}, Path: fmt.Sprintf("%s/revisions", id.ID()), } diff --git a/resource-manager/web/2023-01-01/deletedwebapps/method_list.go b/resource-manager/web/2023-01-01/deletedwebapps/method_list.go index 545107bbfc0..9727a056e86 100644 --- a/resource-manager/web/2023-01-01/deletedwebapps/method_list.go +++ b/resource-manager/web/2023-01-01/deletedwebapps/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DeletedSite } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeletedWebAppsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeletedWebAppsClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/deletedSites", id.ID()), } diff --git a/resource-manager/web/2023-01-01/deletedwebapps/method_listbylocation.go b/resource-manager/web/2023-01-01/deletedwebapps/method_listbylocation.go index 7ca76499cc7..09bdd361949 100644 --- a/resource-manager/web/2023-01-01/deletedwebapps/method_listbylocation.go +++ b/resource-manager/web/2023-01-01/deletedwebapps/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []DeletedSite } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c DeletedWebAppsClient) ListByLocation(ctx context.Context, id ProviderLocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeletedWebAppsClient) ListByLocation(ctx context.Context, id ProviderLoc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/deletedSites", id.ID()), } diff --git a/resource-manager/web/2023-01-01/diagnostics/method_executesiteanalysis.go b/resource-manager/web/2023-01-01/diagnostics/method_executesiteanalysis.go index bc5d3b93098..39c10eb722f 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_executesiteanalysis.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_executesiteanalysis.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) ExecuteSiteAnalysis(ctx context.Context, id AnalysisI http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/execute", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/execute", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/diagnostics/method_executesiteanalysisslot.go b/resource-manager/web/2023-01-01/diagnostics/method_executesiteanalysisslot.go index 9c46ec6e7c0..cdfb303e3a3 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_executesiteanalysisslot.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_executesiteanalysisslot.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) ExecuteSiteAnalysisSlot(ctx context.Context, id Diagn http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/execute", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/execute", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/diagnostics/method_executesitedetector.go b/resource-manager/web/2023-01-01/diagnostics/method_executesitedetector.go index d5921adb000..bd22012f0bf 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_executesitedetector.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_executesitedetector.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) ExecuteSiteDetector(ctx context.Context, id Diagnosti http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/execute", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/execute", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/diagnostics/method_executesitedetectorslot.go b/resource-manager/web/2023-01-01/diagnostics/method_executesitedetectorslot.go index 57d36c6f2bd..7b7c52ca9ac 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_executesitedetectorslot.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_executesitedetectorslot.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) ExecuteSiteDetectorSlot(ctx context.Context, id SlotD http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/execute", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/execute", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/diagnostics/method_gethostingenvironmentdetectorresponse.go b/resource-manager/web/2023-01-01/diagnostics/method_gethostingenvironmentdetectorresponse.go index 5c07b3a16ac..c0f8da53660 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_gethostingenvironmentdetectorresponse.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_gethostingenvironmentdetectorresponse.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) GetHostingEnvironmentDetectorResponse(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/diagnostics/method_getsitedetectorresponse.go b/resource-manager/web/2023-01-01/diagnostics/method_getsitedetectorresponse.go index 2bb7b20c482..92cb6f72ab9 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_getsitedetectorresponse.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_getsitedetectorresponse.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) GetSiteDetectorResponse(ctx context.Context, id Detec http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/diagnostics/method_getsitedetectorresponseslot.go b/resource-manager/web/2023-01-01/diagnostics/method_getsitedetectorresponseslot.go index 18b8359de69..2cdbdd632a1 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_getsitedetectorresponseslot.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_getsitedetectorresponseslot.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) GetSiteDetectorResponseSlot(ctx context.Context, id S http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/diagnostics/method_listhostingenvironmentdetectorresponses.go b/resource-manager/web/2023-01-01/diagnostics/method_listhostingenvironmentdetectorresponses.go index c7c9a7736d7..f112dde06bf 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_listhostingenvironmentdetectorresponses.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_listhostingenvironmentdetectorresponses.go @@ -24,6 +24,18 @@ type ListHostingEnvironmentDetectorResponsesCompleteResult struct { Items []DetectorResponse } +type ListHostingEnvironmentDetectorResponsesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHostingEnvironmentDetectorResponsesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHostingEnvironmentDetectorResponses ... func (c DiagnosticsClient) ListHostingEnvironmentDetectorResponses(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListHostingEnvironmentDetectorResponsesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiagnosticsClient) ListHostingEnvironmentDetectorResponses(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHostingEnvironmentDetectorResponsesCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2023-01-01/diagnostics/method_listsiteanalyses.go b/resource-manager/web/2023-01-01/diagnostics/method_listsiteanalyses.go index ca324027e66..91c871786aa 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_listsiteanalyses.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_listsiteanalyses.go @@ -23,6 +23,18 @@ type ListSiteAnalysesCompleteResult struct { Items []AnalysisDefinition } +type ListSiteAnalysesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteAnalysesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteAnalyses ... func (c DiagnosticsClient) ListSiteAnalyses(ctx context.Context, id DiagnosticId) (result ListSiteAnalysesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteAnalyses(ctx context.Context, id DiagnosticId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteAnalysesCustomPager{}, Path: fmt.Sprintf("%s/analyses", id.ID()), } diff --git a/resource-manager/web/2023-01-01/diagnostics/method_listsiteanalysesslot.go b/resource-manager/web/2023-01-01/diagnostics/method_listsiteanalysesslot.go index 52bfd315a5c..23f4e7d5c77 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_listsiteanalysesslot.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_listsiteanalysesslot.go @@ -23,6 +23,18 @@ type ListSiteAnalysesSlotCompleteResult struct { Items []AnalysisDefinition } +type ListSiteAnalysesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteAnalysesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteAnalysesSlot ... func (c DiagnosticsClient) ListSiteAnalysesSlot(ctx context.Context, id SlotDiagnosticId) (result ListSiteAnalysesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteAnalysesSlot(ctx context.Context, id SlotDiag http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteAnalysesSlotCustomPager{}, Path: fmt.Sprintf("%s/analyses", id.ID()), } diff --git a/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectorresponses.go b/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectorresponses.go index 6747c3cafe0..69a5711f698 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectorresponses.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectorresponses.go @@ -24,6 +24,18 @@ type ListSiteDetectorResponsesCompleteResult struct { Items []DetectorResponse } +type ListSiteDetectorResponsesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDetectorResponsesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDetectorResponses ... func (c DiagnosticsClient) ListSiteDetectorResponses(ctx context.Context, id commonids.AppServiceId) (result ListSiteDetectorResponsesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiagnosticsClient) ListSiteDetectorResponses(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDetectorResponsesCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectorresponsesslot.go b/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectorresponsesslot.go index 92abcc624d0..d50bb289cf4 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectorresponsesslot.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectorresponsesslot.go @@ -23,6 +23,18 @@ type ListSiteDetectorResponsesSlotCompleteResult struct { Items []DetectorResponse } +type ListSiteDetectorResponsesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDetectorResponsesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDetectorResponsesSlot ... func (c DiagnosticsClient) ListSiteDetectorResponsesSlot(ctx context.Context, id SlotId) (result ListSiteDetectorResponsesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteDetectorResponsesSlot(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDetectorResponsesSlotCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectors.go b/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectors.go index 52495cf4120..ee307b8dfde 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectors.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectors.go @@ -23,6 +23,18 @@ type ListSiteDetectorsCompleteResult struct { Items []DetectorDefinitionResource } +type ListSiteDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDetectors ... func (c DiagnosticsClient) ListSiteDetectors(ctx context.Context, id DiagnosticId) (result ListSiteDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteDetectors(ctx context.Context, id DiagnosticI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectorsslot.go b/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectorsslot.go index 89553dfa71a..eb8b985ebc6 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectorsslot.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_listsitedetectorsslot.go @@ -23,6 +23,18 @@ type ListSiteDetectorsSlotCompleteResult struct { Items []DetectorDefinitionResource } +type ListSiteDetectorsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDetectorsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDetectorsSlot ... func (c DiagnosticsClient) ListSiteDetectorsSlot(ctx context.Context, id SlotDiagnosticId) (result ListSiteDetectorsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteDetectorsSlot(ctx context.Context, id SlotDia http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDetectorsSlotCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2023-01-01/diagnostics/method_listsitediagnosticcategories.go b/resource-manager/web/2023-01-01/diagnostics/method_listsitediagnosticcategories.go index a9afd41cc0a..29ffd71a26c 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_listsitediagnosticcategories.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_listsitediagnosticcategories.go @@ -24,6 +24,18 @@ type ListSiteDiagnosticCategoriesCompleteResult struct { Items []DiagnosticCategory } +type ListSiteDiagnosticCategoriesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDiagnosticCategoriesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDiagnosticCategories ... func (c DiagnosticsClient) ListSiteDiagnosticCategories(ctx context.Context, id commonids.AppServiceId) (result ListSiteDiagnosticCategoriesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiagnosticsClient) ListSiteDiagnosticCategories(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDiagnosticCategoriesCustomPager{}, Path: fmt.Sprintf("%s/diagnostics", id.ID()), } diff --git a/resource-manager/web/2023-01-01/diagnostics/method_listsitediagnosticcategoriesslot.go b/resource-manager/web/2023-01-01/diagnostics/method_listsitediagnosticcategoriesslot.go index fb6b85de307..1236f4d4ea2 100644 --- a/resource-manager/web/2023-01-01/diagnostics/method_listsitediagnosticcategoriesslot.go +++ b/resource-manager/web/2023-01-01/diagnostics/method_listsitediagnosticcategoriesslot.go @@ -23,6 +23,18 @@ type ListSiteDiagnosticCategoriesSlotCompleteResult struct { Items []DiagnosticCategory } +type ListSiteDiagnosticCategoriesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDiagnosticCategoriesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDiagnosticCategoriesSlot ... func (c DiagnosticsClient) ListSiteDiagnosticCategoriesSlot(ctx context.Context, id SlotId) (result ListSiteDiagnosticCategoriesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteDiagnosticCategoriesSlot(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDiagnosticCategoriesSlotCustomPager{}, Path: fmt.Sprintf("%s/diagnostics", id.ID()), } diff --git a/resource-manager/web/2023-01-01/domains/method_delete.go b/resource-manager/web/2023-01-01/domains/method_delete.go index 67ba404cd4b..1e544b1f599 100644 --- a/resource-manager/web/2023-01-01/domains/method_delete.go +++ b/resource-manager/web/2023-01-01/domains/method_delete.go @@ -53,8 +53,8 @@ func (c DomainsClient) Delete(ctx context.Context, id DomainId, options DeleteOp http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/domains/method_list.go b/resource-manager/web/2023-01-01/domains/method_list.go index f8362b34c59..526910a6cc5 100644 --- a/resource-manager/web/2023-01-01/domains/method_list.go +++ b/resource-manager/web/2023-01-01/domains/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Domain } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DomainsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DomainsClient) List(ctx context.Context, id commonids.SubscriptionId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DomainRegistration/domains", id.ID()), } diff --git a/resource-manager/web/2023-01-01/domains/method_listbyresourcegroup.go b/resource-manager/web/2023-01-01/domains/method_listbyresourcegroup.go index 32693c76e6a..d65249dc0bb 100644 --- a/resource-manager/web/2023-01-01/domains/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-01-01/domains/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Domain } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DomainsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DomainsClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DomainRegistration/domains", id.ID()), } diff --git a/resource-manager/web/2023-01-01/domains/method_listownershipidentifiers.go b/resource-manager/web/2023-01-01/domains/method_listownershipidentifiers.go index d87c3ef554c..7081d3bef77 100644 --- a/resource-manager/web/2023-01-01/domains/method_listownershipidentifiers.go +++ b/resource-manager/web/2023-01-01/domains/method_listownershipidentifiers.go @@ -23,6 +23,18 @@ type ListOwnershipIdentifiersCompleteResult struct { Items []DomainOwnershipIdentifier } +type ListOwnershipIdentifiersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOwnershipIdentifiersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOwnershipIdentifiers ... func (c DomainsClient) ListOwnershipIdentifiers(ctx context.Context, id DomainId) (result ListOwnershipIdentifiersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DomainsClient) ListOwnershipIdentifiers(ctx context.Context, id DomainId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOwnershipIdentifiersCustomPager{}, Path: fmt.Sprintf("%s/domainOwnershipIdentifiers", id.ID()), } diff --git a/resource-manager/web/2023-01-01/domains/method_listrecommendations.go b/resource-manager/web/2023-01-01/domains/method_listrecommendations.go index de29505132c..e59b7c9f97c 100644 --- a/resource-manager/web/2023-01-01/domains/method_listrecommendations.go +++ b/resource-manager/web/2023-01-01/domains/method_listrecommendations.go @@ -24,6 +24,18 @@ type ListRecommendationsCompleteResult struct { Items []NameIdentifier } +type ListRecommendationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRecommendationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRecommendations ... func (c DomainsClient) ListRecommendations(ctx context.Context, id commonids.SubscriptionId, input DomainRecommendationSearchParameters) (result ListRecommendationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DomainsClient) ListRecommendations(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListRecommendationsCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DomainRegistration/listDomainRecommendations", id.ID()), } diff --git a/resource-manager/web/2023-01-01/kubeenvironments/method_listbyresourcegroup.go b/resource-manager/web/2023-01-01/kubeenvironments/method_listbyresourcegroup.go index bc987c155e6..5b378fe3212 100644 --- a/resource-manager/web/2023-01-01/kubeenvironments/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-01-01/kubeenvironments/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []KubeEnvironment } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c KubeEnvironmentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c KubeEnvironmentsClient) ListByResourceGroup(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/kubeEnvironments", id.ID()), } diff --git a/resource-manager/web/2023-01-01/kubeenvironments/method_listbysubscription.go b/resource-manager/web/2023-01-01/kubeenvironments/method_listbysubscription.go index a6c79892e57..a315f826e7c 100644 --- a/resource-manager/web/2023-01-01/kubeenvironments/method_listbysubscription.go +++ b/resource-manager/web/2023-01-01/kubeenvironments/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []KubeEnvironment } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c KubeEnvironmentsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c KubeEnvironmentsClient) ListBySubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/kubeEnvironments", id.ID()), } diff --git a/resource-manager/web/2023-01-01/provider/method_getavailablestacks.go b/resource-manager/web/2023-01-01/provider/method_getavailablestacks.go index e3c95b0d271..d38e1131c18 100644 --- a/resource-manager/web/2023-01-01/provider/method_getavailablestacks.go +++ b/resource-manager/web/2023-01-01/provider/method_getavailablestacks.go @@ -50,6 +50,18 @@ func (o GetAvailableStacksOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetAvailableStacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAvailableStacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAvailableStacks ... func (c ProviderClient) GetAvailableStacks(ctx context.Context, options GetAvailableStacksOperationOptions) (result GetAvailableStacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetAvailableStacks(ctx context.Context, options GetAvail http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Web/availableStacks", OptionsObject: options, + Pager: &GetAvailableStacksCustomPager{}, + Path: "/providers/Microsoft.Web/availableStacks", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/provider/method_getavailablestacksonprem.go b/resource-manager/web/2023-01-01/provider/method_getavailablestacksonprem.go index d1427b7e12c..88344e48bbe 100644 --- a/resource-manager/web/2023-01-01/provider/method_getavailablestacksonprem.go +++ b/resource-manager/web/2023-01-01/provider/method_getavailablestacksonprem.go @@ -51,6 +51,18 @@ func (o GetAvailableStacksOnPremOperationOptions) ToQuery() *client.QueryParams return &out } +type GetAvailableStacksOnPremCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAvailableStacksOnPremCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAvailableStacksOnPrem ... func (c ProviderClient) GetAvailableStacksOnPrem(ctx context.Context, id commonids.SubscriptionId, options GetAvailableStacksOnPremOperationOptions) (result GetAvailableStacksOnPremOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ProviderClient) GetAvailableStacksOnPrem(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/availableStacks", id.ID()), OptionsObject: options, + Pager: &GetAvailableStacksOnPremCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/availableStacks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/provider/method_getfunctionappstacks.go b/resource-manager/web/2023-01-01/provider/method_getfunctionappstacks.go index c3d16509989..e7d7af6faee 100644 --- a/resource-manager/web/2023-01-01/provider/method_getfunctionappstacks.go +++ b/resource-manager/web/2023-01-01/provider/method_getfunctionappstacks.go @@ -50,6 +50,18 @@ func (o GetFunctionAppStacksOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetFunctionAppStacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetFunctionAppStacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetFunctionAppStacks ... func (c ProviderClient) GetFunctionAppStacks(ctx context.Context, options GetFunctionAppStacksOperationOptions) (result GetFunctionAppStacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetFunctionAppStacks(ctx context.Context, options GetFun http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Web/functionAppStacks", OptionsObject: options, + Pager: &GetFunctionAppStacksCustomPager{}, + Path: "/providers/Microsoft.Web/functionAppStacks", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/provider/method_getfunctionappstacksforlocation.go b/resource-manager/web/2023-01-01/provider/method_getfunctionappstacksforlocation.go index 4c3aad06d10..d172b71e511 100644 --- a/resource-manager/web/2023-01-01/provider/method_getfunctionappstacksforlocation.go +++ b/resource-manager/web/2023-01-01/provider/method_getfunctionappstacksforlocation.go @@ -50,6 +50,18 @@ func (o GetFunctionAppStacksForLocationOperationOptions) ToQuery() *client.Query return &out } +type GetFunctionAppStacksForLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetFunctionAppStacksForLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetFunctionAppStacksForLocation ... func (c ProviderClient) GetFunctionAppStacksForLocation(ctx context.Context, id LocationId, options GetFunctionAppStacksForLocationOperationOptions) (result GetFunctionAppStacksForLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetFunctionAppStacksForLocation(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/functionAppStacks", id.ID()), OptionsObject: options, + Pager: &GetFunctionAppStacksForLocationCustomPager{}, + Path: fmt.Sprintf("%s/functionAppStacks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/provider/method_getwebappstacks.go b/resource-manager/web/2023-01-01/provider/method_getwebappstacks.go index 3ea1d65b326..94ed33af10c 100644 --- a/resource-manager/web/2023-01-01/provider/method_getwebappstacks.go +++ b/resource-manager/web/2023-01-01/provider/method_getwebappstacks.go @@ -50,6 +50,18 @@ func (o GetWebAppStacksOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetWebAppStacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetWebAppStacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetWebAppStacks ... func (c ProviderClient) GetWebAppStacks(ctx context.Context, options GetWebAppStacksOperationOptions) (result GetWebAppStacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetWebAppStacks(ctx context.Context, options GetWebAppSt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Web/webAppStacks", OptionsObject: options, + Pager: &GetWebAppStacksCustomPager{}, + Path: "/providers/Microsoft.Web/webAppStacks", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/provider/method_getwebappstacksforlocation.go b/resource-manager/web/2023-01-01/provider/method_getwebappstacksforlocation.go index fd6857cecd2..1b7970c0294 100644 --- a/resource-manager/web/2023-01-01/provider/method_getwebappstacksforlocation.go +++ b/resource-manager/web/2023-01-01/provider/method_getwebappstacksforlocation.go @@ -50,6 +50,18 @@ func (o GetWebAppStacksForLocationOperationOptions) ToQuery() *client.QueryParam return &out } +type GetWebAppStacksForLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetWebAppStacksForLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetWebAppStacksForLocation ... func (c ProviderClient) GetWebAppStacksForLocation(ctx context.Context, id LocationId, options GetWebAppStacksForLocationOperationOptions) (result GetWebAppStacksForLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetWebAppStacksForLocation(ctx context.Context, id Locat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/webAppStacks", id.ID()), OptionsObject: options, + Pager: &GetWebAppStacksForLocationCustomPager{}, + Path: fmt.Sprintf("%s/webAppStacks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/recommendations/method_disableallforhostingenvironment.go b/resource-manager/web/2023-01-01/recommendations/method_disableallforhostingenvironment.go index 3cf4d8a174d..3099cf85524 100644 --- a/resource-manager/web/2023-01-01/recommendations/method_disableallforhostingenvironment.go +++ b/resource-manager/web/2023-01-01/recommendations/method_disableallforhostingenvironment.go @@ -53,8 +53,8 @@ func (c RecommendationsClient) DisableAllForHostingEnvironment(ctx context.Conte http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/recommendations/disable", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/recommendations/disable", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/recommendations/method_disablerecommendationforhostingenvironment.go b/resource-manager/web/2023-01-01/recommendations/method_disablerecommendationforhostingenvironment.go index 9a2c85fe009..64a8ac5160d 100644 --- a/resource-manager/web/2023-01-01/recommendations/method_disablerecommendationforhostingenvironment.go +++ b/resource-manager/web/2023-01-01/recommendations/method_disablerecommendationforhostingenvironment.go @@ -52,8 +52,8 @@ func (c RecommendationsClient) DisableRecommendationForHostingEnvironment(ctx co http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/disable", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/disable", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/recommendations/method_getruledetailsbyhostingenvironment.go b/resource-manager/web/2023-01-01/recommendations/method_getruledetailsbyhostingenvironment.go index 524b4ba744d..2509533cd78 100644 --- a/resource-manager/web/2023-01-01/recommendations/method_getruledetailsbyhostingenvironment.go +++ b/resource-manager/web/2023-01-01/recommendations/method_getruledetailsbyhostingenvironment.go @@ -57,8 +57,8 @@ func (c RecommendationsClient) GetRuleDetailsByHostingEnvironment(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/recommendations/method_getruledetailsbywebapp.go b/resource-manager/web/2023-01-01/recommendations/method_getruledetailsbywebapp.go index aca06f267dd..8e4e22b5b79 100644 --- a/resource-manager/web/2023-01-01/recommendations/method_getruledetailsbywebapp.go +++ b/resource-manager/web/2023-01-01/recommendations/method_getruledetailsbywebapp.go @@ -57,8 +57,8 @@ func (c RecommendationsClient) GetRuleDetailsByWebApp(ctx context.Context, id Si http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/recommendations/method_list.go b/resource-manager/web/2023-01-01/recommendations/method_list.go index 4addca79cf1..f45d890f65b 100644 --- a/resource-manager/web/2023-01-01/recommendations/method_list.go +++ b/resource-manager/web/2023-01-01/recommendations/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RecommendationsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/recommendations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/recommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/recommendations/method_listhistoryforhostingenvironment.go b/resource-manager/web/2023-01-01/recommendations/method_listhistoryforhostingenvironment.go index 8e06b19581b..a66dab954fa 100644 --- a/resource-manager/web/2023-01-01/recommendations/method_listhistoryforhostingenvironment.go +++ b/resource-manager/web/2023-01-01/recommendations/method_listhistoryforhostingenvironment.go @@ -55,6 +55,18 @@ func (o ListHistoryForHostingEnvironmentOperationOptions) ToQuery() *client.Quer return &out } +type ListHistoryForHostingEnvironmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHistoryForHostingEnvironmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHistoryForHostingEnvironment ... func (c RecommendationsClient) ListHistoryForHostingEnvironment(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListHistoryForHostingEnvironmentOperationOptions) (result ListHistoryForHostingEnvironmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) ListHistoryForHostingEnvironment(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendationHistory", id.ID()), OptionsObject: options, + Pager: &ListHistoryForHostingEnvironmentCustomPager{}, + Path: fmt.Sprintf("%s/recommendationHistory", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/recommendations/method_listhistoryforwebapp.go b/resource-manager/web/2023-01-01/recommendations/method_listhistoryforwebapp.go index 9ee60f7ca8e..54a97058272 100644 --- a/resource-manager/web/2023-01-01/recommendations/method_listhistoryforwebapp.go +++ b/resource-manager/web/2023-01-01/recommendations/method_listhistoryforwebapp.go @@ -55,6 +55,18 @@ func (o ListHistoryForWebAppOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListHistoryForWebAppCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHistoryForWebAppCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHistoryForWebApp ... func (c RecommendationsClient) ListHistoryForWebApp(ctx context.Context, id commonids.AppServiceId, options ListHistoryForWebAppOperationOptions) (result ListHistoryForWebAppOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) ListHistoryForWebApp(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendationHistory", id.ID()), OptionsObject: options, + Pager: &ListHistoryForWebAppCustomPager{}, + Path: fmt.Sprintf("%s/recommendationHistory", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/recommendations/method_listrecommendedrulesforhostingenvironment.go b/resource-manager/web/2023-01-01/recommendations/method_listrecommendedrulesforhostingenvironment.go index 6702f1d0ea8..d7c819654b5 100644 --- a/resource-manager/web/2023-01-01/recommendations/method_listrecommendedrulesforhostingenvironment.go +++ b/resource-manager/web/2023-01-01/recommendations/method_listrecommendedrulesforhostingenvironment.go @@ -55,6 +55,18 @@ func (o ListRecommendedRulesForHostingEnvironmentOperationOptions) ToQuery() *cl return &out } +type ListRecommendedRulesForHostingEnvironmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRecommendedRulesForHostingEnvironmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRecommendedRulesForHostingEnvironment ... func (c RecommendationsClient) ListRecommendedRulesForHostingEnvironment(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListRecommendedRulesForHostingEnvironmentOperationOptions) (result ListRecommendedRulesForHostingEnvironmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) ListRecommendedRulesForHostingEnvironment(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendations", id.ID()), OptionsObject: options, + Pager: &ListRecommendedRulesForHostingEnvironmentCustomPager{}, + Path: fmt.Sprintf("%s/recommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/recommendations/method_listrecommendedrulesforwebapp.go b/resource-manager/web/2023-01-01/recommendations/method_listrecommendedrulesforwebapp.go index 51e166df89d..45f19bdafd5 100644 --- a/resource-manager/web/2023-01-01/recommendations/method_listrecommendedrulesforwebapp.go +++ b/resource-manager/web/2023-01-01/recommendations/method_listrecommendedrulesforwebapp.go @@ -55,6 +55,18 @@ func (o ListRecommendedRulesForWebAppOperationOptions) ToQuery() *client.QueryPa return &out } +type ListRecommendedRulesForWebAppCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRecommendedRulesForWebAppCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRecommendedRulesForWebApp ... func (c RecommendationsClient) ListRecommendedRulesForWebApp(ctx context.Context, id commonids.AppServiceId, options ListRecommendedRulesForWebAppOperationOptions) (result ListRecommendedRulesForWebAppOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) ListRecommendedRulesForWebApp(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendations", id.ID()), OptionsObject: options, + Pager: &ListRecommendedRulesForWebAppCustomPager{}, + Path: fmt.Sprintf("%s/recommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/recommendations/method_resetallfiltersforhostingenvironment.go b/resource-manager/web/2023-01-01/recommendations/method_resetallfiltersforhostingenvironment.go index 37b4b2703d0..23fe068d9bf 100644 --- a/resource-manager/web/2023-01-01/recommendations/method_resetallfiltersforhostingenvironment.go +++ b/resource-manager/web/2023-01-01/recommendations/method_resetallfiltersforhostingenvironment.go @@ -53,8 +53,8 @@ func (c RecommendationsClient) ResetAllFiltersForHostingEnvironment(ctx context. http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/recommendations/reset", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/recommendations/reset", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/resourcehealthmetadata/method_list.go b/resource-manager/web/2023-01-01/resourcehealthmetadata/method_list.go index e92184f3d0e..fc5ca6a83d6 100644 --- a/resource-manager/web/2023-01-01/resourcehealthmetadata/method_list.go +++ b/resource-manager/web/2023-01-01/resourcehealthmetadata/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ResourceHealthMetadata } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourceHealthMetadataClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceHealthMetadataClient) List(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/resourceHealthMetadata", id.ID()), } diff --git a/resource-manager/web/2023-01-01/resourcehealthmetadata/method_listbyresourcegroup.go b/resource-manager/web/2023-01-01/resourcehealthmetadata/method_listbyresourcegroup.go index c9732b0c927..44f705f6ee9 100644 --- a/resource-manager/web/2023-01-01/resourcehealthmetadata/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-01-01/resourcehealthmetadata/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ResourceHealthMetadata } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ResourceHealthMetadataClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceHealthMetadataClient) ListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/resourceHealthMetadata", id.ID()), } diff --git a/resource-manager/web/2023-01-01/resourcehealthmetadata/method_listbysite.go b/resource-manager/web/2023-01-01/resourcehealthmetadata/method_listbysite.go index 884a120ea53..8b3c47e6b0c 100644 --- a/resource-manager/web/2023-01-01/resourcehealthmetadata/method_listbysite.go +++ b/resource-manager/web/2023-01-01/resourcehealthmetadata/method_listbysite.go @@ -24,6 +24,18 @@ type ListBySiteCompleteResult struct { Items []ResourceHealthMetadata } +type ListBySiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySite ... func (c ResourceHealthMetadataClient) ListBySite(ctx context.Context, id commonids.AppServiceId) (result ListBySiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceHealthMetadataClient) ListBySite(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySiteCustomPager{}, Path: fmt.Sprintf("%s/resourceHealthMetadata", id.ID()), } diff --git a/resource-manager/web/2023-01-01/resourcehealthmetadata/method_listbysiteslot.go b/resource-manager/web/2023-01-01/resourcehealthmetadata/method_listbysiteslot.go index 7ed12d15362..49e47b7379d 100644 --- a/resource-manager/web/2023-01-01/resourcehealthmetadata/method_listbysiteslot.go +++ b/resource-manager/web/2023-01-01/resourcehealthmetadata/method_listbysiteslot.go @@ -23,6 +23,18 @@ type ListBySiteSlotCompleteResult struct { Items []ResourceHealthMetadata } +type ListBySiteSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySiteSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySiteSlot ... func (c ResourceHealthMetadataClient) ListBySiteSlot(ctx context.Context, id SlotId) (result ListBySiteSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceHealthMetadataClient) ListBySiteSlot(ctx context.Context, id Slo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySiteSlotCustomPager{}, Path: fmt.Sprintf("%s/resourceHealthMetadata", id.ID()), } diff --git a/resource-manager/web/2023-01-01/resourceproviders/method_getusagesinlocationlist.go b/resource-manager/web/2023-01-01/resourceproviders/method_getusagesinlocationlist.go index 7d5880c0d1b..34301f4dd5f 100644 --- a/resource-manager/web/2023-01-01/resourceproviders/method_getusagesinlocationlist.go +++ b/resource-manager/web/2023-01-01/resourceproviders/method_getusagesinlocationlist.go @@ -23,6 +23,18 @@ type GetUsagesInLocationlistCompleteResult struct { Items []CsmUsageQuota } +type GetUsagesInLocationlistCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUsagesInLocationlistCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUsagesInLocationlist ... func (c ResourceProvidersClient) GetUsagesInLocationlist(ctx context.Context, id ProviderLocationId) (result GetUsagesInLocationlistOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceProvidersClient) GetUsagesInLocationlist(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUsagesInLocationlistCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/web/2023-01-01/resourceproviders/method_listaseregions.go b/resource-manager/web/2023-01-01/resourceproviders/method_listaseregions.go index e27f79c9edc..401237f0e41 100644 --- a/resource-manager/web/2023-01-01/resourceproviders/method_listaseregions.go +++ b/resource-manager/web/2023-01-01/resourceproviders/method_listaseregions.go @@ -24,6 +24,18 @@ type ListAseRegionsCompleteResult struct { Items []AseRegion } +type ListAseRegionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAseRegionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAseRegions ... func (c ResourceProvidersClient) ListAseRegions(ctx context.Context, id commonids.SubscriptionId) (result ListAseRegionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceProvidersClient) ListAseRegions(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAseRegionsCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/aseRegions", id.ID()), } diff --git a/resource-manager/web/2023-01-01/resourceproviders/method_listbillingmeters.go b/resource-manager/web/2023-01-01/resourceproviders/method_listbillingmeters.go index 4779b97850c..684c35df7f1 100644 --- a/resource-manager/web/2023-01-01/resourceproviders/method_listbillingmeters.go +++ b/resource-manager/web/2023-01-01/resourceproviders/method_listbillingmeters.go @@ -55,6 +55,18 @@ func (o ListBillingMetersOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBillingMetersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBillingMetersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBillingMeters ... func (c ResourceProvidersClient) ListBillingMeters(ctx context.Context, id commonids.SubscriptionId, options ListBillingMetersOperationOptions) (result ListBillingMetersOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ResourceProvidersClient) ListBillingMeters(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/billingMeters", id.ID()), OptionsObject: options, + Pager: &ListBillingMetersCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/billingMeters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/resourceproviders/method_listcustomhostnamesites.go b/resource-manager/web/2023-01-01/resourceproviders/method_listcustomhostnamesites.go index fea9b3fab7f..62c87e04bf1 100644 --- a/resource-manager/web/2023-01-01/resourceproviders/method_listcustomhostnamesites.go +++ b/resource-manager/web/2023-01-01/resourceproviders/method_listcustomhostnamesites.go @@ -51,6 +51,18 @@ func (o ListCustomHostNameSitesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomHostNameSitesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomHostNameSitesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCustomHostNameSites ... func (c ResourceProvidersClient) ListCustomHostNameSites(ctx context.Context, id commonids.SubscriptionId, options ListCustomHostNameSitesOperationOptions) (result ListCustomHostNameSitesOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ResourceProvidersClient) ListCustomHostNameSites(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/customhostnameSites", id.ID()), OptionsObject: options, + Pager: &ListCustomHostNameSitesCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/customhostnameSites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/resourceproviders/method_listgeoregions.go b/resource-manager/web/2023-01-01/resourceproviders/method_listgeoregions.go index e8155e5bc12..ee39002c7a8 100644 --- a/resource-manager/web/2023-01-01/resourceproviders/method_listgeoregions.go +++ b/resource-manager/web/2023-01-01/resourceproviders/method_listgeoregions.go @@ -63,6 +63,18 @@ func (o ListGeoRegionsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListGeoRegionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListGeoRegionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListGeoRegions ... func (c ResourceProvidersClient) ListGeoRegions(ctx context.Context, id commonids.SubscriptionId, options ListGeoRegionsOperationOptions) (result ListGeoRegionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -71,8 +83,9 @@ func (c ResourceProvidersClient) ListGeoRegions(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/geoRegions", id.ID()), OptionsObject: options, + Pager: &ListGeoRegionsCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/geoRegions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/resourceproviders/method_listpremieraddonoffers.go b/resource-manager/web/2023-01-01/resourceproviders/method_listpremieraddonoffers.go index e7916ca9237..330e4571b61 100644 --- a/resource-manager/web/2023-01-01/resourceproviders/method_listpremieraddonoffers.go +++ b/resource-manager/web/2023-01-01/resourceproviders/method_listpremieraddonoffers.go @@ -24,6 +24,18 @@ type ListPremierAddOnOffersCompleteResult struct { Items []PremierAddOnOffer } +type ListPremierAddOnOffersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPremierAddOnOffersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPremierAddOnOffers ... func (c ResourceProvidersClient) ListPremierAddOnOffers(ctx context.Context, id commonids.SubscriptionId) (result ListPremierAddOnOffersOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceProvidersClient) ListPremierAddOnOffers(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPremierAddOnOffersCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/premieraddonoffers", id.ID()), } diff --git a/resource-manager/web/2023-01-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go b/resource-manager/web/2023-01-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go index c1bffee4cb3..b759ab015d3 100644 --- a/resource-manager/web/2023-01-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go +++ b/resource-manager/web/2023-01-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go @@ -24,6 +24,18 @@ type ListSiteIdentifiersAssignedToHostNameCompleteResult struct { Items []Identifier } +type ListSiteIdentifiersAssignedToHostNameCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteIdentifiersAssignedToHostNameCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteIdentifiersAssignedToHostName ... func (c ResourceProvidersClient) ListSiteIdentifiersAssignedToHostName(ctx context.Context, id commonids.SubscriptionId, input NameIdentifier) (result ListSiteIdentifiersAssignedToHostNameOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceProvidersClient) ListSiteIdentifiersAssignedToHostName(ctx conte http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSiteIdentifiersAssignedToHostNameCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/listSitesAssignedToHostName", id.ID()), } diff --git a/resource-manager/web/2023-01-01/resourceproviders/method_listsourcecontrols.go b/resource-manager/web/2023-01-01/resourceproviders/method_listsourcecontrols.go index 91c42d2744a..b06f0d3e624 100644 --- a/resource-manager/web/2023-01-01/resourceproviders/method_listsourcecontrols.go +++ b/resource-manager/web/2023-01-01/resourceproviders/method_listsourcecontrols.go @@ -23,6 +23,18 @@ type ListSourceControlsCompleteResult struct { Items []SourceControl } +type ListSourceControlsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSourceControlsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSourceControls ... func (c ResourceProvidersClient) ListSourceControls(ctx context.Context) (result ListSourceControlsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceProvidersClient) ListSourceControls(ctx context.Context) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSourceControlsCustomPager{}, Path: "/providers/Microsoft.Web/sourceControls", } diff --git a/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnections.go b/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnections.go index a32ff1e21ee..7b74f18507d 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnections.go +++ b/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnections.go @@ -23,6 +23,18 @@ type GetBuildDatabaseConnectionsCompleteResult struct { Items []DatabaseConnection } +type GetBuildDatabaseConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBuildDatabaseConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBuildDatabaseConnections ... func (c StaticSitesClient) GetBuildDatabaseConnections(ctx context.Context, id BuildId) (result GetBuildDatabaseConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetBuildDatabaseConnections(ctx context.Context, id B http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetBuildDatabaseConnectionsCustomPager{}, Path: fmt.Sprintf("%s/databaseConnections", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnectionswithdetails.go b/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnectionswithdetails.go index 6ce150c5f7b..dca1df6d320 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnectionswithdetails.go +++ b/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnectionswithdetails.go @@ -23,6 +23,18 @@ type GetBuildDatabaseConnectionsWithDetailsCompleteResult struct { Items []DatabaseConnection } +type GetBuildDatabaseConnectionsWithDetailsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBuildDatabaseConnectionsWithDetailsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBuildDatabaseConnectionsWithDetails ... func (c StaticSitesClient) GetBuildDatabaseConnectionsWithDetails(ctx context.Context, id BuildId) (result GetBuildDatabaseConnectionsWithDetailsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetBuildDatabaseConnectionsWithDetails(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetBuildDatabaseConnectionsWithDetailsCustomPager{}, Path: fmt.Sprintf("%s/showDatabaseConnections", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnections.go b/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnections.go index 030a9d42ab7..47dcec6884d 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnections.go +++ b/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnections.go @@ -23,6 +23,18 @@ type GetDatabaseConnectionsCompleteResult struct { Items []DatabaseConnection } +type GetDatabaseConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDatabaseConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDatabaseConnections ... func (c StaticSitesClient) GetDatabaseConnections(ctx context.Context, id StaticSiteId) (result GetDatabaseConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetDatabaseConnections(ctx context.Context, id Static http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDatabaseConnectionsCustomPager{}, Path: fmt.Sprintf("%s/databaseConnections", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnectionswithdetails.go b/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnectionswithdetails.go index 87437dabadd..4b57d3116ee 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnectionswithdetails.go +++ b/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnectionswithdetails.go @@ -23,6 +23,18 @@ type GetDatabaseConnectionsWithDetailsCompleteResult struct { Items []DatabaseConnection } +type GetDatabaseConnectionsWithDetailsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDatabaseConnectionsWithDetailsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDatabaseConnectionsWithDetails ... func (c StaticSitesClient) GetDatabaseConnectionsWithDetails(ctx context.Context, id StaticSiteId) (result GetDatabaseConnectionsWithDetailsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetDatabaseConnectionsWithDetails(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetDatabaseConnectionsWithDetailsCustomPager{}, Path: fmt.Sprintf("%s/showDatabaseConnections", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackends.go b/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackends.go index 17035b006d8..8b45e6df96b 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackends.go +++ b/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackends.go @@ -23,6 +23,18 @@ type GetLinkedBackendsCompleteResult struct { Items []StaticSiteLinkedBackendARMResource } +type GetLinkedBackendsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetLinkedBackendsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetLinkedBackends ... func (c StaticSitesClient) GetLinkedBackends(ctx context.Context, id StaticSiteId) (result GetLinkedBackendsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetLinkedBackends(ctx context.Context, id StaticSiteI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetLinkedBackendsCustomPager{}, Path: fmt.Sprintf("%s/linkedBackends", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackendsforbuild.go b/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackendsforbuild.go index ae42e346542..78d17e5d639 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackendsforbuild.go +++ b/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackendsforbuild.go @@ -23,6 +23,18 @@ type GetLinkedBackendsForBuildCompleteResult struct { Items []StaticSiteLinkedBackendARMResource } +type GetLinkedBackendsForBuildCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetLinkedBackendsForBuildCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetLinkedBackendsForBuild ... func (c StaticSitesClient) GetLinkedBackendsForBuild(ctx context.Context, id BuildId) (result GetLinkedBackendsForBuildOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetLinkedBackendsForBuild(ctx context.Context, id Bui http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetLinkedBackendsForBuildCustomPager{}, Path: fmt.Sprintf("%s/linkedBackends", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_getprivateendpointconnectionlist.go b/resource-manager/web/2023-01-01/staticsites/method_getprivateendpointconnectionlist.go index 56dadb4539a..7de0a9af9fb 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_getprivateendpointconnectionlist.go +++ b/resource-manager/web/2023-01-01/staticsites/method_getprivateendpointconnectionlist.go @@ -23,6 +23,18 @@ type GetPrivateEndpointConnectionListCompleteResult struct { Items []RemotePrivateEndpointConnectionARMResource } +type GetPrivateEndpointConnectionListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetPrivateEndpointConnectionListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetPrivateEndpointConnectionList ... func (c StaticSitesClient) GetPrivateEndpointConnectionList(ctx context.Context, id StaticSiteId) (result GetPrivateEndpointConnectionListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetPrivateEndpointConnectionList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetPrivateEndpointConnectionListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_getstaticsitebuilds.go b/resource-manager/web/2023-01-01/staticsites/method_getstaticsitebuilds.go index 574f7569255..b3a188507cf 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_getstaticsitebuilds.go +++ b/resource-manager/web/2023-01-01/staticsites/method_getstaticsitebuilds.go @@ -23,6 +23,18 @@ type GetStaticSiteBuildsCompleteResult struct { Items []StaticSiteBuildARMResource } +type GetStaticSiteBuildsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetStaticSiteBuildsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetStaticSiteBuilds ... func (c StaticSitesClient) GetStaticSiteBuilds(ctx context.Context, id StaticSiteId) (result GetStaticSiteBuildsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetStaticSiteBuilds(ctx context.Context, id StaticSit http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetStaticSiteBuildsCustomPager{}, Path: fmt.Sprintf("%s/builds", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_getstaticsitesbyresourcegroup.go b/resource-manager/web/2023-01-01/staticsites/method_getstaticsitesbyresourcegroup.go index 1225e3389a2..6c479510d72 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_getstaticsitesbyresourcegroup.go +++ b/resource-manager/web/2023-01-01/staticsites/method_getstaticsitesbyresourcegroup.go @@ -24,6 +24,18 @@ type GetStaticSitesByResourceGroupCompleteResult struct { Items []StaticSiteARMResource } +type GetStaticSitesByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetStaticSitesByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetStaticSitesByResourceGroup ... func (c StaticSitesClient) GetStaticSitesByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GetStaticSitesByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StaticSitesClient) GetStaticSitesByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetStaticSitesByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/staticSites", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappsforstaticsite.go b/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappsforstaticsite.go index 6025e193b2a..800d5ab1d72 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappsforstaticsite.go +++ b/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappsforstaticsite.go @@ -23,6 +23,18 @@ type GetUserProvidedFunctionAppsForStaticSiteCompleteResult struct { Items []StaticSiteUserProvidedFunctionAppARMResource } +type GetUserProvidedFunctionAppsForStaticSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUserProvidedFunctionAppsForStaticSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUserProvidedFunctionAppsForStaticSite ... func (c StaticSitesClient) GetUserProvidedFunctionAppsForStaticSite(ctx context.Context, id StaticSiteId) (result GetUserProvidedFunctionAppsForStaticSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetUserProvidedFunctionAppsForStaticSite(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUserProvidedFunctionAppsForStaticSiteCustomPager{}, Path: fmt.Sprintf("%s/userProvidedFunctionApps", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappsforstaticsitebuild.go b/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappsforstaticsitebuild.go index a7a48822a0a..b86539d1801 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappsforstaticsitebuild.go +++ b/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappsforstaticsitebuild.go @@ -23,6 +23,18 @@ type GetUserProvidedFunctionAppsForStaticSiteBuildCompleteResult struct { Items []StaticSiteUserProvidedFunctionAppARMResource } +type GetUserProvidedFunctionAppsForStaticSiteBuildCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUserProvidedFunctionAppsForStaticSiteBuildCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUserProvidedFunctionAppsForStaticSiteBuild ... func (c StaticSitesClient) GetUserProvidedFunctionAppsForStaticSiteBuild(ctx context.Context, id BuildId) (result GetUserProvidedFunctionAppsForStaticSiteBuildOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetUserProvidedFunctionAppsForStaticSiteBuild(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUserProvidedFunctionAppsForStaticSiteBuildCustomPager{}, Path: fmt.Sprintf("%s/userProvidedFunctionApps", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_list.go b/resource-manager/web/2023-01-01/staticsites/method_list.go index 21d87169b53..e071040c10d 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_list.go +++ b/resource-manager/web/2023-01-01/staticsites/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []StaticSiteARMResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StaticSitesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StaticSitesClient) List(ctx context.Context, id commonids.SubscriptionId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/staticSites", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_listbasicauth.go b/resource-manager/web/2023-01-01/staticsites/method_listbasicauth.go index 95300943673..3c466f4f588 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_listbasicauth.go +++ b/resource-manager/web/2023-01-01/staticsites/method_listbasicauth.go @@ -23,6 +23,18 @@ type ListBasicAuthCompleteResult struct { Items []StaticSiteBasicAuthPropertiesARMResource } +type ListBasicAuthCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBasicAuthCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBasicAuth ... func (c StaticSitesClient) ListBasicAuth(ctx context.Context, id StaticSiteId) (result ListBasicAuthOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListBasicAuth(ctx context.Context, id StaticSiteId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBasicAuthCustomPager{}, Path: fmt.Sprintf("%s/basicAuth", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_liststaticsitebuildfunctions.go b/resource-manager/web/2023-01-01/staticsites/method_liststaticsitebuildfunctions.go index 70fbabed186..3f2f7d75e25 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_liststaticsitebuildfunctions.go +++ b/resource-manager/web/2023-01-01/staticsites/method_liststaticsitebuildfunctions.go @@ -23,6 +23,18 @@ type ListStaticSiteBuildFunctionsCompleteResult struct { Items []StaticSiteFunctionOverviewARMResource } +type ListStaticSiteBuildFunctionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListStaticSiteBuildFunctionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListStaticSiteBuildFunctions ... func (c StaticSitesClient) ListStaticSiteBuildFunctions(ctx context.Context, id BuildId) (result ListStaticSiteBuildFunctionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListStaticSiteBuildFunctions(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListStaticSiteBuildFunctionsCustomPager{}, Path: fmt.Sprintf("%s/functions", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_liststaticsitecustomdomains.go b/resource-manager/web/2023-01-01/staticsites/method_liststaticsitecustomdomains.go index 6e912e97840..da0d6cea4e9 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_liststaticsitecustomdomains.go +++ b/resource-manager/web/2023-01-01/staticsites/method_liststaticsitecustomdomains.go @@ -23,6 +23,18 @@ type ListStaticSiteCustomDomainsCompleteResult struct { Items []StaticSiteCustomDomainOverviewARMResource } +type ListStaticSiteCustomDomainsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListStaticSiteCustomDomainsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListStaticSiteCustomDomains ... func (c StaticSitesClient) ListStaticSiteCustomDomains(ctx context.Context, id StaticSiteId) (result ListStaticSiteCustomDomainsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListStaticSiteCustomDomains(ctx context.Context, id S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListStaticSiteCustomDomainsCustomPager{}, Path: fmt.Sprintf("%s/customDomains", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_liststaticsitefunctions.go b/resource-manager/web/2023-01-01/staticsites/method_liststaticsitefunctions.go index 0549ce204f3..625443d50b3 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_liststaticsitefunctions.go +++ b/resource-manager/web/2023-01-01/staticsites/method_liststaticsitefunctions.go @@ -23,6 +23,18 @@ type ListStaticSiteFunctionsCompleteResult struct { Items []StaticSiteFunctionOverviewARMResource } +type ListStaticSiteFunctionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListStaticSiteFunctionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListStaticSiteFunctions ... func (c StaticSitesClient) ListStaticSiteFunctions(ctx context.Context, id StaticSiteId) (result ListStaticSiteFunctionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListStaticSiteFunctions(ctx context.Context, id Stati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListStaticSiteFunctionsCustomPager{}, Path: fmt.Sprintf("%s/functions", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_liststaticsiteusers.go b/resource-manager/web/2023-01-01/staticsites/method_liststaticsiteusers.go index f9d9a2e33da..d711c5393b9 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_liststaticsiteusers.go +++ b/resource-manager/web/2023-01-01/staticsites/method_liststaticsiteusers.go @@ -23,6 +23,18 @@ type ListStaticSiteUsersCompleteResult struct { Items []StaticSiteUserARMResource } +type ListStaticSiteUsersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListStaticSiteUsersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListStaticSiteUsers ... func (c StaticSitesClient) ListStaticSiteUsers(ctx context.Context, id AuthProviderId) (result ListStaticSiteUsersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListStaticSiteUsers(ctx context.Context, id AuthProvi http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListStaticSiteUsersCustomPager{}, Path: fmt.Sprintf("%s/listUsers", id.ID()), } diff --git a/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go b/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go index cda8ba615de..5cfabf447f9 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go +++ b/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go @@ -57,8 +57,8 @@ func (c StaticSitesClient) RegisterUserProvidedFunctionAppWithStaticSite(ctx con http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go b/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go index a3f67cbfd6e..32f030cb1b3 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go +++ b/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go @@ -57,8 +57,8 @@ func (c StaticSitesClient) RegisterUserProvidedFunctionAppWithStaticSiteBuild(ct http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/staticsites/method_unlinkbackend.go b/resource-manager/web/2023-01-01/staticsites/method_unlinkbackend.go index 98066240969..897c1be7925 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_unlinkbackend.go +++ b/resource-manager/web/2023-01-01/staticsites/method_unlinkbackend.go @@ -53,8 +53,8 @@ func (c StaticSitesClient) UnlinkBackend(ctx context.Context, id LinkedBackendId http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/staticsites/method_unlinkbackendfrombuild.go b/resource-manager/web/2023-01-01/staticsites/method_unlinkbackendfrombuild.go index 9ef02435e54..7e356363af4 100644 --- a/resource-manager/web/2023-01-01/staticsites/method_unlinkbackendfrombuild.go +++ b/resource-manager/web/2023-01-01/staticsites/method_unlinkbackendfrombuild.go @@ -53,8 +53,8 @@ func (c StaticSitesClient) UnlinkBackendFromBuild(ctx context.Context, id BuildL http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/topleveldomains/method_list.go b/resource-manager/web/2023-01-01/topleveldomains/method_list.go index c985fabe4f6..3047b40a525 100644 --- a/resource-manager/web/2023-01-01/topleveldomains/method_list.go +++ b/resource-manager/web/2023-01-01/topleveldomains/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []TopLevelDomain } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TopLevelDomainsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TopLevelDomainsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DomainRegistration/topLevelDomains", id.ID()), } diff --git a/resource-manager/web/2023-01-01/topleveldomains/method_listagreements.go b/resource-manager/web/2023-01-01/topleveldomains/method_listagreements.go index bd043fd89ed..aef7718cae9 100644 --- a/resource-manager/web/2023-01-01/topleveldomains/method_listagreements.go +++ b/resource-manager/web/2023-01-01/topleveldomains/method_listagreements.go @@ -23,6 +23,18 @@ type ListAgreementsCompleteResult struct { Items []TldLegalAgreement } +type ListAgreementsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAgreementsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAgreements ... func (c TopLevelDomainsClient) ListAgreements(ctx context.Context, id TopLevelDomainId, input TopLevelDomainAgreementOption) (result ListAgreementsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TopLevelDomainsClient) ListAgreements(ctx context.Context, id TopLevelDo http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListAgreementsCustomPager{}, Path: fmt.Sprintf("%s/listAgreements", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostname.go b/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostname.go index 6f783084cf7..b5b486f1e77 100644 --- a/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostname.go +++ b/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostname.go @@ -54,8 +54,8 @@ func (c WebAppsClient) AnalyzeCustomHostname(ctx context.Context, id commonids.A http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/analyzeCustomHostname", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/analyzeCustomHostname", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostnameslot.go b/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostnameslot.go index a0f093109eb..4c608ff0d59 100644 --- a/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostnameslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_analyzecustomhostnameslot.go @@ -53,8 +53,8 @@ func (c WebAppsClient) AnalyzeCustomHostnameSlot(ctx context.Context, id SlotId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/analyzeCustomHostname", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/analyzeCustomHostname", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_delete.go b/resource-manager/web/2023-01-01/webapps/method_delete.go index e9d88eba269..491e0c6eca1 100644 --- a/resource-manager/web/2023-01-01/webapps/method_delete.go +++ b/resource-manager/web/2023-01-01/webapps/method_delete.go @@ -58,8 +58,8 @@ func (c WebAppsClient) Delete(ctx context.Context, id commonids.AppServiceId, op http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_deleteslot.go b/resource-manager/web/2023-01-01/webapps/method_deleteslot.go index b134af54533..c2d4db43a52 100644 --- a/resource-manager/web/2023-01-01/webapps/method_deleteslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_deleteslot.go @@ -57,8 +57,8 @@ func (c WebAppsClient) DeleteSlot(ctx context.Context, id SlotId, options Delete http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrol.go b/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrol.go index 1de5d801f35..7416e19fd09 100644 --- a/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrol.go +++ b/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrol.go @@ -54,8 +54,8 @@ func (c WebAppsClient) DeleteSourceControl(ctx context.Context, id commonids.App http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrolslot.go b/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrolslot.go index 58843d09923..571dfbab3ab 100644 --- a/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrolslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_deletesourcecontrolslot.go @@ -53,8 +53,8 @@ func (c WebAppsClient) DeleteSourceControlSlot(ctx context.Context, id SlotId, o http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferences.go b/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferences.go index 13789dc34c6..043c62e221d 100644 --- a/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferences.go +++ b/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferences.go @@ -24,6 +24,18 @@ type GetAppSettingsKeyVaultReferencesCompleteResult struct { Items []ApiKVReference } +type GetAppSettingsKeyVaultReferencesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAppSettingsKeyVaultReferencesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAppSettingsKeyVaultReferences ... func (c WebAppsClient) GetAppSettingsKeyVaultReferences(ctx context.Context, id commonids.AppServiceId) (result GetAppSettingsKeyVaultReferencesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) GetAppSettingsKeyVaultReferences(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetAppSettingsKeyVaultReferencesCustomPager{}, Path: fmt.Sprintf("%s/config/configReferences/appSettings", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferencesslot.go b/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferencesslot.go index 31339b54910..ee5c3cbf23a 100644 --- a/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferencesslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_getappsettingskeyvaultreferencesslot.go @@ -23,6 +23,18 @@ type GetAppSettingsKeyVaultReferencesSlotCompleteResult struct { Items []ApiKVReference } +type GetAppSettingsKeyVaultReferencesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAppSettingsKeyVaultReferencesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAppSettingsKeyVaultReferencesSlot ... func (c WebAppsClient) GetAppSettingsKeyVaultReferencesSlot(ctx context.Context, id SlotId) (result GetAppSettingsKeyVaultReferencesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) GetAppSettingsKeyVaultReferencesSlot(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetAppSettingsKeyVaultReferencesSlotCustomPager{}, Path: fmt.Sprintf("%s/config/configReferences/appSettings", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlist.go b/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlist.go index bc56c125636..7eab86729c0 100644 --- a/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlist.go +++ b/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlist.go @@ -24,6 +24,18 @@ type GetPrivateEndpointConnectionListCompleteResult struct { Items []RemotePrivateEndpointConnectionARMResource } +type GetPrivateEndpointConnectionListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetPrivateEndpointConnectionListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetPrivateEndpointConnectionList ... func (c WebAppsClient) GetPrivateEndpointConnectionList(ctx context.Context, id commonids.AppServiceId) (result GetPrivateEndpointConnectionListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) GetPrivateEndpointConnectionList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetPrivateEndpointConnectionListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlistslot.go b/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlistslot.go index 3c81c133f28..46bf684dad2 100644 --- a/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlistslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_getprivateendpointconnectionlistslot.go @@ -23,6 +23,18 @@ type GetPrivateEndpointConnectionListSlotCompleteResult struct { Items []RemotePrivateEndpointConnectionARMResource } +type GetPrivateEndpointConnectionListSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetPrivateEndpointConnectionListSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetPrivateEndpointConnectionListSlot ... func (c WebAppsClient) GetPrivateEndpointConnectionListSlot(ctx context.Context, id SlotId) (result GetPrivateEndpointConnectionListSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) GetPrivateEndpointConnectionListSlot(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetPrivateEndpointConnectionListSlotCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go b/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go index cc3f4652fd2..6544219dc39 100644 --- a/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go +++ b/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go @@ -24,6 +24,18 @@ type GetSiteConnectionStringKeyVaultReferencesCompleteResult struct { Items []ApiKVReference } +type GetSiteConnectionStringKeyVaultReferencesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetSiteConnectionStringKeyVaultReferencesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetSiteConnectionStringKeyVaultReferences ... func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferences(ctx context.Context, id commonids.AppServiceId) (result GetSiteConnectionStringKeyVaultReferencesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferences(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetSiteConnectionStringKeyVaultReferencesCustomPager{}, Path: fmt.Sprintf("%s/config/configReferences/connectionStrings", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go b/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go index 463f2f7c4b4..94803ca2384 100644 --- a/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go @@ -23,6 +23,18 @@ type GetSiteConnectionStringKeyVaultReferencesSlotCompleteResult struct { Items []ApiKVReference } +type GetSiteConnectionStringKeyVaultReferencesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetSiteConnectionStringKeyVaultReferencesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetSiteConnectionStringKeyVaultReferencesSlot ... func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferencesSlot(ctx context.Context, id SlotId) (result GetSiteConnectionStringKeyVaultReferencesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferencesSlot(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetSiteConnectionStringKeyVaultReferencesSlotCustomPager{}, Path: fmt.Sprintf("%s/config/configReferences/connectionStrings", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_list.go b/resource-manager/web/2023-01-01/webapps/method_list.go index bfeac1c6a6a..460b637e374 100644 --- a/resource-manager/web/2023-01-01/webapps/method_list.go +++ b/resource-manager/web/2023-01-01/webapps/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Site } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WebAppsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) List(ctx context.Context, id commonids.SubscriptionId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/sites", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listbackups.go b/resource-manager/web/2023-01-01/webapps/method_listbackups.go index 5a8136aba75..a8b70b26ecf 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listbackups.go +++ b/resource-manager/web/2023-01-01/webapps/method_listbackups.go @@ -24,6 +24,18 @@ type ListBackupsCompleteResult struct { Items []BackupItem } +type ListBackupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBackupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBackups ... func (c WebAppsClient) ListBackups(ctx context.Context, id commonids.AppServiceId) (result ListBackupsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListBackups(ctx context.Context, id commonids.AppServiceI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBackupsCustomPager{}, Path: fmt.Sprintf("%s/backups", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listbackupsslot.go b/resource-manager/web/2023-01-01/webapps/method_listbackupsslot.go index 3c3b88bb59a..c76afbae931 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listbackupsslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listbackupsslot.go @@ -23,6 +23,18 @@ type ListBackupsSlotCompleteResult struct { Items []BackupItem } +type ListBackupsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBackupsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBackupsSlot ... func (c WebAppsClient) ListBackupsSlot(ctx context.Context, id SlotId) (result ListBackupsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListBackupsSlot(ctx context.Context, id SlotId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBackupsSlotCustomPager{}, Path: fmt.Sprintf("%s/backups", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspolicies.go b/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspolicies.go index bb1f59c1b25..48de93b0880 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspolicies.go +++ b/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspolicies.go @@ -24,6 +24,18 @@ type ListBasicPublishingCredentialsPoliciesCompleteResult struct { Items []CsmPublishingCredentialsPoliciesEntity } +type ListBasicPublishingCredentialsPoliciesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBasicPublishingCredentialsPoliciesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBasicPublishingCredentialsPolicies ... func (c WebAppsClient) ListBasicPublishingCredentialsPolicies(ctx context.Context, id commonids.AppServiceId) (result ListBasicPublishingCredentialsPoliciesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListBasicPublishingCredentialsPolicies(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBasicPublishingCredentialsPoliciesCustomPager{}, Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go b/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go index a4fb1885aec..6bfb2b86ffe 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go @@ -23,6 +23,18 @@ type ListBasicPublishingCredentialsPoliciesSlotCompleteResult struct { Items []CsmPublishingCredentialsPoliciesEntity } +type ListBasicPublishingCredentialsPoliciesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBasicPublishingCredentialsPoliciesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBasicPublishingCredentialsPoliciesSlot ... func (c WebAppsClient) ListBasicPublishingCredentialsPoliciesSlot(ctx context.Context, id SlotId) (result ListBasicPublishingCredentialsPoliciesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListBasicPublishingCredentialsPoliciesSlot(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBasicPublishingCredentialsPoliciesSlotCustomPager{}, Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listbyresourcegroup.go b/resource-manager/web/2023-01-01/webapps/method_listbyresourcegroup.go index 2fc1ae89f5d..3f9b2569d77 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-01-01/webapps/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WebAppsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c WebAppsClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/sites", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/sites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_listconfigurations.go b/resource-manager/web/2023-01-01/webapps/method_listconfigurations.go index 5f05ecf1172..8e804a2f12c 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listconfigurations.go +++ b/resource-manager/web/2023-01-01/webapps/method_listconfigurations.go @@ -24,6 +24,18 @@ type ListConfigurationsCompleteResult struct { Items []SiteConfigResource } +type ListConfigurationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConfigurationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConfigurations ... func (c WebAppsClient) ListConfigurations(ctx context.Context, id commonids.AppServiceId) (result ListConfigurationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListConfigurations(ctx context.Context, id commonids.AppS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConfigurationsCustomPager{}, Path: fmt.Sprintf("%s/config", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfo.go b/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfo.go index 652bf6cf34d..c3b12636fbb 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfo.go +++ b/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfo.go @@ -24,6 +24,18 @@ type ListConfigurationSnapshotInfoCompleteResult struct { Items []SiteConfigurationSnapshotInfo } +type ListConfigurationSnapshotInfoCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConfigurationSnapshotInfoCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConfigurationSnapshotInfo ... func (c WebAppsClient) ListConfigurationSnapshotInfo(ctx context.Context, id commonids.AppServiceId) (result ListConfigurationSnapshotInfoOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListConfigurationSnapshotInfo(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConfigurationSnapshotInfoCustomPager{}, Path: fmt.Sprintf("%s/config/web/snapshots", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfoslot.go b/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfoslot.go index 44202f38771..cef77008f85 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfoslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listconfigurationsnapshotinfoslot.go @@ -23,6 +23,18 @@ type ListConfigurationSnapshotInfoSlotCompleteResult struct { Items []SiteConfigurationSnapshotInfo } +type ListConfigurationSnapshotInfoSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConfigurationSnapshotInfoSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConfigurationSnapshotInfoSlot ... func (c WebAppsClient) ListConfigurationSnapshotInfoSlot(ctx context.Context, id SlotId) (result ListConfigurationSnapshotInfoSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListConfigurationSnapshotInfoSlot(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConfigurationSnapshotInfoSlotCustomPager{}, Path: fmt.Sprintf("%s/config/web/snapshots", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listconfigurationsslot.go b/resource-manager/web/2023-01-01/webapps/method_listconfigurationsslot.go index f80f201e6f4..4e3d0acefe3 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listconfigurationsslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listconfigurationsslot.go @@ -23,6 +23,18 @@ type ListConfigurationsSlotCompleteResult struct { Items []SiteConfigResource } +type ListConfigurationsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConfigurationsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConfigurationsSlot ... func (c WebAppsClient) ListConfigurationsSlot(ctx context.Context, id SlotId) (result ListConfigurationsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListConfigurationsSlot(ctx context.Context, id SlotId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConfigurationsSlotCustomPager{}, Path: fmt.Sprintf("%s/config", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobs.go b/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobs.go index 8e9ad1c4e72..63d3df76b91 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobs.go +++ b/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobs.go @@ -24,6 +24,18 @@ type ListContinuousWebJobsCompleteResult struct { Items []ContinuousWebJob } +type ListContinuousWebJobsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListContinuousWebJobsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListContinuousWebJobs ... func (c WebAppsClient) ListContinuousWebJobs(ctx context.Context, id commonids.AppServiceId) (result ListContinuousWebJobsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListContinuousWebJobs(ctx context.Context, id commonids.A http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListContinuousWebJobsCustomPager{}, Path: fmt.Sprintf("%s/continuousWebJobs", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobsslot.go b/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobsslot.go index 1004a452a7d..f187ed28ce3 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobsslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listcontinuouswebjobsslot.go @@ -23,6 +23,18 @@ type ListContinuousWebJobsSlotCompleteResult struct { Items []ContinuousWebJob } +type ListContinuousWebJobsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListContinuousWebJobsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListContinuousWebJobsSlot ... func (c WebAppsClient) ListContinuousWebJobsSlot(ctx context.Context, id SlotId) (result ListContinuousWebJobsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListContinuousWebJobsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListContinuousWebJobsSlotCustomPager{}, Path: fmt.Sprintf("%s/continuousWebJobs", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listdeployments.go b/resource-manager/web/2023-01-01/webapps/method_listdeployments.go index dbc3fe7702d..62fe0173758 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listdeployments.go +++ b/resource-manager/web/2023-01-01/webapps/method_listdeployments.go @@ -24,6 +24,18 @@ type ListDeploymentsCompleteResult struct { Items []Deployment } +type ListDeploymentsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDeploymentsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDeployments ... func (c WebAppsClient) ListDeployments(ctx context.Context, id commonids.AppServiceId) (result ListDeploymentsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListDeployments(ctx context.Context, id commonids.AppServ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDeploymentsCustomPager{}, Path: fmt.Sprintf("%s/deployments", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listdeploymentsslot.go b/resource-manager/web/2023-01-01/webapps/method_listdeploymentsslot.go index a654f040dda..d42866c7b88 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listdeploymentsslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listdeploymentsslot.go @@ -23,6 +23,18 @@ type ListDeploymentsSlotCompleteResult struct { Items []Deployment } +type ListDeploymentsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDeploymentsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDeploymentsSlot ... func (c WebAppsClient) ListDeploymentsSlot(ctx context.Context, id SlotId) (result ListDeploymentsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListDeploymentsSlot(ctx context.Context, id SlotId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDeploymentsSlotCustomPager{}, Path: fmt.Sprintf("%s/deployments", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiers.go b/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiers.go index 1e11d65c73d..113e62c90b8 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiers.go +++ b/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiers.go @@ -24,6 +24,18 @@ type ListDomainOwnershipIdentifiersCompleteResult struct { Items []Identifier } +type ListDomainOwnershipIdentifiersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDomainOwnershipIdentifiersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDomainOwnershipIdentifiers ... func (c WebAppsClient) ListDomainOwnershipIdentifiers(ctx context.Context, id commonids.AppServiceId) (result ListDomainOwnershipIdentifiersOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListDomainOwnershipIdentifiers(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDomainOwnershipIdentifiersCustomPager{}, Path: fmt.Sprintf("%s/domainOwnershipIdentifiers", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiersslot.go b/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiersslot.go index 58149ed5d79..8bf54d7bc37 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiersslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listdomainownershipidentifiersslot.go @@ -23,6 +23,18 @@ type ListDomainOwnershipIdentifiersSlotCompleteResult struct { Items []Identifier } +type ListDomainOwnershipIdentifiersSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDomainOwnershipIdentifiersSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDomainOwnershipIdentifiersSlot ... func (c WebAppsClient) ListDomainOwnershipIdentifiersSlot(ctx context.Context, id SlotId) (result ListDomainOwnershipIdentifiersSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListDomainOwnershipIdentifiersSlot(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDomainOwnershipIdentifiersSlotCustomPager{}, Path: fmt.Sprintf("%s/domainOwnershipIdentifiers", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listfunctions.go b/resource-manager/web/2023-01-01/webapps/method_listfunctions.go index d279193909b..bec63cb0d75 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listfunctions.go +++ b/resource-manager/web/2023-01-01/webapps/method_listfunctions.go @@ -24,6 +24,18 @@ type ListFunctionsCompleteResult struct { Items []FunctionEnvelope } +type ListFunctionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListFunctionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListFunctions ... func (c WebAppsClient) ListFunctions(ctx context.Context, id commonids.AppServiceId) (result ListFunctionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListFunctions(ctx context.Context, id commonids.AppServic http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListFunctionsCustomPager{}, Path: fmt.Sprintf("%s/functions", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listhostnamebindings.go b/resource-manager/web/2023-01-01/webapps/method_listhostnamebindings.go index 9523c81cd3d..3dc80a9cfb7 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listhostnamebindings.go +++ b/resource-manager/web/2023-01-01/webapps/method_listhostnamebindings.go @@ -24,6 +24,18 @@ type ListHostNameBindingsCompleteResult struct { Items []HostNameBinding } +type ListHostNameBindingsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHostNameBindingsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHostNameBindings ... func (c WebAppsClient) ListHostNameBindings(ctx context.Context, id commonids.AppServiceId) (result ListHostNameBindingsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListHostNameBindings(ctx context.Context, id commonids.Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHostNameBindingsCustomPager{}, Path: fmt.Sprintf("%s/hostNameBindings", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listhostnamebindingsslot.go b/resource-manager/web/2023-01-01/webapps/method_listhostnamebindingsslot.go index 994fa1fa812..e2425090bce 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listhostnamebindingsslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listhostnamebindingsslot.go @@ -23,6 +23,18 @@ type ListHostNameBindingsSlotCompleteResult struct { Items []HostNameBinding } +type ListHostNameBindingsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHostNameBindingsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHostNameBindingsSlot ... func (c WebAppsClient) ListHostNameBindingsSlot(ctx context.Context, id SlotId) (result ListHostNameBindingsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListHostNameBindingsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHostNameBindingsSlotCustomPager{}, Path: fmt.Sprintf("%s/hostNameBindings", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listinstancefunctionsslot.go b/resource-manager/web/2023-01-01/webapps/method_listinstancefunctionsslot.go index ed90208bb4f..6c10eace684 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listinstancefunctionsslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listinstancefunctionsslot.go @@ -23,6 +23,18 @@ type ListInstanceFunctionsSlotCompleteResult struct { Items []FunctionEnvelope } +type ListInstanceFunctionsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceFunctionsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceFunctionsSlot ... func (c WebAppsClient) ListInstanceFunctionsSlot(ctx context.Context, id SlotId) (result ListInstanceFunctionsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceFunctionsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceFunctionsSlotCustomPager{}, Path: fmt.Sprintf("%s/functions", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiers.go b/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiers.go index bbcb5088d18..62730a6aff2 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiers.go +++ b/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiers.go @@ -24,6 +24,18 @@ type ListInstanceIdentifiersCompleteResult struct { Items []WebSiteInstanceStatus } +type ListInstanceIdentifiersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceIdentifiersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceIdentifiers ... func (c WebAppsClient) ListInstanceIdentifiers(ctx context.Context, id commonids.AppServiceId) (result ListInstanceIdentifiersOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListInstanceIdentifiers(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceIdentifiersCustomPager{}, Path: fmt.Sprintf("%s/instances", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiersslot.go b/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiersslot.go index 0a153b5dbac..65ad91633e2 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiersslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listinstanceidentifiersslot.go @@ -23,6 +23,18 @@ type ListInstanceIdentifiersSlotCompleteResult struct { Items []WebSiteInstanceStatus } +type ListInstanceIdentifiersSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceIdentifiersSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceIdentifiersSlot ... func (c WebAppsClient) ListInstanceIdentifiersSlot(ctx context.Context, id SlotId) (result ListInstanceIdentifiersSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceIdentifiersSlot(ctx context.Context, id SlotI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceIdentifiersSlotCustomPager{}, Path: fmt.Sprintf("%s/instances", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listinstanceprocesses.go b/resource-manager/web/2023-01-01/webapps/method_listinstanceprocesses.go index 79623ec52e8..7b596445609 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listinstanceprocesses.go +++ b/resource-manager/web/2023-01-01/webapps/method_listinstanceprocesses.go @@ -23,6 +23,18 @@ type ListInstanceProcessesCompleteResult struct { Items []ProcessInfo } +type ListInstanceProcessesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcesses ... func (c WebAppsClient) ListInstanceProcesses(ctx context.Context, id InstanceId) (result ListInstanceProcessesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcesses(ctx context.Context, id InstanceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessesCustomPager{}, Path: fmt.Sprintf("%s/processes", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessesslot.go b/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessesslot.go index 2589837f1cb..725411fb8b1 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessesslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessesslot.go @@ -23,6 +23,18 @@ type ListInstanceProcessesSlotCompleteResult struct { Items []ProcessInfo } +type ListInstanceProcessesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessesSlot ... func (c WebAppsClient) ListInstanceProcessesSlot(ctx context.Context, id SlotInstanceId) (result ListInstanceProcessesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessesSlot(ctx context.Context, id SlotIns http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessesSlotCustomPager{}, Path: fmt.Sprintf("%s/processes", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodules.go b/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodules.go index 77368d7f3d2..113a7dd68a6 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodules.go +++ b/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodules.go @@ -23,6 +23,18 @@ type ListInstanceProcessModulesCompleteResult struct { Items []ProcessModuleInfo } +type ListInstanceProcessModulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessModulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessModules ... func (c WebAppsClient) ListInstanceProcessModules(ctx context.Context, id InstanceProcessId) (result ListInstanceProcessModulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessModules(ctx context.Context, id Instan http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessModulesCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodulesslot.go b/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodulesslot.go index e4fd039279f..23d09675fe8 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodulesslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessmodulesslot.go @@ -23,6 +23,18 @@ type ListInstanceProcessModulesSlotCompleteResult struct { Items []ProcessModuleInfo } +type ListInstanceProcessModulesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessModulesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessModulesSlot ... func (c WebAppsClient) ListInstanceProcessModulesSlot(ctx context.Context, id SlotInstanceProcessId) (result ListInstanceProcessModulesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessModulesSlot(ctx context.Context, id Sl http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessModulesSlotCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreads.go b/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreads.go index ab35e6a6862..82d9b44dc60 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreads.go +++ b/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreads.go @@ -23,6 +23,18 @@ type ListInstanceProcessThreadsCompleteResult struct { Items []ProcessThreadInfo } +type ListInstanceProcessThreadsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessThreadsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessThreads ... func (c WebAppsClient) ListInstanceProcessThreads(ctx context.Context, id InstanceProcessId) (result ListInstanceProcessThreadsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessThreads(ctx context.Context, id Instan http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessThreadsCustomPager{}, Path: fmt.Sprintf("%s/threads", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreadsslot.go b/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreadsslot.go index 0bccdaf4c95..513fe67c6a7 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreadsslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listinstanceprocessthreadsslot.go @@ -23,6 +23,18 @@ type ListInstanceProcessThreadsSlotCompleteResult struct { Items []ProcessThreadInfo } +type ListInstanceProcessThreadsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessThreadsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessThreadsSlot ... func (c WebAppsClient) ListInstanceProcessThreadsSlot(ctx context.Context, id SlotInstanceProcessId) (result ListInstanceProcessThreadsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessThreadsSlot(ctx context.Context, id Sl http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessThreadsSlotCustomPager{}, Path: fmt.Sprintf("%s/threads", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listinstanceworkflowsslot.go b/resource-manager/web/2023-01-01/webapps/method_listinstanceworkflowsslot.go index c85fd3bfd26..472996214b1 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listinstanceworkflowsslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listinstanceworkflowsslot.go @@ -23,6 +23,18 @@ type ListInstanceWorkflowsSlotCompleteResult struct { Items []WorkflowEnvelope } +type ListInstanceWorkflowsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceWorkflowsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceWorkflowsSlot ... func (c WebAppsClient) ListInstanceWorkflowsSlot(ctx context.Context, id SlotId) (result ListInstanceWorkflowsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceWorkflowsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceWorkflowsSlotCustomPager{}, Path: fmt.Sprintf("%s/workflows", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listperfmoncounters.go b/resource-manager/web/2023-01-01/webapps/method_listperfmoncounters.go index 2fd3b578fc8..3e795219b6f 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listperfmoncounters.go +++ b/resource-manager/web/2023-01-01/webapps/method_listperfmoncounters.go @@ -51,6 +51,18 @@ func (o ListPerfMonCountersOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListPerfMonCountersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPerfMonCountersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPerfMonCounters ... func (c WebAppsClient) ListPerfMonCounters(ctx context.Context, id commonids.AppServiceId, options ListPerfMonCountersOperationOptions) (result ListPerfMonCountersOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c WebAppsClient) ListPerfMonCounters(ctx context.Context, id commonids.App http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/perfcounters", id.ID()), OptionsObject: options, + Pager: &ListPerfMonCountersCustomPager{}, + Path: fmt.Sprintf("%s/perfcounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_listperfmoncountersslot.go b/resource-manager/web/2023-01-01/webapps/method_listperfmoncountersslot.go index 24b03079502..3a2754f799e 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listperfmoncountersslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listperfmoncountersslot.go @@ -50,6 +50,18 @@ func (o ListPerfMonCountersSlotOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListPerfMonCountersSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPerfMonCountersSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPerfMonCountersSlot ... func (c WebAppsClient) ListPerfMonCountersSlot(ctx context.Context, id SlotId, options ListPerfMonCountersSlotOperationOptions) (result ListPerfMonCountersSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WebAppsClient) ListPerfMonCountersSlot(ctx context.Context, id SlotId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/perfcounters", id.ID()), OptionsObject: options, + Pager: &ListPerfMonCountersSlotCustomPager{}, + Path: fmt.Sprintf("%s/perfcounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_listprocesses.go b/resource-manager/web/2023-01-01/webapps/method_listprocesses.go index 7b1720fcc5b..ebf1da0bcf9 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listprocesses.go +++ b/resource-manager/web/2023-01-01/webapps/method_listprocesses.go @@ -24,6 +24,18 @@ type ListProcessesCompleteResult struct { Items []ProcessInfo } +type ListProcessesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcesses ... func (c WebAppsClient) ListProcesses(ctx context.Context, id commonids.AppServiceId) (result ListProcessesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListProcesses(ctx context.Context, id commonids.AppServic http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessesCustomPager{}, Path: fmt.Sprintf("%s/processes", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listprocessesslot.go b/resource-manager/web/2023-01-01/webapps/method_listprocessesslot.go index ff0a8e569c4..d737e095497 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listprocessesslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listprocessesslot.go @@ -23,6 +23,18 @@ type ListProcessesSlotCompleteResult struct { Items []ProcessInfo } +type ListProcessesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessesSlot ... func (c WebAppsClient) ListProcessesSlot(ctx context.Context, id SlotId) (result ListProcessesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessesSlot(ctx context.Context, id SlotId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessesSlotCustomPager{}, Path: fmt.Sprintf("%s/processes", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listprocessmodules.go b/resource-manager/web/2023-01-01/webapps/method_listprocessmodules.go index 2a5275b9930..e1a3a6af39e 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listprocessmodules.go +++ b/resource-manager/web/2023-01-01/webapps/method_listprocessmodules.go @@ -23,6 +23,18 @@ type ListProcessModulesCompleteResult struct { Items []ProcessModuleInfo } +type ListProcessModulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessModulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessModules ... func (c WebAppsClient) ListProcessModules(ctx context.Context, id ProcessId) (result ListProcessModulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessModules(ctx context.Context, id ProcessId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessModulesCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listprocessmodulesslot.go b/resource-manager/web/2023-01-01/webapps/method_listprocessmodulesslot.go index 5914a1dd854..0ddc8a915f9 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listprocessmodulesslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listprocessmodulesslot.go @@ -23,6 +23,18 @@ type ListProcessModulesSlotCompleteResult struct { Items []ProcessModuleInfo } +type ListProcessModulesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessModulesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessModulesSlot ... func (c WebAppsClient) ListProcessModulesSlot(ctx context.Context, id SlotProcessId) (result ListProcessModulesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessModulesSlot(ctx context.Context, id SlotProces http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessModulesSlotCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listprocessthreads.go b/resource-manager/web/2023-01-01/webapps/method_listprocessthreads.go index dbd85439f6c..32356aa2170 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listprocessthreads.go +++ b/resource-manager/web/2023-01-01/webapps/method_listprocessthreads.go @@ -23,6 +23,18 @@ type ListProcessThreadsCompleteResult struct { Items []ProcessThreadInfo } +type ListProcessThreadsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessThreadsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessThreads ... func (c WebAppsClient) ListProcessThreads(ctx context.Context, id ProcessId) (result ListProcessThreadsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessThreads(ctx context.Context, id ProcessId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessThreadsCustomPager{}, Path: fmt.Sprintf("%s/threads", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listprocessthreadsslot.go b/resource-manager/web/2023-01-01/webapps/method_listprocessthreadsslot.go index 66cf3a39c79..d3335f9f125 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listprocessthreadsslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listprocessthreadsslot.go @@ -23,6 +23,18 @@ type ListProcessThreadsSlotCompleteResult struct { Items []ProcessThreadInfo } +type ListProcessThreadsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessThreadsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessThreadsSlot ... func (c WebAppsClient) ListProcessThreadsSlot(ctx context.Context, id SlotProcessId) (result ListProcessThreadsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessThreadsSlot(ctx context.Context, id SlotProces http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessThreadsSlotCustomPager{}, Path: fmt.Sprintf("%s/threads", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listproductionsitedeploymentstatuses.go b/resource-manager/web/2023-01-01/webapps/method_listproductionsitedeploymentstatuses.go index 09c72048f91..dbca4c9c5cf 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listproductionsitedeploymentstatuses.go +++ b/resource-manager/web/2023-01-01/webapps/method_listproductionsitedeploymentstatuses.go @@ -24,6 +24,18 @@ type ListProductionSiteDeploymentStatusesCompleteResult struct { Items []CsmDeploymentStatus } +type ListProductionSiteDeploymentStatusesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProductionSiteDeploymentStatusesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProductionSiteDeploymentStatuses ... func (c WebAppsClient) ListProductionSiteDeploymentStatuses(ctx context.Context, id commonids.AppServiceId) (result ListProductionSiteDeploymentStatusesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListProductionSiteDeploymentStatuses(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProductionSiteDeploymentStatusesCustomPager{}, Path: fmt.Sprintf("%s/deploymentStatus", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listpubliccertificates.go b/resource-manager/web/2023-01-01/webapps/method_listpubliccertificates.go index b142a34aade..1566dc4e69f 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listpubliccertificates.go +++ b/resource-manager/web/2023-01-01/webapps/method_listpubliccertificates.go @@ -24,6 +24,18 @@ type ListPublicCertificatesCompleteResult struct { Items []PublicCertificate } +type ListPublicCertificatesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPublicCertificatesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPublicCertificates ... func (c WebAppsClient) ListPublicCertificates(ctx context.Context, id commonids.AppServiceId) (result ListPublicCertificatesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListPublicCertificates(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPublicCertificatesCustomPager{}, Path: fmt.Sprintf("%s/publicCertificates", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listpubliccertificatesslot.go b/resource-manager/web/2023-01-01/webapps/method_listpubliccertificatesslot.go index 7c509e40b8a..fb63cdc093c 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listpubliccertificatesslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listpubliccertificatesslot.go @@ -23,6 +23,18 @@ type ListPublicCertificatesSlotCompleteResult struct { Items []PublicCertificate } +type ListPublicCertificatesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPublicCertificatesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPublicCertificatesSlot ... func (c WebAppsClient) ListPublicCertificatesSlot(ctx context.Context, id SlotId) (result ListPublicCertificatesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListPublicCertificatesSlot(ctx context.Context, id SlotId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPublicCertificatesSlotCustomPager{}, Path: fmt.Sprintf("%s/publicCertificates", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listsitebackups.go b/resource-manager/web/2023-01-01/webapps/method_listsitebackups.go index 5a698476724..453b979ef15 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listsitebackups.go +++ b/resource-manager/web/2023-01-01/webapps/method_listsitebackups.go @@ -24,6 +24,18 @@ type ListSiteBackupsCompleteResult struct { Items []BackupItem } +type ListSiteBackupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteBackupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteBackups ... func (c WebAppsClient) ListSiteBackups(ctx context.Context, id commonids.AppServiceId) (result ListSiteBackupsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSiteBackups(ctx context.Context, id commonids.AppServ http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSiteBackupsCustomPager{}, Path: fmt.Sprintf("%s/listbackups", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listsitebackupsslot.go b/resource-manager/web/2023-01-01/webapps/method_listsitebackupsslot.go index 09933de5fe0..4b1fa4a16f5 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listsitebackupsslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listsitebackupsslot.go @@ -23,6 +23,18 @@ type ListSiteBackupsSlotCompleteResult struct { Items []BackupItem } +type ListSiteBackupsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteBackupsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteBackupsSlot ... func (c WebAppsClient) ListSiteBackupsSlot(ctx context.Context, id SlotId) (result ListSiteBackupsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSiteBackupsSlot(ctx context.Context, id SlotId) (resu http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSiteBackupsSlotCustomPager{}, Path: fmt.Sprintf("%s/listbackups", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listsiteextensions.go b/resource-manager/web/2023-01-01/webapps/method_listsiteextensions.go index d2ddde56092..8541bc980ce 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listsiteextensions.go +++ b/resource-manager/web/2023-01-01/webapps/method_listsiteextensions.go @@ -24,6 +24,18 @@ type ListSiteExtensionsCompleteResult struct { Items []SiteExtensionInfo } +type ListSiteExtensionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteExtensionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteExtensions ... func (c WebAppsClient) ListSiteExtensions(ctx context.Context, id commonids.AppServiceId) (result ListSiteExtensionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSiteExtensions(ctx context.Context, id commonids.AppS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteExtensionsCustomPager{}, Path: fmt.Sprintf("%s/siteExtensions", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listsiteextensionsslot.go b/resource-manager/web/2023-01-01/webapps/method_listsiteextensionsslot.go index 0c273967d62..b71b603d02f 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listsiteextensionsslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listsiteextensionsslot.go @@ -23,6 +23,18 @@ type ListSiteExtensionsSlotCompleteResult struct { Items []SiteExtensionInfo } +type ListSiteExtensionsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteExtensionsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteExtensionsSlot ... func (c WebAppsClient) ListSiteExtensionsSlot(ctx context.Context, id SlotId) (result ListSiteExtensionsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSiteExtensionsSlot(ctx context.Context, id SlotId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteExtensionsSlotCustomPager{}, Path: fmt.Sprintf("%s/siteExtensions", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesfromproduction.go b/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesfromproduction.go index aea96f5259e..8452739cf2b 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesfromproduction.go +++ b/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesfromproduction.go @@ -24,6 +24,18 @@ type ListSlotDifferencesFromProductionCompleteResult struct { Items []SlotDifference } +type ListSlotDifferencesFromProductionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSlotDifferencesFromProductionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSlotDifferencesFromProduction ... func (c WebAppsClient) ListSlotDifferencesFromProduction(ctx context.Context, id commonids.AppServiceId, input CsmSlotEntity) (result ListSlotDifferencesFromProductionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSlotDifferencesFromProduction(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSlotDifferencesFromProductionCustomPager{}, Path: fmt.Sprintf("%s/slotsdiffs", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesslot.go b/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesslot.go index 078afc6996d..7dad87c2b7a 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listslotdifferencesslot.go @@ -23,6 +23,18 @@ type ListSlotDifferencesSlotCompleteResult struct { Items []SlotDifference } +type ListSlotDifferencesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSlotDifferencesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSlotDifferencesSlot ... func (c WebAppsClient) ListSlotDifferencesSlot(ctx context.Context, id SlotId, input CsmSlotEntity) (result ListSlotDifferencesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSlotDifferencesSlot(ctx context.Context, id SlotId, i http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSlotDifferencesSlotCustomPager{}, Path: fmt.Sprintf("%s/slotsdiffs", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listslots.go b/resource-manager/web/2023-01-01/webapps/method_listslots.go index ec2224802b8..c76f15d5d03 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listslots.go +++ b/resource-manager/web/2023-01-01/webapps/method_listslots.go @@ -24,6 +24,18 @@ type ListSlotsCompleteResult struct { Items []Site } +type ListSlotsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSlotsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSlots ... func (c WebAppsClient) ListSlots(ctx context.Context, id commonids.AppServiceId) (result ListSlotsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSlots(ctx context.Context, id commonids.AppServiceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSlotsCustomPager{}, Path: fmt.Sprintf("%s/slots", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listslotsitedeploymentstatusesslot.go b/resource-manager/web/2023-01-01/webapps/method_listslotsitedeploymentstatusesslot.go index 19762fc4915..8ceee87cc66 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listslotsitedeploymentstatusesslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listslotsitedeploymentstatusesslot.go @@ -23,6 +23,18 @@ type ListSlotSiteDeploymentStatusesSlotCompleteResult struct { Items []CsmDeploymentStatus } +type ListSlotSiteDeploymentStatusesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSlotSiteDeploymentStatusesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSlotSiteDeploymentStatusesSlot ... func (c WebAppsClient) ListSlotSiteDeploymentStatusesSlot(ctx context.Context, id SlotId) (result ListSlotSiteDeploymentStatusesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSlotSiteDeploymentStatusesSlot(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSlotSiteDeploymentStatusesSlotCustomPager{}, Path: fmt.Sprintf("%s/deploymentStatus", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listsnapshots.go b/resource-manager/web/2023-01-01/webapps/method_listsnapshots.go index c87cd5d6a36..ae445c7d99c 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listsnapshots.go +++ b/resource-manager/web/2023-01-01/webapps/method_listsnapshots.go @@ -24,6 +24,18 @@ type ListSnapshotsCompleteResult struct { Items []Snapshot } +type ListSnapshotsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSnapshotsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSnapshots ... func (c WebAppsClient) ListSnapshots(ctx context.Context, id commonids.AppServiceId) (result ListSnapshotsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSnapshots(ctx context.Context, id commonids.AppServic http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSnapshotsCustomPager{}, Path: fmt.Sprintf("%s/snapshots", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondary.go b/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondary.go index 54e6f48ccd2..878e74fccd0 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondary.go +++ b/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondary.go @@ -24,6 +24,18 @@ type ListSnapshotsFromDRSecondaryCompleteResult struct { Items []Snapshot } +type ListSnapshotsFromDRSecondaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSnapshotsFromDRSecondaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSnapshotsFromDRSecondary ... func (c WebAppsClient) ListSnapshotsFromDRSecondary(ctx context.Context, id commonids.AppServiceId) (result ListSnapshotsFromDRSecondaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSnapshotsFromDRSecondary(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSnapshotsFromDRSecondaryCustomPager{}, Path: fmt.Sprintf("%s/snapshotsdr", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondaryslot.go b/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondaryslot.go index 1ac0b91c67f..6e438ec2ff9 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondaryslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listsnapshotsfromdrsecondaryslot.go @@ -23,6 +23,18 @@ type ListSnapshotsFromDRSecondarySlotCompleteResult struct { Items []Snapshot } +type ListSnapshotsFromDRSecondarySlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSnapshotsFromDRSecondarySlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSnapshotsFromDRSecondarySlot ... func (c WebAppsClient) ListSnapshotsFromDRSecondarySlot(ctx context.Context, id SlotId) (result ListSnapshotsFromDRSecondarySlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSnapshotsFromDRSecondarySlot(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSnapshotsFromDRSecondarySlotCustomPager{}, Path: fmt.Sprintf("%s/snapshotsdr", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listsnapshotsslot.go b/resource-manager/web/2023-01-01/webapps/method_listsnapshotsslot.go index df1e7a2cb84..840f0882265 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listsnapshotsslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listsnapshotsslot.go @@ -23,6 +23,18 @@ type ListSnapshotsSlotCompleteResult struct { Items []Snapshot } +type ListSnapshotsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSnapshotsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSnapshotsSlot ... func (c WebAppsClient) ListSnapshotsSlot(ctx context.Context, id SlotId) (result ListSnapshotsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSnapshotsSlot(ctx context.Context, id SlotId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSnapshotsSlotCustomPager{}, Path: fmt.Sprintf("%s/snapshots", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistory.go b/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistory.go index bdb05c84e95..881719e8edf 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistory.go +++ b/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistory.go @@ -23,6 +23,18 @@ type ListTriggeredWebJobHistoryCompleteResult struct { Items []TriggeredJobHistory } +type ListTriggeredWebJobHistoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListTriggeredWebJobHistoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListTriggeredWebJobHistory ... func (c WebAppsClient) ListTriggeredWebJobHistory(ctx context.Context, id TriggeredWebJobId) (result ListTriggeredWebJobHistoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListTriggeredWebJobHistory(ctx context.Context, id Trigge http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListTriggeredWebJobHistoryCustomPager{}, Path: fmt.Sprintf("%s/history", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistoryslot.go b/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistoryslot.go index 81f7c7621c2..727607c47c6 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistoryslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobhistoryslot.go @@ -23,6 +23,18 @@ type ListTriggeredWebJobHistorySlotCompleteResult struct { Items []TriggeredJobHistory } +type ListTriggeredWebJobHistorySlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListTriggeredWebJobHistorySlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListTriggeredWebJobHistorySlot ... func (c WebAppsClient) ListTriggeredWebJobHistorySlot(ctx context.Context, id SlotTriggeredWebJobId) (result ListTriggeredWebJobHistorySlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListTriggeredWebJobHistorySlot(ctx context.Context, id Sl http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListTriggeredWebJobHistorySlotCustomPager{}, Path: fmt.Sprintf("%s/history", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobs.go b/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobs.go index 1a16871321a..a732150b7fb 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobs.go +++ b/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobs.go @@ -24,6 +24,18 @@ type ListTriggeredWebJobsCompleteResult struct { Items []TriggeredWebJob } +type ListTriggeredWebJobsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListTriggeredWebJobsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListTriggeredWebJobs ... func (c WebAppsClient) ListTriggeredWebJobs(ctx context.Context, id commonids.AppServiceId) (result ListTriggeredWebJobsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListTriggeredWebJobs(ctx context.Context, id commonids.Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListTriggeredWebJobsCustomPager{}, Path: fmt.Sprintf("%s/triggeredWebJobs", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobsslot.go b/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobsslot.go index 6a1759cc604..6dbb5cb9064 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobsslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listtriggeredwebjobsslot.go @@ -23,6 +23,18 @@ type ListTriggeredWebJobsSlotCompleteResult struct { Items []TriggeredWebJob } +type ListTriggeredWebJobsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListTriggeredWebJobsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListTriggeredWebJobsSlot ... func (c WebAppsClient) ListTriggeredWebJobsSlot(ctx context.Context, id SlotId) (result ListTriggeredWebJobsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListTriggeredWebJobsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListTriggeredWebJobsSlotCustomPager{}, Path: fmt.Sprintf("%s/triggeredWebJobs", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listusages.go b/resource-manager/web/2023-01-01/webapps/method_listusages.go index 786fedec8eb..6a245dab93f 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listusages.go +++ b/resource-manager/web/2023-01-01/webapps/method_listusages.go @@ -51,6 +51,18 @@ func (o ListUsagesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUsages ... func (c WebAppsClient) ListUsages(ctx context.Context, id commonids.AppServiceId, options ListUsagesOperationOptions) (result ListUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c WebAppsClient) ListUsages(ctx context.Context, id commonids.AppServiceId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListUsagesCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_listusagesslot.go b/resource-manager/web/2023-01-01/webapps/method_listusagesslot.go index 58f1bae9ff5..cbcbac0a262 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listusagesslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listusagesslot.go @@ -50,6 +50,18 @@ func (o ListUsagesSlotOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListUsagesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUsagesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUsagesSlot ... func (c WebAppsClient) ListUsagesSlot(ctx context.Context, id SlotId, options ListUsagesSlotOperationOptions) (result ListUsagesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WebAppsClient) ListUsagesSlot(ctx context.Context, id SlotId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListUsagesSlotCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_listwebjobs.go b/resource-manager/web/2023-01-01/webapps/method_listwebjobs.go index 009bef465d6..46c96736e0d 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listwebjobs.go +++ b/resource-manager/web/2023-01-01/webapps/method_listwebjobs.go @@ -24,6 +24,18 @@ type ListWebJobsCompleteResult struct { Items []WebJob } +type ListWebJobsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebJobsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebJobs ... func (c WebAppsClient) ListWebJobs(ctx context.Context, id commonids.AppServiceId) (result ListWebJobsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListWebJobs(ctx context.Context, id commonids.AppServiceI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebJobsCustomPager{}, Path: fmt.Sprintf("%s/webJobs", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listwebjobsslot.go b/resource-manager/web/2023-01-01/webapps/method_listwebjobsslot.go index 33b18905092..421ab88f0e1 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listwebjobsslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_listwebjobsslot.go @@ -23,6 +23,18 @@ type ListWebJobsSlotCompleteResult struct { Items []WebJob } +type ListWebJobsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebJobsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebJobsSlot ... func (c WebAppsClient) ListWebJobsSlot(ctx context.Context, id SlotId) (result ListWebJobsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListWebJobsSlot(ctx context.Context, id SlotId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebJobsSlotCustomPager{}, Path: fmt.Sprintf("%s/webJobs", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_listworkflows.go b/resource-manager/web/2023-01-01/webapps/method_listworkflows.go index 09f70cdc841..a098ec74cd5 100644 --- a/resource-manager/web/2023-01-01/webapps/method_listworkflows.go +++ b/resource-manager/web/2023-01-01/webapps/method_listworkflows.go @@ -24,6 +24,18 @@ type ListWorkflowsCompleteResult struct { Items []WorkflowEnvelope } +type ListWorkflowsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWorkflowsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWorkflows ... func (c WebAppsClient) ListWorkflows(ctx context.Context, id commonids.AppServiceId) (result ListWorkflowsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListWorkflows(ctx context.Context, id commonids.AppServic http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWorkflowsCustomPager{}, Path: fmt.Sprintf("%s/workflows", id.ID()), } diff --git a/resource-manager/web/2023-01-01/webapps/method_migratestorage.go b/resource-manager/web/2023-01-01/webapps/method_migratestorage.go index 5f0c28ff47d..f59a0b4a276 100644 --- a/resource-manager/web/2023-01-01/webapps/method_migratestorage.go +++ b/resource-manager/web/2023-01-01/webapps/method_migratestorage.go @@ -57,8 +57,8 @@ func (c WebAppsClient) MigrateStorage(ctx context.Context, id commonids.AppServi http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/migrate", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/migrate", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_restart.go b/resource-manager/web/2023-01-01/webapps/method_restart.go index fbc0d6837cb..4634c74caa7 100644 --- a/resource-manager/web/2023-01-01/webapps/method_restart.go +++ b/resource-manager/web/2023-01-01/webapps/method_restart.go @@ -57,8 +57,8 @@ func (c WebAppsClient) Restart(ctx context.Context, id commonids.AppServiceId, o http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/restart", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restart", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_restartslot.go b/resource-manager/web/2023-01-01/webapps/method_restartslot.go index 2ed5d2e9efa..28902482a9c 100644 --- a/resource-manager/web/2023-01-01/webapps/method_restartslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_restartslot.go @@ -56,8 +56,8 @@ func (c WebAppsClient) RestartSlot(ctx context.Context, id SlotId, options Resta http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/restart", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restart", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_startnetworktrace.go b/resource-manager/web/2023-01-01/webapps/method_startnetworktrace.go index 92ce80e4291..fa037fe2276 100644 --- a/resource-manager/web/2023-01-01/webapps/method_startnetworktrace.go +++ b/resource-manager/web/2023-01-01/webapps/method_startnetworktrace.go @@ -66,8 +66,8 @@ func (c WebAppsClient) StartNetworkTrace(ctx context.Context, id commonids.AppSe http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/startNetworkTrace", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/startNetworkTrace", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_startnetworktraceslot.go b/resource-manager/web/2023-01-01/webapps/method_startnetworktraceslot.go index 50d223940d5..8390b0d5feb 100644 --- a/resource-manager/web/2023-01-01/webapps/method_startnetworktraceslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_startnetworktraceslot.go @@ -65,8 +65,8 @@ func (c WebAppsClient) StartNetworkTraceSlot(ctx context.Context, id SlotId, opt http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/startNetworkTrace", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/startNetworkTrace", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktrace.go b/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktrace.go index 65c5c68ef51..8ca69360afe 100644 --- a/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktrace.go +++ b/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktrace.go @@ -62,8 +62,8 @@ func (c WebAppsClient) StartWebSiteNetworkTrace(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/networkTrace/start", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/networkTrace/start", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperation.go b/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperation.go index 21703009ddc..9fd9a12487f 100644 --- a/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperation.go +++ b/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperation.go @@ -66,8 +66,8 @@ func (c WebAppsClient) StartWebSiteNetworkTraceOperation(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/networkTrace/startOperation", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/networkTrace/startOperation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperationslot.go b/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperationslot.go index 2d71a255ba4..73249d3a29a 100644 --- a/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperationslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceoperationslot.go @@ -65,8 +65,8 @@ func (c WebAppsClient) StartWebSiteNetworkTraceOperationSlot(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/networkTrace/startOperation", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/networkTrace/startOperation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceslot.go b/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceslot.go index b52ac41f1a2..697b0f20648 100644 --- a/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceslot.go +++ b/resource-manager/web/2023-01-01/webapps/method_startwebsitenetworktraceslot.go @@ -61,8 +61,8 @@ func (c WebAppsClient) StartWebSiteNetworkTraceSlot(ctx context.Context, id Slot http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/networkTrace/start", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/networkTrace/start", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/workflowrunactions/method_coperepetitionslist.go b/resource-manager/web/2023-01-01/workflowrunactions/method_coperepetitionslist.go index c7ffe63f0c5..8e3b1832ac8 100644 --- a/resource-manager/web/2023-01-01/workflowrunactions/method_coperepetitionslist.go +++ b/resource-manager/web/2023-01-01/workflowrunactions/method_coperepetitionslist.go @@ -23,6 +23,18 @@ type CopeRepetitionsListCompleteResult struct { Items []WorkflowRunActionRepetitionDefinition } +type CopeRepetitionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CopeRepetitionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CopeRepetitionsList ... func (c WorkflowRunActionsClient) CopeRepetitionsList(ctx context.Context, id ActionId) (result CopeRepetitionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) CopeRepetitionsList(ctx context.Context, id Ac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CopeRepetitionsListCustomPager{}, Path: fmt.Sprintf("%s/scopeRepetitions", id.ID()), } diff --git a/resource-manager/web/2023-01-01/workflowrunactions/method_list.go b/resource-manager/web/2023-01-01/workflowrunactions/method_list.go index 67d1f71449e..532e550d8d0 100644 --- a/resource-manager/web/2023-01-01/workflowrunactions/method_list.go +++ b/resource-manager/web/2023-01-01/workflowrunactions/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowRunActionsClient) List(ctx context.Context, id RunId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowRunActionsClient) List(ctx context.Context, id RunId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/actions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/actions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/workflowrunactions/method_listexpressiontraces.go b/resource-manager/web/2023-01-01/workflowrunactions/method_listexpressiontraces.go index e91c1a639c4..07ca3a3e829 100644 --- a/resource-manager/web/2023-01-01/workflowrunactions/method_listexpressiontraces.go +++ b/resource-manager/web/2023-01-01/workflowrunactions/method_listexpressiontraces.go @@ -23,6 +23,18 @@ type ListExpressionTracesCompleteResult struct { Items []interface{} } +type ListExpressionTracesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListExpressionTracesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListExpressionTraces ... func (c WorkflowRunActionsClient) ListExpressionTraces(ctx context.Context, id ActionId) (result ListExpressionTracesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) ListExpressionTraces(ctx context.Context, id A http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListExpressionTracesCustomPager{}, Path: fmt.Sprintf("%s/listExpressionTraces", id.ID()), } diff --git a/resource-manager/web/2023-01-01/workflowrunactions/method_workflowrunactionrepetitionslist.go b/resource-manager/web/2023-01-01/workflowrunactions/method_workflowrunactionrepetitionslist.go index 6ccaa8e80ab..6b6fadac68b 100644 --- a/resource-manager/web/2023-01-01/workflowrunactions/method_workflowrunactionrepetitionslist.go +++ b/resource-manager/web/2023-01-01/workflowrunactions/method_workflowrunactionrepetitionslist.go @@ -23,6 +23,18 @@ type WorkflowRunActionRepetitionsListCompleteResult struct { Items []WorkflowRunActionRepetitionDefinition } +type WorkflowRunActionRepetitionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkflowRunActionRepetitionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkflowRunActionRepetitionsList ... func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsList(ctx context.Context, id ActionId) (result WorkflowRunActionRepetitionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsList(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkflowRunActionRepetitionsListCustomPager{}, Path: fmt.Sprintf("%s/repetitions", id.ID()), } diff --git a/resource-manager/web/2023-01-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go b/resource-manager/web/2023-01-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go index 0b816996565..a3f212a0cfe 100644 --- a/resource-manager/web/2023-01-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go +++ b/resource-manager/web/2023-01-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go @@ -23,6 +23,18 @@ type WorkflowRunActionRepetitionsListExpressionTracesCompleteResult struct { Items []interface{} } +type WorkflowRunActionRepetitionsListExpressionTracesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkflowRunActionRepetitionsListExpressionTracesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkflowRunActionRepetitionsListExpressionTraces ... func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsListExpressionTraces(ctx context.Context, id RepetitionId) (result WorkflowRunActionRepetitionsListExpressionTracesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsListExpressionTrac http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &WorkflowRunActionRepetitionsListExpressionTracesCustomPager{}, Path: fmt.Sprintf("%s/listExpressionTraces", id.ID()), } diff --git a/resource-manager/web/2023-01-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go b/resource-manager/web/2023-01-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go index 0c078f05c70..c1d6265df03 100644 --- a/resource-manager/web/2023-01-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go +++ b/resource-manager/web/2023-01-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go @@ -23,6 +23,18 @@ type WorkflowRunActionRepetitionsRequestHistoriesListCompleteResult struct { Items []RequestHistory } +type WorkflowRunActionRepetitionsRequestHistoriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkflowRunActionRepetitionsRequestHistoriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkflowRunActionRepetitionsRequestHistoriesList ... func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsRequestHistoriesList(ctx context.Context, id RepetitionId) (result WorkflowRunActionRepetitionsRequestHistoriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsRequestHistoriesLi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkflowRunActionRepetitionsRequestHistoriesListCustomPager{}, Path: fmt.Sprintf("%s/requestHistories", id.ID()), } diff --git a/resource-manager/web/2023-01-01/workflowruns/method_list.go b/resource-manager/web/2023-01-01/workflowruns/method_list.go index e5e8588c1e5..b2188f33e6d 100644 --- a/resource-manager/web/2023-01-01/workflowruns/method_list.go +++ b/resource-manager/web/2023-01-01/workflowruns/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowRunsClient) List(ctx context.Context, id ManagementWorkflowId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowRunsClient) List(ctx context.Context, id ManagementWorkflowId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/runs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/workflowtriggerhistories/method_list.go b/resource-manager/web/2023-01-01/workflowtriggerhistories/method_list.go index 473afc367c2..9737ffdb68c 100644 --- a/resource-manager/web/2023-01-01/workflowtriggerhistories/method_list.go +++ b/resource-manager/web/2023-01-01/workflowtriggerhistories/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowTriggerHistoriesClient) List(ctx context.Context, id TriggerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowTriggerHistoriesClient) List(ctx context.Context, id TriggerId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/histories", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/histories", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/workflowtriggers/method_list.go b/resource-manager/web/2023-01-01/workflowtriggers/method_list.go index 21af991a400..0f1c596b80c 100644 --- a/resource-manager/web/2023-01-01/workflowtriggers/method_list.go +++ b/resource-manager/web/2023-01-01/workflowtriggers/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowTriggersClient) List(ctx context.Context, id ManagementWorkflowId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowTriggersClient) List(ctx context.Context, id ManagementWorkflowI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/triggers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/triggers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-01-01/workflowversions/method_list.go b/resource-manager/web/2023-01-01/workflowversions/method_list.go index fe314139681..a70d4657650 100644 --- a/resource-manager/web/2023-01-01/workflowversions/method_list.go +++ b/resource-manager/web/2023-01-01/workflowversions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowVersionsClient) List(ctx context.Context, id ManagementWorkflowId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WorkflowVersionsClient) List(ctx context.Context, id ManagementWorkflowI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/appservicecertificateorders/method_list.go b/resource-manager/web/2023-12-01/appservicecertificateorders/method_list.go index bf5fb68e51b..dc2a1437f6d 100644 --- a/resource-manager/web/2023-12-01/appservicecertificateorders/method_list.go +++ b/resource-manager/web/2023-12-01/appservicecertificateorders/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AppServiceCertificateOrder } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AppServiceCertificateOrdersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceCertificateOrdersClient) List(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CertificateRegistration/certificateOrders", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appservicecertificateorders/method_listbyresourcegroup.go b/resource-manager/web/2023-12-01/appservicecertificateorders/method_listbyresourcegroup.go index ec4e47be229..e800bd4359e 100644 --- a/resource-manager/web/2023-12-01/appservicecertificateorders/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-12-01/appservicecertificateorders/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AppServiceCertificateOrder } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AppServiceCertificateOrdersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceCertificateOrdersClient) ListByResourceGroup(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.CertificateRegistration/certificateOrders", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appservicecertificateorders/method_listcertificates.go b/resource-manager/web/2023-12-01/appservicecertificateorders/method_listcertificates.go index 60eb5b6d8e8..04a478191c0 100644 --- a/resource-manager/web/2023-12-01/appservicecertificateorders/method_listcertificates.go +++ b/resource-manager/web/2023-12-01/appservicecertificateorders/method_listcertificates.go @@ -23,6 +23,18 @@ type ListCertificatesCompleteResult struct { Items []AppServiceCertificateResource } +type ListCertificatesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCertificatesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCertificates ... func (c AppServiceCertificateOrdersClient) ListCertificates(ctx context.Context, id CertificateOrderId) (result ListCertificatesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceCertificateOrdersClient) ListCertificates(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCertificatesCustomPager{}, Path: fmt.Sprintf("%s/certificates", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_changevnet.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_changevnet.go index 3c0aaf531fd..6bf6156af62 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_changevnet.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_changevnet.go @@ -27,6 +27,18 @@ type ChangeVnetCompleteResult struct { Items []Site } +type ChangeVnetCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ChangeVnetCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ChangeVnet ... func (c AppServiceEnvironmentsClient) ChangeVnet(ctx context.Context, id commonids.AppServiceEnvironmentId, input VirtualNetworkProfile) (result ChangeVnetOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c AppServiceEnvironmentsClient) ChangeVnet(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ChangeVnetCustomPager{}, Path: fmt.Sprintf("%s/changeVirtualNetwork", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_delete.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_delete.go index 67e550c1929..55cf71e5108 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_delete.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_delete.go @@ -57,8 +57,8 @@ func (c AppServiceEnvironmentsClient) Delete(ctx context.Context, id commonids.A http.StatusNoContent, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go index 6bd59027a79..0ba5559383d 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_getinboundnetworkdependenciesendpoints.go @@ -24,6 +24,18 @@ type GetInboundNetworkDependenciesEndpointsCompleteResult struct { Items []InboundEnvironmentEndpoint } +type GetInboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetInboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetInboundNetworkDependenciesEndpoints ... func (c AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetInboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) GetInboundNetworkDependenciesEndpoints(ctx http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetInboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/inboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go index d6f4a4dfe25..0e457723e3d 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_getoutboundnetworkdependenciesendpoints.go @@ -24,6 +24,18 @@ type GetOutboundNetworkDependenciesEndpointsCompleteResult struct { Items []OutboundEnvironmentEndpoint } +type GetOutboundNetworkDependenciesEndpointsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetOutboundNetworkDependenciesEndpointsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetOutboundNetworkDependenciesEndpoints ... func (c AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpoints(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetOutboundNetworkDependenciesEndpointsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) GetOutboundNetworkDependenciesEndpoints(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetOutboundNetworkDependenciesEndpointsCustomPager{}, Path: fmt.Sprintf("%s/outboundNetworkDependenciesEndpoints", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_getprivateendpointconnectionlist.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_getprivateendpointconnectionlist.go index f3bf4837ce2..c4ecbd05aaf 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_getprivateendpointconnectionlist.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_getprivateendpointconnectionlist.go @@ -24,6 +24,18 @@ type GetPrivateEndpointConnectionListCompleteResult struct { Items []RemotePrivateEndpointConnectionARMResource } +type GetPrivateEndpointConnectionListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetPrivateEndpointConnectionListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetPrivateEndpointConnectionList ... func (c AppServiceEnvironmentsClient) GetPrivateEndpointConnectionList(ctx context.Context, id commonids.AppServiceEnvironmentId) (result GetPrivateEndpointConnectionListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) GetPrivateEndpointConnectionList(ctx conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetPrivateEndpointConnectionListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_list.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_list.go index 60b5a0ca787..b29d1ea041b 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_list.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []AppServiceEnvironmentResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AppServiceEnvironmentsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) List(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/hostingEnvironments", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listappserviceplans.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listappserviceplans.go index 35717866ea8..26d1f005a45 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listappserviceplans.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listappserviceplans.go @@ -24,6 +24,18 @@ type ListAppServicePlansCompleteResult struct { Items []AppServicePlan } +type ListAppServicePlansCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppServicePlansCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAppServicePlans ... func (c AppServiceEnvironmentsClient) ListAppServicePlans(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListAppServicePlansOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListAppServicePlans(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAppServicePlansCustomPager{}, Path: fmt.Sprintf("%s/serverFarms", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listbyresourcegroup.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listbyresourcegroup.go index 49415a3322e..3d45ec03742 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AppServiceEnvironmentResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AppServiceEnvironmentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/hostingEnvironments", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listcapacities.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listcapacities.go index 43f7e6ce021..b524c9ea8d6 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listcapacities.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listcapacities.go @@ -24,6 +24,18 @@ type ListCapacitiesCompleteResult struct { Items []StampCapacity } +type ListCapacitiesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCapacitiesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCapacities ... func (c AppServiceEnvironmentsClient) ListCapacities(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListCapacitiesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListCapacities(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCapacitiesCustomPager{}, Path: fmt.Sprintf("%s/capacities/compute", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolemetricdefinitions.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolemetricdefinitions.go index 224c729749d..703092408d6 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolemetricdefinitions.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolemetricdefinitions.go @@ -24,6 +24,18 @@ type ListMultiRoleMetricDefinitionsCompleteResult struct { Items []ResourceMetricDefinition } +type ListMultiRoleMetricDefinitionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRoleMetricDefinitionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRoleMetricDefinitions ... func (c AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRoleMetricDefinitionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRoleMetricDefinitions(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRoleMetricDefinitionsCustomPager{}, Path: fmt.Sprintf("%s/multiRolePools/default/metricdefinitions", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go index 78b3216e939..b0c259db50e 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolepoolinstancemetricdefinitions.go @@ -23,6 +23,18 @@ type ListMultiRolePoolInstanceMetricDefinitionsCompleteResult struct { Items []ResourceMetricDefinition } +type ListMultiRolePoolInstanceMetricDefinitionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRolePoolInstanceMetricDefinitionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRolePoolInstanceMetricDefinitions ... func (c AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitions(ctx context.Context, id DefaultInstanceId) (result ListMultiRolePoolInstanceMetricDefinitionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRolePoolInstanceMetricDefinitions http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRolePoolInstanceMetricDefinitionsCustomPager{}, Path: fmt.Sprintf("%s/metricdefinitions", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolepools.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolepools.go index ec9b78bfc45..2fff5186ba4 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolepools.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolepools.go @@ -24,6 +24,18 @@ type ListMultiRolePoolsCompleteResult struct { Items []WorkerPoolResource } +type ListMultiRolePoolsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRolePoolsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRolePools ... func (c AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRolePoolsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRolePools(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRolePoolsCustomPager{}, Path: fmt.Sprintf("%s/multiRolePools", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolepoolskus.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolepoolskus.go index 596b758f3b4..68df6ce4b5d 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolepoolskus.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultirolepoolskus.go @@ -24,6 +24,18 @@ type ListMultiRolePoolSkusCompleteResult struct { Items []SkuInfo } +type ListMultiRolePoolSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRolePoolSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRolePoolSkus ... func (c AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRolePoolSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRolePoolSkus(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRolePoolSkusCustomPager{}, Path: fmt.Sprintf("%s/multiRolePools/default/skus", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultiroleusages.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultiroleusages.go index 9267ed4740f..a835e6f4109 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultiroleusages.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listmultiroleusages.go @@ -24,6 +24,18 @@ type ListMultiRoleUsagesCompleteResult struct { Items []Usage } +type ListMultiRoleUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMultiRoleUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListMultiRoleUsages ... func (c AppServiceEnvironmentsClient) ListMultiRoleUsages(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListMultiRoleUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListMultiRoleUsages(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListMultiRoleUsagesCustomPager{}, Path: fmt.Sprintf("%s/multiRolePools/default/usages", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listusages.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listusages.go index 6cb15f03800..c12dab87aa4 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listusages.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listusages.go @@ -51,6 +51,18 @@ func (o ListUsagesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUsages ... func (c AppServiceEnvironmentsClient) ListUsages(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListUsagesOperationOptions) (result ListUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AppServiceEnvironmentsClient) ListUsages(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListUsagesCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listwebapps.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listwebapps.go index 7f68dcecbc7..6adb4062cbe 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listwebapps.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listwebapps.go @@ -51,6 +51,18 @@ func (o ListWebAppsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListWebAppsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebAppsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebApps ... func (c AppServiceEnvironmentsClient) ListWebApps(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListWebAppsOperationOptions) (result ListWebAppsOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AppServiceEnvironmentsClient) ListWebApps(ctx context.Context, id common http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sites", id.ID()), OptionsObject: options, + Pager: &ListWebAppsCustomPager{}, + Path: fmt.Sprintf("%s/sites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listwebworkermetricdefinitions.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listwebworkermetricdefinitions.go index 06408a3fdd9..0d83ccdd738 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listwebworkermetricdefinitions.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listwebworkermetricdefinitions.go @@ -23,6 +23,18 @@ type ListWebWorkerMetricDefinitionsCompleteResult struct { Items []ResourceMetricDefinition } +type ListWebWorkerMetricDefinitionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebWorkerMetricDefinitionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebWorkerMetricDefinitions ... func (c AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitions(ctx context.Context, id WorkerPoolId) (result ListWebWorkerMetricDefinitionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListWebWorkerMetricDefinitions(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebWorkerMetricDefinitionsCustomPager{}, Path: fmt.Sprintf("%s/metricdefinitions", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listwebworkerusages.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listwebworkerusages.go index 094d26611b3..380989d1a8d 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listwebworkerusages.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listwebworkerusages.go @@ -23,6 +23,18 @@ type ListWebWorkerUsagesCompleteResult struct { Items []Usage } +type ListWebWorkerUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebWorkerUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebWorkerUsages ... func (c AppServiceEnvironmentsClient) ListWebWorkerUsages(ctx context.Context, id WorkerPoolId) (result ListWebWorkerUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListWebWorkerUsages(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebWorkerUsagesCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go index f9ce473c32f..283907aee09 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listworkerpoolinstancemetricdefinitions.go @@ -23,6 +23,18 @@ type ListWorkerPoolInstanceMetricDefinitionsCompleteResult struct { Items []ResourceMetricDefinition } +type ListWorkerPoolInstanceMetricDefinitionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWorkerPoolInstanceMetricDefinitionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWorkerPoolInstanceMetricDefinitions ... func (c AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitions(ctx context.Context, id WorkerPoolInstanceId) (result ListWorkerPoolInstanceMetricDefinitionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListWorkerPoolInstanceMetricDefinitions(ct http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWorkerPoolInstanceMetricDefinitionsCustomPager{}, Path: fmt.Sprintf("%s/metricdefinitions", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listworkerpools.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listworkerpools.go index 3c7549e990f..ec25afdb033 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listworkerpools.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listworkerpools.go @@ -24,6 +24,18 @@ type ListWorkerPoolsCompleteResult struct { Items []WorkerPoolResource } +type ListWorkerPoolsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWorkerPoolsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWorkerPools ... func (c AppServiceEnvironmentsClient) ListWorkerPools(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListWorkerPoolsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServiceEnvironmentsClient) ListWorkerPools(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWorkerPoolsCustomPager{}, Path: fmt.Sprintf("%s/workerPools", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_listworkerpoolskus.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_listworkerpoolskus.go index c1b28b118d0..74192d0c7ec 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_listworkerpoolskus.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_listworkerpoolskus.go @@ -23,6 +23,18 @@ type ListWorkerPoolSkusCompleteResult struct { Items []SkuInfo } +type ListWorkerPoolSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWorkerPoolSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWorkerPoolSkus ... func (c AppServiceEnvironmentsClient) ListWorkerPoolSkus(ctx context.Context, id WorkerPoolId) (result ListWorkerPoolSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServiceEnvironmentsClient) ListWorkerPoolSkus(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWorkerPoolSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_resume.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_resume.go index def906a3f1a..9cafc62c013 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_resume.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_resume.go @@ -27,6 +27,18 @@ type ResumeCompleteResult struct { Items []Site } +type ResumeCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ResumeCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Resume ... func (c AppServiceEnvironmentsClient) Resume(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ResumeOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c AppServiceEnvironmentsClient) Resume(ctx context.Context, id commonids.A http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ResumeCustomPager{}, Path: fmt.Sprintf("%s/resume", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceenvironments/method_suspend.go b/resource-manager/web/2023-12-01/appserviceenvironments/method_suspend.go index 5395b21b683..e6c388ed071 100644 --- a/resource-manager/web/2023-12-01/appserviceenvironments/method_suspend.go +++ b/resource-manager/web/2023-12-01/appserviceenvironments/method_suspend.go @@ -27,6 +27,18 @@ type SuspendCompleteResult struct { Items []Site } +type SuspendCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SuspendCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // Suspend ... func (c AppServiceEnvironmentsClient) Suspend(ctx context.Context, id commonids.AppServiceEnvironmentId) (result SuspendOperationResponse, err error) { opts := client.RequestOptions{ @@ -36,6 +48,7 @@ func (c AppServiceEnvironmentsClient) Suspend(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &SuspendCustomPager{}, Path: fmt.Sprintf("%s/suspend", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceplans/method_list.go b/resource-manager/web/2023-12-01/appserviceplans/method_list.go index 1eca306be0f..6825b73b994 100644 --- a/resource-manager/web/2023-12-01/appserviceplans/method_list.go +++ b/resource-manager/web/2023-12-01/appserviceplans/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c AppServicePlansClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AppServicePlansClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/serverFarms", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/serverFarms", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/appserviceplans/method_listbyresourcegroup.go b/resource-manager/web/2023-12-01/appserviceplans/method_listbyresourcegroup.go index 633d58c91fc..8a92a8bb9a4 100644 --- a/resource-manager/web/2023-12-01/appserviceplans/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-12-01/appserviceplans/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []AppServicePlan } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c AppServicePlansClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServicePlansClient) ListByResourceGroup(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/serverFarms", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceplans/method_listhybridconnections.go b/resource-manager/web/2023-12-01/appserviceplans/method_listhybridconnections.go index 39236bde7f2..397cbb6929c 100644 --- a/resource-manager/web/2023-12-01/appserviceplans/method_listhybridconnections.go +++ b/resource-manager/web/2023-12-01/appserviceplans/method_listhybridconnections.go @@ -24,6 +24,18 @@ type ListHybridConnectionsCompleteResult struct { Items []HybridConnection } +type ListHybridConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHybridConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHybridConnections ... func (c AppServicePlansClient) ListHybridConnections(ctx context.Context, id commonids.AppServicePlanId) (result ListHybridConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c AppServicePlansClient) ListHybridConnections(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHybridConnectionsCustomPager{}, Path: fmt.Sprintf("%s/hybridConnectionRelays", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceplans/method_listusages.go b/resource-manager/web/2023-12-01/appserviceplans/method_listusages.go index 26a666b6ad4..ba526d56a55 100644 --- a/resource-manager/web/2023-12-01/appserviceplans/method_listusages.go +++ b/resource-manager/web/2023-12-01/appserviceplans/method_listusages.go @@ -51,6 +51,18 @@ func (o ListUsagesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUsages ... func (c AppServicePlansClient) ListUsages(ctx context.Context, id commonids.AppServicePlanId, options ListUsagesOperationOptions) (result ListUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c AppServicePlansClient) ListUsages(ctx context.Context, id commonids.AppS http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListUsagesCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/appserviceplans/method_listwebapps.go b/resource-manager/web/2023-12-01/appserviceplans/method_listwebapps.go index 580d5a7e6e5..facb051bd72 100644 --- a/resource-manager/web/2023-12-01/appserviceplans/method_listwebapps.go +++ b/resource-manager/web/2023-12-01/appserviceplans/method_listwebapps.go @@ -55,6 +55,18 @@ func (o ListWebAppsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListWebAppsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebAppsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebApps ... func (c AppServicePlansClient) ListWebApps(ctx context.Context, id commonids.AppServicePlanId, options ListWebAppsOperationOptions) (result ListWebAppsOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c AppServicePlansClient) ListWebApps(ctx context.Context, id commonids.App http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/sites", id.ID()), OptionsObject: options, + Pager: &ListWebAppsCustomPager{}, + Path: fmt.Sprintf("%s/sites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/appserviceplans/method_listwebappsbyhybridconnection.go b/resource-manager/web/2023-12-01/appserviceplans/method_listwebappsbyhybridconnection.go index 7f6d7365400..84d13849999 100644 --- a/resource-manager/web/2023-12-01/appserviceplans/method_listwebappsbyhybridconnection.go +++ b/resource-manager/web/2023-12-01/appserviceplans/method_listwebappsbyhybridconnection.go @@ -23,6 +23,18 @@ type ListWebAppsByHybridConnectionCompleteResult struct { Items []string } +type ListWebAppsByHybridConnectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebAppsByHybridConnectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebAppsByHybridConnection ... func (c AppServicePlansClient) ListWebAppsByHybridConnection(ctx context.Context, id HybridConnectionNamespaceRelayId) (result ListWebAppsByHybridConnectionOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c AppServicePlansClient) ListWebAppsByHybridConnection(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebAppsByHybridConnectionCustomPager{}, Path: fmt.Sprintf("%s/sites", id.ID()), } diff --git a/resource-manager/web/2023-12-01/appserviceplans/method_restartwebapps.go b/resource-manager/web/2023-12-01/appserviceplans/method_restartwebapps.go index ffa2a205011..0eb829e73f3 100644 --- a/resource-manager/web/2023-12-01/appserviceplans/method_restartwebapps.go +++ b/resource-manager/web/2023-12-01/appserviceplans/method_restartwebapps.go @@ -53,8 +53,8 @@ func (c AppServicePlansClient) RestartWebApps(ctx context.Context, id commonids. http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/restartSites", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restartSites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/certificateordersdiagnostics/method_getappservicecertificateorderdetectorresponse.go b/resource-manager/web/2023-12-01/certificateordersdiagnostics/method_getappservicecertificateorderdetectorresponse.go index 43f26d37c36..234f65f33a3 100644 --- a/resource-manager/web/2023-12-01/certificateordersdiagnostics/method_getappservicecertificateorderdetectorresponse.go +++ b/resource-manager/web/2023-12-01/certificateordersdiagnostics/method_getappservicecertificateorderdetectorresponse.go @@ -61,8 +61,8 @@ func (c CertificateOrdersDiagnosticsClient) GetAppServiceCertificateOrderDetecto http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/certificateordersdiagnostics/method_listappservicecertificateorderdetectorresponse.go b/resource-manager/web/2023-12-01/certificateordersdiagnostics/method_listappservicecertificateorderdetectorresponse.go index 8601baa2944..405663304fc 100644 --- a/resource-manager/web/2023-12-01/certificateordersdiagnostics/method_listappservicecertificateorderdetectorresponse.go +++ b/resource-manager/web/2023-12-01/certificateordersdiagnostics/method_listappservicecertificateorderdetectorresponse.go @@ -23,6 +23,18 @@ type ListAppServiceCertificateOrderDetectorResponseCompleteResult struct { Items []DetectorResponse } +type ListAppServiceCertificateOrderDetectorResponseCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppServiceCertificateOrderDetectorResponseCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAppServiceCertificateOrderDetectorResponse ... func (c CertificateOrdersDiagnosticsClient) ListAppServiceCertificateOrderDetectorResponse(ctx context.Context, id CertificateOrderId) (result ListAppServiceCertificateOrderDetectorResponseOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c CertificateOrdersDiagnosticsClient) ListAppServiceCertificateOrderDetect http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAppServiceCertificateOrderDetectorResponseCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2023-12-01/certificates/method_list.go b/resource-manager/web/2023-12-01/certificates/method_list.go index 9e38b2965e5..aaa547d06bb 100644 --- a/resource-manager/web/2023-12-01/certificates/method_list.go +++ b/resource-manager/web/2023-12-01/certificates/method_list.go @@ -51,6 +51,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c CertificatesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c CertificatesClient) List(ctx context.Context, id commonids.SubscriptionI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/certificates", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/certificates", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/certificates/method_listbyresourcegroup.go b/resource-manager/web/2023-12-01/certificates/method_listbyresourcegroup.go index c594d8867eb..94e8fdd644a 100644 --- a/resource-manager/web/2023-12-01/certificates/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-12-01/certificates/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Certificate } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c CertificatesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c CertificatesClient) ListByResourceGroup(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/certificates", id.ID()), } diff --git a/resource-manager/web/2023-12-01/containerapps/method_listbyresourcegroup.go b/resource-manager/web/2023-12-01/containerapps/method_listbyresourcegroup.go index 41ee4fd8ced..e6d795c0f7d 100644 --- a/resource-manager/web/2023-12-01/containerapps/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-12-01/containerapps/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ContainerApp } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ContainerAppsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ContainerAppsClient) ListByResourceGroup(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/containerApps", id.ID()), } diff --git a/resource-manager/web/2023-12-01/containerapps/method_listbysubscription.go b/resource-manager/web/2023-12-01/containerapps/method_listbysubscription.go index 1f21755ef86..d1d592f103c 100644 --- a/resource-manager/web/2023-12-01/containerapps/method_listbysubscription.go +++ b/resource-manager/web/2023-12-01/containerapps/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []ContainerApp } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c ContainerAppsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ContainerAppsClient) ListBySubscription(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/containerApps", id.ID()), } diff --git a/resource-manager/web/2023-12-01/containerappsrevisions/method_listrevisions.go b/resource-manager/web/2023-12-01/containerappsrevisions/method_listrevisions.go index 7b6ef4b99f3..0248f10075a 100644 --- a/resource-manager/web/2023-12-01/containerappsrevisions/method_listrevisions.go +++ b/resource-manager/web/2023-12-01/containerappsrevisions/method_listrevisions.go @@ -23,6 +23,18 @@ type ListRevisionsCompleteResult struct { Items []Revision } +type ListRevisionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRevisionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRevisions ... func (c ContainerAppsRevisionsClient) ListRevisions(ctx context.Context, id ProviderContainerAppId) (result ListRevisionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ContainerAppsRevisionsClient) ListRevisions(ctx context.Context, id Prov http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListRevisionsCustomPager{}, Path: fmt.Sprintf("%s/revisions", id.ID()), } diff --git a/resource-manager/web/2023-12-01/deletedwebapps/method_list.go b/resource-manager/web/2023-12-01/deletedwebapps/method_list.go index 545107bbfc0..9727a056e86 100644 --- a/resource-manager/web/2023-12-01/deletedwebapps/method_list.go +++ b/resource-manager/web/2023-12-01/deletedwebapps/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []DeletedSite } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DeletedWebAppsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DeletedWebAppsClient) List(ctx context.Context, id commonids.Subscriptio http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/deletedSites", id.ID()), } diff --git a/resource-manager/web/2023-12-01/deletedwebapps/method_listbylocation.go b/resource-manager/web/2023-12-01/deletedwebapps/method_listbylocation.go index 7ca76499cc7..09bdd361949 100644 --- a/resource-manager/web/2023-12-01/deletedwebapps/method_listbylocation.go +++ b/resource-manager/web/2023-12-01/deletedwebapps/method_listbylocation.go @@ -23,6 +23,18 @@ type ListByLocationCompleteResult struct { Items []DeletedSite } +type ListByLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByLocation ... func (c DeletedWebAppsClient) ListByLocation(ctx context.Context, id ProviderLocationId) (result ListByLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DeletedWebAppsClient) ListByLocation(ctx context.Context, id ProviderLoc http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByLocationCustomPager{}, Path: fmt.Sprintf("%s/deletedSites", id.ID()), } diff --git a/resource-manager/web/2023-12-01/diagnostics/method_executesiteanalysis.go b/resource-manager/web/2023-12-01/diagnostics/method_executesiteanalysis.go index bc5d3b93098..39c10eb722f 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_executesiteanalysis.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_executesiteanalysis.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) ExecuteSiteAnalysis(ctx context.Context, id AnalysisI http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/execute", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/execute", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/diagnostics/method_executesiteanalysisslot.go b/resource-manager/web/2023-12-01/diagnostics/method_executesiteanalysisslot.go index 9c46ec6e7c0..cdfb303e3a3 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_executesiteanalysisslot.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_executesiteanalysisslot.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) ExecuteSiteAnalysisSlot(ctx context.Context, id Diagn http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/execute", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/execute", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/diagnostics/method_executesitedetector.go b/resource-manager/web/2023-12-01/diagnostics/method_executesitedetector.go index d5921adb000..bd22012f0bf 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_executesitedetector.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_executesitedetector.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) ExecuteSiteDetector(ctx context.Context, id Diagnosti http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/execute", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/execute", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/diagnostics/method_executesitedetectorslot.go b/resource-manager/web/2023-12-01/diagnostics/method_executesitedetectorslot.go index 57d36c6f2bd..7b7c52ca9ac 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_executesitedetectorslot.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_executesitedetectorslot.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) ExecuteSiteDetectorSlot(ctx context.Context, id SlotD http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/execute", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/execute", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/diagnostics/method_gethostingenvironmentdetectorresponse.go b/resource-manager/web/2023-12-01/diagnostics/method_gethostingenvironmentdetectorresponse.go index 5c07b3a16ac..c0f8da53660 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_gethostingenvironmentdetectorresponse.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_gethostingenvironmentdetectorresponse.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) GetHostingEnvironmentDetectorResponse(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/diagnostics/method_getsitedetectorresponse.go b/resource-manager/web/2023-12-01/diagnostics/method_getsitedetectorresponse.go index 2bb7b20c482..92cb6f72ab9 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_getsitedetectorresponse.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_getsitedetectorresponse.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) GetSiteDetectorResponse(ctx context.Context, id Detec http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/diagnostics/method_getsitedetectorresponseslot.go b/resource-manager/web/2023-12-01/diagnostics/method_getsitedetectorresponseslot.go index 18b8359de69..2cdbdd632a1 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_getsitedetectorresponseslot.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_getsitedetectorresponseslot.go @@ -61,8 +61,8 @@ func (c DiagnosticsClient) GetSiteDetectorResponseSlot(ctx context.Context, id S http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/diagnostics/method_listhostingenvironmentdetectorresponses.go b/resource-manager/web/2023-12-01/diagnostics/method_listhostingenvironmentdetectorresponses.go index c7c9a7736d7..f112dde06bf 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_listhostingenvironmentdetectorresponses.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_listhostingenvironmentdetectorresponses.go @@ -24,6 +24,18 @@ type ListHostingEnvironmentDetectorResponsesCompleteResult struct { Items []DetectorResponse } +type ListHostingEnvironmentDetectorResponsesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHostingEnvironmentDetectorResponsesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHostingEnvironmentDetectorResponses ... func (c DiagnosticsClient) ListHostingEnvironmentDetectorResponses(ctx context.Context, id commonids.AppServiceEnvironmentId) (result ListHostingEnvironmentDetectorResponsesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiagnosticsClient) ListHostingEnvironmentDetectorResponses(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHostingEnvironmentDetectorResponsesCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2023-12-01/diagnostics/method_listsiteanalyses.go b/resource-manager/web/2023-12-01/diagnostics/method_listsiteanalyses.go index ca324027e66..91c871786aa 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_listsiteanalyses.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_listsiteanalyses.go @@ -23,6 +23,18 @@ type ListSiteAnalysesCompleteResult struct { Items []AnalysisDefinition } +type ListSiteAnalysesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteAnalysesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteAnalyses ... func (c DiagnosticsClient) ListSiteAnalyses(ctx context.Context, id DiagnosticId) (result ListSiteAnalysesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteAnalyses(ctx context.Context, id DiagnosticId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteAnalysesCustomPager{}, Path: fmt.Sprintf("%s/analyses", id.ID()), } diff --git a/resource-manager/web/2023-12-01/diagnostics/method_listsiteanalysesslot.go b/resource-manager/web/2023-12-01/diagnostics/method_listsiteanalysesslot.go index 52bfd315a5c..23f4e7d5c77 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_listsiteanalysesslot.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_listsiteanalysesslot.go @@ -23,6 +23,18 @@ type ListSiteAnalysesSlotCompleteResult struct { Items []AnalysisDefinition } +type ListSiteAnalysesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteAnalysesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteAnalysesSlot ... func (c DiagnosticsClient) ListSiteAnalysesSlot(ctx context.Context, id SlotDiagnosticId) (result ListSiteAnalysesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteAnalysesSlot(ctx context.Context, id SlotDiag http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteAnalysesSlotCustomPager{}, Path: fmt.Sprintf("%s/analyses", id.ID()), } diff --git a/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectorresponses.go b/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectorresponses.go index 6747c3cafe0..69a5711f698 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectorresponses.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectorresponses.go @@ -24,6 +24,18 @@ type ListSiteDetectorResponsesCompleteResult struct { Items []DetectorResponse } +type ListSiteDetectorResponsesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDetectorResponsesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDetectorResponses ... func (c DiagnosticsClient) ListSiteDetectorResponses(ctx context.Context, id commonids.AppServiceId) (result ListSiteDetectorResponsesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiagnosticsClient) ListSiteDetectorResponses(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDetectorResponsesCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectorresponsesslot.go b/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectorresponsesslot.go index 92abcc624d0..d50bb289cf4 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectorresponsesslot.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectorresponsesslot.go @@ -23,6 +23,18 @@ type ListSiteDetectorResponsesSlotCompleteResult struct { Items []DetectorResponse } +type ListSiteDetectorResponsesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDetectorResponsesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDetectorResponsesSlot ... func (c DiagnosticsClient) ListSiteDetectorResponsesSlot(ctx context.Context, id SlotId) (result ListSiteDetectorResponsesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteDetectorResponsesSlot(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDetectorResponsesSlotCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectors.go b/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectors.go index 52495cf4120..ee307b8dfde 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectors.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectors.go @@ -23,6 +23,18 @@ type ListSiteDetectorsCompleteResult struct { Items []DetectorDefinitionResource } +type ListSiteDetectorsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDetectorsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDetectors ... func (c DiagnosticsClient) ListSiteDetectors(ctx context.Context, id DiagnosticId) (result ListSiteDetectorsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteDetectors(ctx context.Context, id DiagnosticI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDetectorsCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectorsslot.go b/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectorsslot.go index 89553dfa71a..eb8b985ebc6 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectorsslot.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_listsitedetectorsslot.go @@ -23,6 +23,18 @@ type ListSiteDetectorsSlotCompleteResult struct { Items []DetectorDefinitionResource } +type ListSiteDetectorsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDetectorsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDetectorsSlot ... func (c DiagnosticsClient) ListSiteDetectorsSlot(ctx context.Context, id SlotDiagnosticId) (result ListSiteDetectorsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteDetectorsSlot(ctx context.Context, id SlotDia http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDetectorsSlotCustomPager{}, Path: fmt.Sprintf("%s/detectors", id.ID()), } diff --git a/resource-manager/web/2023-12-01/diagnostics/method_listsitediagnosticcategories.go b/resource-manager/web/2023-12-01/diagnostics/method_listsitediagnosticcategories.go index a9afd41cc0a..29ffd71a26c 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_listsitediagnosticcategories.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_listsitediagnosticcategories.go @@ -24,6 +24,18 @@ type ListSiteDiagnosticCategoriesCompleteResult struct { Items []DiagnosticCategory } +type ListSiteDiagnosticCategoriesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDiagnosticCategoriesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDiagnosticCategories ... func (c DiagnosticsClient) ListSiteDiagnosticCategories(ctx context.Context, id commonids.AppServiceId) (result ListSiteDiagnosticCategoriesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DiagnosticsClient) ListSiteDiagnosticCategories(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDiagnosticCategoriesCustomPager{}, Path: fmt.Sprintf("%s/diagnostics", id.ID()), } diff --git a/resource-manager/web/2023-12-01/diagnostics/method_listsitediagnosticcategoriesslot.go b/resource-manager/web/2023-12-01/diagnostics/method_listsitediagnosticcategoriesslot.go index fb6b85de307..1236f4d4ea2 100644 --- a/resource-manager/web/2023-12-01/diagnostics/method_listsitediagnosticcategoriesslot.go +++ b/resource-manager/web/2023-12-01/diagnostics/method_listsitediagnosticcategoriesslot.go @@ -23,6 +23,18 @@ type ListSiteDiagnosticCategoriesSlotCompleteResult struct { Items []DiagnosticCategory } +type ListSiteDiagnosticCategoriesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteDiagnosticCategoriesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteDiagnosticCategoriesSlot ... func (c DiagnosticsClient) ListSiteDiagnosticCategoriesSlot(ctx context.Context, id SlotId) (result ListSiteDiagnosticCategoriesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DiagnosticsClient) ListSiteDiagnosticCategoriesSlot(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteDiagnosticCategoriesSlotCustomPager{}, Path: fmt.Sprintf("%s/diagnostics", id.ID()), } diff --git a/resource-manager/web/2023-12-01/domains/method_delete.go b/resource-manager/web/2023-12-01/domains/method_delete.go index 67ba404cd4b..1e544b1f599 100644 --- a/resource-manager/web/2023-12-01/domains/method_delete.go +++ b/resource-manager/web/2023-12-01/domains/method_delete.go @@ -53,8 +53,8 @@ func (c DomainsClient) Delete(ctx context.Context, id DomainId, options DeleteOp http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/domains/method_list.go b/resource-manager/web/2023-12-01/domains/method_list.go index f8362b34c59..526910a6cc5 100644 --- a/resource-manager/web/2023-12-01/domains/method_list.go +++ b/resource-manager/web/2023-12-01/domains/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Domain } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c DomainsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DomainsClient) List(ctx context.Context, id commonids.SubscriptionId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DomainRegistration/domains", id.ID()), } diff --git a/resource-manager/web/2023-12-01/domains/method_listbyresourcegroup.go b/resource-manager/web/2023-12-01/domains/method_listbyresourcegroup.go index 32693c76e6a..d65249dc0bb 100644 --- a/resource-manager/web/2023-12-01/domains/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-12-01/domains/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Domain } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c DomainsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DomainsClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DomainRegistration/domains", id.ID()), } diff --git a/resource-manager/web/2023-12-01/domains/method_listownershipidentifiers.go b/resource-manager/web/2023-12-01/domains/method_listownershipidentifiers.go index d87c3ef554c..7081d3bef77 100644 --- a/resource-manager/web/2023-12-01/domains/method_listownershipidentifiers.go +++ b/resource-manager/web/2023-12-01/domains/method_listownershipidentifiers.go @@ -23,6 +23,18 @@ type ListOwnershipIdentifiersCompleteResult struct { Items []DomainOwnershipIdentifier } +type ListOwnershipIdentifiersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListOwnershipIdentifiersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListOwnershipIdentifiers ... func (c DomainsClient) ListOwnershipIdentifiers(ctx context.Context, id DomainId) (result ListOwnershipIdentifiersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c DomainsClient) ListOwnershipIdentifiers(ctx context.Context, id DomainId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListOwnershipIdentifiersCustomPager{}, Path: fmt.Sprintf("%s/domainOwnershipIdentifiers", id.ID()), } diff --git a/resource-manager/web/2023-12-01/domains/method_listrecommendations.go b/resource-manager/web/2023-12-01/domains/method_listrecommendations.go index de29505132c..e59b7c9f97c 100644 --- a/resource-manager/web/2023-12-01/domains/method_listrecommendations.go +++ b/resource-manager/web/2023-12-01/domains/method_listrecommendations.go @@ -24,6 +24,18 @@ type ListRecommendationsCompleteResult struct { Items []NameIdentifier } +type ListRecommendationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRecommendationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRecommendations ... func (c DomainsClient) ListRecommendations(ctx context.Context, id commonids.SubscriptionId, input DomainRecommendationSearchParameters) (result ListRecommendationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c DomainsClient) ListRecommendations(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListRecommendationsCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DomainRegistration/listDomainRecommendations", id.ID()), } diff --git a/resource-manager/web/2023-12-01/kubeenvironments/method_listbyresourcegroup.go b/resource-manager/web/2023-12-01/kubeenvironments/method_listbyresourcegroup.go index bc987c155e6..5b378fe3212 100644 --- a/resource-manager/web/2023-12-01/kubeenvironments/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-12-01/kubeenvironments/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []KubeEnvironment } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c KubeEnvironmentsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c KubeEnvironmentsClient) ListByResourceGroup(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/kubeEnvironments", id.ID()), } diff --git a/resource-manager/web/2023-12-01/kubeenvironments/method_listbysubscription.go b/resource-manager/web/2023-12-01/kubeenvironments/method_listbysubscription.go index a6c79892e57..a315f826e7c 100644 --- a/resource-manager/web/2023-12-01/kubeenvironments/method_listbysubscription.go +++ b/resource-manager/web/2023-12-01/kubeenvironments/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []KubeEnvironment } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c KubeEnvironmentsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c KubeEnvironmentsClient) ListBySubscription(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/kubeEnvironments", id.ID()), } diff --git a/resource-manager/web/2023-12-01/provider/method_getavailablestacks.go b/resource-manager/web/2023-12-01/provider/method_getavailablestacks.go index e3c95b0d271..d38e1131c18 100644 --- a/resource-manager/web/2023-12-01/provider/method_getavailablestacks.go +++ b/resource-manager/web/2023-12-01/provider/method_getavailablestacks.go @@ -50,6 +50,18 @@ func (o GetAvailableStacksOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetAvailableStacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAvailableStacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAvailableStacks ... func (c ProviderClient) GetAvailableStacks(ctx context.Context, options GetAvailableStacksOperationOptions) (result GetAvailableStacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetAvailableStacks(ctx context.Context, options GetAvail http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Web/availableStacks", OptionsObject: options, + Pager: &GetAvailableStacksCustomPager{}, + Path: "/providers/Microsoft.Web/availableStacks", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/provider/method_getavailablestacksonprem.go b/resource-manager/web/2023-12-01/provider/method_getavailablestacksonprem.go index d1427b7e12c..88344e48bbe 100644 --- a/resource-manager/web/2023-12-01/provider/method_getavailablestacksonprem.go +++ b/resource-manager/web/2023-12-01/provider/method_getavailablestacksonprem.go @@ -51,6 +51,18 @@ func (o GetAvailableStacksOnPremOperationOptions) ToQuery() *client.QueryParams return &out } +type GetAvailableStacksOnPremCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAvailableStacksOnPremCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAvailableStacksOnPrem ... func (c ProviderClient) GetAvailableStacksOnPrem(ctx context.Context, id commonids.SubscriptionId, options GetAvailableStacksOnPremOperationOptions) (result GetAvailableStacksOnPremOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ProviderClient) GetAvailableStacksOnPrem(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/availableStacks", id.ID()), OptionsObject: options, + Pager: &GetAvailableStacksOnPremCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/availableStacks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/provider/method_getfunctionappstacks.go b/resource-manager/web/2023-12-01/provider/method_getfunctionappstacks.go index c3d16509989..e7d7af6faee 100644 --- a/resource-manager/web/2023-12-01/provider/method_getfunctionappstacks.go +++ b/resource-manager/web/2023-12-01/provider/method_getfunctionappstacks.go @@ -50,6 +50,18 @@ func (o GetFunctionAppStacksOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetFunctionAppStacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetFunctionAppStacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetFunctionAppStacks ... func (c ProviderClient) GetFunctionAppStacks(ctx context.Context, options GetFunctionAppStacksOperationOptions) (result GetFunctionAppStacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetFunctionAppStacks(ctx context.Context, options GetFun http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Web/functionAppStacks", OptionsObject: options, + Pager: &GetFunctionAppStacksCustomPager{}, + Path: "/providers/Microsoft.Web/functionAppStacks", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/provider/method_getfunctionappstacksforlocation.go b/resource-manager/web/2023-12-01/provider/method_getfunctionappstacksforlocation.go index 4c3aad06d10..d172b71e511 100644 --- a/resource-manager/web/2023-12-01/provider/method_getfunctionappstacksforlocation.go +++ b/resource-manager/web/2023-12-01/provider/method_getfunctionappstacksforlocation.go @@ -50,6 +50,18 @@ func (o GetFunctionAppStacksForLocationOperationOptions) ToQuery() *client.Query return &out } +type GetFunctionAppStacksForLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetFunctionAppStacksForLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetFunctionAppStacksForLocation ... func (c ProviderClient) GetFunctionAppStacksForLocation(ctx context.Context, id LocationId, options GetFunctionAppStacksForLocationOperationOptions) (result GetFunctionAppStacksForLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetFunctionAppStacksForLocation(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/functionAppStacks", id.ID()), OptionsObject: options, + Pager: &GetFunctionAppStacksForLocationCustomPager{}, + Path: fmt.Sprintf("%s/functionAppStacks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/provider/method_getwebappstacks.go b/resource-manager/web/2023-12-01/provider/method_getwebappstacks.go index 3ea1d65b326..94ed33af10c 100644 --- a/resource-manager/web/2023-12-01/provider/method_getwebappstacks.go +++ b/resource-manager/web/2023-12-01/provider/method_getwebappstacks.go @@ -50,6 +50,18 @@ func (o GetWebAppStacksOperationOptions) ToQuery() *client.QueryParams { return &out } +type GetWebAppStacksCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetWebAppStacksCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetWebAppStacks ... func (c ProviderClient) GetWebAppStacks(ctx context.Context, options GetWebAppStacksOperationOptions) (result GetWebAppStacksOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetWebAppStacks(ctx context.Context, options GetWebAppSt http.StatusOK, }, HttpMethod: http.MethodGet, - Path: "/providers/Microsoft.Web/webAppStacks", OptionsObject: options, + Pager: &GetWebAppStacksCustomPager{}, + Path: "/providers/Microsoft.Web/webAppStacks", } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/provider/method_getwebappstacksforlocation.go b/resource-manager/web/2023-12-01/provider/method_getwebappstacksforlocation.go index fd6857cecd2..1b7970c0294 100644 --- a/resource-manager/web/2023-12-01/provider/method_getwebappstacksforlocation.go +++ b/resource-manager/web/2023-12-01/provider/method_getwebappstacksforlocation.go @@ -50,6 +50,18 @@ func (o GetWebAppStacksForLocationOperationOptions) ToQuery() *client.QueryParam return &out } +type GetWebAppStacksForLocationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetWebAppStacksForLocationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetWebAppStacksForLocation ... func (c ProviderClient) GetWebAppStacksForLocation(ctx context.Context, id LocationId, options GetWebAppStacksForLocationOperationOptions) (result GetWebAppStacksForLocationOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c ProviderClient) GetWebAppStacksForLocation(ctx context.Context, id Locat http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/webAppStacks", id.ID()), OptionsObject: options, + Pager: &GetWebAppStacksForLocationCustomPager{}, + Path: fmt.Sprintf("%s/webAppStacks", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/recommendations/method_disableallforhostingenvironment.go b/resource-manager/web/2023-12-01/recommendations/method_disableallforhostingenvironment.go index 3cf4d8a174d..3099cf85524 100644 --- a/resource-manager/web/2023-12-01/recommendations/method_disableallforhostingenvironment.go +++ b/resource-manager/web/2023-12-01/recommendations/method_disableallforhostingenvironment.go @@ -53,8 +53,8 @@ func (c RecommendationsClient) DisableAllForHostingEnvironment(ctx context.Conte http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/recommendations/disable", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/recommendations/disable", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/recommendations/method_disablerecommendationforhostingenvironment.go b/resource-manager/web/2023-12-01/recommendations/method_disablerecommendationforhostingenvironment.go index 9a2c85fe009..64a8ac5160d 100644 --- a/resource-manager/web/2023-12-01/recommendations/method_disablerecommendationforhostingenvironment.go +++ b/resource-manager/web/2023-12-01/recommendations/method_disablerecommendationforhostingenvironment.go @@ -52,8 +52,8 @@ func (c RecommendationsClient) DisableRecommendationForHostingEnvironment(ctx co http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/disable", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/disable", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/recommendations/method_getruledetailsbyhostingenvironment.go b/resource-manager/web/2023-12-01/recommendations/method_getruledetailsbyhostingenvironment.go index 524b4ba744d..2509533cd78 100644 --- a/resource-manager/web/2023-12-01/recommendations/method_getruledetailsbyhostingenvironment.go +++ b/resource-manager/web/2023-12-01/recommendations/method_getruledetailsbyhostingenvironment.go @@ -57,8 +57,8 @@ func (c RecommendationsClient) GetRuleDetailsByHostingEnvironment(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/recommendations/method_getruledetailsbywebapp.go b/resource-manager/web/2023-12-01/recommendations/method_getruledetailsbywebapp.go index aca06f267dd..8e4e22b5b79 100644 --- a/resource-manager/web/2023-12-01/recommendations/method_getruledetailsbywebapp.go +++ b/resource-manager/web/2023-12-01/recommendations/method_getruledetailsbywebapp.go @@ -57,8 +57,8 @@ func (c RecommendationsClient) GetRuleDetailsByWebApp(ctx context.Context, id Si http.StatusOK, }, HttpMethod: http.MethodGet, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/recommendations/method_list.go b/resource-manager/web/2023-12-01/recommendations/method_list.go index 4addca79cf1..f45d890f65b 100644 --- a/resource-manager/web/2023-12-01/recommendations/method_list.go +++ b/resource-manager/web/2023-12-01/recommendations/method_list.go @@ -55,6 +55,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c RecommendationsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/recommendations", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/recommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/recommendations/method_listhistoryforhostingenvironment.go b/resource-manager/web/2023-12-01/recommendations/method_listhistoryforhostingenvironment.go index 8e06b19581b..a66dab954fa 100644 --- a/resource-manager/web/2023-12-01/recommendations/method_listhistoryforhostingenvironment.go +++ b/resource-manager/web/2023-12-01/recommendations/method_listhistoryforhostingenvironment.go @@ -55,6 +55,18 @@ func (o ListHistoryForHostingEnvironmentOperationOptions) ToQuery() *client.Quer return &out } +type ListHistoryForHostingEnvironmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHistoryForHostingEnvironmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHistoryForHostingEnvironment ... func (c RecommendationsClient) ListHistoryForHostingEnvironment(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListHistoryForHostingEnvironmentOperationOptions) (result ListHistoryForHostingEnvironmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) ListHistoryForHostingEnvironment(ctx context.Cont http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendationHistory", id.ID()), OptionsObject: options, + Pager: &ListHistoryForHostingEnvironmentCustomPager{}, + Path: fmt.Sprintf("%s/recommendationHistory", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/recommendations/method_listhistoryforwebapp.go b/resource-manager/web/2023-12-01/recommendations/method_listhistoryforwebapp.go index 9ee60f7ca8e..54a97058272 100644 --- a/resource-manager/web/2023-12-01/recommendations/method_listhistoryforwebapp.go +++ b/resource-manager/web/2023-12-01/recommendations/method_listhistoryforwebapp.go @@ -55,6 +55,18 @@ func (o ListHistoryForWebAppOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListHistoryForWebAppCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHistoryForWebAppCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHistoryForWebApp ... func (c RecommendationsClient) ListHistoryForWebApp(ctx context.Context, id commonids.AppServiceId, options ListHistoryForWebAppOperationOptions) (result ListHistoryForWebAppOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) ListHistoryForWebApp(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendationHistory", id.ID()), OptionsObject: options, + Pager: &ListHistoryForWebAppCustomPager{}, + Path: fmt.Sprintf("%s/recommendationHistory", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/recommendations/method_listrecommendedrulesforhostingenvironment.go b/resource-manager/web/2023-12-01/recommendations/method_listrecommendedrulesforhostingenvironment.go index 6702f1d0ea8..d7c819654b5 100644 --- a/resource-manager/web/2023-12-01/recommendations/method_listrecommendedrulesforhostingenvironment.go +++ b/resource-manager/web/2023-12-01/recommendations/method_listrecommendedrulesforhostingenvironment.go @@ -55,6 +55,18 @@ func (o ListRecommendedRulesForHostingEnvironmentOperationOptions) ToQuery() *cl return &out } +type ListRecommendedRulesForHostingEnvironmentCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRecommendedRulesForHostingEnvironmentCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRecommendedRulesForHostingEnvironment ... func (c RecommendationsClient) ListRecommendedRulesForHostingEnvironment(ctx context.Context, id commonids.AppServiceEnvironmentId, options ListRecommendedRulesForHostingEnvironmentOperationOptions) (result ListRecommendedRulesForHostingEnvironmentOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) ListRecommendedRulesForHostingEnvironment(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendations", id.ID()), OptionsObject: options, + Pager: &ListRecommendedRulesForHostingEnvironmentCustomPager{}, + Path: fmt.Sprintf("%s/recommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/recommendations/method_listrecommendedrulesforwebapp.go b/resource-manager/web/2023-12-01/recommendations/method_listrecommendedrulesforwebapp.go index 51e166df89d..45f19bdafd5 100644 --- a/resource-manager/web/2023-12-01/recommendations/method_listrecommendedrulesforwebapp.go +++ b/resource-manager/web/2023-12-01/recommendations/method_listrecommendedrulesforwebapp.go @@ -55,6 +55,18 @@ func (o ListRecommendedRulesForWebAppOperationOptions) ToQuery() *client.QueryPa return &out } +type ListRecommendedRulesForWebAppCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListRecommendedRulesForWebAppCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListRecommendedRulesForWebApp ... func (c RecommendationsClient) ListRecommendedRulesForWebApp(ctx context.Context, id commonids.AppServiceId, options ListRecommendedRulesForWebAppOperationOptions) (result ListRecommendedRulesForWebAppOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c RecommendationsClient) ListRecommendedRulesForWebApp(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/recommendations", id.ID()), OptionsObject: options, + Pager: &ListRecommendedRulesForWebAppCustomPager{}, + Path: fmt.Sprintf("%s/recommendations", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/recommendations/method_resetallfiltersforhostingenvironment.go b/resource-manager/web/2023-12-01/recommendations/method_resetallfiltersforhostingenvironment.go index 37b4b2703d0..23fe068d9bf 100644 --- a/resource-manager/web/2023-12-01/recommendations/method_resetallfiltersforhostingenvironment.go +++ b/resource-manager/web/2023-12-01/recommendations/method_resetallfiltersforhostingenvironment.go @@ -53,8 +53,8 @@ func (c RecommendationsClient) ResetAllFiltersForHostingEnvironment(ctx context. http.StatusNoContent, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/recommendations/reset", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/recommendations/reset", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/resourcehealthmetadata/method_list.go b/resource-manager/web/2023-12-01/resourcehealthmetadata/method_list.go index e92184f3d0e..fc5ca6a83d6 100644 --- a/resource-manager/web/2023-12-01/resourcehealthmetadata/method_list.go +++ b/resource-manager/web/2023-12-01/resourcehealthmetadata/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []ResourceHealthMetadata } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ResourceHealthMetadataClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceHealthMetadataClient) List(ctx context.Context, id commonids.Sub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/resourceHealthMetadata", id.ID()), } diff --git a/resource-manager/web/2023-12-01/resourcehealthmetadata/method_listbyresourcegroup.go b/resource-manager/web/2023-12-01/resourcehealthmetadata/method_listbyresourcegroup.go index c9732b0c927..44f705f6ee9 100644 --- a/resource-manager/web/2023-12-01/resourcehealthmetadata/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-12-01/resourcehealthmetadata/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []ResourceHealthMetadata } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c ResourceHealthMetadataClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceHealthMetadataClient) ListByResourceGroup(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/resourceHealthMetadata", id.ID()), } diff --git a/resource-manager/web/2023-12-01/resourcehealthmetadata/method_listbysite.go b/resource-manager/web/2023-12-01/resourcehealthmetadata/method_listbysite.go index 884a120ea53..8b3c47e6b0c 100644 --- a/resource-manager/web/2023-12-01/resourcehealthmetadata/method_listbysite.go +++ b/resource-manager/web/2023-12-01/resourcehealthmetadata/method_listbysite.go @@ -24,6 +24,18 @@ type ListBySiteCompleteResult struct { Items []ResourceHealthMetadata } +type ListBySiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySite ... func (c ResourceHealthMetadataClient) ListBySite(ctx context.Context, id commonids.AppServiceId) (result ListBySiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceHealthMetadataClient) ListBySite(ctx context.Context, id commoni http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySiteCustomPager{}, Path: fmt.Sprintf("%s/resourceHealthMetadata", id.ID()), } diff --git a/resource-manager/web/2023-12-01/resourcehealthmetadata/method_listbysiteslot.go b/resource-manager/web/2023-12-01/resourcehealthmetadata/method_listbysiteslot.go index 7ed12d15362..49e47b7379d 100644 --- a/resource-manager/web/2023-12-01/resourcehealthmetadata/method_listbysiteslot.go +++ b/resource-manager/web/2023-12-01/resourcehealthmetadata/method_listbysiteslot.go @@ -23,6 +23,18 @@ type ListBySiteSlotCompleteResult struct { Items []ResourceHealthMetadata } +type ListBySiteSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySiteSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySiteSlot ... func (c ResourceHealthMetadataClient) ListBySiteSlot(ctx context.Context, id SlotId) (result ListBySiteSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceHealthMetadataClient) ListBySiteSlot(ctx context.Context, id Slo http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySiteSlotCustomPager{}, Path: fmt.Sprintf("%s/resourceHealthMetadata", id.ID()), } diff --git a/resource-manager/web/2023-12-01/resourceproviders/method_getusagesinlocationlist.go b/resource-manager/web/2023-12-01/resourceproviders/method_getusagesinlocationlist.go index 7d5880c0d1b..34301f4dd5f 100644 --- a/resource-manager/web/2023-12-01/resourceproviders/method_getusagesinlocationlist.go +++ b/resource-manager/web/2023-12-01/resourceproviders/method_getusagesinlocationlist.go @@ -23,6 +23,18 @@ type GetUsagesInLocationlistCompleteResult struct { Items []CsmUsageQuota } +type GetUsagesInLocationlistCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUsagesInLocationlistCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUsagesInLocationlist ... func (c ResourceProvidersClient) GetUsagesInLocationlist(ctx context.Context, id ProviderLocationId) (result GetUsagesInLocationlistOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceProvidersClient) GetUsagesInLocationlist(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUsagesInLocationlistCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/web/2023-12-01/resourceproviders/method_listaseregions.go b/resource-manager/web/2023-12-01/resourceproviders/method_listaseregions.go index e27f79c9edc..401237f0e41 100644 --- a/resource-manager/web/2023-12-01/resourceproviders/method_listaseregions.go +++ b/resource-manager/web/2023-12-01/resourceproviders/method_listaseregions.go @@ -24,6 +24,18 @@ type ListAseRegionsCompleteResult struct { Items []AseRegion } +type ListAseRegionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAseRegionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAseRegions ... func (c ResourceProvidersClient) ListAseRegions(ctx context.Context, id commonids.SubscriptionId) (result ListAseRegionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceProvidersClient) ListAseRegions(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListAseRegionsCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/aseRegions", id.ID()), } diff --git a/resource-manager/web/2023-12-01/resourceproviders/method_listbillingmeters.go b/resource-manager/web/2023-12-01/resourceproviders/method_listbillingmeters.go index 4779b97850c..684c35df7f1 100644 --- a/resource-manager/web/2023-12-01/resourceproviders/method_listbillingmeters.go +++ b/resource-manager/web/2023-12-01/resourceproviders/method_listbillingmeters.go @@ -55,6 +55,18 @@ func (o ListBillingMetersOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListBillingMetersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBillingMetersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBillingMeters ... func (c ResourceProvidersClient) ListBillingMeters(ctx context.Context, id commonids.SubscriptionId, options ListBillingMetersOperationOptions) (result ListBillingMetersOperationResponse, err error) { opts := client.RequestOptions{ @@ -63,8 +75,9 @@ func (c ResourceProvidersClient) ListBillingMeters(ctx context.Context, id commo http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/billingMeters", id.ID()), OptionsObject: options, + Pager: &ListBillingMetersCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/billingMeters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/resourceproviders/method_listcustomhostnamesites.go b/resource-manager/web/2023-12-01/resourceproviders/method_listcustomhostnamesites.go index fea9b3fab7f..62c87e04bf1 100644 --- a/resource-manager/web/2023-12-01/resourceproviders/method_listcustomhostnamesites.go +++ b/resource-manager/web/2023-12-01/resourceproviders/method_listcustomhostnamesites.go @@ -51,6 +51,18 @@ func (o ListCustomHostNameSitesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomHostNameSitesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomHostNameSitesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListCustomHostNameSites ... func (c ResourceProvidersClient) ListCustomHostNameSites(ctx context.Context, id commonids.SubscriptionId, options ListCustomHostNameSitesOperationOptions) (result ListCustomHostNameSitesOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c ResourceProvidersClient) ListCustomHostNameSites(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/customhostnameSites", id.ID()), OptionsObject: options, + Pager: &ListCustomHostNameSitesCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/customhostnameSites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/resourceproviders/method_listgeoregions.go b/resource-manager/web/2023-12-01/resourceproviders/method_listgeoregions.go index e8155e5bc12..ee39002c7a8 100644 --- a/resource-manager/web/2023-12-01/resourceproviders/method_listgeoregions.go +++ b/resource-manager/web/2023-12-01/resourceproviders/method_listgeoregions.go @@ -63,6 +63,18 @@ func (o ListGeoRegionsOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListGeoRegionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListGeoRegionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListGeoRegions ... func (c ResourceProvidersClient) ListGeoRegions(ctx context.Context, id commonids.SubscriptionId, options ListGeoRegionsOperationOptions) (result ListGeoRegionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -71,8 +83,9 @@ func (c ResourceProvidersClient) ListGeoRegions(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/geoRegions", id.ID()), OptionsObject: options, + Pager: &ListGeoRegionsCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/geoRegions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/resourceproviders/method_listpremieraddonoffers.go b/resource-manager/web/2023-12-01/resourceproviders/method_listpremieraddonoffers.go index e7916ca9237..330e4571b61 100644 --- a/resource-manager/web/2023-12-01/resourceproviders/method_listpremieraddonoffers.go +++ b/resource-manager/web/2023-12-01/resourceproviders/method_listpremieraddonoffers.go @@ -24,6 +24,18 @@ type ListPremierAddOnOffersCompleteResult struct { Items []PremierAddOnOffer } +type ListPremierAddOnOffersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPremierAddOnOffersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPremierAddOnOffers ... func (c ResourceProvidersClient) ListPremierAddOnOffers(ctx context.Context, id commonids.SubscriptionId) (result ListPremierAddOnOffersOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceProvidersClient) ListPremierAddOnOffers(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPremierAddOnOffersCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/premieraddonoffers", id.ID()), } diff --git a/resource-manager/web/2023-12-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go b/resource-manager/web/2023-12-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go index c1bffee4cb3..b759ab015d3 100644 --- a/resource-manager/web/2023-12-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go +++ b/resource-manager/web/2023-12-01/resourceproviders/method_listsiteidentifiersassignedtohostname.go @@ -24,6 +24,18 @@ type ListSiteIdentifiersAssignedToHostNameCompleteResult struct { Items []Identifier } +type ListSiteIdentifiersAssignedToHostNameCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteIdentifiersAssignedToHostNameCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteIdentifiersAssignedToHostName ... func (c ResourceProvidersClient) ListSiteIdentifiersAssignedToHostName(ctx context.Context, id commonids.SubscriptionId, input NameIdentifier) (result ListSiteIdentifiersAssignedToHostNameOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c ResourceProvidersClient) ListSiteIdentifiersAssignedToHostName(ctx conte http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSiteIdentifiersAssignedToHostNameCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/listSitesAssignedToHostName", id.ID()), } diff --git a/resource-manager/web/2023-12-01/resourceproviders/method_listsourcecontrols.go b/resource-manager/web/2023-12-01/resourceproviders/method_listsourcecontrols.go index 91c42d2744a..b06f0d3e624 100644 --- a/resource-manager/web/2023-12-01/resourceproviders/method_listsourcecontrols.go +++ b/resource-manager/web/2023-12-01/resourceproviders/method_listsourcecontrols.go @@ -23,6 +23,18 @@ type ListSourceControlsCompleteResult struct { Items []SourceControl } +type ListSourceControlsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSourceControlsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSourceControls ... func (c ResourceProvidersClient) ListSourceControls(ctx context.Context) (result ListSourceControlsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ResourceProvidersClient) ListSourceControls(ctx context.Context) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSourceControlsCustomPager{}, Path: "/providers/Microsoft.Web/sourceControls", } diff --git a/resource-manager/web/2023-12-01/staticsites/method_getbuilddatabaseconnections.go b/resource-manager/web/2023-12-01/staticsites/method_getbuilddatabaseconnections.go index a32ff1e21ee..7b74f18507d 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_getbuilddatabaseconnections.go +++ b/resource-manager/web/2023-12-01/staticsites/method_getbuilddatabaseconnections.go @@ -23,6 +23,18 @@ type GetBuildDatabaseConnectionsCompleteResult struct { Items []DatabaseConnection } +type GetBuildDatabaseConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBuildDatabaseConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBuildDatabaseConnections ... func (c StaticSitesClient) GetBuildDatabaseConnections(ctx context.Context, id BuildId) (result GetBuildDatabaseConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetBuildDatabaseConnections(ctx context.Context, id B http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetBuildDatabaseConnectionsCustomPager{}, Path: fmt.Sprintf("%s/databaseConnections", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_getbuilddatabaseconnectionswithdetails.go b/resource-manager/web/2023-12-01/staticsites/method_getbuilddatabaseconnectionswithdetails.go index 6ce150c5f7b..dca1df6d320 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_getbuilddatabaseconnectionswithdetails.go +++ b/resource-manager/web/2023-12-01/staticsites/method_getbuilddatabaseconnectionswithdetails.go @@ -23,6 +23,18 @@ type GetBuildDatabaseConnectionsWithDetailsCompleteResult struct { Items []DatabaseConnection } +type GetBuildDatabaseConnectionsWithDetailsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetBuildDatabaseConnectionsWithDetailsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetBuildDatabaseConnectionsWithDetails ... func (c StaticSitesClient) GetBuildDatabaseConnectionsWithDetails(ctx context.Context, id BuildId) (result GetBuildDatabaseConnectionsWithDetailsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetBuildDatabaseConnectionsWithDetails(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetBuildDatabaseConnectionsWithDetailsCustomPager{}, Path: fmt.Sprintf("%s/showDatabaseConnections", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_getdatabaseconnections.go b/resource-manager/web/2023-12-01/staticsites/method_getdatabaseconnections.go index 030a9d42ab7..47dcec6884d 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_getdatabaseconnections.go +++ b/resource-manager/web/2023-12-01/staticsites/method_getdatabaseconnections.go @@ -23,6 +23,18 @@ type GetDatabaseConnectionsCompleteResult struct { Items []DatabaseConnection } +type GetDatabaseConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDatabaseConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDatabaseConnections ... func (c StaticSitesClient) GetDatabaseConnections(ctx context.Context, id StaticSiteId) (result GetDatabaseConnectionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetDatabaseConnections(ctx context.Context, id Static http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetDatabaseConnectionsCustomPager{}, Path: fmt.Sprintf("%s/databaseConnections", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_getdatabaseconnectionswithdetails.go b/resource-manager/web/2023-12-01/staticsites/method_getdatabaseconnectionswithdetails.go index 87437dabadd..4b57d3116ee 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_getdatabaseconnectionswithdetails.go +++ b/resource-manager/web/2023-12-01/staticsites/method_getdatabaseconnectionswithdetails.go @@ -23,6 +23,18 @@ type GetDatabaseConnectionsWithDetailsCompleteResult struct { Items []DatabaseConnection } +type GetDatabaseConnectionsWithDetailsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetDatabaseConnectionsWithDetailsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetDatabaseConnectionsWithDetails ... func (c StaticSitesClient) GetDatabaseConnectionsWithDetails(ctx context.Context, id StaticSiteId) (result GetDatabaseConnectionsWithDetailsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetDatabaseConnectionsWithDetails(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &GetDatabaseConnectionsWithDetailsCustomPager{}, Path: fmt.Sprintf("%s/showDatabaseConnections", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_getlinkedbackends.go b/resource-manager/web/2023-12-01/staticsites/method_getlinkedbackends.go index 17035b006d8..8b45e6df96b 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_getlinkedbackends.go +++ b/resource-manager/web/2023-12-01/staticsites/method_getlinkedbackends.go @@ -23,6 +23,18 @@ type GetLinkedBackendsCompleteResult struct { Items []StaticSiteLinkedBackendARMResource } +type GetLinkedBackendsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetLinkedBackendsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetLinkedBackends ... func (c StaticSitesClient) GetLinkedBackends(ctx context.Context, id StaticSiteId) (result GetLinkedBackendsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetLinkedBackends(ctx context.Context, id StaticSiteI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetLinkedBackendsCustomPager{}, Path: fmt.Sprintf("%s/linkedBackends", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_getlinkedbackendsforbuild.go b/resource-manager/web/2023-12-01/staticsites/method_getlinkedbackendsforbuild.go index ae42e346542..78d17e5d639 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_getlinkedbackendsforbuild.go +++ b/resource-manager/web/2023-12-01/staticsites/method_getlinkedbackendsforbuild.go @@ -23,6 +23,18 @@ type GetLinkedBackendsForBuildCompleteResult struct { Items []StaticSiteLinkedBackendARMResource } +type GetLinkedBackendsForBuildCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetLinkedBackendsForBuildCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetLinkedBackendsForBuild ... func (c StaticSitesClient) GetLinkedBackendsForBuild(ctx context.Context, id BuildId) (result GetLinkedBackendsForBuildOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetLinkedBackendsForBuild(ctx context.Context, id Bui http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetLinkedBackendsForBuildCustomPager{}, Path: fmt.Sprintf("%s/linkedBackends", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_getprivateendpointconnectionlist.go b/resource-manager/web/2023-12-01/staticsites/method_getprivateendpointconnectionlist.go index 56dadb4539a..7de0a9af9fb 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_getprivateendpointconnectionlist.go +++ b/resource-manager/web/2023-12-01/staticsites/method_getprivateendpointconnectionlist.go @@ -23,6 +23,18 @@ type GetPrivateEndpointConnectionListCompleteResult struct { Items []RemotePrivateEndpointConnectionARMResource } +type GetPrivateEndpointConnectionListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetPrivateEndpointConnectionListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetPrivateEndpointConnectionList ... func (c StaticSitesClient) GetPrivateEndpointConnectionList(ctx context.Context, id StaticSiteId) (result GetPrivateEndpointConnectionListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetPrivateEndpointConnectionList(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetPrivateEndpointConnectionListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_getstaticsitebuilds.go b/resource-manager/web/2023-12-01/staticsites/method_getstaticsitebuilds.go index 574f7569255..b3a188507cf 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_getstaticsitebuilds.go +++ b/resource-manager/web/2023-12-01/staticsites/method_getstaticsitebuilds.go @@ -23,6 +23,18 @@ type GetStaticSiteBuildsCompleteResult struct { Items []StaticSiteBuildARMResource } +type GetStaticSiteBuildsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetStaticSiteBuildsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetStaticSiteBuilds ... func (c StaticSitesClient) GetStaticSiteBuilds(ctx context.Context, id StaticSiteId) (result GetStaticSiteBuildsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetStaticSiteBuilds(ctx context.Context, id StaticSit http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetStaticSiteBuildsCustomPager{}, Path: fmt.Sprintf("%s/builds", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_getstaticsitesbyresourcegroup.go b/resource-manager/web/2023-12-01/staticsites/method_getstaticsitesbyresourcegroup.go index 1225e3389a2..6c479510d72 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_getstaticsitesbyresourcegroup.go +++ b/resource-manager/web/2023-12-01/staticsites/method_getstaticsitesbyresourcegroup.go @@ -24,6 +24,18 @@ type GetStaticSitesByResourceGroupCompleteResult struct { Items []StaticSiteARMResource } +type GetStaticSitesByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetStaticSitesByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetStaticSitesByResourceGroup ... func (c StaticSitesClient) GetStaticSitesByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result GetStaticSitesByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StaticSitesClient) GetStaticSitesByResourceGroup(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetStaticSitesByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/staticSites", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_getuserprovidedfunctionappsforstaticsite.go b/resource-manager/web/2023-12-01/staticsites/method_getuserprovidedfunctionappsforstaticsite.go index 6025e193b2a..800d5ab1d72 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_getuserprovidedfunctionappsforstaticsite.go +++ b/resource-manager/web/2023-12-01/staticsites/method_getuserprovidedfunctionappsforstaticsite.go @@ -23,6 +23,18 @@ type GetUserProvidedFunctionAppsForStaticSiteCompleteResult struct { Items []StaticSiteUserProvidedFunctionAppARMResource } +type GetUserProvidedFunctionAppsForStaticSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUserProvidedFunctionAppsForStaticSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUserProvidedFunctionAppsForStaticSite ... func (c StaticSitesClient) GetUserProvidedFunctionAppsForStaticSite(ctx context.Context, id StaticSiteId) (result GetUserProvidedFunctionAppsForStaticSiteOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetUserProvidedFunctionAppsForStaticSite(ctx context. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUserProvidedFunctionAppsForStaticSiteCustomPager{}, Path: fmt.Sprintf("%s/userProvidedFunctionApps", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_getuserprovidedfunctionappsforstaticsitebuild.go b/resource-manager/web/2023-12-01/staticsites/method_getuserprovidedfunctionappsforstaticsitebuild.go index a7a48822a0a..b86539d1801 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_getuserprovidedfunctionappsforstaticsitebuild.go +++ b/resource-manager/web/2023-12-01/staticsites/method_getuserprovidedfunctionappsforstaticsitebuild.go @@ -23,6 +23,18 @@ type GetUserProvidedFunctionAppsForStaticSiteBuildCompleteResult struct { Items []StaticSiteUserProvidedFunctionAppARMResource } +type GetUserProvidedFunctionAppsForStaticSiteBuildCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetUserProvidedFunctionAppsForStaticSiteBuildCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetUserProvidedFunctionAppsForStaticSiteBuild ... func (c StaticSitesClient) GetUserProvidedFunctionAppsForStaticSiteBuild(ctx context.Context, id BuildId) (result GetUserProvidedFunctionAppsForStaticSiteBuildOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) GetUserProvidedFunctionAppsForStaticSiteBuild(ctx con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetUserProvidedFunctionAppsForStaticSiteBuildCustomPager{}, Path: fmt.Sprintf("%s/userProvidedFunctionApps", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_list.go b/resource-manager/web/2023-12-01/staticsites/method_list.go index 21d87169b53..e071040c10d 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_list.go +++ b/resource-manager/web/2023-12-01/staticsites/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []StaticSiteARMResource } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c StaticSitesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c StaticSitesClient) List(ctx context.Context, id commonids.SubscriptionId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/staticSites", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_listbasicauth.go b/resource-manager/web/2023-12-01/staticsites/method_listbasicauth.go index 95300943673..3c466f4f588 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_listbasicauth.go +++ b/resource-manager/web/2023-12-01/staticsites/method_listbasicauth.go @@ -23,6 +23,18 @@ type ListBasicAuthCompleteResult struct { Items []StaticSiteBasicAuthPropertiesARMResource } +type ListBasicAuthCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBasicAuthCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBasicAuth ... func (c StaticSitesClient) ListBasicAuth(ctx context.Context, id StaticSiteId) (result ListBasicAuthOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListBasicAuth(ctx context.Context, id StaticSiteId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBasicAuthCustomPager{}, Path: fmt.Sprintf("%s/basicAuth", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_liststaticsitebuildfunctions.go b/resource-manager/web/2023-12-01/staticsites/method_liststaticsitebuildfunctions.go index 70fbabed186..3f2f7d75e25 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_liststaticsitebuildfunctions.go +++ b/resource-manager/web/2023-12-01/staticsites/method_liststaticsitebuildfunctions.go @@ -23,6 +23,18 @@ type ListStaticSiteBuildFunctionsCompleteResult struct { Items []StaticSiteFunctionOverviewARMResource } +type ListStaticSiteBuildFunctionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListStaticSiteBuildFunctionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListStaticSiteBuildFunctions ... func (c StaticSitesClient) ListStaticSiteBuildFunctions(ctx context.Context, id BuildId) (result ListStaticSiteBuildFunctionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListStaticSiteBuildFunctions(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListStaticSiteBuildFunctionsCustomPager{}, Path: fmt.Sprintf("%s/functions", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_liststaticsitecustomdomains.go b/resource-manager/web/2023-12-01/staticsites/method_liststaticsitecustomdomains.go index 6e912e97840..da0d6cea4e9 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_liststaticsitecustomdomains.go +++ b/resource-manager/web/2023-12-01/staticsites/method_liststaticsitecustomdomains.go @@ -23,6 +23,18 @@ type ListStaticSiteCustomDomainsCompleteResult struct { Items []StaticSiteCustomDomainOverviewARMResource } +type ListStaticSiteCustomDomainsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListStaticSiteCustomDomainsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListStaticSiteCustomDomains ... func (c StaticSitesClient) ListStaticSiteCustomDomains(ctx context.Context, id StaticSiteId) (result ListStaticSiteCustomDomainsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListStaticSiteCustomDomains(ctx context.Context, id S http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListStaticSiteCustomDomainsCustomPager{}, Path: fmt.Sprintf("%s/customDomains", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_liststaticsitefunctions.go b/resource-manager/web/2023-12-01/staticsites/method_liststaticsitefunctions.go index 0549ce204f3..625443d50b3 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_liststaticsitefunctions.go +++ b/resource-manager/web/2023-12-01/staticsites/method_liststaticsitefunctions.go @@ -23,6 +23,18 @@ type ListStaticSiteFunctionsCompleteResult struct { Items []StaticSiteFunctionOverviewARMResource } +type ListStaticSiteFunctionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListStaticSiteFunctionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListStaticSiteFunctions ... func (c StaticSitesClient) ListStaticSiteFunctions(ctx context.Context, id StaticSiteId) (result ListStaticSiteFunctionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListStaticSiteFunctions(ctx context.Context, id Stati http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListStaticSiteFunctionsCustomPager{}, Path: fmt.Sprintf("%s/functions", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_liststaticsiteusers.go b/resource-manager/web/2023-12-01/staticsites/method_liststaticsiteusers.go index f9d9a2e33da..d711c5393b9 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_liststaticsiteusers.go +++ b/resource-manager/web/2023-12-01/staticsites/method_liststaticsiteusers.go @@ -23,6 +23,18 @@ type ListStaticSiteUsersCompleteResult struct { Items []StaticSiteUserARMResource } +type ListStaticSiteUsersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListStaticSiteUsersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListStaticSiteUsers ... func (c StaticSitesClient) ListStaticSiteUsers(ctx context.Context, id AuthProviderId) (result ListStaticSiteUsersOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c StaticSitesClient) ListStaticSiteUsers(ctx context.Context, id AuthProvi http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListStaticSiteUsersCustomPager{}, Path: fmt.Sprintf("%s/listUsers", id.ID()), } diff --git a/resource-manager/web/2023-12-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go b/resource-manager/web/2023-12-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go index cda8ba615de..5cfabf447f9 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go +++ b/resource-manager/web/2023-12-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go @@ -57,8 +57,8 @@ func (c StaticSitesClient) RegisterUserProvidedFunctionAppWithStaticSite(ctx con http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go b/resource-manager/web/2023-12-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go index a3f67cbfd6e..32f030cb1b3 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go +++ b/resource-manager/web/2023-12-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go @@ -57,8 +57,8 @@ func (c StaticSitesClient) RegisterUserProvidedFunctionAppWithStaticSiteBuild(ct http.StatusOK, }, HttpMethod: http.MethodPut, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/staticsites/method_unlinkbackend.go b/resource-manager/web/2023-12-01/staticsites/method_unlinkbackend.go index 98066240969..897c1be7925 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_unlinkbackend.go +++ b/resource-manager/web/2023-12-01/staticsites/method_unlinkbackend.go @@ -53,8 +53,8 @@ func (c StaticSitesClient) UnlinkBackend(ctx context.Context, id LinkedBackendId http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/staticsites/method_unlinkbackendfrombuild.go b/resource-manager/web/2023-12-01/staticsites/method_unlinkbackendfrombuild.go index 9ef02435e54..7e356363af4 100644 --- a/resource-manager/web/2023-12-01/staticsites/method_unlinkbackendfrombuild.go +++ b/resource-manager/web/2023-12-01/staticsites/method_unlinkbackendfrombuild.go @@ -53,8 +53,8 @@ func (c StaticSitesClient) UnlinkBackendFromBuild(ctx context.Context, id BuildL http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/topleveldomains/method_list.go b/resource-manager/web/2023-12-01/topleveldomains/method_list.go index c985fabe4f6..3047b40a525 100644 --- a/resource-manager/web/2023-12-01/topleveldomains/method_list.go +++ b/resource-manager/web/2023-12-01/topleveldomains/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []TopLevelDomain } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c TopLevelDomainsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c TopLevelDomainsClient) List(ctx context.Context, id commonids.Subscripti http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.DomainRegistration/topLevelDomains", id.ID()), } diff --git a/resource-manager/web/2023-12-01/topleveldomains/method_listagreements.go b/resource-manager/web/2023-12-01/topleveldomains/method_listagreements.go index bd043fd89ed..aef7718cae9 100644 --- a/resource-manager/web/2023-12-01/topleveldomains/method_listagreements.go +++ b/resource-manager/web/2023-12-01/topleveldomains/method_listagreements.go @@ -23,6 +23,18 @@ type ListAgreementsCompleteResult struct { Items []TldLegalAgreement } +type ListAgreementsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAgreementsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListAgreements ... func (c TopLevelDomainsClient) ListAgreements(ctx context.Context, id TopLevelDomainId, input TopLevelDomainAgreementOption) (result ListAgreementsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c TopLevelDomainsClient) ListAgreements(ctx context.Context, id TopLevelDo http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListAgreementsCustomPager{}, Path: fmt.Sprintf("%s/listAgreements", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostname.go b/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostname.go index 6f783084cf7..b5b486f1e77 100644 --- a/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostname.go +++ b/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostname.go @@ -54,8 +54,8 @@ func (c WebAppsClient) AnalyzeCustomHostname(ctx context.Context, id commonids.A http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/analyzeCustomHostname", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/analyzeCustomHostname", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostnameslot.go b/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostnameslot.go index a0f093109eb..4c608ff0d59 100644 --- a/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostnameslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostnameslot.go @@ -53,8 +53,8 @@ func (c WebAppsClient) AnalyzeCustomHostnameSlot(ctx context.Context, id SlotId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/analyzeCustomHostname", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/analyzeCustomHostname", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_delete.go b/resource-manager/web/2023-12-01/webapps/method_delete.go index e9d88eba269..491e0c6eca1 100644 --- a/resource-manager/web/2023-12-01/webapps/method_delete.go +++ b/resource-manager/web/2023-12-01/webapps/method_delete.go @@ -58,8 +58,8 @@ func (c WebAppsClient) Delete(ctx context.Context, id commonids.AppServiceId, op http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_deleteslot.go b/resource-manager/web/2023-12-01/webapps/method_deleteslot.go index b134af54533..c2d4db43a52 100644 --- a/resource-manager/web/2023-12-01/webapps/method_deleteslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_deleteslot.go @@ -57,8 +57,8 @@ func (c WebAppsClient) DeleteSlot(ctx context.Context, id SlotId, options Delete http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: id.ID(), OptionsObject: options, + Path: id.ID(), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrol.go b/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrol.go index 1de5d801f35..7416e19fd09 100644 --- a/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrol.go +++ b/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrol.go @@ -54,8 +54,8 @@ func (c WebAppsClient) DeleteSourceControl(ctx context.Context, id commonids.App http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrolslot.go b/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrolslot.go index 58843d09923..571dfbab3ab 100644 --- a/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrolslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrolslot.go @@ -53,8 +53,8 @@ func (c WebAppsClient) DeleteSourceControlSlot(ctx context.Context, id SlotId, o http.StatusOK, }, HttpMethod: http.MethodDelete, - Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/sourceControls/web", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_getappsettingskeyvaultreferences.go b/resource-manager/web/2023-12-01/webapps/method_getappsettingskeyvaultreferences.go index 13789dc34c6..043c62e221d 100644 --- a/resource-manager/web/2023-12-01/webapps/method_getappsettingskeyvaultreferences.go +++ b/resource-manager/web/2023-12-01/webapps/method_getappsettingskeyvaultreferences.go @@ -24,6 +24,18 @@ type GetAppSettingsKeyVaultReferencesCompleteResult struct { Items []ApiKVReference } +type GetAppSettingsKeyVaultReferencesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAppSettingsKeyVaultReferencesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAppSettingsKeyVaultReferences ... func (c WebAppsClient) GetAppSettingsKeyVaultReferences(ctx context.Context, id commonids.AppServiceId) (result GetAppSettingsKeyVaultReferencesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) GetAppSettingsKeyVaultReferences(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetAppSettingsKeyVaultReferencesCustomPager{}, Path: fmt.Sprintf("%s/config/configReferences/appSettings", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_getappsettingskeyvaultreferencesslot.go b/resource-manager/web/2023-12-01/webapps/method_getappsettingskeyvaultreferencesslot.go index 31339b54910..ee5c3cbf23a 100644 --- a/resource-manager/web/2023-12-01/webapps/method_getappsettingskeyvaultreferencesslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_getappsettingskeyvaultreferencesslot.go @@ -23,6 +23,18 @@ type GetAppSettingsKeyVaultReferencesSlotCompleteResult struct { Items []ApiKVReference } +type GetAppSettingsKeyVaultReferencesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetAppSettingsKeyVaultReferencesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetAppSettingsKeyVaultReferencesSlot ... func (c WebAppsClient) GetAppSettingsKeyVaultReferencesSlot(ctx context.Context, id SlotId) (result GetAppSettingsKeyVaultReferencesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) GetAppSettingsKeyVaultReferencesSlot(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetAppSettingsKeyVaultReferencesSlotCustomPager{}, Path: fmt.Sprintf("%s/config/configReferences/appSettings", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnectionlist.go b/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnectionlist.go index bc56c125636..7eab86729c0 100644 --- a/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnectionlist.go +++ b/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnectionlist.go @@ -24,6 +24,18 @@ type GetPrivateEndpointConnectionListCompleteResult struct { Items []RemotePrivateEndpointConnectionARMResource } +type GetPrivateEndpointConnectionListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetPrivateEndpointConnectionListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetPrivateEndpointConnectionList ... func (c WebAppsClient) GetPrivateEndpointConnectionList(ctx context.Context, id commonids.AppServiceId) (result GetPrivateEndpointConnectionListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) GetPrivateEndpointConnectionList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetPrivateEndpointConnectionListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnectionlistslot.go b/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnectionlistslot.go index 3c81c133f28..46bf684dad2 100644 --- a/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnectionlistslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnectionlistslot.go @@ -23,6 +23,18 @@ type GetPrivateEndpointConnectionListSlotCompleteResult struct { Items []RemotePrivateEndpointConnectionARMResource } +type GetPrivateEndpointConnectionListSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetPrivateEndpointConnectionListSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetPrivateEndpointConnectionListSlot ... func (c WebAppsClient) GetPrivateEndpointConnectionListSlot(ctx context.Context, id SlotId) (result GetPrivateEndpointConnectionListSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) GetPrivateEndpointConnectionListSlot(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetPrivateEndpointConnectionListSlotCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go b/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go index cc3f4652fd2..6544219dc39 100644 --- a/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go +++ b/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreferences.go @@ -24,6 +24,18 @@ type GetSiteConnectionStringKeyVaultReferencesCompleteResult struct { Items []ApiKVReference } +type GetSiteConnectionStringKeyVaultReferencesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetSiteConnectionStringKeyVaultReferencesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetSiteConnectionStringKeyVaultReferences ... func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferences(ctx context.Context, id commonids.AppServiceId) (result GetSiteConnectionStringKeyVaultReferencesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferences(ctx context.Con http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetSiteConnectionStringKeyVaultReferencesCustomPager{}, Path: fmt.Sprintf("%s/config/configReferences/connectionStrings", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go b/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go index 463f2f7c4b4..94803ca2384 100644 --- a/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreferencesslot.go @@ -23,6 +23,18 @@ type GetSiteConnectionStringKeyVaultReferencesSlotCompleteResult struct { Items []ApiKVReference } +type GetSiteConnectionStringKeyVaultReferencesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *GetSiteConnectionStringKeyVaultReferencesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // GetSiteConnectionStringKeyVaultReferencesSlot ... func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferencesSlot(ctx context.Context, id SlotId) (result GetSiteConnectionStringKeyVaultReferencesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferencesSlot(ctx context http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &GetSiteConnectionStringKeyVaultReferencesSlotCustomPager{}, Path: fmt.Sprintf("%s/config/configReferences/connectionStrings", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_list.go b/resource-manager/web/2023-12-01/webapps/method_list.go index bfeac1c6a6a..460b637e374 100644 --- a/resource-manager/web/2023-12-01/webapps/method_list.go +++ b/resource-manager/web/2023-12-01/webapps/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Site } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WebAppsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) List(ctx context.Context, id commonids.SubscriptionId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Web/sites", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listbackups.go b/resource-manager/web/2023-12-01/webapps/method_listbackups.go index 5a8136aba75..a8b70b26ecf 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listbackups.go +++ b/resource-manager/web/2023-12-01/webapps/method_listbackups.go @@ -24,6 +24,18 @@ type ListBackupsCompleteResult struct { Items []BackupItem } +type ListBackupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBackupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBackups ... func (c WebAppsClient) ListBackups(ctx context.Context, id commonids.AppServiceId) (result ListBackupsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListBackups(ctx context.Context, id commonids.AppServiceI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBackupsCustomPager{}, Path: fmt.Sprintf("%s/backups", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listbackupsslot.go b/resource-manager/web/2023-12-01/webapps/method_listbackupsslot.go index 3c3b88bb59a..c76afbae931 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listbackupsslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listbackupsslot.go @@ -23,6 +23,18 @@ type ListBackupsSlotCompleteResult struct { Items []BackupItem } +type ListBackupsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBackupsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBackupsSlot ... func (c WebAppsClient) ListBackupsSlot(ctx context.Context, id SlotId) (result ListBackupsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListBackupsSlot(ctx context.Context, id SlotId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBackupsSlotCustomPager{}, Path: fmt.Sprintf("%s/backups", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listbasicpublishingcredentialspolicies.go b/resource-manager/web/2023-12-01/webapps/method_listbasicpublishingcredentialspolicies.go index bb1f59c1b25..48de93b0880 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listbasicpublishingcredentialspolicies.go +++ b/resource-manager/web/2023-12-01/webapps/method_listbasicpublishingcredentialspolicies.go @@ -24,6 +24,18 @@ type ListBasicPublishingCredentialsPoliciesCompleteResult struct { Items []CsmPublishingCredentialsPoliciesEntity } +type ListBasicPublishingCredentialsPoliciesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBasicPublishingCredentialsPoliciesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBasicPublishingCredentialsPolicies ... func (c WebAppsClient) ListBasicPublishingCredentialsPolicies(ctx context.Context, id commonids.AppServiceId) (result ListBasicPublishingCredentialsPoliciesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListBasicPublishingCredentialsPolicies(ctx context.Contex http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBasicPublishingCredentialsPoliciesCustomPager{}, Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go b/resource-manager/web/2023-12-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go index a4fb1885aec..6bfb2b86ffe 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listbasicpublishingcredentialspoliciesslot.go @@ -23,6 +23,18 @@ type ListBasicPublishingCredentialsPoliciesSlotCompleteResult struct { Items []CsmPublishingCredentialsPoliciesEntity } +type ListBasicPublishingCredentialsPoliciesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBasicPublishingCredentialsPoliciesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBasicPublishingCredentialsPoliciesSlot ... func (c WebAppsClient) ListBasicPublishingCredentialsPoliciesSlot(ctx context.Context, id SlotId) (result ListBasicPublishingCredentialsPoliciesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListBasicPublishingCredentialsPoliciesSlot(ctx context.Co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBasicPublishingCredentialsPoliciesSlotCustomPager{}, Path: fmt.Sprintf("%s/basicPublishingCredentialsPolicies", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listbyresourcegroup.go b/resource-manager/web/2023-12-01/webapps/method_listbyresourcegroup.go index 2fc1ae89f5d..3f9b2569d77 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listbyresourcegroup.go +++ b/resource-manager/web/2023-12-01/webapps/method_listbyresourcegroup.go @@ -51,6 +51,18 @@ func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WebAppsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c WebAppsClient) ListByResourceGroup(ctx context.Context, id commonids.Res http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/providers/Microsoft.Web/sites", id.ID()), OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Web/sites", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_listconfigurations.go b/resource-manager/web/2023-12-01/webapps/method_listconfigurations.go index 5f05ecf1172..8e804a2f12c 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listconfigurations.go +++ b/resource-manager/web/2023-12-01/webapps/method_listconfigurations.go @@ -24,6 +24,18 @@ type ListConfigurationsCompleteResult struct { Items []SiteConfigResource } +type ListConfigurationsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConfigurationsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConfigurations ... func (c WebAppsClient) ListConfigurations(ctx context.Context, id commonids.AppServiceId) (result ListConfigurationsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListConfigurations(ctx context.Context, id commonids.AppS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConfigurationsCustomPager{}, Path: fmt.Sprintf("%s/config", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listconfigurationsnapshotinfo.go b/resource-manager/web/2023-12-01/webapps/method_listconfigurationsnapshotinfo.go index 652bf6cf34d..c3b12636fbb 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listconfigurationsnapshotinfo.go +++ b/resource-manager/web/2023-12-01/webapps/method_listconfigurationsnapshotinfo.go @@ -24,6 +24,18 @@ type ListConfigurationSnapshotInfoCompleteResult struct { Items []SiteConfigurationSnapshotInfo } +type ListConfigurationSnapshotInfoCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConfigurationSnapshotInfoCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConfigurationSnapshotInfo ... func (c WebAppsClient) ListConfigurationSnapshotInfo(ctx context.Context, id commonids.AppServiceId) (result ListConfigurationSnapshotInfoOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListConfigurationSnapshotInfo(ctx context.Context, id com http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConfigurationSnapshotInfoCustomPager{}, Path: fmt.Sprintf("%s/config/web/snapshots", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listconfigurationsnapshotinfoslot.go b/resource-manager/web/2023-12-01/webapps/method_listconfigurationsnapshotinfoslot.go index 44202f38771..cef77008f85 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listconfigurationsnapshotinfoslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listconfigurationsnapshotinfoslot.go @@ -23,6 +23,18 @@ type ListConfigurationSnapshotInfoSlotCompleteResult struct { Items []SiteConfigurationSnapshotInfo } +type ListConfigurationSnapshotInfoSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConfigurationSnapshotInfoSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConfigurationSnapshotInfoSlot ... func (c WebAppsClient) ListConfigurationSnapshotInfoSlot(ctx context.Context, id SlotId) (result ListConfigurationSnapshotInfoSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListConfigurationSnapshotInfoSlot(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConfigurationSnapshotInfoSlotCustomPager{}, Path: fmt.Sprintf("%s/config/web/snapshots", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listconfigurationsslot.go b/resource-manager/web/2023-12-01/webapps/method_listconfigurationsslot.go index f80f201e6f4..4e3d0acefe3 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listconfigurationsslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listconfigurationsslot.go @@ -23,6 +23,18 @@ type ListConfigurationsSlotCompleteResult struct { Items []SiteConfigResource } +type ListConfigurationsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListConfigurationsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListConfigurationsSlot ... func (c WebAppsClient) ListConfigurationsSlot(ctx context.Context, id SlotId) (result ListConfigurationsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListConfigurationsSlot(ctx context.Context, id SlotId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListConfigurationsSlotCustomPager{}, Path: fmt.Sprintf("%s/config", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listcontinuouswebjobs.go b/resource-manager/web/2023-12-01/webapps/method_listcontinuouswebjobs.go index 8e9ad1c4e72..63d3df76b91 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listcontinuouswebjobs.go +++ b/resource-manager/web/2023-12-01/webapps/method_listcontinuouswebjobs.go @@ -24,6 +24,18 @@ type ListContinuousWebJobsCompleteResult struct { Items []ContinuousWebJob } +type ListContinuousWebJobsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListContinuousWebJobsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListContinuousWebJobs ... func (c WebAppsClient) ListContinuousWebJobs(ctx context.Context, id commonids.AppServiceId) (result ListContinuousWebJobsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListContinuousWebJobs(ctx context.Context, id commonids.A http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListContinuousWebJobsCustomPager{}, Path: fmt.Sprintf("%s/continuousWebJobs", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listcontinuouswebjobsslot.go b/resource-manager/web/2023-12-01/webapps/method_listcontinuouswebjobsslot.go index 1004a452a7d..f187ed28ce3 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listcontinuouswebjobsslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listcontinuouswebjobsslot.go @@ -23,6 +23,18 @@ type ListContinuousWebJobsSlotCompleteResult struct { Items []ContinuousWebJob } +type ListContinuousWebJobsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListContinuousWebJobsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListContinuousWebJobsSlot ... func (c WebAppsClient) ListContinuousWebJobsSlot(ctx context.Context, id SlotId) (result ListContinuousWebJobsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListContinuousWebJobsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListContinuousWebJobsSlotCustomPager{}, Path: fmt.Sprintf("%s/continuousWebJobs", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listdeployments.go b/resource-manager/web/2023-12-01/webapps/method_listdeployments.go index dbc3fe7702d..62fe0173758 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listdeployments.go +++ b/resource-manager/web/2023-12-01/webapps/method_listdeployments.go @@ -24,6 +24,18 @@ type ListDeploymentsCompleteResult struct { Items []Deployment } +type ListDeploymentsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDeploymentsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDeployments ... func (c WebAppsClient) ListDeployments(ctx context.Context, id commonids.AppServiceId) (result ListDeploymentsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListDeployments(ctx context.Context, id commonids.AppServ http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDeploymentsCustomPager{}, Path: fmt.Sprintf("%s/deployments", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listdeploymentsslot.go b/resource-manager/web/2023-12-01/webapps/method_listdeploymentsslot.go index a654f040dda..d42866c7b88 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listdeploymentsslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listdeploymentsslot.go @@ -23,6 +23,18 @@ type ListDeploymentsSlotCompleteResult struct { Items []Deployment } +type ListDeploymentsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDeploymentsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDeploymentsSlot ... func (c WebAppsClient) ListDeploymentsSlot(ctx context.Context, id SlotId) (result ListDeploymentsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListDeploymentsSlot(ctx context.Context, id SlotId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDeploymentsSlotCustomPager{}, Path: fmt.Sprintf("%s/deployments", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listdomainownershipidentifiers.go b/resource-manager/web/2023-12-01/webapps/method_listdomainownershipidentifiers.go index 1e11d65c73d..113e62c90b8 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listdomainownershipidentifiers.go +++ b/resource-manager/web/2023-12-01/webapps/method_listdomainownershipidentifiers.go @@ -24,6 +24,18 @@ type ListDomainOwnershipIdentifiersCompleteResult struct { Items []Identifier } +type ListDomainOwnershipIdentifiersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDomainOwnershipIdentifiersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDomainOwnershipIdentifiers ... func (c WebAppsClient) ListDomainOwnershipIdentifiers(ctx context.Context, id commonids.AppServiceId) (result ListDomainOwnershipIdentifiersOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListDomainOwnershipIdentifiers(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDomainOwnershipIdentifiersCustomPager{}, Path: fmt.Sprintf("%s/domainOwnershipIdentifiers", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listdomainownershipidentifiersslot.go b/resource-manager/web/2023-12-01/webapps/method_listdomainownershipidentifiersslot.go index 58149ed5d79..8bf54d7bc37 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listdomainownershipidentifiersslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listdomainownershipidentifiersslot.go @@ -23,6 +23,18 @@ type ListDomainOwnershipIdentifiersSlotCompleteResult struct { Items []Identifier } +type ListDomainOwnershipIdentifiersSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListDomainOwnershipIdentifiersSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListDomainOwnershipIdentifiersSlot ... func (c WebAppsClient) ListDomainOwnershipIdentifiersSlot(ctx context.Context, id SlotId) (result ListDomainOwnershipIdentifiersSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListDomainOwnershipIdentifiersSlot(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListDomainOwnershipIdentifiersSlotCustomPager{}, Path: fmt.Sprintf("%s/domainOwnershipIdentifiers", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listfunctions.go b/resource-manager/web/2023-12-01/webapps/method_listfunctions.go index d279193909b..bec63cb0d75 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listfunctions.go +++ b/resource-manager/web/2023-12-01/webapps/method_listfunctions.go @@ -24,6 +24,18 @@ type ListFunctionsCompleteResult struct { Items []FunctionEnvelope } +type ListFunctionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListFunctionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListFunctions ... func (c WebAppsClient) ListFunctions(ctx context.Context, id commonids.AppServiceId) (result ListFunctionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListFunctions(ctx context.Context, id commonids.AppServic http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListFunctionsCustomPager{}, Path: fmt.Sprintf("%s/functions", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listhostnamebindings.go b/resource-manager/web/2023-12-01/webapps/method_listhostnamebindings.go index 9523c81cd3d..3dc80a9cfb7 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listhostnamebindings.go +++ b/resource-manager/web/2023-12-01/webapps/method_listhostnamebindings.go @@ -24,6 +24,18 @@ type ListHostNameBindingsCompleteResult struct { Items []HostNameBinding } +type ListHostNameBindingsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHostNameBindingsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHostNameBindings ... func (c WebAppsClient) ListHostNameBindings(ctx context.Context, id commonids.AppServiceId) (result ListHostNameBindingsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListHostNameBindings(ctx context.Context, id commonids.Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHostNameBindingsCustomPager{}, Path: fmt.Sprintf("%s/hostNameBindings", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listhostnamebindingsslot.go b/resource-manager/web/2023-12-01/webapps/method_listhostnamebindingsslot.go index 994fa1fa812..e2425090bce 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listhostnamebindingsslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listhostnamebindingsslot.go @@ -23,6 +23,18 @@ type ListHostNameBindingsSlotCompleteResult struct { Items []HostNameBinding } +type ListHostNameBindingsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHostNameBindingsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListHostNameBindingsSlot ... func (c WebAppsClient) ListHostNameBindingsSlot(ctx context.Context, id SlotId) (result ListHostNameBindingsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListHostNameBindingsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListHostNameBindingsSlotCustomPager{}, Path: fmt.Sprintf("%s/hostNameBindings", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listinstancefunctionsslot.go b/resource-manager/web/2023-12-01/webapps/method_listinstancefunctionsslot.go index ed90208bb4f..6c10eace684 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listinstancefunctionsslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listinstancefunctionsslot.go @@ -23,6 +23,18 @@ type ListInstanceFunctionsSlotCompleteResult struct { Items []FunctionEnvelope } +type ListInstanceFunctionsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceFunctionsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceFunctionsSlot ... func (c WebAppsClient) ListInstanceFunctionsSlot(ctx context.Context, id SlotId) (result ListInstanceFunctionsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceFunctionsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceFunctionsSlotCustomPager{}, Path: fmt.Sprintf("%s/functions", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listinstanceidentifiers.go b/resource-manager/web/2023-12-01/webapps/method_listinstanceidentifiers.go index bbcb5088d18..62730a6aff2 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listinstanceidentifiers.go +++ b/resource-manager/web/2023-12-01/webapps/method_listinstanceidentifiers.go @@ -24,6 +24,18 @@ type ListInstanceIdentifiersCompleteResult struct { Items []WebSiteInstanceStatus } +type ListInstanceIdentifiersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceIdentifiersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceIdentifiers ... func (c WebAppsClient) ListInstanceIdentifiers(ctx context.Context, id commonids.AppServiceId) (result ListInstanceIdentifiersOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListInstanceIdentifiers(ctx context.Context, id commonids http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceIdentifiersCustomPager{}, Path: fmt.Sprintf("%s/instances", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listinstanceidentifiersslot.go b/resource-manager/web/2023-12-01/webapps/method_listinstanceidentifiersslot.go index 0a153b5dbac..65ad91633e2 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listinstanceidentifiersslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listinstanceidentifiersslot.go @@ -23,6 +23,18 @@ type ListInstanceIdentifiersSlotCompleteResult struct { Items []WebSiteInstanceStatus } +type ListInstanceIdentifiersSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceIdentifiersSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceIdentifiersSlot ... func (c WebAppsClient) ListInstanceIdentifiersSlot(ctx context.Context, id SlotId) (result ListInstanceIdentifiersSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceIdentifiersSlot(ctx context.Context, id SlotI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceIdentifiersSlotCustomPager{}, Path: fmt.Sprintf("%s/instances", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listinstanceprocesses.go b/resource-manager/web/2023-12-01/webapps/method_listinstanceprocesses.go index 79623ec52e8..7b596445609 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listinstanceprocesses.go +++ b/resource-manager/web/2023-12-01/webapps/method_listinstanceprocesses.go @@ -23,6 +23,18 @@ type ListInstanceProcessesCompleteResult struct { Items []ProcessInfo } +type ListInstanceProcessesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcesses ... func (c WebAppsClient) ListInstanceProcesses(ctx context.Context, id InstanceId) (result ListInstanceProcessesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcesses(ctx context.Context, id InstanceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessesCustomPager{}, Path: fmt.Sprintf("%s/processes", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessesslot.go b/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessesslot.go index 2589837f1cb..725411fb8b1 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessesslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessesslot.go @@ -23,6 +23,18 @@ type ListInstanceProcessesSlotCompleteResult struct { Items []ProcessInfo } +type ListInstanceProcessesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessesSlot ... func (c WebAppsClient) ListInstanceProcessesSlot(ctx context.Context, id SlotInstanceId) (result ListInstanceProcessesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessesSlot(ctx context.Context, id SlotIns http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessesSlotCustomPager{}, Path: fmt.Sprintf("%s/processes", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessmodules.go b/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessmodules.go index 77368d7f3d2..113a7dd68a6 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessmodules.go +++ b/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessmodules.go @@ -23,6 +23,18 @@ type ListInstanceProcessModulesCompleteResult struct { Items []ProcessModuleInfo } +type ListInstanceProcessModulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessModulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessModules ... func (c WebAppsClient) ListInstanceProcessModules(ctx context.Context, id InstanceProcessId) (result ListInstanceProcessModulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessModules(ctx context.Context, id Instan http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessModulesCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessmodulesslot.go b/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessmodulesslot.go index e4fd039279f..23d09675fe8 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessmodulesslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessmodulesslot.go @@ -23,6 +23,18 @@ type ListInstanceProcessModulesSlotCompleteResult struct { Items []ProcessModuleInfo } +type ListInstanceProcessModulesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessModulesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessModulesSlot ... func (c WebAppsClient) ListInstanceProcessModulesSlot(ctx context.Context, id SlotInstanceProcessId) (result ListInstanceProcessModulesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessModulesSlot(ctx context.Context, id Sl http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessModulesSlotCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessthreads.go b/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessthreads.go index ab35e6a6862..82d9b44dc60 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessthreads.go +++ b/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessthreads.go @@ -23,6 +23,18 @@ type ListInstanceProcessThreadsCompleteResult struct { Items []ProcessThreadInfo } +type ListInstanceProcessThreadsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessThreadsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessThreads ... func (c WebAppsClient) ListInstanceProcessThreads(ctx context.Context, id InstanceProcessId) (result ListInstanceProcessThreadsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessThreads(ctx context.Context, id Instan http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessThreadsCustomPager{}, Path: fmt.Sprintf("%s/threads", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessthreadsslot.go b/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessthreadsslot.go index 0bccdaf4c95..513fe67c6a7 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessthreadsslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listinstanceprocessthreadsslot.go @@ -23,6 +23,18 @@ type ListInstanceProcessThreadsSlotCompleteResult struct { Items []ProcessThreadInfo } +type ListInstanceProcessThreadsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceProcessThreadsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceProcessThreadsSlot ... func (c WebAppsClient) ListInstanceProcessThreadsSlot(ctx context.Context, id SlotInstanceProcessId) (result ListInstanceProcessThreadsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceProcessThreadsSlot(ctx context.Context, id Sl http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceProcessThreadsSlotCustomPager{}, Path: fmt.Sprintf("%s/threads", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listinstanceworkflowsslot.go b/resource-manager/web/2023-12-01/webapps/method_listinstanceworkflowsslot.go index c85fd3bfd26..472996214b1 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listinstanceworkflowsslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listinstanceworkflowsslot.go @@ -23,6 +23,18 @@ type ListInstanceWorkflowsSlotCompleteResult struct { Items []WorkflowEnvelope } +type ListInstanceWorkflowsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListInstanceWorkflowsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListInstanceWorkflowsSlot ... func (c WebAppsClient) ListInstanceWorkflowsSlot(ctx context.Context, id SlotId) (result ListInstanceWorkflowsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListInstanceWorkflowsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListInstanceWorkflowsSlotCustomPager{}, Path: fmt.Sprintf("%s/workflows", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listperfmoncounters.go b/resource-manager/web/2023-12-01/webapps/method_listperfmoncounters.go index 2fd3b578fc8..3e795219b6f 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listperfmoncounters.go +++ b/resource-manager/web/2023-12-01/webapps/method_listperfmoncounters.go @@ -51,6 +51,18 @@ func (o ListPerfMonCountersOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListPerfMonCountersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPerfMonCountersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPerfMonCounters ... func (c WebAppsClient) ListPerfMonCounters(ctx context.Context, id commonids.AppServiceId, options ListPerfMonCountersOperationOptions) (result ListPerfMonCountersOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c WebAppsClient) ListPerfMonCounters(ctx context.Context, id commonids.App http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/perfcounters", id.ID()), OptionsObject: options, + Pager: &ListPerfMonCountersCustomPager{}, + Path: fmt.Sprintf("%s/perfcounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_listperfmoncountersslot.go b/resource-manager/web/2023-12-01/webapps/method_listperfmoncountersslot.go index 24b03079502..3a2754f799e 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listperfmoncountersslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listperfmoncountersslot.go @@ -50,6 +50,18 @@ func (o ListPerfMonCountersSlotOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListPerfMonCountersSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPerfMonCountersSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPerfMonCountersSlot ... func (c WebAppsClient) ListPerfMonCountersSlot(ctx context.Context, id SlotId, options ListPerfMonCountersSlotOperationOptions) (result ListPerfMonCountersSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WebAppsClient) ListPerfMonCountersSlot(ctx context.Context, id SlotId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/perfcounters", id.ID()), OptionsObject: options, + Pager: &ListPerfMonCountersSlotCustomPager{}, + Path: fmt.Sprintf("%s/perfcounters", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_listprocesses.go b/resource-manager/web/2023-12-01/webapps/method_listprocesses.go index 7b1720fcc5b..ebf1da0bcf9 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listprocesses.go +++ b/resource-manager/web/2023-12-01/webapps/method_listprocesses.go @@ -24,6 +24,18 @@ type ListProcessesCompleteResult struct { Items []ProcessInfo } +type ListProcessesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcesses ... func (c WebAppsClient) ListProcesses(ctx context.Context, id commonids.AppServiceId) (result ListProcessesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListProcesses(ctx context.Context, id commonids.AppServic http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessesCustomPager{}, Path: fmt.Sprintf("%s/processes", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listprocessesslot.go b/resource-manager/web/2023-12-01/webapps/method_listprocessesslot.go index ff0a8e569c4..d737e095497 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listprocessesslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listprocessesslot.go @@ -23,6 +23,18 @@ type ListProcessesSlotCompleteResult struct { Items []ProcessInfo } +type ListProcessesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessesSlot ... func (c WebAppsClient) ListProcessesSlot(ctx context.Context, id SlotId) (result ListProcessesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessesSlot(ctx context.Context, id SlotId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessesSlotCustomPager{}, Path: fmt.Sprintf("%s/processes", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listprocessmodules.go b/resource-manager/web/2023-12-01/webapps/method_listprocessmodules.go index 2a5275b9930..e1a3a6af39e 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listprocessmodules.go +++ b/resource-manager/web/2023-12-01/webapps/method_listprocessmodules.go @@ -23,6 +23,18 @@ type ListProcessModulesCompleteResult struct { Items []ProcessModuleInfo } +type ListProcessModulesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessModulesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessModules ... func (c WebAppsClient) ListProcessModules(ctx context.Context, id ProcessId) (result ListProcessModulesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessModules(ctx context.Context, id ProcessId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessModulesCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listprocessmodulesslot.go b/resource-manager/web/2023-12-01/webapps/method_listprocessmodulesslot.go index 5914a1dd854..0ddc8a915f9 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listprocessmodulesslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listprocessmodulesslot.go @@ -23,6 +23,18 @@ type ListProcessModulesSlotCompleteResult struct { Items []ProcessModuleInfo } +type ListProcessModulesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessModulesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessModulesSlot ... func (c WebAppsClient) ListProcessModulesSlot(ctx context.Context, id SlotProcessId) (result ListProcessModulesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessModulesSlot(ctx context.Context, id SlotProces http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessModulesSlotCustomPager{}, Path: fmt.Sprintf("%s/modules", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listprocessthreads.go b/resource-manager/web/2023-12-01/webapps/method_listprocessthreads.go index dbd85439f6c..32356aa2170 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listprocessthreads.go +++ b/resource-manager/web/2023-12-01/webapps/method_listprocessthreads.go @@ -23,6 +23,18 @@ type ListProcessThreadsCompleteResult struct { Items []ProcessThreadInfo } +type ListProcessThreadsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessThreadsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessThreads ... func (c WebAppsClient) ListProcessThreads(ctx context.Context, id ProcessId) (result ListProcessThreadsOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessThreads(ctx context.Context, id ProcessId) (re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessThreadsCustomPager{}, Path: fmt.Sprintf("%s/threads", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listprocessthreadsslot.go b/resource-manager/web/2023-12-01/webapps/method_listprocessthreadsslot.go index 66cf3a39c79..d3335f9f125 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listprocessthreadsslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listprocessthreadsslot.go @@ -23,6 +23,18 @@ type ListProcessThreadsSlotCompleteResult struct { Items []ProcessThreadInfo } +type ListProcessThreadsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProcessThreadsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProcessThreadsSlot ... func (c WebAppsClient) ListProcessThreadsSlot(ctx context.Context, id SlotProcessId) (result ListProcessThreadsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListProcessThreadsSlot(ctx context.Context, id SlotProces http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProcessThreadsSlotCustomPager{}, Path: fmt.Sprintf("%s/threads", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listproductionsitedeploymentstatuses.go b/resource-manager/web/2023-12-01/webapps/method_listproductionsitedeploymentstatuses.go index 09c72048f91..dbca4c9c5cf 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listproductionsitedeploymentstatuses.go +++ b/resource-manager/web/2023-12-01/webapps/method_listproductionsitedeploymentstatuses.go @@ -24,6 +24,18 @@ type ListProductionSiteDeploymentStatusesCompleteResult struct { Items []CsmDeploymentStatus } +type ListProductionSiteDeploymentStatusesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListProductionSiteDeploymentStatusesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListProductionSiteDeploymentStatuses ... func (c WebAppsClient) ListProductionSiteDeploymentStatuses(ctx context.Context, id commonids.AppServiceId) (result ListProductionSiteDeploymentStatusesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListProductionSiteDeploymentStatuses(ctx context.Context, http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListProductionSiteDeploymentStatusesCustomPager{}, Path: fmt.Sprintf("%s/deploymentStatus", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listpubliccertificates.go b/resource-manager/web/2023-12-01/webapps/method_listpubliccertificates.go index b142a34aade..1566dc4e69f 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listpubliccertificates.go +++ b/resource-manager/web/2023-12-01/webapps/method_listpubliccertificates.go @@ -24,6 +24,18 @@ type ListPublicCertificatesCompleteResult struct { Items []PublicCertificate } +type ListPublicCertificatesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPublicCertificatesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPublicCertificates ... func (c WebAppsClient) ListPublicCertificates(ctx context.Context, id commonids.AppServiceId) (result ListPublicCertificatesOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListPublicCertificates(ctx context.Context, id commonids. http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPublicCertificatesCustomPager{}, Path: fmt.Sprintf("%s/publicCertificates", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listpubliccertificatesslot.go b/resource-manager/web/2023-12-01/webapps/method_listpubliccertificatesslot.go index 7c509e40b8a..fb63cdc093c 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listpubliccertificatesslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listpubliccertificatesslot.go @@ -23,6 +23,18 @@ type ListPublicCertificatesSlotCompleteResult struct { Items []PublicCertificate } +type ListPublicCertificatesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPublicCertificatesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListPublicCertificatesSlot ... func (c WebAppsClient) ListPublicCertificatesSlot(ctx context.Context, id SlotId) (result ListPublicCertificatesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListPublicCertificatesSlot(ctx context.Context, id SlotId http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListPublicCertificatesSlotCustomPager{}, Path: fmt.Sprintf("%s/publicCertificates", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listsitebackups.go b/resource-manager/web/2023-12-01/webapps/method_listsitebackups.go index 5a698476724..453b979ef15 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listsitebackups.go +++ b/resource-manager/web/2023-12-01/webapps/method_listsitebackups.go @@ -24,6 +24,18 @@ type ListSiteBackupsCompleteResult struct { Items []BackupItem } +type ListSiteBackupsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteBackupsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteBackups ... func (c WebAppsClient) ListSiteBackups(ctx context.Context, id commonids.AppServiceId) (result ListSiteBackupsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSiteBackups(ctx context.Context, id commonids.AppServ http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSiteBackupsCustomPager{}, Path: fmt.Sprintf("%s/listbackups", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listsitebackupsslot.go b/resource-manager/web/2023-12-01/webapps/method_listsitebackupsslot.go index 09933de5fe0..4b1fa4a16f5 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listsitebackupsslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listsitebackupsslot.go @@ -23,6 +23,18 @@ type ListSiteBackupsSlotCompleteResult struct { Items []BackupItem } +type ListSiteBackupsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteBackupsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteBackupsSlot ... func (c WebAppsClient) ListSiteBackupsSlot(ctx context.Context, id SlotId) (result ListSiteBackupsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSiteBackupsSlot(ctx context.Context, id SlotId) (resu http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSiteBackupsSlotCustomPager{}, Path: fmt.Sprintf("%s/listbackups", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listsitecontainers.go b/resource-manager/web/2023-12-01/webapps/method_listsitecontainers.go index 25fb7021dd8..b5451f754a5 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listsitecontainers.go +++ b/resource-manager/web/2023-12-01/webapps/method_listsitecontainers.go @@ -24,6 +24,18 @@ type ListSiteContainersCompleteResult struct { Items []SiteContainer } +type ListSiteContainersCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteContainersCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteContainers ... func (c WebAppsClient) ListSiteContainers(ctx context.Context, id commonids.AppServiceId) (result ListSiteContainersOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSiteContainers(ctx context.Context, id commonids.AppS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteContainersCustomPager{}, Path: fmt.Sprintf("%s/sitecontainers", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listsitecontainersslot.go b/resource-manager/web/2023-12-01/webapps/method_listsitecontainersslot.go index 3612f1b736a..ad7e84da3ef 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listsitecontainersslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listsitecontainersslot.go @@ -23,6 +23,18 @@ type ListSiteContainersSlotCompleteResult struct { Items []SiteContainer } +type ListSiteContainersSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteContainersSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteContainersSlot ... func (c WebAppsClient) ListSiteContainersSlot(ctx context.Context, id SlotId) (result ListSiteContainersSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSiteContainersSlot(ctx context.Context, id SlotId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteContainersSlotCustomPager{}, Path: fmt.Sprintf("%s/sitecontainers", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listsiteextensions.go b/resource-manager/web/2023-12-01/webapps/method_listsiteextensions.go index d2ddde56092..8541bc980ce 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listsiteextensions.go +++ b/resource-manager/web/2023-12-01/webapps/method_listsiteextensions.go @@ -24,6 +24,18 @@ type ListSiteExtensionsCompleteResult struct { Items []SiteExtensionInfo } +type ListSiteExtensionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteExtensionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteExtensions ... func (c WebAppsClient) ListSiteExtensions(ctx context.Context, id commonids.AppServiceId) (result ListSiteExtensionsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSiteExtensions(ctx context.Context, id commonids.AppS http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteExtensionsCustomPager{}, Path: fmt.Sprintf("%s/siteExtensions", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listsiteextensionsslot.go b/resource-manager/web/2023-12-01/webapps/method_listsiteextensionsslot.go index 0c273967d62..b71b603d02f 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listsiteextensionsslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listsiteextensionsslot.go @@ -23,6 +23,18 @@ type ListSiteExtensionsSlotCompleteResult struct { Items []SiteExtensionInfo } +type ListSiteExtensionsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSiteExtensionsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSiteExtensionsSlot ... func (c WebAppsClient) ListSiteExtensionsSlot(ctx context.Context, id SlotId) (result ListSiteExtensionsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSiteExtensionsSlot(ctx context.Context, id SlotId) (r http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSiteExtensionsSlotCustomPager{}, Path: fmt.Sprintf("%s/siteExtensions", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listslotdifferencesfromproduction.go b/resource-manager/web/2023-12-01/webapps/method_listslotdifferencesfromproduction.go index aea96f5259e..8452739cf2b 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listslotdifferencesfromproduction.go +++ b/resource-manager/web/2023-12-01/webapps/method_listslotdifferencesfromproduction.go @@ -24,6 +24,18 @@ type ListSlotDifferencesFromProductionCompleteResult struct { Items []SlotDifference } +type ListSlotDifferencesFromProductionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSlotDifferencesFromProductionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSlotDifferencesFromProduction ... func (c WebAppsClient) ListSlotDifferencesFromProduction(ctx context.Context, id commonids.AppServiceId, input CsmSlotEntity) (result ListSlotDifferencesFromProductionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSlotDifferencesFromProduction(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSlotDifferencesFromProductionCustomPager{}, Path: fmt.Sprintf("%s/slotsdiffs", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listslotdifferencesslot.go b/resource-manager/web/2023-12-01/webapps/method_listslotdifferencesslot.go index 078afc6996d..7dad87c2b7a 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listslotdifferencesslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listslotdifferencesslot.go @@ -23,6 +23,18 @@ type ListSlotDifferencesSlotCompleteResult struct { Items []SlotDifference } +type ListSlotDifferencesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSlotDifferencesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSlotDifferencesSlot ... func (c WebAppsClient) ListSlotDifferencesSlot(ctx context.Context, id SlotId, input CsmSlotEntity) (result ListSlotDifferencesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSlotDifferencesSlot(ctx context.Context, id SlotId, i http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListSlotDifferencesSlotCustomPager{}, Path: fmt.Sprintf("%s/slotsdiffs", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listslots.go b/resource-manager/web/2023-12-01/webapps/method_listslots.go index ec2224802b8..c76f15d5d03 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listslots.go +++ b/resource-manager/web/2023-12-01/webapps/method_listslots.go @@ -24,6 +24,18 @@ type ListSlotsCompleteResult struct { Items []Site } +type ListSlotsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSlotsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSlots ... func (c WebAppsClient) ListSlots(ctx context.Context, id commonids.AppServiceId) (result ListSlotsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSlots(ctx context.Context, id commonids.AppServiceId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSlotsCustomPager{}, Path: fmt.Sprintf("%s/slots", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listslotsitedeploymentstatusesslot.go b/resource-manager/web/2023-12-01/webapps/method_listslotsitedeploymentstatusesslot.go index 19762fc4915..8ceee87cc66 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listslotsitedeploymentstatusesslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listslotsitedeploymentstatusesslot.go @@ -23,6 +23,18 @@ type ListSlotSiteDeploymentStatusesSlotCompleteResult struct { Items []CsmDeploymentStatus } +type ListSlotSiteDeploymentStatusesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSlotSiteDeploymentStatusesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSlotSiteDeploymentStatusesSlot ... func (c WebAppsClient) ListSlotSiteDeploymentStatusesSlot(ctx context.Context, id SlotId) (result ListSlotSiteDeploymentStatusesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSlotSiteDeploymentStatusesSlot(ctx context.Context, i http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSlotSiteDeploymentStatusesSlotCustomPager{}, Path: fmt.Sprintf("%s/deploymentStatus", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listsnapshots.go b/resource-manager/web/2023-12-01/webapps/method_listsnapshots.go index c87cd5d6a36..ae445c7d99c 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listsnapshots.go +++ b/resource-manager/web/2023-12-01/webapps/method_listsnapshots.go @@ -24,6 +24,18 @@ type ListSnapshotsCompleteResult struct { Items []Snapshot } +type ListSnapshotsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSnapshotsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSnapshots ... func (c WebAppsClient) ListSnapshots(ctx context.Context, id commonids.AppServiceId) (result ListSnapshotsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSnapshots(ctx context.Context, id commonids.AppServic http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSnapshotsCustomPager{}, Path: fmt.Sprintf("%s/snapshots", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listsnapshotsfromdrsecondary.go b/resource-manager/web/2023-12-01/webapps/method_listsnapshotsfromdrsecondary.go index 54e6f48ccd2..878e74fccd0 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listsnapshotsfromdrsecondary.go +++ b/resource-manager/web/2023-12-01/webapps/method_listsnapshotsfromdrsecondary.go @@ -24,6 +24,18 @@ type ListSnapshotsFromDRSecondaryCompleteResult struct { Items []Snapshot } +type ListSnapshotsFromDRSecondaryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSnapshotsFromDRSecondaryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSnapshotsFromDRSecondary ... func (c WebAppsClient) ListSnapshotsFromDRSecondary(ctx context.Context, id commonids.AppServiceId) (result ListSnapshotsFromDRSecondaryOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListSnapshotsFromDRSecondary(ctx context.Context, id comm http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSnapshotsFromDRSecondaryCustomPager{}, Path: fmt.Sprintf("%s/snapshotsdr", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listsnapshotsfromdrsecondaryslot.go b/resource-manager/web/2023-12-01/webapps/method_listsnapshotsfromdrsecondaryslot.go index 1ac0b91c67f..6e438ec2ff9 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listsnapshotsfromdrsecondaryslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listsnapshotsfromdrsecondaryslot.go @@ -23,6 +23,18 @@ type ListSnapshotsFromDRSecondarySlotCompleteResult struct { Items []Snapshot } +type ListSnapshotsFromDRSecondarySlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSnapshotsFromDRSecondarySlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSnapshotsFromDRSecondarySlot ... func (c WebAppsClient) ListSnapshotsFromDRSecondarySlot(ctx context.Context, id SlotId) (result ListSnapshotsFromDRSecondarySlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSnapshotsFromDRSecondarySlot(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSnapshotsFromDRSecondarySlotCustomPager{}, Path: fmt.Sprintf("%s/snapshotsdr", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listsnapshotsslot.go b/resource-manager/web/2023-12-01/webapps/method_listsnapshotsslot.go index df1e7a2cb84..840f0882265 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listsnapshotsslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listsnapshotsslot.go @@ -23,6 +23,18 @@ type ListSnapshotsSlotCompleteResult struct { Items []Snapshot } +type ListSnapshotsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSnapshotsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSnapshotsSlot ... func (c WebAppsClient) ListSnapshotsSlot(ctx context.Context, id SlotId) (result ListSnapshotsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListSnapshotsSlot(ctx context.Context, id SlotId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSnapshotsSlotCustomPager{}, Path: fmt.Sprintf("%s/snapshots", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobhistory.go b/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobhistory.go index bdb05c84e95..881719e8edf 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobhistory.go +++ b/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobhistory.go @@ -23,6 +23,18 @@ type ListTriggeredWebJobHistoryCompleteResult struct { Items []TriggeredJobHistory } +type ListTriggeredWebJobHistoryCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListTriggeredWebJobHistoryCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListTriggeredWebJobHistory ... func (c WebAppsClient) ListTriggeredWebJobHistory(ctx context.Context, id TriggeredWebJobId) (result ListTriggeredWebJobHistoryOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListTriggeredWebJobHistory(ctx context.Context, id Trigge http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListTriggeredWebJobHistoryCustomPager{}, Path: fmt.Sprintf("%s/history", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobhistoryslot.go b/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobhistoryslot.go index 81f7c7621c2..727607c47c6 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobhistoryslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobhistoryslot.go @@ -23,6 +23,18 @@ type ListTriggeredWebJobHistorySlotCompleteResult struct { Items []TriggeredJobHistory } +type ListTriggeredWebJobHistorySlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListTriggeredWebJobHistorySlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListTriggeredWebJobHistorySlot ... func (c WebAppsClient) ListTriggeredWebJobHistorySlot(ctx context.Context, id SlotTriggeredWebJobId) (result ListTriggeredWebJobHistorySlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListTriggeredWebJobHistorySlot(ctx context.Context, id Sl http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListTriggeredWebJobHistorySlotCustomPager{}, Path: fmt.Sprintf("%s/history", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobs.go b/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobs.go index 1a16871321a..a732150b7fb 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobs.go +++ b/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobs.go @@ -24,6 +24,18 @@ type ListTriggeredWebJobsCompleteResult struct { Items []TriggeredWebJob } +type ListTriggeredWebJobsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListTriggeredWebJobsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListTriggeredWebJobs ... func (c WebAppsClient) ListTriggeredWebJobs(ctx context.Context, id commonids.AppServiceId) (result ListTriggeredWebJobsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListTriggeredWebJobs(ctx context.Context, id commonids.Ap http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListTriggeredWebJobsCustomPager{}, Path: fmt.Sprintf("%s/triggeredWebJobs", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobsslot.go b/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobsslot.go index 6a1759cc604..6dbb5cb9064 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobsslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listtriggeredwebjobsslot.go @@ -23,6 +23,18 @@ type ListTriggeredWebJobsSlotCompleteResult struct { Items []TriggeredWebJob } +type ListTriggeredWebJobsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListTriggeredWebJobsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListTriggeredWebJobsSlot ... func (c WebAppsClient) ListTriggeredWebJobsSlot(ctx context.Context, id SlotId) (result ListTriggeredWebJobsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListTriggeredWebJobsSlot(ctx context.Context, id SlotId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListTriggeredWebJobsSlotCustomPager{}, Path: fmt.Sprintf("%s/triggeredWebJobs", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listusages.go b/resource-manager/web/2023-12-01/webapps/method_listusages.go index 786fedec8eb..6a245dab93f 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listusages.go +++ b/resource-manager/web/2023-12-01/webapps/method_listusages.go @@ -51,6 +51,18 @@ func (o ListUsagesOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListUsagesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUsagesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUsages ... func (c WebAppsClient) ListUsages(ctx context.Context, id commonids.AppServiceId, options ListUsagesOperationOptions) (result ListUsagesOperationResponse, err error) { opts := client.RequestOptions{ @@ -59,8 +71,9 @@ func (c WebAppsClient) ListUsages(ctx context.Context, id commonids.AppServiceId http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListUsagesCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_listusagesslot.go b/resource-manager/web/2023-12-01/webapps/method_listusagesslot.go index 58f1bae9ff5..cbcbac0a262 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listusagesslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listusagesslot.go @@ -50,6 +50,18 @@ func (o ListUsagesSlotOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListUsagesSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListUsagesSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListUsagesSlot ... func (c WebAppsClient) ListUsagesSlot(ctx context.Context, id SlotId, options ListUsagesSlotOperationOptions) (result ListUsagesSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WebAppsClient) ListUsagesSlot(ctx context.Context, id SlotId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/usages", id.ID()), OptionsObject: options, + Pager: &ListUsagesSlotCustomPager{}, + Path: fmt.Sprintf("%s/usages", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_listwebjobs.go b/resource-manager/web/2023-12-01/webapps/method_listwebjobs.go index 009bef465d6..46c96736e0d 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listwebjobs.go +++ b/resource-manager/web/2023-12-01/webapps/method_listwebjobs.go @@ -24,6 +24,18 @@ type ListWebJobsCompleteResult struct { Items []WebJob } +type ListWebJobsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebJobsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebJobs ... func (c WebAppsClient) ListWebJobs(ctx context.Context, id commonids.AppServiceId) (result ListWebJobsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListWebJobs(ctx context.Context, id commonids.AppServiceI http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebJobsCustomPager{}, Path: fmt.Sprintf("%s/webJobs", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listwebjobsslot.go b/resource-manager/web/2023-12-01/webapps/method_listwebjobsslot.go index 33b18905092..421ab88f0e1 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listwebjobsslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_listwebjobsslot.go @@ -23,6 +23,18 @@ type ListWebJobsSlotCompleteResult struct { Items []WebJob } +type ListWebJobsSlotCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWebJobsSlotCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWebJobsSlot ... func (c WebAppsClient) ListWebJobsSlot(ctx context.Context, id SlotId) (result ListWebJobsSlotOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebAppsClient) ListWebJobsSlot(ctx context.Context, id SlotId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWebJobsSlotCustomPager{}, Path: fmt.Sprintf("%s/webJobs", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_listworkflows.go b/resource-manager/web/2023-12-01/webapps/method_listworkflows.go index 09f70cdc841..a098ec74cd5 100644 --- a/resource-manager/web/2023-12-01/webapps/method_listworkflows.go +++ b/resource-manager/web/2023-12-01/webapps/method_listworkflows.go @@ -24,6 +24,18 @@ type ListWorkflowsCompleteResult struct { Items []WorkflowEnvelope } +type ListWorkflowsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListWorkflowsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListWorkflows ... func (c WebAppsClient) ListWorkflows(ctx context.Context, id commonids.AppServiceId) (result ListWorkflowsOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebAppsClient) ListWorkflows(ctx context.Context, id commonids.AppServic http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListWorkflowsCustomPager{}, Path: fmt.Sprintf("%s/workflows", id.ID()), } diff --git a/resource-manager/web/2023-12-01/webapps/method_migratestorage.go b/resource-manager/web/2023-12-01/webapps/method_migratestorage.go index 5f0c28ff47d..f59a0b4a276 100644 --- a/resource-manager/web/2023-12-01/webapps/method_migratestorage.go +++ b/resource-manager/web/2023-12-01/webapps/method_migratestorage.go @@ -57,8 +57,8 @@ func (c WebAppsClient) MigrateStorage(ctx context.Context, id commonids.AppServi http.StatusOK, }, HttpMethod: http.MethodPut, - Path: fmt.Sprintf("%s/migrate", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/migrate", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_restart.go b/resource-manager/web/2023-12-01/webapps/method_restart.go index fbc0d6837cb..4634c74caa7 100644 --- a/resource-manager/web/2023-12-01/webapps/method_restart.go +++ b/resource-manager/web/2023-12-01/webapps/method_restart.go @@ -57,8 +57,8 @@ func (c WebAppsClient) Restart(ctx context.Context, id commonids.AppServiceId, o http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/restart", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restart", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_restartslot.go b/resource-manager/web/2023-12-01/webapps/method_restartslot.go index 2ed5d2e9efa..28902482a9c 100644 --- a/resource-manager/web/2023-12-01/webapps/method_restartslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_restartslot.go @@ -56,8 +56,8 @@ func (c WebAppsClient) RestartSlot(ctx context.Context, id SlotId, options Resta http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/restart", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/restart", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_startnetworktrace.go b/resource-manager/web/2023-12-01/webapps/method_startnetworktrace.go index 92ce80e4291..fa037fe2276 100644 --- a/resource-manager/web/2023-12-01/webapps/method_startnetworktrace.go +++ b/resource-manager/web/2023-12-01/webapps/method_startnetworktrace.go @@ -66,8 +66,8 @@ func (c WebAppsClient) StartNetworkTrace(ctx context.Context, id commonids.AppSe http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/startNetworkTrace", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/startNetworkTrace", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_startnetworktraceslot.go b/resource-manager/web/2023-12-01/webapps/method_startnetworktraceslot.go index 50d223940d5..8390b0d5feb 100644 --- a/resource-manager/web/2023-12-01/webapps/method_startnetworktraceslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_startnetworktraceslot.go @@ -65,8 +65,8 @@ func (c WebAppsClient) StartNetworkTraceSlot(ctx context.Context, id SlotId, opt http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/startNetworkTrace", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/startNetworkTrace", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktrace.go b/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktrace.go index 65c5c68ef51..8ca69360afe 100644 --- a/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktrace.go +++ b/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktrace.go @@ -62,8 +62,8 @@ func (c WebAppsClient) StartWebSiteNetworkTrace(ctx context.Context, id commonid http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/networkTrace/start", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/networkTrace/start", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperation.go b/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperation.go index 21703009ddc..9fd9a12487f 100644 --- a/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperation.go +++ b/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperation.go @@ -66,8 +66,8 @@ func (c WebAppsClient) StartWebSiteNetworkTraceOperation(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/networkTrace/startOperation", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/networkTrace/startOperation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperationslot.go b/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperationslot.go index 2d71a255ba4..73249d3a29a 100644 --- a/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperationslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperationslot.go @@ -65,8 +65,8 @@ func (c WebAppsClient) StartWebSiteNetworkTraceOperationSlot(ctx context.Context http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/networkTrace/startOperation", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/networkTrace/startOperation", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceslot.go b/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceslot.go index b52ac41f1a2..697b0f20648 100644 --- a/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceslot.go +++ b/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceslot.go @@ -61,8 +61,8 @@ func (c WebAppsClient) StartWebSiteNetworkTraceSlot(ctx context.Context, id Slot http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/networkTrace/start", id.ID()), OptionsObject: options, + Path: fmt.Sprintf("%s/networkTrace/start", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/workflowrunactions/method_coperepetitionslist.go b/resource-manager/web/2023-12-01/workflowrunactions/method_coperepetitionslist.go index c7ffe63f0c5..8e3b1832ac8 100644 --- a/resource-manager/web/2023-12-01/workflowrunactions/method_coperepetitionslist.go +++ b/resource-manager/web/2023-12-01/workflowrunactions/method_coperepetitionslist.go @@ -23,6 +23,18 @@ type CopeRepetitionsListCompleteResult struct { Items []WorkflowRunActionRepetitionDefinition } +type CopeRepetitionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CopeRepetitionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CopeRepetitionsList ... func (c WorkflowRunActionsClient) CopeRepetitionsList(ctx context.Context, id ActionId) (result CopeRepetitionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) CopeRepetitionsList(ctx context.Context, id Ac http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CopeRepetitionsListCustomPager{}, Path: fmt.Sprintf("%s/scopeRepetitions", id.ID()), } diff --git a/resource-manager/web/2023-12-01/workflowrunactions/method_list.go b/resource-manager/web/2023-12-01/workflowrunactions/method_list.go index 67d1f71449e..532e550d8d0 100644 --- a/resource-manager/web/2023-12-01/workflowrunactions/method_list.go +++ b/resource-manager/web/2023-12-01/workflowrunactions/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowRunActionsClient) List(ctx context.Context, id RunId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowRunActionsClient) List(ctx context.Context, id RunId, options Li http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/actions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/actions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/workflowrunactions/method_listexpressiontraces.go b/resource-manager/web/2023-12-01/workflowrunactions/method_listexpressiontraces.go index e91c1a639c4..07ca3a3e829 100644 --- a/resource-manager/web/2023-12-01/workflowrunactions/method_listexpressiontraces.go +++ b/resource-manager/web/2023-12-01/workflowrunactions/method_listexpressiontraces.go @@ -23,6 +23,18 @@ type ListExpressionTracesCompleteResult struct { Items []interface{} } +type ListExpressionTracesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListExpressionTracesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListExpressionTraces ... func (c WorkflowRunActionsClient) ListExpressionTraces(ctx context.Context, id ActionId) (result ListExpressionTracesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) ListExpressionTraces(ctx context.Context, id A http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &ListExpressionTracesCustomPager{}, Path: fmt.Sprintf("%s/listExpressionTraces", id.ID()), } diff --git a/resource-manager/web/2023-12-01/workflowrunactions/method_workflowrunactionrepetitionslist.go b/resource-manager/web/2023-12-01/workflowrunactions/method_workflowrunactionrepetitionslist.go index 6ccaa8e80ab..6b6fadac68b 100644 --- a/resource-manager/web/2023-12-01/workflowrunactions/method_workflowrunactionrepetitionslist.go +++ b/resource-manager/web/2023-12-01/workflowrunactions/method_workflowrunactionrepetitionslist.go @@ -23,6 +23,18 @@ type WorkflowRunActionRepetitionsListCompleteResult struct { Items []WorkflowRunActionRepetitionDefinition } +type WorkflowRunActionRepetitionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkflowRunActionRepetitionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkflowRunActionRepetitionsList ... func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsList(ctx context.Context, id ActionId) (result WorkflowRunActionRepetitionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsList(ctx context.C http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkflowRunActionRepetitionsListCustomPager{}, Path: fmt.Sprintf("%s/repetitions", id.ID()), } diff --git a/resource-manager/web/2023-12-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go b/resource-manager/web/2023-12-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go index 0b816996565..a3f212a0cfe 100644 --- a/resource-manager/web/2023-12-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go +++ b/resource-manager/web/2023-12-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go @@ -23,6 +23,18 @@ type WorkflowRunActionRepetitionsListExpressionTracesCompleteResult struct { Items []interface{} } +type WorkflowRunActionRepetitionsListExpressionTracesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkflowRunActionRepetitionsListExpressionTracesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkflowRunActionRepetitionsListExpressionTraces ... func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsListExpressionTraces(ctx context.Context, id RepetitionId) (result WorkflowRunActionRepetitionsListExpressionTracesOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsListExpressionTrac http.StatusOK, }, HttpMethod: http.MethodPost, + Pager: &WorkflowRunActionRepetitionsListExpressionTracesCustomPager{}, Path: fmt.Sprintf("%s/listExpressionTraces", id.ID()), } diff --git a/resource-manager/web/2023-12-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go b/resource-manager/web/2023-12-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go index 0c078f05c70..c1d6265df03 100644 --- a/resource-manager/web/2023-12-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go +++ b/resource-manager/web/2023-12-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistorieslist.go @@ -23,6 +23,18 @@ type WorkflowRunActionRepetitionsRequestHistoriesListCompleteResult struct { Items []RequestHistory } +type WorkflowRunActionRepetitionsRequestHistoriesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *WorkflowRunActionRepetitionsRequestHistoriesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // WorkflowRunActionRepetitionsRequestHistoriesList ... func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsRequestHistoriesList(ctx context.Context, id RepetitionId) (result WorkflowRunActionRepetitionsRequestHistoriesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsRequestHistoriesLi http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &WorkflowRunActionRepetitionsRequestHistoriesListCustomPager{}, Path: fmt.Sprintf("%s/requestHistories", id.ID()), } diff --git a/resource-manager/web/2023-12-01/workflowruns/method_list.go b/resource-manager/web/2023-12-01/workflowruns/method_list.go index e5e8588c1e5..b2188f33e6d 100644 --- a/resource-manager/web/2023-12-01/workflowruns/method_list.go +++ b/resource-manager/web/2023-12-01/workflowruns/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowRunsClient) List(ctx context.Context, id ManagementWorkflowId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowRunsClient) List(ctx context.Context, id ManagementWorkflowId, o http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/runs", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/runs", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/workflowtriggerhistories/method_list.go b/resource-manager/web/2023-12-01/workflowtriggerhistories/method_list.go index 473afc367c2..9737ffdb68c 100644 --- a/resource-manager/web/2023-12-01/workflowtriggerhistories/method_list.go +++ b/resource-manager/web/2023-12-01/workflowtriggerhistories/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowTriggerHistoriesClient) List(ctx context.Context, id TriggerId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowTriggerHistoriesClient) List(ctx context.Context, id TriggerId, http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/histories", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/histories", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/workflowtriggers/method_list.go b/resource-manager/web/2023-12-01/workflowtriggers/method_list.go index 21af991a400..0f1c596b80c 100644 --- a/resource-manager/web/2023-12-01/workflowtriggers/method_list.go +++ b/resource-manager/web/2023-12-01/workflowtriggers/method_list.go @@ -54,6 +54,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowTriggersClient) List(ctx context.Context, id ManagementWorkflowId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -62,8 +74,9 @@ func (c WorkflowTriggersClient) List(ctx context.Context, id ManagementWorkflowI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/triggers", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/triggers", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/web/2023-12-01/workflowversions/method_list.go b/resource-manager/web/2023-12-01/workflowversions/method_list.go index fe314139681..a70d4657650 100644 --- a/resource-manager/web/2023-12-01/workflowversions/method_list.go +++ b/resource-manager/web/2023-12-01/workflowversions/method_list.go @@ -50,6 +50,18 @@ func (o ListOperationOptions) ToQuery() *client.QueryParams { return &out } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c WorkflowVersionsClient) List(ctx context.Context, id ManagementWorkflowId, options ListOperationOptions) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -58,8 +70,9 @@ func (c WorkflowVersionsClient) List(ctx context.Context, id ManagementWorkflowI http.StatusOK, }, HttpMethod: http.MethodGet, - Path: fmt.Sprintf("%s/versions", id.ID()), OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/versions", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) diff --git a/resource-manager/webpubsub/2023-02-01/webpubsub/method_customcertificateslist.go b/resource-manager/webpubsub/2023-02-01/webpubsub/method_customcertificateslist.go index c0852ec3fd0..eeae7abb797 100644 --- a/resource-manager/webpubsub/2023-02-01/webpubsub/method_customcertificateslist.go +++ b/resource-manager/webpubsub/2023-02-01/webpubsub/method_customcertificateslist.go @@ -23,6 +23,18 @@ type CustomCertificatesListCompleteResult struct { Items []CustomCertificate } +type CustomCertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomCertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomCertificatesList ... func (c WebPubSubClient) CustomCertificatesList(ctx context.Context, id WebPubSubId) (result CustomCertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) CustomCertificatesList(ctx context.Context, id WebPubSu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomCertificatesListCustomPager{}, Path: fmt.Sprintf("%s/customCertificates", id.ID()), } diff --git a/resource-manager/webpubsub/2023-02-01/webpubsub/method_customdomainslist.go b/resource-manager/webpubsub/2023-02-01/webpubsub/method_customdomainslist.go index 1f812009879..ca6b390ec67 100644 --- a/resource-manager/webpubsub/2023-02-01/webpubsub/method_customdomainslist.go +++ b/resource-manager/webpubsub/2023-02-01/webpubsub/method_customdomainslist.go @@ -23,6 +23,18 @@ type CustomDomainsListCompleteResult struct { Items []CustomDomain } +type CustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomDomainsList ... func (c WebPubSubClient) CustomDomainsList(ctx context.Context, id WebPubSubId) (result CustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) CustomDomainsList(ctx context.Context, id WebPubSubId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/customDomains", id.ID()), } diff --git a/resource-manager/webpubsub/2023-02-01/webpubsub/method_hubslist.go b/resource-manager/webpubsub/2023-02-01/webpubsub/method_hubslist.go index d0e19d3da0e..72d9fe23da2 100644 --- a/resource-manager/webpubsub/2023-02-01/webpubsub/method_hubslist.go +++ b/resource-manager/webpubsub/2023-02-01/webpubsub/method_hubslist.go @@ -23,6 +23,18 @@ type HubsListCompleteResult struct { Items []WebPubSubHub } +type HubsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HubsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // HubsList ... func (c WebPubSubClient) HubsList(ctx context.Context, id WebPubSubId) (result HubsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) HubsList(ctx context.Context, id WebPubSubId) (result H http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &HubsListCustomPager{}, Path: fmt.Sprintf("%s/hubs", id.ID()), } diff --git a/resource-manager/webpubsub/2023-02-01/webpubsub/method_listbyresourcegroup.go b/resource-manager/webpubsub/2023-02-01/webpubsub/method_listbyresourcegroup.go index f2ae9bcec3d..4e5f9e494e9 100644 --- a/resource-manager/webpubsub/2023-02-01/webpubsub/method_listbyresourcegroup.go +++ b/resource-manager/webpubsub/2023-02-01/webpubsub/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []WebPubSubResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WebPubSubClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebPubSubClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SignalRService/webPubSub", id.ID()), } diff --git a/resource-manager/webpubsub/2023-02-01/webpubsub/method_listbysubscription.go b/resource-manager/webpubsub/2023-02-01/webpubsub/method_listbysubscription.go index 4c5190e0b4b..004f11c075f 100644 --- a/resource-manager/webpubsub/2023-02-01/webpubsub/method_listbysubscription.go +++ b/resource-manager/webpubsub/2023-02-01/webpubsub/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []WebPubSubResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WebPubSubClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebPubSubClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SignalRService/webPubSub", id.ID()), } diff --git a/resource-manager/webpubsub/2023-02-01/webpubsub/method_listskus.go b/resource-manager/webpubsub/2023-02-01/webpubsub/method_listskus.go index 720e7f3b4b9..bdd5f58b0bb 100644 --- a/resource-manager/webpubsub/2023-02-01/webpubsub/method_listskus.go +++ b/resource-manager/webpubsub/2023-02-01/webpubsub/method_listskus.go @@ -23,6 +23,18 @@ type ListSkusCompleteResult struct { Items []Sku } +type ListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSkus ... func (c WebPubSubClient) ListSkus(ctx context.Context, id WebPubSubId) (result ListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) ListSkus(ctx context.Context, id WebPubSubId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/webpubsub/2023-02-01/webpubsub/method_privateendpointconnectionslist.go b/resource-manager/webpubsub/2023-02-01/webpubsub/method_privateendpointconnectionslist.go index 3f6d1c32ecb..2ccef66a2dc 100644 --- a/resource-manager/webpubsub/2023-02-01/webpubsub/method_privateendpointconnectionslist.go +++ b/resource-manager/webpubsub/2023-02-01/webpubsub/method_privateendpointconnectionslist.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListCompleteResult struct { Items []PrivateEndpointConnection } +type PrivateEndpointConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsList ... func (c WebPubSubClient) PrivateEndpointConnectionsList(ctx context.Context, id WebPubSubId) (result PrivateEndpointConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) PrivateEndpointConnectionsList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/webpubsub/2023-02-01/webpubsub/method_privatelinkresourceslist.go b/resource-manager/webpubsub/2023-02-01/webpubsub/method_privatelinkresourceslist.go index 4ec1e54a235..eca4277cd2e 100644 --- a/resource-manager/webpubsub/2023-02-01/webpubsub/method_privatelinkresourceslist.go +++ b/resource-manager/webpubsub/2023-02-01/webpubsub/method_privatelinkresourceslist.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesListCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesList ... func (c WebPubSubClient) PrivateLinkResourcesList(ctx context.Context, id WebPubSubId) (result PrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) PrivateLinkResourcesList(ctx context.Context, id WebPub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/webpubsub/2023-02-01/webpubsub/method_sharedprivatelinkresourceslist.go b/resource-manager/webpubsub/2023-02-01/webpubsub/method_sharedprivatelinkresourceslist.go index 3d12753e7df..31066993e52 100644 --- a/resource-manager/webpubsub/2023-02-01/webpubsub/method_sharedprivatelinkresourceslist.go +++ b/resource-manager/webpubsub/2023-02-01/webpubsub/method_sharedprivatelinkresourceslist.go @@ -23,6 +23,18 @@ type SharedPrivateLinkResourcesListCompleteResult struct { Items []SharedPrivateLinkResource } +type SharedPrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SharedPrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SharedPrivateLinkResourcesList ... func (c WebPubSubClient) SharedPrivateLinkResourcesList(ctx context.Context, id WebPubSubId) (result SharedPrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) SharedPrivateLinkResourcesList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SharedPrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/sharedPrivateLinkResources", id.ID()), } diff --git a/resource-manager/webpubsub/2023-02-01/webpubsub/method_usageslist.go b/resource-manager/webpubsub/2023-02-01/webpubsub/method_usageslist.go index 47ef8d96d18..ce0e55014fb 100644 --- a/resource-manager/webpubsub/2023-02-01/webpubsub/method_usageslist.go +++ b/resource-manager/webpubsub/2023-02-01/webpubsub/method_usageslist.go @@ -23,6 +23,18 @@ type UsagesListCompleteResult struct { Items []SignalRServiceUsage } +type UsagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UsagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UsagesList ... func (c WebPubSubClient) UsagesList(ctx context.Context, id LocationId) (result UsagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) UsagesList(ctx context.Context, id LocationId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UsagesListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/webpubsub/2024-03-01/webpubsub/method_customcertificateslist.go b/resource-manager/webpubsub/2024-03-01/webpubsub/method_customcertificateslist.go index c0852ec3fd0..eeae7abb797 100644 --- a/resource-manager/webpubsub/2024-03-01/webpubsub/method_customcertificateslist.go +++ b/resource-manager/webpubsub/2024-03-01/webpubsub/method_customcertificateslist.go @@ -23,6 +23,18 @@ type CustomCertificatesListCompleteResult struct { Items []CustomCertificate } +type CustomCertificatesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomCertificatesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomCertificatesList ... func (c WebPubSubClient) CustomCertificatesList(ctx context.Context, id WebPubSubId) (result CustomCertificatesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) CustomCertificatesList(ctx context.Context, id WebPubSu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomCertificatesListCustomPager{}, Path: fmt.Sprintf("%s/customCertificates", id.ID()), } diff --git a/resource-manager/webpubsub/2024-03-01/webpubsub/method_customdomainslist.go b/resource-manager/webpubsub/2024-03-01/webpubsub/method_customdomainslist.go index 1f812009879..ca6b390ec67 100644 --- a/resource-manager/webpubsub/2024-03-01/webpubsub/method_customdomainslist.go +++ b/resource-manager/webpubsub/2024-03-01/webpubsub/method_customdomainslist.go @@ -23,6 +23,18 @@ type CustomDomainsListCompleteResult struct { Items []CustomDomain } +type CustomDomainsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *CustomDomainsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // CustomDomainsList ... func (c WebPubSubClient) CustomDomainsList(ctx context.Context, id WebPubSubId) (result CustomDomainsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) CustomDomainsList(ctx context.Context, id WebPubSubId) http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &CustomDomainsListCustomPager{}, Path: fmt.Sprintf("%s/customDomains", id.ID()), } diff --git a/resource-manager/webpubsub/2024-03-01/webpubsub/method_hubslist.go b/resource-manager/webpubsub/2024-03-01/webpubsub/method_hubslist.go index d0e19d3da0e..72d9fe23da2 100644 --- a/resource-manager/webpubsub/2024-03-01/webpubsub/method_hubslist.go +++ b/resource-manager/webpubsub/2024-03-01/webpubsub/method_hubslist.go @@ -23,6 +23,18 @@ type HubsListCompleteResult struct { Items []WebPubSubHub } +type HubsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HubsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // HubsList ... func (c WebPubSubClient) HubsList(ctx context.Context, id WebPubSubId) (result HubsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) HubsList(ctx context.Context, id WebPubSubId) (result H http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &HubsListCustomPager{}, Path: fmt.Sprintf("%s/hubs", id.ID()), } diff --git a/resource-manager/webpubsub/2024-03-01/webpubsub/method_listbyresourcegroup.go b/resource-manager/webpubsub/2024-03-01/webpubsub/method_listbyresourcegroup.go index f2ae9bcec3d..4e5f9e494e9 100644 --- a/resource-manager/webpubsub/2024-03-01/webpubsub/method_listbyresourcegroup.go +++ b/resource-manager/webpubsub/2024-03-01/webpubsub/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []WebPubSubResource } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c WebPubSubClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebPubSubClient) ListByResourceGroup(ctx context.Context, id commonids.R http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SignalRService/webPubSub", id.ID()), } diff --git a/resource-manager/webpubsub/2024-03-01/webpubsub/method_listbysubscription.go b/resource-manager/webpubsub/2024-03-01/webpubsub/method_listbysubscription.go index 4c5190e0b4b..004f11c075f 100644 --- a/resource-manager/webpubsub/2024-03-01/webpubsub/method_listbysubscription.go +++ b/resource-manager/webpubsub/2024-03-01/webpubsub/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []WebPubSubResource } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c WebPubSubClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c WebPubSubClient) ListBySubscription(ctx context.Context, id commonids.Su http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.SignalRService/webPubSub", id.ID()), } diff --git a/resource-manager/webpubsub/2024-03-01/webpubsub/method_listreplicaskus.go b/resource-manager/webpubsub/2024-03-01/webpubsub/method_listreplicaskus.go index b17613cf2ba..4bf14af3f58 100644 --- a/resource-manager/webpubsub/2024-03-01/webpubsub/method_listreplicaskus.go +++ b/resource-manager/webpubsub/2024-03-01/webpubsub/method_listreplicaskus.go @@ -23,6 +23,18 @@ type ListReplicaSkusCompleteResult struct { Items []Sku } +type ListReplicaSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListReplicaSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListReplicaSkus ... func (c WebPubSubClient) ListReplicaSkus(ctx context.Context, id ReplicaId) (result ListReplicaSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) ListReplicaSkus(ctx context.Context, id ReplicaId) (res http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListReplicaSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/webpubsub/2024-03-01/webpubsub/method_listskus.go b/resource-manager/webpubsub/2024-03-01/webpubsub/method_listskus.go index 720e7f3b4b9..bdd5f58b0bb 100644 --- a/resource-manager/webpubsub/2024-03-01/webpubsub/method_listskus.go +++ b/resource-manager/webpubsub/2024-03-01/webpubsub/method_listskus.go @@ -23,6 +23,18 @@ type ListSkusCompleteResult struct { Items []Sku } +type ListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListSkus ... func (c WebPubSubClient) ListSkus(ctx context.Context, id WebPubSubId) (result ListSkusOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) ListSkus(ctx context.Context, id WebPubSubId) (result L http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListSkusCustomPager{}, Path: fmt.Sprintf("%s/skus", id.ID()), } diff --git a/resource-manager/webpubsub/2024-03-01/webpubsub/method_privateendpointconnectionslist.go b/resource-manager/webpubsub/2024-03-01/webpubsub/method_privateendpointconnectionslist.go index 3f6d1c32ecb..2ccef66a2dc 100644 --- a/resource-manager/webpubsub/2024-03-01/webpubsub/method_privateendpointconnectionslist.go +++ b/resource-manager/webpubsub/2024-03-01/webpubsub/method_privateendpointconnectionslist.go @@ -23,6 +23,18 @@ type PrivateEndpointConnectionsListCompleteResult struct { Items []PrivateEndpointConnection } +type PrivateEndpointConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateEndpointConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateEndpointConnectionsList ... func (c WebPubSubClient) PrivateEndpointConnectionsList(ctx context.Context, id WebPubSubId) (result PrivateEndpointConnectionsListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) PrivateEndpointConnectionsList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateEndpointConnectionsListCustomPager{}, Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), } diff --git a/resource-manager/webpubsub/2024-03-01/webpubsub/method_privatelinkresourceslist.go b/resource-manager/webpubsub/2024-03-01/webpubsub/method_privatelinkresourceslist.go index 4ec1e54a235..eca4277cd2e 100644 --- a/resource-manager/webpubsub/2024-03-01/webpubsub/method_privatelinkresourceslist.go +++ b/resource-manager/webpubsub/2024-03-01/webpubsub/method_privatelinkresourceslist.go @@ -23,6 +23,18 @@ type PrivateLinkResourcesListCompleteResult struct { Items []PrivateLinkResource } +type PrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *PrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // PrivateLinkResourcesList ... func (c WebPubSubClient) PrivateLinkResourcesList(ctx context.Context, id WebPubSubId) (result PrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) PrivateLinkResourcesList(ctx context.Context, id WebPub http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &PrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/privateLinkResources", id.ID()), } diff --git a/resource-manager/webpubsub/2024-03-01/webpubsub/method_replicasharedprivatelinkresourceslist.go b/resource-manager/webpubsub/2024-03-01/webpubsub/method_replicasharedprivatelinkresourceslist.go index d6ee1c0dd7e..f18954c941a 100644 --- a/resource-manager/webpubsub/2024-03-01/webpubsub/method_replicasharedprivatelinkresourceslist.go +++ b/resource-manager/webpubsub/2024-03-01/webpubsub/method_replicasharedprivatelinkresourceslist.go @@ -23,6 +23,18 @@ type ReplicaSharedPrivateLinkResourcesListCompleteResult struct { Items []SharedPrivateLinkResource } +type ReplicaSharedPrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReplicaSharedPrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReplicaSharedPrivateLinkResourcesList ... func (c WebPubSubClient) ReplicaSharedPrivateLinkResourcesList(ctx context.Context, id ReplicaId) (result ReplicaSharedPrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) ReplicaSharedPrivateLinkResourcesList(ctx context.Conte http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ReplicaSharedPrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/sharedPrivateLinkResources", id.ID()), } diff --git a/resource-manager/webpubsub/2024-03-01/webpubsub/method_replicaslist.go b/resource-manager/webpubsub/2024-03-01/webpubsub/method_replicaslist.go index 0d91ea46087..687a0d513a7 100644 --- a/resource-manager/webpubsub/2024-03-01/webpubsub/method_replicaslist.go +++ b/resource-manager/webpubsub/2024-03-01/webpubsub/method_replicaslist.go @@ -23,6 +23,18 @@ type ReplicasListCompleteResult struct { Items []Replica } +type ReplicasListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ReplicasListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ReplicasList ... func (c WebPubSubClient) ReplicasList(ctx context.Context, id WebPubSubId) (result ReplicasListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) ReplicasList(ctx context.Context, id WebPubSubId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ReplicasListCustomPager{}, Path: fmt.Sprintf("%s/replicas", id.ID()), } diff --git a/resource-manager/webpubsub/2024-03-01/webpubsub/method_sharedprivatelinkresourceslist.go b/resource-manager/webpubsub/2024-03-01/webpubsub/method_sharedprivatelinkresourceslist.go index 3d12753e7df..31066993e52 100644 --- a/resource-manager/webpubsub/2024-03-01/webpubsub/method_sharedprivatelinkresourceslist.go +++ b/resource-manager/webpubsub/2024-03-01/webpubsub/method_sharedprivatelinkresourceslist.go @@ -23,6 +23,18 @@ type SharedPrivateLinkResourcesListCompleteResult struct { Items []SharedPrivateLinkResource } +type SharedPrivateLinkResourcesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SharedPrivateLinkResourcesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // SharedPrivateLinkResourcesList ... func (c WebPubSubClient) SharedPrivateLinkResourcesList(ctx context.Context, id WebPubSubId) (result SharedPrivateLinkResourcesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) SharedPrivateLinkResourcesList(ctx context.Context, id http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &SharedPrivateLinkResourcesListCustomPager{}, Path: fmt.Sprintf("%s/sharedPrivateLinkResources", id.ID()), } diff --git a/resource-manager/webpubsub/2024-03-01/webpubsub/method_usageslist.go b/resource-manager/webpubsub/2024-03-01/webpubsub/method_usageslist.go index 47ef8d96d18..ce0e55014fb 100644 --- a/resource-manager/webpubsub/2024-03-01/webpubsub/method_usageslist.go +++ b/resource-manager/webpubsub/2024-03-01/webpubsub/method_usageslist.go @@ -23,6 +23,18 @@ type UsagesListCompleteResult struct { Items []SignalRServiceUsage } +type UsagesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *UsagesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // UsagesList ... func (c WebPubSubClient) UsagesList(ctx context.Context, id LocationId) (result UsagesListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c WebPubSubClient) UsagesList(ctx context.Context, id LocationId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &UsagesListCustomPager{}, Path: fmt.Sprintf("%s/usages", id.ID()), } diff --git a/resource-manager/workloads/2023-04-01/monitors/method_list.go b/resource-manager/workloads/2023-04-01/monitors/method_list.go index 89b219d1a2d..02e0c183a59 100644 --- a/resource-manager/workloads/2023-04-01/monitors/method_list.go +++ b/resource-manager/workloads/2023-04-01/monitors/method_list.go @@ -24,6 +24,18 @@ type ListCompleteResult struct { Items []Monitor } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c MonitorsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsClient) List(ctx context.Context, id commonids.SubscriptionId) ( http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Workloads/monitors", id.ID()), } diff --git a/resource-manager/workloads/2023-04-01/monitors/method_listbyresourcegroup.go b/resource-manager/workloads/2023-04-01/monitors/method_listbyresourcegroup.go index 9e88333b0a8..7831b4be682 100644 --- a/resource-manager/workloads/2023-04-01/monitors/method_listbyresourcegroup.go +++ b/resource-manager/workloads/2023-04-01/monitors/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []Monitor } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c MonitorsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c MonitorsClient) ListByResourceGroup(ctx context.Context, id commonids.Re http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Workloads/monitors", id.ID()), } diff --git a/resource-manager/workloads/2023-04-01/providerinstances/method_list.go b/resource-manager/workloads/2023-04-01/providerinstances/method_list.go index be04458f6d2..3765f57d677 100644 --- a/resource-manager/workloads/2023-04-01/providerinstances/method_list.go +++ b/resource-manager/workloads/2023-04-01/providerinstances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []ProviderInstance } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c ProviderInstancesClient) List(ctx context.Context, id MonitorId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c ProviderInstancesClient) List(ctx context.Context, id MonitorId) (result http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/providerInstances", id.ID()), } diff --git a/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/method_list.go b/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/method_list.go index 1eb4096508a..e91a1644df2 100644 --- a/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/method_list.go +++ b/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SAPApplicationServerInstance } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SAPApplicationServerInstancesClient) List(ctx context.Context, id SapVirtualInstanceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SAPApplicationServerInstancesClient) List(ctx context.Context, id SapVir http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/applicationInstances", id.ID()), } diff --git a/resource-manager/workloads/2023-04-01/sapcentralinstances/method_list.go b/resource-manager/workloads/2023-04-01/sapcentralinstances/method_list.go index eae4085a93f..d7341cedcb7 100644 --- a/resource-manager/workloads/2023-04-01/sapcentralinstances/method_list.go +++ b/resource-manager/workloads/2023-04-01/sapcentralinstances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SAPCentralServerInstance } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SAPCentralInstancesClient) List(ctx context.Context, id SapVirtualInstanceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SAPCentralInstancesClient) List(ctx context.Context, id SapVirtualInstan http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/centralInstances", id.ID()), } diff --git a/resource-manager/workloads/2023-04-01/sapdatabaseinstances/method_list.go b/resource-manager/workloads/2023-04-01/sapdatabaseinstances/method_list.go index 1a322fd0e20..ce164baa7f1 100644 --- a/resource-manager/workloads/2023-04-01/sapdatabaseinstances/method_list.go +++ b/resource-manager/workloads/2023-04-01/sapdatabaseinstances/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SAPDatabaseInstance } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SAPDatabaseInstancesClient) List(ctx context.Context, id SapVirtualInstanceId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SAPDatabaseInstancesClient) List(ctx context.Context, id SapVirtualInsta http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/databaseInstances", id.ID()), } diff --git a/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_list.go b/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_list.go index 30c5b15a6b4..a691674fe24 100644 --- a/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_list.go +++ b/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_list.go @@ -23,6 +23,18 @@ type ListCompleteResult struct { Items []SapLandscapeMonitor } +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // List ... func (c SapLandscapeMonitorClient) List(ctx context.Context, id MonitorId) (result ListOperationResponse, err error) { opts := client.RequestOptions{ @@ -31,6 +43,7 @@ func (c SapLandscapeMonitorClient) List(ctx context.Context, id MonitorId) (resu http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, Path: fmt.Sprintf("%s/sapLandscapeMonitor", id.ID()), } diff --git a/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_listbyresourcegroup.go b/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_listbyresourcegroup.go index 9dd2f84cdbe..82e423c66ab 100644 --- a/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_listbyresourcegroup.go +++ b/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_listbyresourcegroup.go @@ -24,6 +24,18 @@ type ListByResourceGroupCompleteResult struct { Items []SAPVirtualInstance } +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListByResourceGroup ... func (c SAPVirtualInstancesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SAPVirtualInstancesClient) ListByResourceGroup(ctx context.Context, id c http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Workloads/sapVirtualInstances", id.ID()), } diff --git a/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_listbysubscription.go b/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_listbysubscription.go index 42c808cac89..69718c73bd8 100644 --- a/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_listbysubscription.go +++ b/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_listbysubscription.go @@ -24,6 +24,18 @@ type ListBySubscriptionCompleteResult struct { Items []SAPVirtualInstance } +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + // ListBySubscription ... func (c SAPVirtualInstancesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { opts := client.RequestOptions{ @@ -32,6 +44,7 @@ func (c SAPVirtualInstancesClient) ListBySubscription(ctx context.Context, id co http.StatusOK, }, HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, Path: fmt.Sprintf("%s/providers/Microsoft.Workloads/sapVirtualInstances", id.ID()), }